|
|
@ -10,10 +10,26 @@ |
|
|
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> |
|
|
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> |
|
|
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" /> |
|
|
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" /> |
|
|
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" /> |
|
|
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" /> |
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition" |
|
|
|
|
|
|
|
|
<BaseInfoFormPackage v-if="!isLba" fieldItemLabel="template.common.storageCondition" |
|
|
label="template.common.storageCondition" ref="storageConditionRef" |
|
|
label="template.common.storageCondition" ref="storageConditionRef" |
|
|
:formConfig="storageFormConfig" :formData="formData" /> |
|
|
:formConfig="storageFormConfig" :formData="formData" /> |
|
|
<LineLabel label="template.common.operationSteps" /> |
|
|
|
|
|
|
|
|
<div v-if="isLba"> |
|
|
|
|
|
<LineLabel label="template.lba.lba004.xbxx" /> |
|
|
|
|
|
<CustomTable |
|
|
|
|
|
:isBorder="false" |
|
|
|
|
|
:ref="`jcbRef`" |
|
|
|
|
|
:columns="jcbColumns" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
:prefixKey = "`jcb`" |
|
|
|
|
|
fieldItemLabel = "template.lba.lba004.xbxx" |
|
|
|
|
|
:showOperation="fillType === 'preFill'" |
|
|
|
|
|
> |
|
|
|
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
|
|
|
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteJcbRow" ></TableOpertaionDelete> |
|
|
|
|
|
</template> |
|
|
|
|
|
</CustomTable> |
|
|
|
|
|
</div> |
|
|
|
|
|
<LineLabel :label="isLba ? 'template.lba.lba005.bzqxpz' : 'template.common.operationSteps'" /> |
|
|
<div v-if="fillType === 'preFill'" class="mt-20"> |
|
|
<div v-if="fillType === 'preFill'" class="mt-20"> |
|
|
<el-button type="primary" @click="handleAddParalle">{{ $t('template.common.xzpxpz') |
|
|
<el-button type="primary" @click="handleAddParalle">{{ $t('template.common.xzpxpz') |
|
|
}}</el-button> |
|
|
}}</el-button> |
|
|
@ -126,15 +142,19 @@ import templateMixin from "../../mixins/templateMixin.js"; |
|
|
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 TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue" |
|
|
import { getExpireDate, duplicateResource } from "@/utils/index.js"; |
|
|
import { getExpireDate, duplicateResource } from "@/utils/index.js"; |
|
|
import { getuuid } from "@/utils/index.js"; |
|
|
import { getuuid } from "@/utils/index.js"; |
|
|
import { isCommonUnit } from "@/utils/conTools"; |
|
|
import { isCommonUnit } from "@/utils/conTools"; |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
|
import { addTj, uniqeResource, uniqeResourceOne, addDecimals } from "@/utils/calUnitTools"; |
|
|
import { addTj, uniqeResource, uniqeResourceOne, addDecimals } from "@/utils/calUnitTools"; |
|
|
import { getLadderColumnsConfig, getParallelColumnsConfig, getLadderFormConfig, getBaseInfoFormConfig, getRemarkFormConfig, getStorageConditionFormConfig, getParalleStepFormConfig } from "../../formConfig/paralleAndLadderConfig.js"; |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getLadderColumnsConfig, getParallelColumnsConfig, getLadderFormConfig, |
|
|
|
|
|
getBaseInfoFormConfig, getRemarkFormConfig, getStorageConditionFormConfig, getParalleStepFormConfig ,getJcbColumnsConfig |
|
|
|
|
|
} from "../../formConfig/paralleAndLadderConfig.js"; |
|
|
export default { |
|
|
export default { |
|
|
name: "SP00456", |
|
|
name: "SP00456", |
|
|
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, SelectReagentDialog, TableOpertaion }, |
|
|
|
|
|
|
|
|
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, SelectReagentDialog, TableOpertaion, TableOpertaionDelete }, |
|
|
mixins: [templateMixin], |
|
|
mixins: [templateMixin], |
|
|
props: { |
|
|
props: { |
|
|
fillType: { |
|
|
fillType: { |
|
|
@ -155,6 +175,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
|
|
|
//选板信息; |
|
|
|
|
|
jcbColumns(){ |
|
|
|
|
|
return getJcbColumnsConfig(this); |
|
|
|
|
|
}, |
|
|
// 存储条件表单配置 |
|
|
// 存储条件表单配置 |
|
|
storageFormConfig() { |
|
|
storageFormConfig() { |
|
|
return getStorageConditionFormConfig(this); |
|
|
return getStorageConditionFormConfig(this); |
|
|
@ -183,6 +207,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
|
|
|
const labArr = ["LBA005","LBA007"] |
|
|
return { |
|
|
return { |
|
|
subSolutionVisible: false, |
|
|
subSolutionVisible: false, |
|
|
currentSubKey: "",//当前点击的子项key |
|
|
currentSubKey: "",//当前点击的子项key |
|
|
@ -193,6 +218,7 @@ export default { |
|
|
currentTableKey: "",//当前点击的表格key |
|
|
currentTableKey: "",//当前点击的表格key |
|
|
targetAcSolutionFromTable: true,//是否从表格中获取实际原始溶液浓度 |
|
|
targetAcSolutionFromTable: true,//是否从表格中获取实际原始溶液浓度 |
|
|
currentRowData: {},//当前点击的行数据 |
|
|
currentRowData: {},//当前点击的行数据 |
|
|
|
|
|
isLba: labArr.includes(this.sn), |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
@ -204,7 +230,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
deleteJcbRow(rowIndex){ |
|
|
|
|
|
const jcbRef = this.$refs['jcbRef']; |
|
|
|
|
|
if (jcbRef) { |
|
|
|
|
|
jcbRef.deleteRow(rowIndex); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
onBeforeSaveRecord(data, type, configIndex) { |
|
|
onBeforeSaveRecord(data, type, configIndex) { |
|
|
if (type === "ladder") { |
|
|
if (type === "ladder") { |
|
|
const formFields = this.$refs[`ladderStepFormPackageRef_${configIndex}`][0]?.getFilledFormData(); |
|
|
const formFields = this.$refs[`ladderStepFormPackageRef_${configIndex}`][0]?.getFilledFormData(); |
|
|
@ -407,6 +438,7 @@ export default { |
|
|
paralleTableFormData: [], |
|
|
paralleTableFormData: [], |
|
|
showParalleConfig: true |
|
|
showParalleConfig: true |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.justUpdateFilledFormData(); |
|
|
}, |
|
|
}, |
|
|
//新增阶梯配制 |
|
|
//新增阶梯配制 |
|
|
handleAddLadder() { |
|
|
handleAddLadder() { |
|
|
@ -422,6 +454,7 @@ export default { |
|
|
ladderTableFormData: [], |
|
|
ladderTableFormData: [], |
|
|
showLadderConfig: true |
|
|
showLadderConfig: true |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.justUpdateFilledFormData(); |
|
|
}, |
|
|
}, |
|
|
// 删除阶梯配制配置 |
|
|
// 删除阶梯配制配置 |
|
|
deleteConfig(type, config) { |
|
|
deleteConfig(type, config) { |
|
|
@ -616,8 +649,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//只做校验 |
|
|
//只做校验 |
|
|
async validFields() { |
|
|
async validFields() { |
|
|
|
|
|
const { isLba } = this; |
|
|
|
|
|
const refsToValidate = isLba ? ["baseInfoRef", "jcbRef", "remarkRef"]: ["baseInfoRef", "storageConditionRef", "remarkRef"] |
|
|
// 构建需要验证的引用数组 |
|
|
// 构建需要验证的引用数组 |
|
|
let refsToValidate = ["baseInfoRef", "storageConditionRef", "remarkRef"]; |
|
|
|
|
|
|
|
|
|
|
|
// 添加阶梯配制相关的引用 |
|
|
// 添加阶梯配制相关的引用 |
|
|
if (this.formData.ladderConfigs && this.formData.ladderConfigs.length > 0) { |
|
|
if (this.formData.ladderConfigs && this.formData.ladderConfigs.length > 0) { |
|
|
@ -640,7 +674,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getFilledFormData() { |
|
|
getFilledFormData() { |
|
|
const baseData = this.$refs.baseInfoRef.getFilledFormData(); |
|
|
const baseData = this.$refs.baseInfoRef.getFilledFormData(); |
|
|
const conditionData = this.$refs.storageConditionRef.getFilledFormData(); |
|
|
|
|
|
|
|
|
let conditionData = {}; |
|
|
|
|
|
if (!this.isLba) { |
|
|
|
|
|
conditionData = this.$refs.storageConditionRef.getFilledFormData(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 获取所有阶梯配制数据 |
|
|
// 获取所有阶梯配制数据 |
|
|
const ladderConfigsData = []; |
|
|
const ladderConfigsData = []; |
|
|
|