|
@ -384,7 +384,7 @@ |
|
|
clearable |
|
|
clearable |
|
|
:disabled="true" |
|
|
:disabled="true" |
|
|
size="small" |
|
|
size="small" |
|
|
style="width: 240px" |
|
|
style="width: 240px;" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
@ -1321,6 +1321,7 @@ export default { |
|
|
closeDialog() {}, |
|
|
closeDialog() {}, |
|
|
/**打印 */ |
|
|
/**打印 */ |
|
|
print() { |
|
|
print() { |
|
|
|
|
|
debugger |
|
|
(this.hostPrintQuery = { |
|
|
(this.hostPrintQuery = { |
|
|
printType: undefined, //0:打印;1:重打;2:补打; |
|
|
printType: undefined, //0:打印;1:重打;2:补打; |
|
|
productLine: undefined, |
|
|
productLine: undefined, |
|
@ -1359,16 +1360,17 @@ export default { |
|
|
console.log("门板hostsn2参数" + JSON.stringify(this.hostSNQuery)); |
|
|
console.log("门板hostsn2参数" + JSON.stringify(this.hostSNQuery)); |
|
|
this.$axios |
|
|
this.$axios |
|
|
.gets( |
|
|
.gets( |
|
|
"/api/newjit/bill-m100/get-print-start-hostsn2", |
|
|
"/api/newjit/bill-m100/get-print-start-hostsn3", |
|
|
this.hostSNQuery |
|
|
this.hostSNQuery |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
console.log("获取hostsn大众顺序号起始"); |
|
|
console.log("获取hostsn大众顺序号起始"); |
|
|
console.log(response.item); |
|
|
console.log(response.item); |
|
|
if (response.item !== null) { |
|
|
if (response.item !== null) { |
|
|
this.form.beginHostSN = parseInt(response.item); |
|
|
this.form.beginHostSN = parseInt(response.item.beginHostSN); |
|
|
|
|
|
this.printNum = parseInt(response.item.count); |
|
|
if (this.listQuery.productType === 1) { |
|
|
if (this.listQuery.productType === 1) { |
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
this.form.endHostSN = parseInt(response.item.beginHostSN) + parseInt(response.item.count) - 1; |
|
|
} else if (this.listQuery.productType === 2) { |
|
|
} else if (this.listQuery.productType === 2) { |
|
|
//柱护板 |
|
|
//柱护板 |
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
@ -1397,6 +1399,9 @@ export default { |
|
|
console.log(response.item); |
|
|
console.log(response.item); |
|
|
if (response.item !== null) { |
|
|
if (response.item !== null) { |
|
|
this.printNumZHB = parseInt(response.item); |
|
|
this.printNumZHB = parseInt(response.item); |
|
|
|
|
|
|
|
|
|
|
|
//this.form.endHostSN = this.form.beginHostSN + this.printNumZHB - 1; |
|
|
|
|
|
this.form.endHostSN = parseInt(this.printNumZHB) + parseInt(this.form.beginHostSN) - 1; |
|
|
} else { |
|
|
} else { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: "获取柱护板打印数量失败,返回空", |
|
|
message: "获取柱护板打印数量失败,返回空", |
|
@ -1423,7 +1428,8 @@ export default { |
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
} else if (this.listQuery.productType === 2) { |
|
|
} else if (this.listQuery.productType === 2) { |
|
|
//柱护板 |
|
|
//柱护板 |
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
|
//this.form.endHostSN = parseInt(response.item) + 23; |
|
|
|
|
|
this.form.endHostSN = parseInt(this.printNumZHB) + parseInt(this.form.beginHostSN) - 1; |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.$message({ |
|
|
this.$message({ |
|
@ -1534,11 +1540,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
save() { |
|
|
save() { |
|
|
this.$refs.form.validate((valid) => { |
|
|
this.$refs.form.validate((valid) => { |
|
|
|
|
|
debugger |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
//this.listLoaddingPrint = true; |
|
|
//this.listLoaddingPrint = true; |
|
|
if (this.isShowHostSN === true) { |
|
|
if (this.isShowHostSN === true) { |
|
|
if (this.form.beginHostSN === "" || this.form.endHostSN === "") { |
|
|
if (this.form.beginHostSN === "") { // || this.form.endHostSN === "" |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: "请输入完整的顺序号起始范围", |
|
|
message: "请输入完整的顺序号起始范围", |
|
|
type: "error", |
|
|
type: "error", |
|
@ -1560,19 +1566,19 @@ export default { |
|
|
} |
|
|
} |
|
|
} else if (this.listQuery.productType === 2) { |
|
|
} else if (this.listQuery.productType === 2) { |
|
|
//柱护板 |
|
|
//柱护板 |
|
|
if ( |
|
|
// if ( |
|
|
parseInt(this.form.endHostSN) - |
|
|
// parseInt(this.form.endHostSN) - |
|
|
parseInt(this.form.beginHostSN) > |
|
|
// parseInt(this.form.beginHostSN) > |
|
|
23 |
|
|
// 23 |
|
|
) { |
|
|
// ) { |
|
|
this.$message({ |
|
|
// this.$message({ |
|
|
message: |
|
|
// message: |
|
|
"最多只能打印24个顺序号,终止顺序号不能大于" + |
|
|
// "最多只能打印24个顺序号,终止顺序号不能大于" + |
|
|
(parseInt(this.form.beginHostSN) + 23), |
|
|
// (parseInt(this.form.beginHostSN) + 23), |
|
|
type: "error", |
|
|
// type: "error", |
|
|
}); |
|
|
// }); |
|
|
return; |
|
|
// return; |
|
|
} |
|
|
// } |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1594,7 +1600,7 @@ export default { |
|
|
this.hostPrintQuery.endHostSN = parseInt(this.form.endHostSN); |
|
|
this.hostPrintQuery.endHostSN = parseInt(this.form.endHostSN); |
|
|
|
|
|
|
|
|
if (this.listQuery.productType === 1) { |
|
|
if (this.listQuery.productType === 1) { |
|
|
//柱护板-打印 |
|
|
//门板-打印 |
|
|
this.hostCheckQuery.beginHostSN = parseInt(this.form.beginHostSN); |
|
|
this.hostCheckQuery.beginHostSN = parseInt(this.form.beginHostSN); |
|
|
this.hostCheckQuery.endHostSN = parseInt(this.form.endHostSN); |
|
|
this.hostCheckQuery.endHostSN = parseInt(this.form.endHostSN); |
|
|
this.hostCheckQuery.productLine = this.listQuery.productLine; |
|
|
this.hostCheckQuery.productLine = this.listQuery.productLine; |
|
|