|
|
|
@ -141,10 +141,10 @@ export default { |
|
|
|
this.batchNos = []; |
|
|
|
//打开显示 |
|
|
|
this.visible = true; |
|
|
|
//刷新列表信息 |
|
|
|
this.initShipmentBatchNos(); |
|
|
|
//赋值 |
|
|
|
this.printRow = JSON.parse(JSON.stringify(row)); |
|
|
|
//刷新列表信息 |
|
|
|
this.initShipmentBatchNos(); |
|
|
|
//自动获取焦点 |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.$refs.partNo) { |
|
|
|
@ -196,6 +196,12 @@ export default { |
|
|
|
this.$message.warning(`装箱数量不能大于${maxQty}`); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (this.formData.batchNo == null || this.formData.batchNo === ''){ |
|
|
|
this.$message.warning('批次号不能为空!'); |
|
|
|
return; |
|
|
|
}else { |
|
|
|
this.printRow.batchNo = this.formData.batchNo; |
|
|
|
} |
|
|
|
//设置参数 |
|
|
|
this.printRow.boxQty = boxQty; |
|
|
|
getPrintShipment(this.printRow).then(({data})=>{ |
|
|
|
|