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