|
@ -1300,7 +1300,7 @@ export default { |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
//this.fileQuery.report = "menban"; |
|
|
//this.fileQuery.report = "zhuhuban"; |
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
//this.fileQuery.dataname = ""; |
|
|
//this.fileQuery.dataname = ""; |
|
|
console.log("打印json"); |
|
|
console.log("打印json"); |
|
@ -1330,7 +1330,7 @@ export default { |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
//console.log(response); |
|
|
//console.log(response); |
|
|
this.PLList = response.item; |
|
|
this.PLList = response.item; |
|
|
this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)); |
|
|
this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); |
|
|
//console.log(this.PLList) |
|
|
//console.log(this.PLList) |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
@ -1342,7 +1342,7 @@ export default { |
|
|
this.$forceUpdate(); |
|
|
this.$forceUpdate(); |
|
|
//console.log(this.listQuery.productType); |
|
|
//console.log(this.listQuery.productType); |
|
|
this.listQuery.productLine = ""; |
|
|
this.listQuery.productLine = ""; |
|
|
this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)); |
|
|
this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); |
|
|
//console.log(this.PLList) |
|
|
//console.log(this.PLList) |
|
|
//变更打印按钮文字 |
|
|
//变更打印按钮文字 |
|
|
if(this.listQuery.productType === 1) |
|
|
if(this.listQuery.productType === 1) |
|
@ -1418,6 +1418,7 @@ export default { |
|
|
document.body.appendChild(ifr) |
|
|
document.body.appendChild(ifr) |
|
|
this.doPrint('printPdf' + date) |
|
|
this.doPrint('printPdf' + date) |
|
|
window.URL.revokeObjectURL(ifr.src) // 释放URL 对象 |
|
|
window.URL.revokeObjectURL(ifr.src) // 释放URL 对象 |
|
|
|
|
|
this.dialogFormVisible = false; |
|
|
}, |
|
|
}, |
|
|
httpPost(URL, PARAMS) { |
|
|
httpPost(URL, PARAMS) { |
|
|
var temp = document.createElement("form"); |
|
|
var temp = document.createElement("form"); |
|
|