|
|
|
@ -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> |