|
|
|
@ -63,6 +63,7 @@ |
|
|
|
fieldItemLabel="平行配制" /> |
|
|
|
<CustomTable @blur="(e)=>onHandleTableBlur('paralle', paralleIndex,e)" :ref="`paralleStepTableRef_${paralleIndex}`" |
|
|
|
:columns="paralleStepColumns" :formData="paralleConfig" |
|
|
|
@clickable="(col,rowIndex) => handleTableClickable('paralle', paralleIndex, col,rowIndex)" |
|
|
|
:prefixKey="'paralle' + paralleIndex" fieldItemLabel="平行配制"> |
|
|
|
<template slot="operation" slot-scope="{ row, rowIndex}"> |
|
|
|
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" |
|
|
|
@ -151,7 +152,9 @@ export default { |
|
|
|
currentType: "",//当前点击的类型 |
|
|
|
currentRowIndex: "",//当前点击的行索引 |
|
|
|
dataSource: [], |
|
|
|
|
|
|
|
currentTableIndex: "",//当前点击的表格索引 |
|
|
|
currentTableKey: "",//当前点击的表格key |
|
|
|
targetAcSolutionFromTable:true,//是否从表格中获取实际原始溶液浓度 |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -239,14 +242,25 @@ export default { |
|
|
|
this.updateSjmbrynd(item,targetAcSolution); |
|
|
|
} |
|
|
|
}else if(type === "paralle"){ |
|
|
|
const targetAcSolution = item.actStartSolutionConcentration || 0;//获取实际起始溶液浓度 |
|
|
|
const targetAcSolution = item.targetAcSolution || 0;//获取实际起始溶液浓度 |
|
|
|
if(targetAcSolution){ |
|
|
|
this.updateSjmbrynd(item,targetAcSolution); |
|
|
|
this.updateSjmbrynd(item,targetAcSolution); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
//表格点击事件 |
|
|
|
handleTableClickable(type, rowIndex, col,tableRowIndex) { |
|
|
|
if(col.prop === "actStartSolutionCode"){//实际原始溶液编号点击事件 |
|
|
|
this.currentTableKey = col.prop; |
|
|
|
this.currentType = type; |
|
|
|
this.currentRowIndex = rowIndex; |
|
|
|
this.currentTableIndex = tableRowIndex; |
|
|
|
this.$refs.selectReagentDialogRef.show(); |
|
|
|
} |
|
|
|
}, |
|
|
|
//form表单点击事件 |
|
|
|
handleClickable(type, rowIndex, item) { |
|
|
|
if (this.fillType === "preFill") { |
|
|
|
return; |
|
|
|
@ -262,20 +276,24 @@ export default { |
|
|
|
}, |
|
|
|
//选择试剂提交事件 |
|
|
|
onSelectReagentSubmit(code,row) { |
|
|
|
const { currentSubKey } = this; |
|
|
|
if (this.currentType === "ladder") { |
|
|
|
const packageRef = this.$refs[`ladderStepFormPackageRef_${this.currentRowIndex}`][0]; |
|
|
|
if (currentSubKey === "subStartSolution") { |
|
|
|
packageRef.updateFormData("targetAcSolution", row.sjnd); |
|
|
|
const { currentSubKey,currentTableKey,currentRowIndex,currentTableIndex } = this; |
|
|
|
if(currentSubKey){ |
|
|
|
const ref = this.currentType === "ladder" ?"ladderStepFormPackageRef_":"paralleStepFormPackageRef_" |
|
|
|
const packageRef = this.$refs[`${ref}${this.currentRowIndex}`][0]; |
|
|
|
if(currentSubKey === "subStartSolution"){ |
|
|
|
packageRef.updateFormData("targetAcSolution", row.nd); |
|
|
|
} |
|
|
|
packageRef.updateFormData(currentSubKey, code); |
|
|
|
|
|
|
|
} else if (this.currentType === "paralle") { |
|
|
|
this.$refs.paralleStepFormPackageRef_[this.currentRowIndex].updateFormData(this.currentSubKey, { |
|
|
|
reagentCode: code, |
|
|
|
}); |
|
|
|
this.currentSubKey = ""; |
|
|
|
}else if (currentTableKey === "actStartSolutionCode"){//实际原始溶液编号点击事件 |
|
|
|
const tableRef = this.$refs[`paralleStepTableRef_${currentRowIndex}`][0]; |
|
|
|
if(tableRef){ |
|
|
|
tableRef.updateDataSourceByRowIndex(currentTableIndex,{ |
|
|
|
actStartSolutionCode: code, |
|
|
|
targetAcSolution: row.nd, |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
// this.$refs.stepFormPackageRef.updateFormData(this.currentSubKey, code); |
|
|
|
this.$refs.selectReagentDialogRef.onCancel() |
|
|
|
}, |
|
|
|
//只做校验 |
|
|
|
|