|
|
@ -189,12 +189,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="每份样品量" prop="samplePieceSize"> |
|
|
|
<el-input v-model="data.samplePieceSize" placeholder="请填写每份样品量" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="是否整检" prop="isWhole"> |
|
|
|
<el-switch v-model="data.isWhole" active-value="TRUE" inactive-value="FALSE" /> |
|
|
|
<el-input v-model="data.samplePieceSize" placeholder="请填写每份样品量" :disabled='isSamplePieceSizeDisabled'/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -708,7 +703,7 @@ const data = ref({ |
|
|
|
dynamicUpdateCode: '', |
|
|
|
description:'', |
|
|
|
samplePieceSize:'', |
|
|
|
isWhole:'TRUE', |
|
|
|
uom:'', |
|
|
|
process: [] |
|
|
|
}) |
|
|
|
|
|
|
@ -846,7 +841,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
|
dynamicUpdateCode:'', |
|
|
|
description:"", |
|
|
|
samplePieceSize:"", |
|
|
|
isWhole:"TRUE", |
|
|
|
uom:"", |
|
|
|
process: [] |
|
|
|
} |
|
|
|
} |
|
|
@ -1095,6 +1090,7 @@ const opensearchTable = ( |
|
|
|
_searchCondition |
|
|
|
) |
|
|
|
} |
|
|
|
const isSamplePieceSizeDisabled = ref(false)//判断每份样品朗是否可输入 |
|
|
|
// 弹层确定返回所选数据 |
|
|
|
// val : 弹层列表row 数据 |
|
|
|
const searchTableSuccess = async (formField, searchField, val, type, row) => { |
|
|
@ -1115,6 +1111,14 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => { |
|
|
|
data.value[formField] = val[0].code |
|
|
|
if (formField == 'itemCode') { |
|
|
|
data.value.itemName = val[0].name |
|
|
|
data.value.uom = val[0].uom |
|
|
|
if(data.value.uom == 'EA'){ |
|
|
|
data.value.samplePieceSize = 1 |
|
|
|
isSamplePieceSizeDisabled.value = true |
|
|
|
}else{ |
|
|
|
data.value.samplePieceSize = '' |
|
|
|
isSamplePieceSizeDisabled.value = false |
|
|
|
} |
|
|
|
} else if (formField == 'inspectionType') { |
|
|
|
data.value.testTypeName = val[0].description |
|
|
|
} else if (formField == 'programmeTemplateCode') { |
|
|
|