|
|
@ -147,7 +147,7 @@ |
|
|
width="100" |
|
|
width="100" |
|
|
label="操作"> |
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<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> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
@ -532,7 +532,8 @@ export default { |
|
|
batchNo: '', |
|
|
batchNo: '', |
|
|
rollCount: '1', |
|
|
rollCount: '1', |
|
|
rollQty: '', |
|
|
rollQty: '', |
|
|
tailRollQty: '0' |
|
|
|
|
|
|
|
|
tailRollQty: '0', |
|
|
|
|
|
batchFlag: 'N' // 批次管理标志 |
|
|
}, |
|
|
}, |
|
|
columnArray1: [ |
|
|
columnArray1: [ |
|
|
{ |
|
|
{ |
|
|
@ -1204,7 +1205,8 @@ export default { |
|
|
rollCount: '1', |
|
|
rollCount: '1', |
|
|
rollQty: row.rollQty, |
|
|
rollQty: row.rollQty, |
|
|
expirationWarningDay: outData.expirationWarningDay, |
|
|
expirationWarningDay: outData.expirationWarningDay, |
|
|
tailRollQty: '0' |
|
|
|
|
|
|
|
|
tailRollQty: '0', |
|
|
|
|
|
batchFlag: outData.batchFlag || 'N' // 批次管理标志 |
|
|
} |
|
|
} |
|
|
if(this.addModelData.exceedInRatio==""||this.addModelData.exceedInRatio==null){ |
|
|
if(this.addModelData.exceedInRatio==""||this.addModelData.exceedInRatio==null){ |
|
|
this.addModelData.exceedInRatio=0 |
|
|
this.addModelData.exceedInRatio=0 |
|
|
@ -1219,9 +1221,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submitData() { |
|
|
submitData() { |
|
|
// 验证必填字段 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.addModelData.productionDate||this.addModelData.productionDate==='') { |
|
|
if (!this.addModelData.productionDate||this.addModelData.productionDate==='') { |
|
|
this.$message.error('请选择生产日期'); |
|
|
this.$message.error('请选择生产日期'); |
|
|
return; |
|
|
return; |
|
|
@ -1234,6 +1233,11 @@ export default { |
|
|
this.$message.error('请输入每张数量'); |
|
|
this.$message.error('请输入每张数量'); |
|
|
return; |
|
|
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)) { |
|
|
if ( this.addModelData.nowRollQty>Number(this.addModelData.remainingIssuableQty)+((Number(this.addModelData.exceedInRatio)*Number(this.addModelData.orderQty))/100)) { |
|
|
this.$message.error('本次发行数量大于剩余可发行数量和超入数量'); |
|
|
this.$message.error('本次发行数量大于剩余可发行数量和超入数量'); |
|
|
return; |
|
|
return; |
|
|
@ -1251,10 +1255,9 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submitDataNoClose() { |
|
|
submitDataNoClose() { |
|
|
// 验证必填字段 |
|
|
// 验证必填字段 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.addModelData.productionDate||this.addModelData.productionDate==='') { |
|
|
if (!this.addModelData.productionDate||this.addModelData.productionDate==='') { |
|
|
this.$message.error('请选择生产日期'); |
|
|
this.$message.error('请选择生产日期'); |
|
|
return; |
|
|
return; |
|
|
@ -1267,6 +1270,11 @@ export default { |
|
|
this.$message.error('请输入每张数量'); |
|
|
this.$message.error('请输入每张数量'); |
|
|
return; |
|
|
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)) { |
|
|
if ( this.addModelData.nowRollQty>Number(this.addModelData.remainingIssuableQty)+((Number(this.addModelData.exceedInRatio)*Number(this.addModelData.orderQty))/100)) { |
|
|
this.$message.error('本次发行数量大于剩余可发行数量和超入数量'); |
|
|
this.$message.error('本次发行数量大于剩余可发行数量和超入数量'); |
|
|
return; |
|
|
return; |
|
|
|