|
|
@ -370,6 +370,8 @@ |
|
|
|
// 总数量值是 样品份数 乘 每份样品量 |
|
|
|
allSamplePieceSize.value += parseFloat((parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty) * parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize)).toFixed(2)) |
|
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
|
if(!item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList){ |
|
|
|
// 单个录入时 |
|
|
|
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 0) { |
|
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = [] |
|
|
@ -383,6 +385,7 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 汇总录入时 |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = [] |
|
|
|
rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({ |
|
|
@ -394,6 +397,8 @@ |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 编辑判断上限下限目标值是否必填 |
|
|
|
if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping) { |
|
|
|
rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
@ -424,6 +429,7 @@ |
|
|
|
*/ |
|
|
|
|
|
|
|
for (let i = 0; i < data.value.packageList.length; i++) { |
|
|
|
if(data.value.packageList[i].sampleAmount==null){ |
|
|
|
if (allSamplePieceSize.value > data.value.packageList[i].amount) { |
|
|
|
data.value.packageList[i].sampleAmount = data.value.packageList[i].amount |
|
|
|
allSamplePieceSize.value = parseFloat((allSamplePieceSize.value - data.value.packageList[i].amount).toFixed(2)) |
|
|
@ -433,6 +439,7 @@ |
|
|
|
// return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// data.value.packageList.forEach(item=>{ |
|
|
|
|
|
|
|
// }) |
|
|
@ -802,6 +809,7 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
await InspectionJobMainApi.stagingInspectionJobMain(data.value); |
|
|
|
message.success("暂存成功") |
|
|
|
} catch { |
|
|
|
console.log(111) |
|
|
|
} |
|
|
|