|
|
|
@ -40,13 +40,13 @@ |
|
|
|
</div> |
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" |
|
|
|
:ref="`formZlConfigFormPackageRef_${zlIndex}`" :formConfig="formZlConfig" |
|
|
|
:prefixKey="'formzl_' + zlIndex" |
|
|
|
@beforeReagentSubmit="(data) => onTableBeforeReagentZlSubmit(data, zlIndex, formZlConfig)" |
|
|
|
@onRegentSubmit="(data) => onTableRegentZlSubmit(zlIndex, data)" |
|
|
|
@clickButton="(data) => onClickButtonZl(zlIndex, data)" |
|
|
|
:formData="formzlConfig" /> |
|
|
|
@clickButton="(data) => onClickButtonZl(zlIndex, data)" :formData="formzlConfig" /> |
|
|
|
<Step class="mt-0 s-container" :ref="`formZlStepRef_${zlIndex}`" |
|
|
|
:formData="formzlConfig.stepData" :fieldItemLabel="$t('template.common.jtpz')" |
|
|
|
:prefixKey="'form_' + zlIndex"></Step> |
|
|
|
:formIndex="zlIndex" formType="formZl" :prefixKey="'form_' + zlIndex"></Step> |
|
|
|
<el-button class="print-btn" v-if="fillType === 'actFill'" type="primary" |
|
|
|
@click="zlJspz(zlIndex)">{{ $t('template.gsp.GSP005.jspz') }}</el-button> |
|
|
|
</div> |
|
|
|
@ -69,12 +69,13 @@ |
|
|
|
</div> |
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" |
|
|
|
:ref="`formRyConfigFormPackageRef_${ryIndex}`" :formConfig="formRyConfig" |
|
|
|
:prefixKey="'formry_' + ryIndex" |
|
|
|
@beforeReagentSubmit="(data) => onTableBeforeReagentRySubmit(data, ryIndex, formRyConfig)" |
|
|
|
@onRegentSubmit="(data) => onTableRegentRySubmit(ryIndex, data)" |
|
|
|
:formData="formryConfig" /> |
|
|
|
<Step class="mt-0 s-container" :ref="`formRyStepRef_${ryIndex}`" |
|
|
|
:formData="formryConfig.stepData" :fieldItemLabel="$t('template.common.jtpz')" |
|
|
|
:prefixKey="'form_' + ryIndex"></Step> |
|
|
|
:formIndex="ryIndex" formType="formRy" :prefixKey="'form_' + ryIndex"></Step> |
|
|
|
<el-button class="print-btn" v-if="fillType === 'actFill'" type="primary" |
|
|
|
@click="ryJspz(ryIndex)">{{ $t('template.gsp.GSP005.jspz') }}</el-button> |
|
|
|
</div> |
|
|
|
@ -113,6 +114,20 @@ export default { |
|
|
|
default: 'preFill', |
|
|
|
}, |
|
|
|
}, |
|
|
|
provide() { |
|
|
|
return { |
|
|
|
getMybhByIndex: (index, type) => { |
|
|
|
if (type === 'formZl') { |
|
|
|
const data = this.$refs[`formZlConfigFormPackageRef_${index}`][0].getFilledFormData() |
|
|
|
return { mybh: data.targetCode + data.targetCodeSn, maxVolume: data.targetActVolume, maxVolumeUnit: data.targetActVolumeUnit } |
|
|
|
|
|
|
|
} else { |
|
|
|
const data = this.$refs[`formRyConfigFormPackageRef_${index}`][0].getFilledFormData() |
|
|
|
return { mybh: data.targetCode + data.targetCodeSn, maxVolume: data.targetActVolume, maxVolumeUnit: data.targetActVolumeUnit } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
// 备注表单配制 |
|
|
|
remarkConig() { |
|
|
|
@ -181,7 +196,7 @@ export default { |
|
|
|
label: 'template.common.actualFill', |
|
|
|
type: "select", |
|
|
|
fillType: "actFill", |
|
|
|
otherCode: "actOther",otherCodeCompareTo: "preOther", |
|
|
|
otherCode: "actOther", otherCodeCompareTo: "preOther", |
|
|
|
multiple: true, |
|
|
|
compareTo: "pre", |
|
|
|
options: this.getDictOptions('business_pztj') |
|
|
|
@ -352,7 +367,7 @@ export default { |
|
|
|
fourthType: "button", |
|
|
|
fourthKey: "sywzsjclzButtonValue", |
|
|
|
fourthFillType: "actFill", |
|
|
|
fourthButtonName:"获取值", |
|
|
|
fourthButtonName: "获取值", |
|
|
|
isClearForm: true, |
|
|
|
thirdOptions: this.getDictOptions('business_zldw'), |
|
|
|
maxlength: 10 |
|
|
|
@ -631,8 +646,8 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onClickButtonZl(zlIndex, data){ |
|
|
|
this.$refs[`formZlConfigFormPackageRef_${zlIndex}`][0].updateFormData('sywzsjclzValue', 1) |
|
|
|
onClickButtonZl(zlIndex, data) { |
|
|
|
this.$refs[`formZlConfigFormPackageRef_${zlIndex}`][0].updateFormData('sywzsjclzValue', 1) |
|
|
|
}, |
|
|
|
//溶液开始配制 |
|
|
|
ryKspz(zlIndex) { |
|
|
|
@ -701,7 +716,7 @@ export default { |
|
|
|
callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。'); |
|
|
|
} |
|
|
|
//溶剂编号/批号 |
|
|
|
if (key === "rjbhphSub" && selectData.row.kcdw!==formFields.rjsjtjUnit) { |
|
|
|
if (key === "rjbhphSub" && selectData.row.kcdw !== formFields.rjsjtjUnit) { |
|
|
|
callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。'); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -724,7 +739,7 @@ export default { |
|
|
|
const { selectData, callback, key, formFields } = data; |
|
|
|
debugger |
|
|
|
//溶剂编号/批号 |
|
|
|
if (key === "rjbhphSub" && selectData.row.kcdw!==formFields.rjsjtjUnit) { |
|
|
|
if (key === "rjbhphSub" && selectData.row.kcdw !== formFields.rjsjtjUnit) { |
|
|
|
callback.prevent('库存单位与预制不符,请重新选择或申请废止并重新预制。'); |
|
|
|
} |
|
|
|
//试验物质编号/批号 |
|
|
|
|