|
|
@ -529,15 +529,15 @@ const submitForm = async () => { |
|
|
|
if(data.value.packageList?.length>0){ |
|
|
|
const validateForm1 = await tableFormRef.value.validateForm() |
|
|
|
if (!validateForm1) return |
|
|
|
let number = 0 |
|
|
|
data.value.packageList.forEach(cur=>{ |
|
|
|
number += parseFloat(cur.sampleAmount) |
|
|
|
}) |
|
|
|
number = number.toFixed('2') |
|
|
|
if(number != data.value.sampleTotalAmount){ |
|
|
|
message.error(`采样数量之和必须等于采样总数量`) |
|
|
|
return |
|
|
|
} |
|
|
|
// let number = 0 |
|
|
|
// data.value.packageList.forEach(cur=>{ |
|
|
|
// number += parseFloat(cur.sampleAmount) |
|
|
|
// }) |
|
|
|
// number = number.toFixed('2') |
|
|
|
// if(number != data.value.sampleTotalAmount){ |
|
|
|
// message.error(`采样数量之和必须等于采样总数量`) |
|
|
|
// return |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
const bol2 = await validateForm(formFeaturesRef.value) |
|
|
@ -783,7 +783,7 @@ const resultEntryMethodChange = (e, item) => { |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = [] |
|
|
|
if (e == 0) { |
|
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
|
for (let i = 0; i < data.value.sampleTotalAmount; i++) { |
|
|
|
for (let i = 0; i < parseInt(item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty); i++) { |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({ |
|
|
|
inspectionValue: '', //检验值 |
|
|
|
qualitativeCode: '', //定性字典项值 |
|
|
|