|
|
@ -145,7 +145,7 @@ import templateMixin from "../../mixins/templateMixin"; |
|
|
import CustomTable from '@/components/Template/CustomTable.vue'; |
|
|
import CustomTable from '@/components/Template/CustomTable.vue'; |
|
|
import SelectReagentDialog from '../../dialog/SelectReagentDialog.vue'; |
|
|
import SelectReagentDialog from '../../dialog/SelectReagentDialog.vue'; |
|
|
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" |
|
|
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" |
|
|
|
|
|
|
|
|
|
|
|
import {getLadderColumnsConfig,getParallelColumnsConfig} from "../../formConfig/paralleAndLadderConfig.js"; |
|
|
export default { |
|
|
export default { |
|
|
name: "SWYPBQGZYZBB", |
|
|
name: "SWYPBQGZYZBB", |
|
|
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable, SelectReagentDialog, TableOpertaion }, |
|
|
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable, SelectReagentDialog, TableOpertaion }, |
|
|
@ -272,11 +272,11 @@ export default { |
|
|
type: "cellItem", |
|
|
type: "cellItem", |
|
|
label: "处理时间", |
|
|
label: "处理时间", |
|
|
config: { |
|
|
config: { |
|
|
createTime: { |
|
|
|
|
|
|
|
|
startDate: { |
|
|
label: "开始时间", |
|
|
label: "开始时间", |
|
|
type: "input", |
|
|
type: "input", |
|
|
}, |
|
|
}, |
|
|
endTime: { |
|
|
|
|
|
|
|
|
endDate: { |
|
|
label: "结束时间", |
|
|
label: "结束时间", |
|
|
type: "input", |
|
|
type: "input", |
|
|
}, |
|
|
}, |
|
|
@ -380,292 +380,11 @@ export default { |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
paralleStepColumns() { |
|
|
paralleStepColumns() { |
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: "目标溶液编号", |
|
|
|
|
|
prop: "targetSolutionCode", |
|
|
|
|
|
bodyType: "input", |
|
|
|
|
|
subType: "span", |
|
|
|
|
|
subKey: "subTargetSolutionCode", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
width: 280 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "起始溶液编号", |
|
|
|
|
|
prop: "startSolutionCode", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
bodyType: "input", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设起始溶液体积", |
|
|
|
|
|
prop: "targetStartSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetStartSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
|
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "targetStartSolutionVolumePrecision", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "targetStartSolutionVolumePrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际起始溶液体积", |
|
|
|
|
|
prop: "actStartSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actStartSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetStartSolutionVolume",//复制哪个字段 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设稀释液体积", |
|
|
|
|
|
prop: "targetDiluentVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetDiluentVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "targetDiluentVolumePrecision", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "targetDiluentVolumePrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际稀释液体积", |
|
|
|
|
|
prop: "actDiluentVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actDiluentVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetDiluentVolume",//复制哪个字段 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设目标溶液浓度", |
|
|
|
|
|
prop: "targetSolutionConcentration", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetSolutionConcentrationUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_nddw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际目标溶液浓度", |
|
|
|
|
|
prop: "actSolutionConcentration", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actSolutionConcentrationUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_nddw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "actSolutionConcentrationPrecision", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "actSolutionConcentrationPrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetSolutionConcentration",//复制哪个字段 |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设目标溶液体积", |
|
|
|
|
|
prop: "targetSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际目标溶液体积", |
|
|
|
|
|
prop: "actSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "actSolutionVolumePrecision", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "actSolutionVolumePrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetSolutionVolume",//复制哪个字段 |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
return getParallelColumnsConfig(this); |
|
|
}, |
|
|
}, |
|
|
// 步骤表格列配置 |
|
|
|
|
|
|
|
|
// 阶梯配置表格列配置 |
|
|
ladderStepColumns() { |
|
|
ladderStepColumns() { |
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: "目标溶液编号", |
|
|
|
|
|
prop: "targetSolutionCode", |
|
|
|
|
|
bodyType: "input", |
|
|
|
|
|
subType: "span", |
|
|
|
|
|
subKey: "subTargetSolutionCode", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
width: 280 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "起始溶液编号", |
|
|
|
|
|
prop: "startSolutionCode", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
bodyType: "input", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设起始溶液体积", |
|
|
|
|
|
prop: "targetStartSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetStartSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
|
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "targetStartSolutionVolumePrecision", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "targetStartSolutionVolumePrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际起始溶液体积", |
|
|
|
|
|
prop: "actStartSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actStartSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetStartSolutionVolume",//复制哪个字段 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设稀释液体积", |
|
|
|
|
|
prop: "targetDiluentVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetDiluentVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
|
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "targetDiluentVolumePrecision", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "targetDiluentVolumePrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际稀释液体积", |
|
|
|
|
|
prop: "actDiluentVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actDiluentVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetDiluentVolume",//复制哪个字段 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设目标溶液浓度", |
|
|
|
|
|
prop: "targetSolutionConcentration", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetSolutionConcentrationUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_nddw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际目标溶液浓度", |
|
|
|
|
|
prop: "actSolutionConcentration", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actSolutionConcentrationUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_nddw'), |
|
|
|
|
|
|
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "actSolutionConcentrationPrecision", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "actSolutionConcentrationPrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetSolutionConcentration",//复制哪个字段 |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "预设目标溶液体积", |
|
|
|
|
|
prop: "targetSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "targetSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "实际目标溶液体积", |
|
|
|
|
|
prop: "actSolutionVolume", |
|
|
|
|
|
width: 280, |
|
|
|
|
|
headerSelectKey: "actSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
|
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "actSolutionVolumePrecision", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
|
|
|
bodyDisabled: true, |
|
|
|
|
|
bodyPrecisionKey: "actSolutionVolumePrecision", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
|
|
|
copyFrom: "targetSolutionVolume",//复制哪个字段 |
|
|
|
|
|
bodySubPlaceholder: "请输入保留小数位数", |
|
|
|
|
|
}, |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
return getLadderColumnsConfig(this); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
@ -795,7 +514,7 @@ export default { |
|
|
} |
|
|
} |
|
|
return await this.validFormFields(refsToValidate); |
|
|
return await this.validFormFields(refsToValidate); |
|
|
}, |
|
|
}, |
|
|
getRealFormData(){ |
|
|
|
|
|
|
|
|
getFilledFormData(){ |
|
|
const baseData = this.$refs.baseInfoRef.getFilledFormData(); |
|
|
const baseData = this.$refs.baseInfoRef.getFilledFormData(); |
|
|
const conditionData = this.$refs.storageConditionRef.getFilledFormData(); |
|
|
const conditionData = this.$refs.storageConditionRef.getFilledFormData(); |
|
|
|
|
|
|
|
|
@ -810,7 +529,7 @@ export default { |
|
|
ladderConfigsData.push({ |
|
|
ladderConfigsData.push({ |
|
|
...ladderFormData, |
|
|
...ladderFormData, |
|
|
...ladderTableFormData, |
|
|
...ladderTableFormData, |
|
|
ladderStepData, |
|
|
|
|
|
|
|
|
ladderStepData:ladderStepData.stepData, |
|
|
showLadderConfig: true |
|
|
showLadderConfig: true |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
@ -827,7 +546,7 @@ export default { |
|
|
paralleConfigsData.push({ |
|
|
paralleConfigsData.push({ |
|
|
...paralleFormData, |
|
|
...paralleFormData, |
|
|
...paralleTableFormData, |
|
|
...paralleTableFormData, |
|
|
paralleStepData, |
|
|
|
|
|
|
|
|
paralleStepData:paralleStepData.stepData, |
|
|
showParalleConfig: true |
|
|
showParalleConfig: true |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
@ -845,11 +564,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
async getFormData() { |
|
|
async getFormData() { |
|
|
//先校验再获取值 |
|
|
//先校验再获取值 |
|
|
const validFlag = this.validFields(); |
|
|
|
|
|
|
|
|
const validFlag = await this.validFields(); |
|
|
if(!validFlag){ |
|
|
if(!validFlag){ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
return this.getRealFormData(); |
|
|
|
|
|
|
|
|
return this.getFilledFormData(); |
|
|
}, |
|
|
}, |
|
|
async onSave() { |
|
|
async onSave() { |
|
|
const formData = await this.getFormData(); |
|
|
const formData = await this.getFormData(); |
|
|
|