|
|
@ -27,16 +27,15 @@ |
|
|
type="danger" @click="handleDeleteFormConfig(ladderIndex)">{{ |
|
|
type="danger" @click="handleDeleteFormConfig(ladderIndex)">{{ |
|
|
$t('template.common.deleteBtn') |
|
|
$t('template.common.deleteBtn') |
|
|
}}</el-button> |
|
|
}}</el-button> |
|
|
<el-button class="print-btn" v-if="fillType === 'actFill'" type="primary" |
|
|
|
|
|
@click="printTag">{{ $t('template.common.bqdy') }}</el-button> |
|
|
|
|
|
|
|
|
<!-- <el-button class="print-btn" v-if="fillType === 'actFill'" type="primary" |
|
|
|
|
|
@click="printTag">{{ $t('template.common.bqdy') }}</el-button> --> |
|
|
</div> |
|
|
</div> |
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" |
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" |
|
|
:ref="`formConfigStepFormPackageRef_${ladderIndex}`" :formConfig="stepFormConfig" |
|
|
:ref="`formConfigStepFormPackageRef_${ladderIndex}`" :formConfig="stepFormConfig" |
|
|
:formData="formConfig" /> |
|
|
:formData="formConfig" /> |
|
|
<Step class="mt-0 s-container" :ref="`formStepRef_${ladderIndex}`" |
|
|
<Step class="mt-0 s-container" :ref="`formStepRef_${ladderIndex}`" |
|
|
:formData="formConfig.stepData" :fieldItemLabel="$t('template.common.jtpz')" |
|
|
:formData="formConfig.stepData" :fieldItemLabel="$t('template.common.jtpz')" |
|
|
:formIndex="ladderIndex" |
|
|
|
|
|
:prefixKey="'form_' + ladderIndex"></Step> |
|
|
|
|
|
|
|
|
:formIndex="ladderIndex" :prefixKey="'form_' + ladderIndex"></Step> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 备注 --> |
|
|
<!-- 备注 --> |
|
|
@ -79,9 +78,10 @@ export default { |
|
|
return { |
|
|
return { |
|
|
getMybhByIndex: (index) => { |
|
|
getMybhByIndex: (index) => { |
|
|
const data = this.$refs[`formConfigStepFormPackageRef_${index}`][0].getFilledFormData() |
|
|
const data = this.$refs[`formConfigStepFormPackageRef_${index}`][0].getFilledFormData() |
|
|
return { mybh: data.targetCode + data.targetCodeSn, maxVolume: data.targetActVolume, maxVolumeUnit: data.targetActVolumeUnit, |
|
|
|
|
|
nd:data.targetActConcentration,ndz:`${data.targetActConcentration}${data.targetActConcentrationUnit}`,nddw:data.targetActConcentrationUnit,sxrq:data.expireDate,elnType:this.product,yxzq:data.effectivePeriod,yxzqdw:data.effectivePeriodUnit |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return { |
|
|
|
|
|
mybh: data.targetCode + data.targetCodeSn, maxVolume: data.targetActVolume, maxVolumeUnit: data.targetActVolumeUnit, |
|
|
|
|
|
nd: data.targetActConcentration, ndz: `${data.targetActConcentration}${data.targetActConcentrationUnit}`, nddw: data.targetActConcentrationUnit, sxrq: data.expireDate, elnType: this.product, yxzq: data.effectivePeriod, yxzqdw: data.effectivePeriodUnit |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -125,7 +125,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 试验基本信息表单配制 |
|
|
// 试验基本信息表单配制 |
|
|
baseInfoFormConfig() { |
|
|
baseInfoFormConfig() { |
|
|
return this.sn==='GG005'?[ |
|
|
|
|
|
|
|
|
return this.sn === 'GG005' ? [ |
|
|
{ |
|
|
{ |
|
|
type: "cardItem", |
|
|
type: "cardItem", |
|
|
config: { |
|
|
config: { |
|
|
@ -179,7 +179,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
]:[ |
|
|
|
|
|
|
|
|
] : [ |
|
|
{ |
|
|
{ |
|
|
type: "cardItem", |
|
|
type: "cardItem", |
|
|
config: { |
|
|
config: { |
|
|
@ -477,6 +477,14 @@ export default { |
|
|
this.yqResourceTmp = stepResource.yqResource || [] |
|
|
this.yqResourceTmp = stepResource.yqResource || [] |
|
|
return this.resourceTmp; |
|
|
return this.resourceTmp; |
|
|
}, |
|
|
}, |
|
|
|
|
|
//返回打印数据 |
|
|
|
|
|
getPrintResource() { |
|
|
|
|
|
let content = this.getFilledFormData(); |
|
|
|
|
|
let printResourceTmp = [] |
|
|
|
|
|
|
|
|
|
|
|
this.printResourceTmp=printResourceTmp |
|
|
|
|
|
return this.printResourceTmp |
|
|
|
|
|
}, |
|
|
//获取步骤使用物资 |
|
|
//获取步骤使用物资 |
|
|
getStepResource() { |
|
|
getStepResource() { |
|
|
const sjResource = [], yqResource = []; |
|
|
const sjResource = [], yqResource = []; |
|
|
|