|
@ -369,7 +369,7 @@ |
|
|
// 总数量值是 样品份数 乘 每份样品量 |
|
|
// 总数量值是 样品份数 乘 每份样品量 |
|
|
allSamplePieceSize.value += parseFloat((parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty) * parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize)).toFixed(2)) |
|
|
allSamplePieceSize.value += parseFloat((parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty) * parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize)).toFixed(2)) |
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
if(!item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList){ |
|
|
if (!item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList) { |
|
|
// 单个录入时 |
|
|
// 单个录入时 |
|
|
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 0) { |
|
|
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 0) { |
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
@ -427,7 +427,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
for (let i = 0; i < data.value.packageList.length; i++) { |
|
|
for (let i = 0; i < data.value.packageList.length; i++) { |
|
|
if(data.value.packageList[i].sampleAmount==null){ |
|
|
if (data.value.packageList[i].sampleAmount == null) { |
|
|
if (allSamplePieceSize.value > data.value.packageList[i].amount) { |
|
|
if (allSamplePieceSize.value > data.value.packageList[i].amount) { |
|
|
data.value.packageList[i].sampleAmount = 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)) |
|
|
allSamplePieceSize.value = parseFloat((allSamplePieceSize.value - data.value.packageList[i].amount).toFixed(2)) |
|
@ -604,14 +604,11 @@ |
|
|
let numberList = []//判断合格数量和不合格数量之和是否等于主表数量 |
|
|
let numberList = []//判断合格数量和不合格数量之和是否等于主表数量 |
|
|
let parseFloatList = []//判断合格数量和不合格数量是否是整数 |
|
|
let parseFloatList = []//判断合格数量和不合格数量是否是整数 |
|
|
data.value.subList.forEach((item, index) => { |
|
|
data.value.subList.forEach((item, index) => { |
|
|
|
|
|
|
|
|
console.log("woxianlai") |
|
|
|
|
|
console.log(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList) |
|
|
|
|
|
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1) { |
|
|
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1) { |
|
|
arrBol.push( |
|
|
arrBol.push( |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some( |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some( |
|
|
(cur, key) => { |
|
|
(cur, key) => { |
|
|
return cur.qualifiedQuantity==='' || cur.unqualifiedQuantity==='' |
|
|
return cur.qualifiedQuantity === '' || cur.unqualifiedQuantity === '' |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
) |
|
|
) |
|
@ -657,8 +654,6 @@ |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
console.log("wolaile") |
|
|
|
|
|
console.log(arrBol) |
|
|
|
|
|
let isEmpty1 = arrBol.some(item => item == true) |
|
|
let isEmpty1 = arrBol.some(item => item == true) |
|
|
let isEmptyNumberList = numberList.some(item => item == true) |
|
|
let isEmptyNumberList = numberList.some(item => item == true) |
|
|
let isParseFloat = parseFloatList.some(item => item == true) |
|
|
let isParseFloat = parseFloatList.some(item => item == true) |
|
@ -732,7 +727,7 @@ |
|
|
arrBol.push( |
|
|
arrBol.push( |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some( |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some( |
|
|
(cur, key) => { |
|
|
(cur, key) => { |
|
|
return !cur.qualifiedQuantity || !cur.unqualifiedQuantity |
|
|
return cur.qualifiedQuantity === '' || cur.unqualifiedQuantity === '' |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
) |
|
|
) |
|
|