|
|
@ -24,6 +24,7 @@ |
|
|
<CustomTable |
|
|
<CustomTable |
|
|
@headerSelectChange="onHeaderSelectChange" |
|
|
@headerSelectChange="onHeaderSelectChange" |
|
|
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" |
|
|
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" |
|
|
|
|
|
@beforeSaveRecord = "beforeSaveRecord" |
|
|
:showAddRow="false" :showOperation="fillType === 'actFill'" |
|
|
:showAddRow="false" :showOperation="fillType === 'actFill'" |
|
|
ref="stepTableRef" :columns="stepColumns" :formData="formData"> |
|
|
ref="stepTableRef" :columns="stepColumns" :formData="formData"> |
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
@ -56,7 +57,7 @@ import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
import { addTj, uniqeResource, uniqeResourceOne, addDecimals } from "@/utils/calUnitTools"; |
|
|
import { addTj, uniqeResource, uniqeResourceOne, addDecimals } from "@/utils/calUnitTools"; |
|
|
import { isCommonUnit } from "@/utils/conTools"; |
|
|
import { isCommonUnit } from "@/utils/conTools"; |
|
|
import { convertConcentration } from "@/utils/conConverter"; |
|
|
|
|
|
|
|
|
import { isValueEmpty } from "@/utils/index"; |
|
|
export default { |
|
|
export default { |
|
|
name: "SP003", |
|
|
name: "SP003", |
|
|
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, SelectReagentDialog, TableOpertaion }, |
|
|
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, SelectReagentDialog, TableOpertaion }, |
|
|
@ -220,6 +221,8 @@ export default { |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
maxlength: 10, |
|
|
maxlength: 10, |
|
|
compareTo: "targetStartSolution", |
|
|
compareTo: "targetStartSolution", |
|
|
|
|
|
subKey: "subTargetAcSolutionUnit", |
|
|
|
|
|
subType:"span" |
|
|
}, |
|
|
}, |
|
|
solution: { |
|
|
solution: { |
|
|
label: "template.sp.sp003.xsy", |
|
|
label: "template.sp.sp003.xsy", |
|
|
@ -438,6 +441,10 @@ export default { |
|
|
// const re = convertConcentration.convert('100mg/mL',"ng/mL") |
|
|
// const re = convertConcentration.convert('100mg/mL',"ng/mL") |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
beforeSaveRecord(data){ |
|
|
|
|
|
const formFields = this.$refs.stepFormPackageRef?.getFilledFormData(); |
|
|
|
|
|
this.onCommonVerifyNdException(formFields,data); |
|
|
|
|
|
}, |
|
|
onFormSelect(fields){ |
|
|
onFormSelect(fields){ |
|
|
this.onHandleBlur(fields) |
|
|
this.onHandleBlur(fields) |
|
|
}, |
|
|
}, |
|
|
@ -465,6 +472,7 @@ export default { |
|
|
const { row } = selectInfo; |
|
|
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.$refs.stepFormPackageRef.updateFormData("subTargetAcSolutionUnit", row.nddw); |
|
|
this.updateStepTableData(row); |
|
|
this.updateStepTableData(row); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|