|
|
|
@ -16,9 +16,7 @@ |
|
|
|
:formConfig="storageFormConfig" :formData="formData" /> |
|
|
|
<LineLabel label="template.common.operationSteps" /> |
|
|
|
<div class="template-form-item"> |
|
|
|
<!-- <BaseInfoFormPcakge fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" |
|
|
|
:formData="formData" @clickable="handleJzClickable" /> --> |
|
|
|
|
|
|
|
|
|
|
|
<CustomTable |
|
|
|
@blur="onHandleTableBlur" |
|
|
|
:ref="`tableRef`" |
|
|
|
@ -67,7 +65,7 @@ import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" |
|
|
|
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue'; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "SWYPFXRYPZB", |
|
|
|
name: "JZXY", |
|
|
|
components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog }, |
|
|
|
mixins: [templateMixin], |
|
|
|
props: { |
|
|
|
@ -221,7 +219,7 @@ export default { |
|
|
|
] |
|
|
|
}, |
|
|
|
tableStepColumns() { |
|
|
|
return getSWYPFXFFXYPZBBTableConfig(this,'business_sp_rxjzxy',true,true); |
|
|
|
return getSWYPFXFFXYPZBBTableConfig(this,'business_sp_jzxy',false,true); |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
@ -263,21 +261,11 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//点击基质选择 |
|
|
|
handleJzClickable(obj){ |
|
|
|
this.reagentType = 1//本表单特殊字段 |
|
|
|
this.currentSubKey = obj.subKey; |
|
|
|
this.$refs.selectReagentDialogRef.show() |
|
|
|
}, |
|
|
|
//选择试剂提交事件 |
|
|
|
onSelectReagentSubmit(code,row){ |
|
|
|
if(this.reagentType===1){ |
|
|
|
this.$refs.stepFormPackageRef.updateFormData(this.currentSubKey, code); |
|
|
|
}else{ |
|
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(this.rowIndex,{ |
|
|
|
[this.currentSubKey]: code, |
|
|
|
}) |
|
|
|
} |
|
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(this.rowIndex,{ |
|
|
|
[this.currentSubKey]: code, |
|
|
|
}) |
|
|
|
this.$refs.selectReagentDialogRef.onCancel() |
|
|
|
}, |
|
|
|
//点击表格单元格 |
|
|
|
@ -288,7 +276,7 @@ export default { |
|
|
|
this.rowIndex = rowIndex |
|
|
|
this.currentSubKey = col.prop; |
|
|
|
console.log("clickable",rowIndex, col) |
|
|
|
if(col.prop === "sjry"){ |
|
|
|
if(col.prop === "sjry" || col.prop === "kbjzbh"){ |
|
|
|
//调用对应弹窗的方法-多个点击的需要判断是哪个字段点击 |
|
|
|
this.$refs.selectReagentDialogRef.show() |
|
|
|
} |
|
|
|
@ -317,10 +305,10 @@ export default { |
|
|
|
}, |
|
|
|
//获取已填写的表单数据 |
|
|
|
getFilledFormData(){ |
|
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "tableRef","stepRef", "remarkRef"]) |
|
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "tableRef","stepRef", "remarkRef"]) |
|
|
|
}, |
|
|
|
async getFormData() { |
|
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef","tableRef" ,"stepRef", "remarkRef"]); |
|
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef","tableRef" ,"stepRef", "remarkRef"]); |
|
|
|
//生成resource |
|
|
|
let tmpResource = [] |
|
|
|
|
|
|
|
|