|
|
|
@ -22,9 +22,9 @@ |
|
|
|
|
|
|
|
<LineLabel label="template.dl.dl023.czjl" /> |
|
|
|
<!-- 操作记录 --> |
|
|
|
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps" |
|
|
|
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.dl.dl023.czjl" |
|
|
|
@select="onSelect" @clickButton="handleClickButton" :formConfig="stepFormConfig" |
|
|
|
@blur="onHandleBlur" :formData="formData" /> |
|
|
|
:formData="formData" /> |
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" |
|
|
|
ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> |
|
|
|
</div> |
|
|
|
@ -250,73 +250,6 @@ export default { |
|
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, params) |
|
|
|
} |
|
|
|
}, |
|
|
|
onFormSelect(fields) { |
|
|
|
this.onHandleBlur(fields) |
|
|
|
}, |
|
|
|
//选择table header下拉框也要更新体积 |
|
|
|
onHeaderSelectChange(data) { |
|
|
|
const { key, headerSelectFields, dataSource = [] } = data; |
|
|
|
const keys = [ |
|
|
|
'targetStartSolutionVolumeUnit', |
|
|
|
'targetDiluentVolumeUnit', |
|
|
|
'targetSolutionConcentrationUnit', |
|
|
|
'targetSolutionVolumeUnit', |
|
|
|
] |
|
|
|
if (keys.includes(key)) { |
|
|
|
const { targetStartSolution, subTargetStartSolution } = this.$refs.swypyjInfoRef?.getFilledFormData(); |
|
|
|
const params = { |
|
|
|
subTargetStartSolution, |
|
|
|
headerSelectFields |
|
|
|
} |
|
|
|
this.batchUpdateTargetStartSolutionVolume(dataSource, targetStartSolution, params) |
|
|
|
} |
|
|
|
}, |
|
|
|
beforeSaveRecord(data) { |
|
|
|
const formFields = this.$refs.swypyjInfoRef?.getFilledFormData(); |
|
|
|
this.onCommonVerifyNdException(formFields, data); |
|
|
|
}, |
|
|
|
configComplete(val) { |
|
|
|
const { rowData, headerSelectFields } = val; |
|
|
|
//计算实际目标溶液体积(实际起始溶液体积+实际稀释液体积) |
|
|
|
const { total, unit } = addTj([rowData.actStartSolutionVolume, rowData.actDiluentVolume], [headerSelectFields.actStartSolutionVolumeUnit, headerSelectFields.actDiluentVolumeUnit]) |
|
|
|
let postData = { |
|
|
|
mc: null, |
|
|
|
bh: rowData.targetSolutionCode + rowData.subTargetSolutionCode, |
|
|
|
nd: rowData.actSolutionConcentration,//实际目标溶液浓度 |
|
|
|
nddw: headerSelectFields.actSolutionConcentrationUnit, |
|
|
|
studySubjectId: this.formData.studySubjectId, |
|
|
|
studyFormId: this.formData.id, |
|
|
|
studyId: this.formData.studyId, |
|
|
|
kc: total, |
|
|
|
kcdw: unit, |
|
|
|
} |
|
|
|
this.configCompleteRequest(postData); |
|
|
|
}, |
|
|
|
//分装回调 |
|
|
|
subPackageSubmit(data) { |
|
|
|
const { fzsj, rowData, headerSelectFields } = data; |
|
|
|
const { fzList = [], dw = "", mybh } = fzsj; |
|
|
|
if (fzList && fzList.length > 0) { |
|
|
|
const list = fzList.map((item) => { |
|
|
|
return { |
|
|
|
bh: mybh + item.preCode + item.subCode, |
|
|
|
kc: item.num, |
|
|
|
kcdw: dw, |
|
|
|
} |
|
|
|
}) |
|
|
|
let postData = { |
|
|
|
studyId: this.formData.studyId, |
|
|
|
studyFormId: this.formData.id, |
|
|
|
bh: mybh, |
|
|
|
nd: rowData.actSolutionConcentration || 0, |
|
|
|
nddw: headerSelectFields.actSolutionConcentrationUnit, |
|
|
|
studySubjectId: this.formData.studySubjectId, |
|
|
|
studyFormId: this.formData.id, |
|
|
|
list: list |
|
|
|
} |
|
|
|
this.subPackageRequest(postData); |
|
|
|
} |
|
|
|
}, |
|
|
|
//获取已填写的表单数据 |
|
|
|
getFilledFormData() { |
|
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "remarkRef", "tableRef"]) |
|
|
|
|