|
|
@ -274,7 +274,7 @@ export default { |
|
|
|
totalCount: 0, |
|
|
|
listLoading: true, |
|
|
|
customerInfo: { |
|
|
|
printType: "", |
|
|
|
printType: "1", |
|
|
|
productLine: "", |
|
|
|
}, |
|
|
|
// 高级搜索 |
|
|
@ -358,18 +358,16 @@ export default { |
|
|
|
watch: { |
|
|
|
customerInfosZHB: { |
|
|
|
handler(newVal) { |
|
|
|
console.log("柱护板-接收的父组件的值:"+JSON.stringify(newVal)) |
|
|
|
console.log("柱护板-接收的父组件的值:" + JSON.stringify(newVal)); |
|
|
|
if (newVal == "" || newVal == "undefined") { |
|
|
|
//TODO |
|
|
|
} else { |
|
|
|
newVal.forEach((element) => { |
|
|
|
this.customerInfo.printType = element.PrintType; |
|
|
|
this.customerInfo.printType = "1"; |
|
|
|
this.customerInfo.productLine = element.ProductLine; |
|
|
|
}); |
|
|
|
console.log("柱护板监控传值:"+JSON.stringify(this.customerInfo)) |
|
|
|
if ( |
|
|
|
this.customerInfo.productLine != "" |
|
|
|
) { |
|
|
|
console.log("柱护板监控传值:" + JSON.stringify(this.customerInfo)); |
|
|
|
if (this.customerInfo.productLine != "") { |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
} |
|
|
@ -549,7 +547,7 @@ export default { |
|
|
|
let beginVin1 = this.multipleSelection[0].beginVin1; |
|
|
|
let endVin1 = this.multipleSelection[0].endVin1; |
|
|
|
var params = { |
|
|
|
printType: this.customerInfo.printType, |
|
|
|
printType: "1", |
|
|
|
productLine: this.customerInfo.productLine, |
|
|
|
beginVin: beginVin1, |
|
|
|
endVin: endVin1, |
|
|
@ -567,12 +565,15 @@ export default { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} else { |
|
|
|
let dataname = JSON.stringify(response.item); |
|
|
|
console.log("柱板-调用Handlers/Handler1.ashx?report=menban传的值:"+dataname) |
|
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
|
console.log( |
|
|
|
"柱板-调用Handlers/Handler1.ashx?report=menban传的值:" + |
|
|
|
JSON.stringify(this.fileQuery.dataname) |
|
|
|
); |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/Handlers/Handler1.ashx?report=menban", |
|
|
|
qs.stringify(dataname) |
|
|
|
qs.stringify(this.fileQuery) |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
this.printpdf(response); //打印我文件流 |
|
|
|