Browse Source

feat: [步骤管理] 新增生物样品分析步骤

ouqian
memorylkf 1 month ago
parent
commit
7e6f74cd74
7 changed files with 380 additions and 6 deletions
  1. +39
    -2
      src/components/Template/Step.vue
  2. +1
    -1
      src/components/Template/StepComponents/ry/fy.vue
  3. +101
    -1
      src/components/Template/StepComponents/ry/jd.vue
  4. +2
    -2
      src/components/Template/StepComponents/ry/lx.vue
  5. +91
    -0
      src/components/Template/StepComponents/swypfx/hhspe.vue
  6. +67
    -0
      src/components/Template/StepComponents/swypfx/jryp.vue
  7. +79
    -0
      src/components/Template/StepComponents/swypfx/zyfc.vue

+ 39
- 2
src/components/Template/Step.vue View File

@ -103,6 +103,24 @@ import cl from './StepComponents/b/cl.vue';//表配置-称量
//-使-
//-使-
//
//-使-
//-使-
//-使-
import jryp from './StepComponents/swypfx/jryp.vue';//-
//-使-
import hhspe from './StepComponents/swypfx/hhspe.vue';//-SPE
//-SPE使-SPE
//-SPE使-SPE
//-SPE使-SPE
//-SPE使-SPE
import zyfc from './StepComponents/swypfx/zyfc.vue';//-
//-使-
//-使-
//-使-
//-使-
import { public_templateStepList } from '@/api/business/public/public';
@ -223,6 +241,11 @@ export default {
//
jrry_b,
cl,
//
jryp,
hhspe,
zyfc
},
computed: {
stepComponentMap() {
@ -280,8 +303,8 @@ export default {
//
'jrry_b': 'jrry_b',
'cl': 'cl',
'lx_b': 'lx',
'cs_b': 'cs',
'lx_b': 'Lx',
'cs_b': 'Cs',
'hwhy_b': 'Hwhy',
'zyhy_b': 'Zyhy',
'wxhy_b': 'Wxhy',
@ -298,6 +321,19 @@ export default {
'jd_b': 'Jd',
'fy_b': 'Fy',
'fr_b': 'Fr',
//
'jd_swypfx': 'Jd',
'jryp': 'jryp',
'ysfy': 'Lx',
'hhspe': 'hhspe',
'phspe': 'hhspe',
'syspe': 'hhspe',
'lxspe': 'hhspe',
'xtspe': 'hhspe',
'zyfc': 'zyfc',
}
}
return this.componentMap
@ -339,6 +375,7 @@ export default {
},
methods: {
getStepList(){
debugger
public_templateStepList({templateId:this.templateData.templateId}).then(response => {
let options = []
_.forEach(response.data,(item)=>{

+ 1
- 1
src/components/Template/StepComponents/ry/fy.vue View File

@ -40,7 +40,7 @@ export default {
fillType: "preFill",
},
text3: {
label: "实际条件为",
label: "实际设置条件为",
type: "text",
},
sjtj: {

+ 101
- 1
src/components/Template/StepComponents/ry/jd.vue View File

@ -21,7 +21,107 @@ export default {
},
computed: {
formConfig() {
let config = [{
let config = this.sn==='jd_swypfx'?
[{
config: {
text1: {
label: "将上述样品预计放置于",
type: "text",
},
ccwz: {
type: "select",
options: this.getDictOptions("business_ccwz"),
fillType: "preFill",
otherCode: "ccwzOther",
},
text3: {
label: "实际放置于",
type: "text",
},
sjccwz: {
type: "select",
options: this.getDictOptions("business_ccwz"),
fillType: "actFill",
otherCode: "sjccwzOther",
compareTo: "ccwz",
},
text4: {
label: "位置,其环境条件预计为",
type: "text",
},
yjwd: {
type: "select",
options: this.getDictOptions("business_wddw"),
fillType: "preFill",
otherCode: "yjwdOther",
},
yjhj: {
type: "select",
options: this.getDictOptions("business_hjxx"),
fillType: "preFill",
otherCode: "yjhjOther",
},
text5: {
label: ",实际条件为",
type: "text",
},
sjwd: {
type: "select",
options: this.getDictOptions("business_wddw"),
fillType: "actFill",
otherCode: "sjwdOther",
compareTo: "yjwd",
},
sjhj: {
type: "select",
options: this.getDictOptions("business_hjxx"),
fillType: "actFill",
otherCode: "sjhjOther",
compareTo: "yjhj",
},
text6: {
label: ",放置",
type: "text",
},
sr1:{
type: "input",
fillType: "preFill",
},
text7:{
type:"text",
label:",解冻",
},
startDate: {
type: "input",
fillType: "actFill",
disabled: true,
},
button1:{
type:"button",
buttonName:"开始",
},
text8:{
type:"text",
label:",解冻",
},
endDate: {
type: "input",
fillType: "actFill",
disabled: true,
},
button2:{
type:"button",
buttonName:"结束",
},
text9: {
type: "text",
label: "。",
},
}
}]:
[{
config: {
text1: {
label: "将",

+ 2
- 2
src/components/Template/StepComponents/ry/lx.vue View File

@ -23,7 +23,7 @@ export default {
let config = [{
config: {
text1: {
label: "使用离心机",
label: this.sn==='ysfy'?"使用恒温混匀仪":"使用离心机",
type: "text",
},
yq: {
@ -110,7 +110,7 @@ export default {
fillType: "preFill",
},
text8: {
label: ",进行离心。离心",
label: this.sn==='ysfy'?",进行衍生反应,反应":",进行离心。离心",
type: "text",
},
startDate: {

+ 91
- 0
src/components/Template/StepComponents/swypfx/hhspe.vue View File

@ -0,0 +1,91 @@
<!-- 活化SPE -->
<template>
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_hhspe" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>
import StepFormPackage from '@/components/Template/StepFormPackage.vue';
import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default {
mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'hhsep',
},
},
components: {
StepFormPackage
},
computed: {
formConfig() {
return [{
config: {
text1: {
label: "使用",
type: "text",
},
ytrq: {
fillType: "preFill",
type: "input",
},
sjrqcz: {
fillType: "actFill",
type: "yq",
},
text2: {
label: this.sn==='syspe'?"向预先活化平衡好的固相萃取版中加入":"向固相萃取版中加入",
type: "text",
},
srry: {
fillType: "preFill",
type: "input",
},
sjrq:{
fillType: "actFill",
type: "sj",
ylCode: "sjsr2",
dwCode: "sjsrdw2",
},
text3:{
label: this.sn==='syspe'?"样品,预计加入":"溶液,预计加入",
type: "text",
},
ytsr1:{
fillType: "preFill",
type: "inputNumber",
},
tjxz:{
fillType: "preFill",
type: "select",
selectTo: "sjsrdw2",
options:this.getDictOptions('business_tjdw'),
},
text4:{
label: ",实际加入",
type: "text",
},
sjsr2:{
fillType: "actFill",
type: "inputNumber",
compareTo:"ytsr1",
copyFrom:"ytsr1"
},
sjsrdw2:{
fillType: "preFill",
type: "select",
options: this.getDictOptions('business_tjdw'),
},
text5:{
label: this.sn==='phspe'?"进行平衡。":this.sn==='syspe'?"进行上样。":this.sn==='lxspe'?"进行淋洗,弃去淋洗液。":this.sn==='xtspe'?"进行洗脱,收集洗脱液。":"进行活化。",
type: "text",
}
}
}]
}
},
}
</script>
<style lang="scss" scoped></style>

+ 67
- 0
src/components/Template/StepComponents/swypfx/jryp.vue View File

@ -0,0 +1,67 @@
<!-- 加入样品 -->
<template>
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_jryp" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>
import StepFormPackage from '@/components/Template/StepFormPackage.vue';
import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default {
mixins: [stepMixins],
components: {
StepFormPackage
},
computed: {
formConfig() {
return [{
config: {
text1: {
label: "使用移液器",
type: "text",
},
sjrqcz: {
fillType: "actFill",
type: "yq",
},
text2: {
label: "仪器,预计加入样品",
type: "text",
},
ytsr1:{
fillType: "preFill",
type: "inputNumber",
},
tjxz:{
fillType: "preFill",
type: "select",
selectTo: "sjsrdw2",
options:this.getDictOptions('business_tjdw'),
},
text4:{
label: ",实际加入样品",
type: "text",
},
sjsr2:{
fillType: "actFill",
type: "inputNumber",
compareTo:"ytsr1",
copyFrom:"ytsr1"
},
sjsrdw2:{
fillType: "preFill",
type: "select",
options: this.getDictOptions('business_tjdw'),
},
text5:{
label: "。",
type: "text",
}
}
}]
}
},
}
</script>
<style lang="scss" scoped></style>

+ 79
- 0
src/components/Template/StepComponents/swypfx/zyfc.vue View File

@ -0,0 +1,79 @@
<!-- 转移分层 -->
<template>
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_zyfc" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>
import StepFormPackage from '@/components/Template/StepFormPackage.vue';
import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default {
mixins: [stepMixins],
components: {
StepFormPackage
},
computed: {
formConfig() {
return [{
config: {
text1: {
label: "使用",
type: "text",
},
ytyq: {
fillType: "preFill",
type: "input",
},
sjrqcz: {
fillType: "actFill",
type: "yq",
},
text2: {
label: "转移",
type: "text",
},
shang:{
fillType: "preFill",
type: "input",
},
text3: {
label: "层清液,预计转移",
type: "text",
},
ytsr1:{
fillType: "preFill",
type: "inputNumber",
},
tjxz:{
fillType: "preFill",
type: "select",
selectTo: "sjsrdw2",
options:this.getDictOptions('business_tjdw'),
},
text4:{
label: ",实际转移",
type: "text",
},
sjsr2:{
fillType: "actFill",
type: "inputNumber",
compareTo:"ytsr1",
copyFrom:"ytsr1"
},
sjsrdw2:{
fillType: "preFill",
type: "select",
options: this.getDictOptions('business_tjdw'),
},
text5:{
label: "至容器中。",
type: "text",
}
}
}]
}
},
}
</script>
<style lang="scss" scoped></style>

Loading…
Cancel
Save