Browse Source

2026-01-26

标签发行时校验批次号是否必填
master
fengyuan_yang 1 month ago
parent
commit
49536baf0b
  1. 24
      src/views/modules/print/PoPartPrint.vue

24
src/views/modules/print/PoPartPrint.vue

@ -147,7 +147,7 @@
width="100"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="addOrUpdateHandle(scope.row)">生成标签</a>
<el-link style="cursor: pointer" @click="addOrUpdateHandle(scope.row)">生成标签</el-link>
</template>
</el-table-column>
<el-table-column
@ -532,7 +532,8 @@ export default {
batchNo: '',
rollCount: '1',
rollQty: '',
tailRollQty: '0'
tailRollQty: '0',
batchFlag: 'N' //
},
columnArray1: [
{
@ -1204,7 +1205,8 @@ export default {
rollCount: '1',
rollQty: row.rollQty,
expirationWarningDay: outData.expirationWarningDay,
tailRollQty: '0'
tailRollQty: '0',
batchFlag: outData.batchFlag || 'N' //
}
if(this.addModelData.exceedInRatio==""||this.addModelData.exceedInRatio==null){
this.addModelData.exceedInRatio=0
@ -1219,9 +1221,6 @@ export default {
},
submitData() {
//
if (!this.addModelData.productionDate||this.addModelData.productionDate==='') {
this.$message.error('请选择生产日期');
return;
@ -1234,6 +1233,11 @@ export default {
this.$message.error('请输入每张数量');
return;
}
//
if (this.addModelData.batchFlag === 'Y' && (!this.addModelData.batchNo || this.addModelData.batchNo.trim() === '')) {
this.$message.error('该物料启用批次管理,批次号必填');
return;
}
if ( this.addModelData.nowRollQty>Number(this.addModelData.remainingIssuableQty)+((Number(this.addModelData.exceedInRatio)*Number(this.addModelData.orderQty))/100)) {
this.$message.error('本次发行数量大于剩余可发行数量和超入数量');
return;
@ -1251,10 +1255,9 @@ export default {
}
})
},
submitDataNoClose() {
//
if (!this.addModelData.productionDate||this.addModelData.productionDate==='') {
this.$message.error('请选择生产日期');
return;
@ -1267,6 +1270,11 @@ export default {
this.$message.error('请输入每张数量');
return;
}
//
if (this.addModelData.batchFlag === 'Y' && (!this.addModelData.batchNo || this.addModelData.batchNo.trim() === '')) {
this.$message.error('该物料启用批次管理,批次号必填');
return;
}
if ( this.addModelData.nowRollQty>Number(this.addModelData.remainingIssuableQty)+((Number(this.addModelData.exceedInRatio)*Number(this.addModelData.orderQty))/100)) {
this.$message.error('本次发行数量大于剩余可发行数量和超入数量');
return;

Loading…
Cancel
Save