|
|
@ -14,18 +14,23 @@ |
|
|
:formData="formData" /> |
|
|
:formData="formData" /> |
|
|
<LineLabel label="操作步骤" /> |
|
|
<LineLabel label="操作步骤" /> |
|
|
<div class="template-form-item"> |
|
|
<div class="template-form-item"> |
|
|
<BaseInfoFormPcakge ref="stepFormPackageRef" :formConfig="stepFormConfig" |
|
|
|
|
|
@blur = "onHandleBlur" |
|
|
|
|
|
|
|
|
<BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur" |
|
|
|
|
|
:formData="formData" /> |
|
|
|
|
|
<CustomTable ref="stepTable" :columns="stepColumns" |
|
|
:formData="formData" /> |
|
|
:formData="formData" /> |
|
|
<CustomTable ref = "stepTable" :columns = "stepColumns" :formData = "formData"/> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<Step ref="stepRef" :formData="formData"></Step> |
|
|
<Step ref="stepRef" :formData="formData"></Step> |
|
|
<BaseInfoFormPcakge label="备注" ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> |
|
|
<BaseInfoFormPcakge label="备注" ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<button @click = "onSave">保存</button> |
|
|
|
|
|
|
|
|
<button @click="onSave">保存</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<SelectReagentDialog |
|
|
|
|
|
@submit="onSelectReagentSubmit" |
|
|
|
|
|
@cancel="selectReagentVisible=false" |
|
|
|
|
|
ref="selectReagentDialogRef" :visible.sync="selectReagentVisible" > |
|
|
|
|
|
</SelectReagentDialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -36,10 +41,11 @@ import TableList from "@/components/Template/Table"; |
|
|
import Step from "@/components/Template/Step"; |
|
|
import Step from "@/components/Template/Step"; |
|
|
import templateMixin from "../../mixins/templateMixin"; |
|
|
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'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "SWYPBQGZYZBB", |
|
|
name: "SWYPBQGZYZBB", |
|
|
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable }, |
|
|
|
|
|
|
|
|
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable, SelectReagentDialog }, |
|
|
mixins: [templateMixin], |
|
|
mixins: [templateMixin], |
|
|
props: { |
|
|
props: { |
|
|
value: { |
|
|
value: { |
|
|
@ -244,54 +250,57 @@ export default { |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
// 步骤表格列配置 |
|
|
// 步骤表格列配置 |
|
|
stepColumns(){ |
|
|
|
|
|
|
|
|
stepColumns() { |
|
|
return [ |
|
|
return [ |
|
|
{ |
|
|
{ |
|
|
label:"目标溶液编号", |
|
|
|
|
|
prop:"targetSolutionCode", |
|
|
|
|
|
bodyType:"input", |
|
|
|
|
|
subType:"span", |
|
|
|
|
|
subKey:"subTargetSolutionCode", |
|
|
|
|
|
bodyFillType:"preFill", |
|
|
|
|
|
|
|
|
label: "目标溶液编号", |
|
|
|
|
|
prop: "targetSolutionCode", |
|
|
|
|
|
bodyType: "input", |
|
|
|
|
|
subType: "span", |
|
|
|
|
|
subKey: "subTargetSolutionCode", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
width: 280 |
|
|
width: 280 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label:"起始溶液编号",prop:"startSolutionCode", |
|
|
|
|
|
|
|
|
label: "起始溶液编号", prop: "startSolutionCode", |
|
|
width: 280, |
|
|
width: 280, |
|
|
bodyType:"input", |
|
|
|
|
|
bodyFillType:"actFill", |
|
|
|
|
|
bodyMaxlength:10, |
|
|
|
|
|
|
|
|
bodyType: "input", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
|
|
|
bodyMaxlength: 10, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label:"预设起始溶液体积",prop:"targetStartSolutionVolume", |
|
|
|
|
|
|
|
|
label: "预设起始溶液体积", prop: "targetStartSolutionVolume", |
|
|
width: 280, |
|
|
width: 280, |
|
|
headerSelectKey:"targetStartSolutionVolumeUnit", |
|
|
|
|
|
fillType:"preFill", |
|
|
|
|
|
headerOptions:this.$store.state.template.volumeOptions, |
|
|
|
|
|
defaultValue:"mg", |
|
|
|
|
|
bodyType:"inputNumber", |
|
|
|
|
|
bodySubType:"inputNumber", |
|
|
|
|
|
bodySubKey:"subTargetStartSolutionPrecision", |
|
|
|
|
|
bodyFillType:"preFill", |
|
|
|
|
|
bodySubFillType:"preFill", |
|
|
|
|
|
showBodySub:this.fillType === "preFill", |
|
|
|
|
|
|
|
|
headerSelectKey: "targetStartSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.$store.state.template.volumeOptions, |
|
|
|
|
|
defaultValue: "mg", |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodySubType: "inputNumber", |
|
|
|
|
|
bodySubKey: "subTargetStartSolutionPrecision", |
|
|
|
|
|
bodyFillType: "preFill", |
|
|
|
|
|
bodySubFillType: "preFill", |
|
|
|
|
|
showBodySub: this.fillType === "preFill", |
|
|
bodyDisabled: true, |
|
|
bodyDisabled: true, |
|
|
bodyPrecisionKey:"subTargetStartSolutionPrecision", |
|
|
|
|
|
|
|
|
bodyPrecisionKey: "subTargetStartSolutionPrecision", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label:"实际起始溶液体积",prop:"actStartSolutionVolume", |
|
|
|
|
|
|
|
|
label: "实际起始溶液体积", prop: "actStartSolutionVolume", |
|
|
width: 280, |
|
|
width: 280, |
|
|
headerSelectKey:"actStartSolutionVolumeUnit", |
|
|
|
|
|
fillType:"preFill", |
|
|
|
|
|
headerOptions:this.$store.state.template.volumeOptions, |
|
|
|
|
|
bodyType:"inputNumber", |
|
|
|
|
|
bodyFillType:"actFill", |
|
|
|
|
|
|
|
|
headerSelectKey: "actStartSolutionVolumeUnit", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
headerOptions: this.$store.state.template.volumeOptions, |
|
|
|
|
|
bodyType: "inputNumber", |
|
|
|
|
|
bodyFillType: "actFill", |
|
|
}, |
|
|
}, |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
selectReagentVisible: false, |
|
|
|
|
|
subSolutionVisible: false, |
|
|
|
|
|
currentSubKey: "",//当前点击的子项key |
|
|
dataSource: [], |
|
|
dataSource: [], |
|
|
stepTableDataSource: [], |
|
|
stepTableDataSource: [], |
|
|
sysjColumns: [ |
|
|
sysjColumns: [ |
|
|
@ -316,9 +325,9 @@ export default { |
|
|
this.formData = { |
|
|
this.formData = { |
|
|
effectivePeriodUnit: "days",//设置默认值 |
|
|
effectivePeriodUnit: "days",//设置默认值 |
|
|
createTime: "2026-01-02 18:05:36",//设置默认值 |
|
|
createTime: "2026-01-02 18:05:36",//设置默认值 |
|
|
stepTableFormData:[ |
|
|
|
|
|
{actStartSolutionVolume:1,subActStartSolutionVolume:"ul",subTargetStartSolutionPrecision:3}, |
|
|
|
|
|
{targetStartSolutionVolume:3,subTargetStartSolutionVolume:"mg",subTargetStartSolutionPrecision:2}, |
|
|
|
|
|
|
|
|
stepTableFormData: [ |
|
|
|
|
|
{ actStartSolutionVolume: 1, subActStartSolutionVolume: "ul", subTargetStartSolutionPrecision: 3 }, |
|
|
|
|
|
{ targetStartSolutionVolume: 3, subTargetStartSolutionVolume: "mg", subTargetStartSolutionPrecision: 2 }, |
|
|
], |
|
|
], |
|
|
headerSelectFields: { |
|
|
headerSelectFields: { |
|
|
targetStartSolutionVolumeUnit: "mg", |
|
|
targetStartSolutionVolumeUnit: "mg", |
|
|
@ -328,6 +337,23 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
handleClickable(item) { |
|
|
|
|
|
if(this.fillType === "preFill"){ |
|
|
|
|
|
// return; |
|
|
|
|
|
} |
|
|
|
|
|
const {subKey = ""} = item; |
|
|
|
|
|
if(subKey === "subStartSolution" || subKey === "subSolution"){//起始源溶液点击事件 |
|
|
|
|
|
this.selectReagentVisible = true; |
|
|
|
|
|
this.currentSubKey = subKey; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
//选择试剂提交事件 |
|
|
|
|
|
onSelectReagentSubmit(code){ |
|
|
|
|
|
this.formData[this.currentSubKey] = code; |
|
|
|
|
|
this.$set(this.formData, this.currentSubKey, code); |
|
|
|
|
|
this.formData = {...this.formData} |
|
|
|
|
|
this.selectReagentVisible = false; |
|
|
|
|
|
}, |
|
|
async getFormData() { |
|
|
async getFormData() { |
|
|
const baseData = await this.$refs.baseInfoRef.getFormData(); |
|
|
const baseData = await this.$refs.baseInfoRef.getFormData(); |
|
|
const conditionData = await this.$refs.storageConditionRef.getFormData(); |
|
|
const conditionData = await this.$refs.storageConditionRef.getFormData(); |
|
|
|