|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<!-- 核酸样品分装 --> |
|
|
|
<template> |
|
|
|
<StepFormPackage @clickButton="onHandleClickButton" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'pcr_hsypfz'" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" /> |
|
|
|
<StepFormPackage @clickButton="onHandleClickButton" ref="stepFormPackageRef" :prefixKey="stepIndex + '_' + 'pcr_hsypfz'" |
|
|
|
@resetRecord="resetRecord" :form-config="formConfig" :formData="formData" /> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
@ -10,14 +11,33 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js'; |
|
|
|
export default { |
|
|
|
mixins: [stepMixins], |
|
|
|
props: { |
|
|
|
sn: { |
|
|
|
type: String, |
|
|
|
default: 'hsypfz', |
|
|
|
}, |
|
|
|
}, |
|
|
|
sn: { |
|
|
|
type: String, |
|
|
|
default: 'hsypfz', |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
StepFormPackage |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getCode(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async getCode() { |
|
|
|
const { lbbhCode } = this.formData; |
|
|
|
if (this.templateFillType === 'actFill') { |
|
|
|
const stepFormData = this.getFilledFormData(); |
|
|
|
const { lbbh } = stepFormData; |
|
|
|
const result = await this.getLatestSn({ |
|
|
|
count: 1, |
|
|
|
type: 1, |
|
|
|
pre: lbbh, |
|
|
|
}) |
|
|
|
this.$refs.stepFormPackageRef.updateFormData("lbbhCode",result[0]) |
|
|
|
console.log(result,"reee") |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
formConfig() { |
|
|
|
return [{ |
|
|
|
@ -42,61 +62,62 @@ export default { |
|
|
|
label: "吸取到离心管中,其体积预计为", |
|
|
|
type: "text", |
|
|
|
}, |
|
|
|
yjtj:{ |
|
|
|
yjtj: { |
|
|
|
fillType: "preFill", |
|
|
|
type: "inputNumber", |
|
|
|
}, |
|
|
|
yjtjdw:{ |
|
|
|
yjtjdw: { |
|
|
|
fillType: "preFill", |
|
|
|
type: "select", |
|
|
|
selectTo: "sjtjdw", |
|
|
|
options:this.getDictOptions('business_tjdw'), |
|
|
|
options: this.getDictOptions('business_tjdw'), |
|
|
|
}, |
|
|
|
text4:{ |
|
|
|
text4: { |
|
|
|
label: "实际体积为", |
|
|
|
type: "text", |
|
|
|
}, |
|
|
|
sjtj:{ |
|
|
|
sjtj: { |
|
|
|
fillType: "actFill", |
|
|
|
type: "inputNumber", |
|
|
|
compareTo:"yjtj", |
|
|
|
copyFrom:"yjtj" |
|
|
|
compareTo: "yjtj", |
|
|
|
copyFrom: "yjtj" |
|
|
|
}, |
|
|
|
sjtjdw:{ |
|
|
|
sjtjdw: { |
|
|
|
fillType: "preFill", |
|
|
|
type: "select", |
|
|
|
options:this.getDictOptions('business_tjdw'), |
|
|
|
options: this.getDictOptions('business_tjdw'), |
|
|
|
}, |
|
|
|
text5:{ |
|
|
|
text5: { |
|
|
|
label: "其编号为", |
|
|
|
type: "text", |
|
|
|
}, |
|
|
|
lbbh:{ |
|
|
|
lbbh: { |
|
|
|
fillType: "preFill", |
|
|
|
type: "input", |
|
|
|
}, |
|
|
|
text6:{ |
|
|
|
text6: { |
|
|
|
label: "-", |
|
|
|
type: "text", |
|
|
|
}, |
|
|
|
//todo :自动生成 |
|
|
|
lbbhCode:{ |
|
|
|
lbbhCode: { |
|
|
|
fillType: "actFill", |
|
|
|
type: "input", |
|
|
|
disabled: true, |
|
|
|
}, |
|
|
|
text7:{ |
|
|
|
text7: { |
|
|
|
label: ",进行分装", |
|
|
|
type: "text", |
|
|
|
}, |
|
|
|
//todo :有没有什么分装逻辑 |
|
|
|
fzbutton:{ |
|
|
|
type:"button", |
|
|
|
fzbutton: { |
|
|
|
type: "button", |
|
|
|
fillType: "actFill", |
|
|
|
fzType:"step", |
|
|
|
buttonName:"分装", |
|
|
|
maxVolumeField:"sjtj", |
|
|
|
maxVolumeUnitField:"sjtjdw", |
|
|
|
myCodeFields:["lbbh","lbbhCode"], |
|
|
|
fzType: "step", |
|
|
|
buttonName: "分装", |
|
|
|
maxVolumeField: "sjtj", |
|
|
|
maxVolumeUnitField: "sjtjdw", |
|
|
|
myCodeFields: ["lbbh", "lbbhCode"], |
|
|
|
}, |
|
|
|
} |
|
|
|
}] |
|
|
|
|