|
|
@ -2,7 +2,8 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div class="detail-container"> |
|
|
<div class="detail-container"> |
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.bdmc }}<img src="@/assets/images/detail-title.png" /></div> |
|
|
|
|
|
|
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.bdmc }}<img |
|
|
|
|
|
src="@/assets/images/detail-title.png" /></div> |
|
|
<div class="detail-content"> |
|
|
<div class="detail-content"> |
|
|
<div class="content"> |
|
|
<div class="content"> |
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" |
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" |
|
|
@ -14,8 +15,7 @@ |
|
|
:formData="formData" /> --> |
|
|
:formData="formData" /> --> |
|
|
<LineLabel label="template.common.operationSteps" /> |
|
|
<LineLabel label="template.common.operationSteps" /> |
|
|
<div class="template-form-item"> |
|
|
<div class="template-form-item"> |
|
|
<BaseInfoFormPackage ref="stepFormPackageRef" |
|
|
|
|
|
fieldItemLabel="template.common.operationSteps" |
|
|
|
|
|
|
|
|
<BaseInfoFormPackage ref="stepFormPackageRef" fieldItemLabel="template.common.operationSteps" |
|
|
@onRegentSubmit="onRegentSubmit" :formConfig="stepFormConfig" @blur="onHandleBlur" |
|
|
@onRegentSubmit="onRegentSubmit" :formConfig="stepFormConfig" @blur="onHandleBlur" |
|
|
:formData="formData" /> |
|
|
:formData="formData" /> |
|
|
<CustomTable fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" |
|
|
<CustomTable fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" |
|
|
@ -60,7 +60,7 @@ export default { |
|
|
default: 'preFill', |
|
|
default: 'preFill', |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
computed: { |
|
|
computed: { |
|
|
// 存储条件表单配置 |
|
|
// 存储条件表单配置 |
|
|
storageFormConfig() { |
|
|
storageFormConfig() { |
|
|
@ -428,8 +428,8 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
//更新记录 |
|
|
//更新记录 |
|
|
onRegentSubmit(data) { |
|
|
onRegentSubmit(data) { |
|
|
const { selectInfo,key} = data; |
|
|
|
|
|
const {row} = selectInfo; |
|
|
|
|
|
|
|
|
const { selectInfo, key } = data; |
|
|
|
|
|
const { row } = selectInfo; |
|
|
if (key === "subStartSolution") {//选择起始源溶液需要同步更新table的变更记录。 |
|
|
if (key === "subStartSolution") {//选择起始源溶液需要同步更新table的变更记录。 |
|
|
this.$refs.stepFormPackageRef.updateFormData("targetAcSolution", row.nd); |
|
|
this.$refs.stepFormPackageRef.updateFormData("targetAcSolution", row.nd); |
|
|
this.updateStepTableData(row); |
|
|
this.updateStepTableData(row); |
|
|
@ -470,7 +470,7 @@ export default { |
|
|
if (fzList && fzList.length > 0) { |
|
|
if (fzList && fzList.length > 0) { |
|
|
const list = fzList.map((item) => { |
|
|
const list = fzList.map((item) => { |
|
|
return { |
|
|
return { |
|
|
bh: mybh + item.subCode, |
|
|
|
|
|
|
|
|
bh: mybh + item.preCode + item.subCode, |
|
|
kc: item.num, |
|
|
kc: item.num, |
|
|
kcdw: dw, |
|
|
kcdw: dw, |
|
|
} |
|
|
} |
|
|
@ -537,7 +537,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
// 第二条的起始溶液编号是第一条数据里面的targetSolutionCode字段, |
|
|
// 第二条的起始溶液编号是第一条数据里面的targetSolutionCode字段, |
|
|
// 第三条的起始溶液编号是第二条数据里面的targetSolutionCode字段,以此类推 |
|
|
// 第三条的起始溶液编号是第二条数据里面的targetSolutionCode字段,以此类推 |
|
|
newStepTableData[i].startSolutionCode = newStepTableData[i - 1].targetSolutionCode+newStepTableData[i - 1].subTargetSolutionCode; |
|
|
|
|
|
|
|
|
newStepTableData[i].startSolutionCode = newStepTableData[i - 1].targetSolutionCode + newStepTableData[i - 1].subTargetSolutionCode; |
|
|
initNd = newStepTableData[i - 1].actSolutionConcentration; |
|
|
initNd = newStepTableData[i - 1].actSolutionConcentration; |
|
|
} |
|
|
} |
|
|
const volResult = this.updateSjmbrynd(item, initNd); |
|
|
const volResult = this.updateSjmbrynd(item, initNd); |
|
|
@ -553,6 +553,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
async getFormData() { |
|
|
async getFormData() { |
|
|
let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); |
|
|
let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); |
|
|
|
|
|
return content; |
|
|
|
|
|
}, |
|
|
|
|
|
getResource() { |
|
|
|
|
|
let content = this.getFilledFormData(); |
|
|
let tmpResource = [] |
|
|
let tmpResource = [] |
|
|
if (this.fillType === "actFill") { |
|
|
if (this.fillType === "actFill") { |
|
|
let tableList = content.stepTableFormData |
|
|
let tableList = content.stepTableFormData |
|
|
@ -653,7 +657,7 @@ export default { |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || []) |
|
|
this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || []) |
|
|
this.yqResourceTmp = stepResource.yqResource || [] |
|
|
this.yqResourceTmp = stepResource.yqResource || [] |
|
|
return content; |
|
|
|
|
|
|
|
|
return this.resourceTmp; |
|
|
}, |
|
|
}, |
|
|
async onSave() { |
|
|
async onSave() { |
|
|
// const formData = await this.getFormData(); |
|
|
// const formData = await this.getFormData(); |
|
|
|