|
@ -274,7 +274,7 @@ export default { |
|
|
totalCount: 0, |
|
|
totalCount: 0, |
|
|
listLoading: true, |
|
|
listLoading: true, |
|
|
customerInfo: { |
|
|
customerInfo: { |
|
|
printType: "", |
|
|
printType: "1", |
|
|
productLine: "", |
|
|
productLine: "", |
|
|
}, |
|
|
}, |
|
|
// 高级搜索 |
|
|
// 高级搜索 |
|
@ -358,18 +358,16 @@ export default { |
|
|
watch: { |
|
|
watch: { |
|
|
customerInfosZHB: { |
|
|
customerInfosZHB: { |
|
|
handler(newVal) { |
|
|
handler(newVal) { |
|
|
console.log("柱护板-接收的父组件的值:"+JSON.stringify(newVal)) |
|
|
console.log("柱护板-接收的父组件的值:" + JSON.stringify(newVal)); |
|
|
if (newVal == "" || newVal == "undefined") { |
|
|
if (newVal == "" || newVal == "undefined") { |
|
|
//TODO |
|
|
//TODO |
|
|
} else { |
|
|
} else { |
|
|
newVal.forEach((element) => { |
|
|
newVal.forEach((element) => { |
|
|
this.customerInfo.printType = element.PrintType; |
|
|
this.customerInfo.printType = "1"; |
|
|
this.customerInfo.productLine = element.ProductLine; |
|
|
this.customerInfo.productLine = element.ProductLine; |
|
|
}); |
|
|
}); |
|
|
console.log("柱护板监控传值:"+JSON.stringify(this.customerInfo)) |
|
|
console.log("柱护板监控传值:" + JSON.stringify(this.customerInfo)); |
|
|
if ( |
|
|
if (this.customerInfo.productLine != "") { |
|
|
this.customerInfo.productLine != "" |
|
|
|
|
|
) { |
|
|
|
|
|
this.getList(); |
|
|
this.getList(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -516,7 +514,7 @@ export default { |
|
|
this.listQuery.ProductLine = this.customerInfo.productLine; |
|
|
this.listQuery.ProductLine = this.customerInfo.productLine; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log("柱护板-列表查询条件:"+JSON.stringify(this.listQuery)); |
|
|
console.log("柱护板-列表查询条件:" + JSON.stringify(this.listQuery)); |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts( |
|
|
.posts( |
|
|
"/api/newjit/ZhuHuBanPackingList/ZhuHuBanPackingList-List", |
|
|
"/api/newjit/ZhuHuBanPackingList/ZhuHuBanPackingList-List", |
|
@ -549,7 +547,7 @@ export default { |
|
|
let beginVin1 = this.multipleSelection[0].beginVin1; |
|
|
let beginVin1 = this.multipleSelection[0].beginVin1; |
|
|
let endVin1 = this.multipleSelection[0].endVin1; |
|
|
let endVin1 = this.multipleSelection[0].endVin1; |
|
|
var params = { |
|
|
var params = { |
|
|
printType: this.customerInfo.printType, |
|
|
printType: "1", |
|
|
productLine: this.customerInfo.productLine, |
|
|
productLine: this.customerInfo.productLine, |
|
|
beginVin: beginVin1, |
|
|
beginVin: beginVin1, |
|
|
endVin: endVin1, |
|
|
endVin: endVin1, |
|
@ -558,7 +556,7 @@ export default { |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts("/api/newjit/bill-m100/print-zhuhuban-packing-list", params) |
|
|
.posts("/api/newjit/bill-m100/print-zhuhuban-packing-list", params) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
console.log("柱护版-打印返回的状态:"+response.status); |
|
|
console.log("柱护版-打印返回的状态:" + response.status); |
|
|
const index = this.list.indexOf(row); |
|
|
const index = this.list.indexOf(row); |
|
|
if (response.status === false) { |
|
|
if (response.status === false) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
@ -567,12 +565,15 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} else { |
|
|
} else { |
|
|
let dataname = JSON.stringify(response.item); |
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
console.log("柱板-调用Handlers/Handler1.ashx?report=menban传的值:"+dataname) |
|
|
console.log( |
|
|
|
|
|
"柱板-调用Handlers/Handler1.ashx?report=menban传的值:" + |
|
|
|
|
|
JSON.stringify(this.fileQuery.dataname) |
|
|
|
|
|
); |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts( |
|
|
.posts( |
|
|
"/Handlers/Handler1.ashx?report=menban", |
|
|
"/Handlers/Handler1.ashx?report=menban", |
|
|
qs.stringify(dataname) |
|
|
qs.stringify(this.fileQuery) |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
this.printpdf(response); //打印我文件流 |
|
|
this.printpdf(response); //打印我文件流 |
|
|