From 67937055596f4ea8be04cb2d37edadd4317a3fb3 Mon Sep 17 00:00:00 2001 From: 44673626 <44673626@qq.com> Date: Mon, 20 Dec 2021 08:42:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E6=9D=BF=E5=92=8C=E6=9F=B1=E6=8A=A4?= =?UTF-8?q?=E6=9D=BF=E6=89=93=E5=8D=B0=20=E8=B0=83=E6=95=B41220?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/router/index.js | 10 +++---- .../pg-fis/basedate/m100Online/detailMB.vue | 15 ++++++----- .../pg-fis/basedate/m100Online/detailZHB.vue | 27 ++++++++++--------- .../pg-fis/basedate/m100Online/index.vue | 1 - 4 files changed, 27 insertions(+), 26 deletions(-) diff --git a/vue/src/router/index.js b/vue/src/router/index.js index a9e99552..08ed61be 100644 --- a/vue/src/router/index.js +++ b/vue/src/router/index.js @@ -168,13 +168,13 @@ export const asyncRoutes = [ /** when your routing map is too long, you can split it into small modules **/ managerRouter,//系统首页 personRouter,//系统管理 - //basedataRouter,//基础数据维护 - //vwFisDataRouter,//结算与开票数据导入 - //billdataRouter,//销售结算与开票报表 + basedataRouter,//基础数据维护 + vwFisDataRouter,//结算与开票数据导入 + billdataRouter,//销售结算与开票报表 //businessdataRouter, - //wheeldataRouter,//大众看板和备件 + wheeldataRouter,//大众看板和备件 pgfis,//派格fis - //JobTimeDataRouter,//后台作业监控 + JobTimeDataRouter,//后台作业监控 // 404 page must be placed at the end !!! { path: '*', redirect: '/404', hidden: true } diff --git a/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue b/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue index 98c390cb..7028fe86 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue @@ -378,7 +378,7 @@ export default { watch: { customerInfosMB: { handler(newVal) { - console.log("门板-接收的父组件的值:"+JSON.stringify(newVal)) + console.log("门板-接收的父组件的值:" + JSON.stringify(newVal)); if (newVal == "" || newVal == "undefined") { //TODO } else { @@ -386,9 +386,7 @@ export default { this.customerInfo.printType = element.PrintType; this.customerInfo.productLine = element.ProductLine; }); - if ( - this.customerInfo.productLine != "" - ) { + if (this.customerInfo.productLine != "") { this.getList(); } } @@ -586,12 +584,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); //打印我文件流 diff --git a/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue b/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue index c1a10e33..74f99d12 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue @@ -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(); } } @@ -516,7 +514,7 @@ export default { this.listQuery.ProductLine = this.customerInfo.productLine; } - console.log("柱护板-列表查询条件:"+JSON.stringify(this.listQuery)); + console.log("柱护板-列表查询条件:" + JSON.stringify(this.listQuery)); this.$axios .posts( "/api/newjit/ZhuHuBanPackingList/ZhuHuBanPackingList-List", @@ -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, @@ -558,7 +556,7 @@ export default { this.$axios .posts("/api/newjit/bill-m100/print-zhuhuban-packing-list", params) .then((response) => { - console.log("柱护版-打印返回的状态:"+response.status); + console.log("柱护版-打印返回的状态:" + response.status); const index = this.list.indexOf(row); if (response.status === false) { this.$message({ @@ -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); //打印我文件流 diff --git a/vue/src/views/pg-fis/basedate/m100Online/index.vue b/vue/src/views/pg-fis/basedate/m100Online/index.vue index 77969bf5..dfc95444 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/index.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/index.vue @@ -1575,7 +1575,6 @@ export default { document.body.appendChild(ifr); this.doPrint("printPdf" + date); window.URL.revokeObjectURL(ifr.src); // 释放URL 对象 - alert() this.dialogFormVisible = false; }, httpPost(URL, PARAMS) {