Browse Source

fix: [模板管理] dl022

luojie
memorylkf 2 weeks ago
parent
commit
356d20aed3
3 changed files with 7 additions and 90 deletions
  1. +1
    -1
      src/views/business/comps/template/comps/dl/DL022.vue
  2. +2
    -69
      src/views/business/comps/template/comps/dl/DL023.vue
  3. +4
    -20
      src/views/business/comps/template/comps/dl/DL024.vue

+ 1
- 1
src/views/business/comps/template/comps/dl/DL022.vue View File

@ -13,7 +13,7 @@
<LineLabel label="template.dl.dl022.jbqk" /> <LineLabel label="template.dl.dl022.jbqk" />
<!-- 观察情况 --> <!-- 观察情况 -->
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps"
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.dl.dl022.jbqk"
:formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" :formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData"
@onRegentSubmit="onRegentSubmit" /> @onRegentSubmit="onRegentSubmit" />
<div style="color:#999;font-size:14px;"> <div style="color:#999;font-size:14px;">

+ 2
- 69
src/views/business/comps/template/comps/dl/DL023.vue View File

@ -22,9 +22,9 @@
<LineLabel label="template.dl.dl023.czjl" /> <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" @select="onSelect" @clickButton="handleClickButton" :formConfig="stepFormConfig"
@blur="onHandleBlur" :formData="formData" />
:formData="formData" />
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" <BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark"
ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div> </div>
@ -250,73 +250,6 @@ export default {
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, params) 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() { getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "remarkRef", "tableRef"]) return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "remarkRef", "tableRef"])

+ 4
- 20
src/views/business/comps/template/comps/dl/DL024.vue View File

@ -14,9 +14,8 @@
<LineLabel label="template.dl.dl024.xbpyxx" /> <LineLabel label="template.dl.dl024.xbpyxx" />
<!-- 操作记录 --> <!-- 操作记录 -->
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps"
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.dl.dl024.xbpyxx"
:formConfig="stepFormConfig" :formConfig="stepFormConfig"
@blur="onHandleBlur"
@clickButton="handleClickButton" @clickButton="handleClickButton"
@onRegentSubmit="onRegentSubmit" @onRegentSubmit="onRegentSubmit"
:formData="formData" /> :formData="formData" />
@ -26,7 +25,7 @@
:formData="tableFormData" :formData="tableFormData"
operationWidth = "80px" operationWidth = "80px"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.dl.dl024.gcqk"
fieldItemLabel = "template.dl.dl024.xbpyxx"
:showAddRow="false" :showAddRow="false"
:showOperation="false" :showOperation="false"
> >
@ -213,33 +212,18 @@ export default {
const bdnr = JSON.parse(row.bdnr) const bdnr = JSON.parse(row.bdnr)
// //
const stepTableFormData = bdnr.stepTableFormData || [] const stepTableFormData = bdnr.stepTableFormData || []
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有细胞编号数据')
return
}
// //
const itemData = stepTableFormData.map(item => ({ const itemData = stepTableFormData.map(item => ({
xbbh: item.targetSolutionCode+item.subTargetSolutionCode, // xbbh: item.targetSolutionCode+item.subTargetSolutionCode, //
id:this.getuuid(),
})) }))
// 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData)
this.$refs.tableRef.updateDataSource(itemData);
this.$refs.swypyjInfoRef.updateFormData('pykssj', bdnr.pykssj); this.$refs.swypyjInfoRef.updateFormData('pykssj', bdnr.pykssj);
this.$message.success(`已从前序表单加载 ${itemData.length} 条细胞编号数据`)
} catch (error) { } catch (error) {
this.$set(this.formData, 'stepTableFormData', [])
console.error('解析前序表单数据失败:', error) console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败') this.$message.error('解析前序表单数据失败')
} }
}, },
onFormSelect(fields){
this.onHandleBlur(fields)
},
// //
getFilledFormData() { getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef","remarkRef","tableRef"]) return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef","remarkRef","tableRef"])

Loading…
Cancel
Save