|
|
|
@ -3769,15 +3769,16 @@ export default { |
|
|
|
qcPrint(this.IQCSelections) |
|
|
|
}, |
|
|
|
rollCountChange() { |
|
|
|
const rollQty = Number(this.detailData.rollQty) |
|
|
|
const rollCount = this.detailData.rollCount |
|
|
|
if (rollCount != null) { |
|
|
|
const rc = Number(rollCount) |
|
|
|
if (!isNaN(rollQty) && !isNaN(rc) && rc > rollQty) { |
|
|
|
this.$set(this.detailData, 'rollCount', 0) |
|
|
|
this.$message.warning(this.$t('qc.entry.qcGreaterThanIncoming')) |
|
|
|
} |
|
|
|
} |
|
|
|
// 客户允许超检,暂不限制送检数量大于到货数量 |
|
|
|
// const rollQty = Number(this.detailData.rollQty) |
|
|
|
// const rollCount = this.detailData.rollCount |
|
|
|
// if (rollCount != null) { |
|
|
|
// const rc = Number(rollCount) |
|
|
|
// if (!isNaN(rollQty) && !isNaN(rc) && rc > rollQty) { |
|
|
|
// this.$set(this.detailData, 'rollCount', 0) |
|
|
|
// this.$message.warning(this.$t('qc.entry.qcGreaterThanIncoming')) |
|
|
|
// } |
|
|
|
// } |
|
|
|
this.$nextTick(() => { |
|
|
|
this.enforcePassQtyNotExceedRollCount() |
|
|
|
this.enforceSamplingQtyNotExceedRollCount() |
|
|
|
@ -4951,12 +4952,13 @@ export default { |
|
|
|
this.$message.warning(this.$t('qc.entry.fillSendRollQty')) |
|
|
|
return |
|
|
|
} |
|
|
|
const arrivalQty = Number(this.modalData.rollQty) |
|
|
|
const sendQty = Number(this.modalData.rollCount) |
|
|
|
if (!isNaN(arrivalQty) && !isNaN(sendQty) && sendQty > arrivalQty) { |
|
|
|
this.$message.warning(this.$t('qc.entry.qcGreaterThanIncoming')) |
|
|
|
return |
|
|
|
} |
|
|
|
// 客户允许超检,暂不限制送检数量大于到货数量 |
|
|
|
// const arrivalQty = Number(this.modalData.rollQty) |
|
|
|
// const sendQty = Number(this.modalData.rollCount) |
|
|
|
// if (!isNaN(arrivalQty) && !isNaN(sendQty) && sendQty > arrivalQty) { |
|
|
|
// this.$message.warning(this.$t('qc.entry.qcGreaterThanIncoming')) |
|
|
|
// return |
|
|
|
// } |
|
|
|
if (this.modalData.umId === '' || this.modalData.umId == null) { |
|
|
|
this.$message.warning(this.$t('qc.entry.selectUnit')) |
|
|
|
return |
|
|
|
|