|
|
@ -255,8 +255,7 @@ |
|
|
|
direction="rtl" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<MBDetail |
|
|
|
v-bind:customerInfosMB="customerInfosMB"></MBDetail> |
|
|
|
<MBDetail v-bind:customerInfosMB="customerInfosMB"></MBDetail> |
|
|
|
</el-drawer> |
|
|
|
<!--柱护板重打和作废--> |
|
|
|
<el-drawer |
|
|
@ -265,8 +264,7 @@ |
|
|
|
direction="rtl" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<ZHBDetail |
|
|
|
v-bind:customerInfosZHB="customerInfosZHB"></ZHBDetail> |
|
|
|
<ZHBDetail v-bind:customerInfosZHB="customerInfosZHB"></ZHBDetail> |
|
|
|
</el-drawer> |
|
|
|
|
|
|
|
<div class="l-table" style="margin-top: -30px"> |
|
|
@ -900,11 +898,10 @@ export default { |
|
|
|
]; |
|
|
|
} |
|
|
|
if (this.listQuery.productType === 2) { |
|
|
|
alert(val); |
|
|
|
//把产线值传到子组件 |
|
|
|
this.customerInfosZHB = [ |
|
|
|
{ |
|
|
|
PrintType: 2, |
|
|
|
PrintType: 1, |
|
|
|
ProductLine: val, |
|
|
|
}, |
|
|
|
]; |
|
|
@ -975,29 +972,90 @@ export default { |
|
|
|
} |
|
|
|
this.hostSNQuery.productLine = this.listQuery.productLine; |
|
|
|
this.hostPrintQuery.productLine = this.listQuery.productLine; |
|
|
|
this.$axios |
|
|
|
.gets("/api/newjit/bill-m100/get-print-start-hostsn", this.hostSNQuery) |
|
|
|
.then((response) => { |
|
|
|
console.log("获取hostsn大众顺序号起始"); |
|
|
|
console.log(response.item); |
|
|
|
if (response.item !== null) { |
|
|
|
this.form.beginHostSN = parseInt(response.item); |
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
//门板 |
|
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
|
} else if (this.listQuery.productType === 2) { |
|
|
|
//柱护板 |
|
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
|
|
//后端服务更改了 前端跟着更改成以下方式 |
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
//门板 |
|
|
|
this.hostSNQuery.isZhuHuBan = "0"; |
|
|
|
console.log("门板hostsn2参数" + JSON.stringify(this.hostSNQuery)); |
|
|
|
this.$axios |
|
|
|
.gets( |
|
|
|
"/api/newjit/bill-m100/get-print-start-hostsn2", |
|
|
|
this.hostSNQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
console.log("获取hostsn大众顺序号起始"); |
|
|
|
console.log(response.item); |
|
|
|
if (response.item !== null) { |
|
|
|
this.form.beginHostSN = parseInt(response.item); |
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
//门板 |
|
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
|
} else if (this.listQuery.productType === 2) { |
|
|
|
//柱护板 |
|
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
message: "获取不到大众顺序号", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
message: "获取不到大众顺序号", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}); |
|
|
|
} else if (this.listQuery.productType === 2) { |
|
|
|
//柱护板 |
|
|
|
this.hostSNQuery.isZhuHuBan = "1"; |
|
|
|
console.log("柱护板hostsn2参数" + JSON.stringify(this.hostSNQuery)); |
|
|
|
this.$axios |
|
|
|
.gets( |
|
|
|
"/api/newjit/bill-m100/get-print-start-hostsn2", |
|
|
|
this.hostSNQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
console.log("获取hostsn大众顺序号起始"); |
|
|
|
console.log(response.item); |
|
|
|
if (response.item !== null) { |
|
|
|
this.form.beginHostSN = parseInt(response.item); |
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
//门板 |
|
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
|
} else if (this.listQuery.productType === 2) { |
|
|
|
//柱护板 |
|
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
message: "获取不到大众顺序号", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// this.$axios |
|
|
|
// .gets("/api/newjit/bill-m100/get-print-start-hostsn", this.hostSNQuery) |
|
|
|
// .then((response) => { |
|
|
|
// console.log("获取hostsn大众顺序号起始"); |
|
|
|
// console.log(response.item); |
|
|
|
// if (response.item !== null) { |
|
|
|
// this.form.beginHostSN = parseInt(response.item); |
|
|
|
// if (this.listQuery.productType === 1) { |
|
|
|
// //门板 |
|
|
|
// this.form.endHostSN = parseInt(response.item) + 11; |
|
|
|
// } else if (this.listQuery.productType === 2) { |
|
|
|
// //柱护板 |
|
|
|
// this.form.endHostSN = parseInt(response.item) + 23; |
|
|
|
// } |
|
|
|
// } else { |
|
|
|
// this.$message({ |
|
|
|
// message: "获取不到大众顺序号", |
|
|
|
// type: "warning", |
|
|
|
// }); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// .catch(() => {}); |
|
|
|
this.formTitle = "打印"; |
|
|
|
this.dialogFormVisible = true; |
|
|
|
this.form = { |
|
|
@ -1328,7 +1386,7 @@ export default { |
|
|
|
this.hostPrintQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
console.log("重新或补打打印门板装箱单"); |
|
|
|
console.log("重新或补打打印门板装箱单"+JSON.stringify(this.hostPrintQuery)); |
|
|
|
console.log(response); |
|
|
|
if (response.status === false) { |
|
|
|
this.$message({ |
|
|
@ -1517,6 +1575,7 @@ export default { |
|
|
|
document.body.appendChild(ifr); |
|
|
|
this.doPrint("printPdf" + date); |
|
|
|
window.URL.revokeObjectURL(ifr.src); // 释放URL 对象 |
|
|
|
alert() |
|
|
|
this.dialogFormVisible = false; |
|
|
|
}, |
|
|
|
httpPost(URL, PARAMS) { |
|
|
|