Browse Source

feat: [步骤管理] 样品分取步骤

ouqian
memorylkf 1 month ago
parent
commit
ec434b0b4f
4 changed files with 211 additions and 1 deletions
  1. +15
    -0
      src/components/Template/Step.vue
  2. +9
    -1
      src/components/Template/StepComponents/qxwdx/qxjz.vue
  3. +120
    -0
      src/components/Template/StepComponents/ypfq/fq2.vue
  4. +67
    -0
      src/components/Template/StepComponents/ypfq/hh.vue

+ 15
- 0
src/components/Template/Step.vue View File

@ -149,6 +149,12 @@ import qxlx from './StepComponents/qxwdx/qxlx.vue';//全血稳定性-全血离
//-使- //-使-
//-使- //-使-
//
import fq2 from './StepComponents/ypfq/fq2.vue';//-2
//-3使-2
import hh from './StepComponents/ypfq/hh.vue';//-
import { public_templateStepList } from '@/api/business/public/public'; import { public_templateStepList } from '@/api/business/public/public';
@ -289,6 +295,10 @@ export default {
qxfz, qxfz,
qxjz, qxjz,
qxlx, qxlx,
//
fq2,
hh,
}, },
computed: { computed: {
stepComponentMap() { stepComponentMap() {
@ -399,6 +409,11 @@ export default {
'qxlx':'qxlx', 'qxlx':'qxlx',
'qxqy':'qxjz', 'qxqy':'qxjz',
'jzhlx':'qxlx', 'jzhlx':'qxlx',
//
'fq2':'fq2',
'fq3':'fq2',
'hh':'hh',
} }
} }

+ 9
- 1
src/components/Template/StepComponents/qxwdx/qxjz.vue View File

@ -66,7 +66,7 @@ export default {
compareTo: "yjhj", compareTo: "yjhj",
}, },
text6: { text6: {
label: this.sn==='qxqy'?"条件下暂存,作为":"条件下静置,即稳定性",
label: this.sn==='qxqy'?"条件下暂存":"条件下静置,即稳定性",
type: "text", type: "text",
}, },
} }
@ -93,6 +93,14 @@ export default {
fillType: "actFill", fillType: "actFill",
otherCode: "ccwzOther", otherCode: "ccwzOther",
} }
config[0].config.text8 = {
type: "text",
label: "作为",
}
config[0].config.yp = {
type: "input",
fillType: "actFill",
}
config[0].config.text9 = { config[0].config.text9 = {
type: "text", type: "text",
label: "样品。", label: "样品。",

+ 120
- 0
src/components/Template/StepComponents/ypfq/fq2.vue View File

@ -0,0 +1,120 @@
<!-- 分取2 -->
<template>
<StepFormPackage ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'ypfq_fq2'" @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: 'fq2',
},
},
components: {
StepFormPackage
},
computed: {
formConfig() {
let config = [{
config: {
text1: {
label: "使用移液器",
type: "text",
},
yq: {
type: "yq",
fillType: "actFill",
},
text2: {
label: "将",
type: "text",
},
xqxj: {
type: "input",
fillType: "preFill",
},
text3: {
label: this.sn==='fq2'?"分为2管,第1管预计放入":this.sn==='fq3'?"分为3管,第1管预计放入":'',
type: "text",
},
yjfr: {
type: "inputNumber",
fillType: "preFill",
},
yjfrdw:{
type:"select",
options:this.getDictOptions("business_tjdw"),
selectTo:"sjfrdw",
fillType:"preFill",
},
text4: {
label: ",实际放入",
type: "text",
},
sjfr: {
type: "inputNumber",
fillType: "actFill",
compareTo:"yjfr",
copyFrom:"yjfr"
},
sjfrdw:{
type:"select",
options:this.getDictOptions("business_tjdw"),
fillType:"preFill",
},
}
}]
if(this.sn==='fq2'){
config[0].config.text5 = {
label: ",剩余放入第2管。",
type: "text",
}
}
if(this.sn==='fq3'){
config[0].config.text5 = {
label: ",2管预计放入",
type: "text",
}
config[0].config.yjfr2 = {
type: "inputNumber",
fillType: "preFill",
}
config[0].config.yjfrdw2 = {
type:"select",
options:this.getDictOptions("business_tjdw"),
selectTo:"sjfrdw2",
fillType:"preFill",
}
config[0].config.text6 = {
label: ",实际放入",
type: "text",
}
config[0].config.sjfr2 = {
type: "inputNumber",
fillType: "actFill",
compareTo:"yjfr2",
copyFrom:"yjfr2"
}
config[0].config.sjfrdw2 = {
type:"select",
options:this.getDictOptions("business_tjdw"),
fillType:"preFill",
}
config[0].config.text7 = {
label: ",剩余放入第3管。",
type: "text",
}
}
return config
}
},
}
</script>
<style lang="scss" scoped></style>

+ 67
- 0
src/components/Template/StepComponents/ypfq/hh.vue View File

@ -0,0 +1,67 @@
<!-- 混合 -->
<template>
<StepFormPackage ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'ypfq_hh'" @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: 'hh',
},
},
components: {
StepFormPackage
},
computed: {
formConfig() {
let config = [{
config: {
text1: {
label: "将同一动物的胎仔血预计各取",
type: "text",
},
yjfr: {
type: "inputNumber",
fillType: "preFill",
},
yjfrdw:{
type:"select",
options:this.getDictOptions("business_tjdw"),
selectTo:"sjfrdw",
fillType:"preFill",
},
text4: {
label: ",实际各取",
type: "text",
},
sjfr: {
type: "inputNumber",
fillType: "actFill",
compareTo:"yjfr",
copyFrom:"yjfr"
},
sjfrdw:{
type:"select",
options:this.getDictOptions("business_tjdw"),
fillType:"preFill",
},
text5: {
label: "混匀。",
type: "text",
},
}
}]
return config
}
},
}
</script>
<style lang="scss" scoped></style>

Loading…
Cancel
Save