From 28ee38d59cbe5a52d567dd2216fb9ddecdf4bc82 Mon Sep 17 00:00:00 2001 From: "yu.wu" Date: Tue, 30 Nov 2021 16:22:13 +0800 Subject: [PATCH] =?UTF-8?q?fis=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pg-fis/basedate/assemblyCfg/index.vue | 7 +- .../pg-fis/basedate/customerPartCfg/index.vue | 4 - .../views/pg-fis/basedate/logRemind/index.vue | 13 +- .../views/pg-fis/basedate/m100BIll/index.vue | 15 +- .../pg-fis/basedate/m100Online/index.vue | 284 ++++-------------- .../pg-fis/basedate/productLine/index.vue | 6 +- .../pg-fis/basedate/r100Online/index.vue | 18 +- .../pg-fis/basedate/repeatR100/index.vue | 15 - .../pg-fis/basedate/unknownAssembly/index.vue | 67 +++-- 9 files changed, 120 insertions(+), 309 deletions(-) diff --git a/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue b/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue index f7670b83..c20ce7db 100644 --- a/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue +++ b/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue @@ -10,7 +10,7 @@ :inline="true" > - + - + - - - + + + @@ -329,9 +329,9 @@ export default { } if (column.property === "logType") { return { - 1: "报文传输异常", - 2: "报文转换异常", - 3: "报文解析、校验异常", + 0: "", + 1: "R100", + 2: "M100", }[row[column.property]]; } if (column.property == "creationTime") { @@ -349,6 +349,7 @@ export default { getList() { this.listLoading = true; this.listQuery.SkipCount = (this.page - 1) * 10; + this.listQuery.LogStatus = 0;//不要状态为已忽略和已处理的数据 //this.listQuery.LogType = 1;//1: R100 2: M100) this.$axios .gets("/api/newjit/log-remind/list", this.listQuery) diff --git a/vue/src/views/pg-fis/basedate/m100BIll/index.vue b/vue/src/views/pg-fis/basedate/m100BIll/index.vue index 6af416e2..5a901123 100644 --- a/vue/src/views/pg-fis/basedate/m100BIll/index.vue +++ b/vue/src/views/pg-fis/basedate/m100BIll/index.vue @@ -108,7 +108,7 @@ @keyup.enter.native="handleQuery" /> - + - + { + console.log("获取文件base64编码"); + console.log(response); + this.printpdf(response);//打印我文件流 + }) } }) } @@ -1274,105 +1172,6 @@ export default { //传给grid++接口json数据,得到返回的文件base64 //this.fileQuery.report = "menban"; this.fileQuery.dataname = JSON.stringify(response.item); - this.fileQuery.dataname = `[{ -"masters": [{ - "id": "1", - "billNum": " 10000000009", - "billSerialNum": "04", - "billLocation": "左", - "providerCode": "0709FAW-VW7XH", - "partType": "C8 DP", - "capacity": "12", - "printDate": "2021-11-27 10:12:04", - "printType": 0, - "productLine": "01", - "beginVin": "LFV2A24K2M3303677", - "endVin": "LFV2A24K2M3303792" - }, - { - "id": "2", - "billNum": " 10000000010", - "billSerialNum": "04", - "billLocation": "右", - "providerCode": "0709FAW-VW7XH", - "partType": "C8 DP", - "capacity": "12", - "printDate": "2021-11-27 10:12:04", - "printType": 0, - "productLine": "01", - "beginVin": "LFV2A24K2M3303677", - "endVin": "LFV2A24K2M3303792" - } - ] - "details": [{ - "id": "1", - "billNum": " 10000000009", - "knr": " 21321501481001", - "vin": "LFV2A24K2M3303677", - "hostSN": 85, - "vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", - "topBoxPositionNum": "01", - "topSAPMaterialNum": "30052525", - "topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", - "belowSAPMaterialNum": "30052524", - "belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" - }, - { - "id": "1", - "billNum": " 10000000009", - "knr": " 21321501481001", - "vin": "LFV2A24K2M3303680", - "hostSN": 86, - "vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", - "topBoxPositionNum": "02", - "topSAPMaterialNum": "30052525", - "topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", - "belowSAPMaterialNum": "30052524", - "belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" - }, - { - "id": "1", - "billNum": " 10000000009", - "knr": " 21321501481001", - "vin": "LFV2A24K2M3303694", - "hostSN": 87, - "vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", - "topBoxPositionNum": "03", - "topSAPMaterialNum": "30052525", - "topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", - "belowSAPMaterialNum": "30052524", - "belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" - }, - { - "id": "2", - "billNum": " 10000000010", - "knr": " 21321501481001", - "vin": "LFV2A24K2M3303713", - "hostSN": 88, - "vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", - "topBoxPositionNum": "04", - "topSAPMaterialNum": "30052525", - "topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", - "belowSAPMaterialNum": "30052524", - "belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" - }, - { - "id": "2", - "billNum": " 10000000010", - "knr": " 21321502851001", - "vin": "LFV2A24K2M3303727", - "hostSN": 89, - "vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", - "topBoxPositionNum": "05", - "topSAPMaterialNum": "30052525", - "topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", - "belowSAPMaterialNum": "30052524", - "belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" - } - - ] - -}]` //this.fileQuery.dataname = ""; console.log("打印json"); console.log(this.fileQuery.dataname); @@ -1410,8 +1209,20 @@ export default { } else { - //传给grid++接口json数据,得到返回的文件流pdfstream - this.printpdf(pdfstream);//打印我文件流 + //传给grid++接口json数据,得到返回的文件base64 + //this.fileQuery.report = "menban"; + this.fileQuery.dataname = JSON.stringify(response.item); + //this.fileQuery.dataname = ""; + console.log("打印json"); + console.log(this.fileQuery.dataname); + this.$axios + .posts( + "/Handlers/Handler1.ashx?report=zhuhuban",qs.stringify(this.fileQuery)) + .then((response) => { + console.log("获取文件base64编码"); + console.log(response); + this.printpdf(response);//打印我文件流 + }) } }) .catch(() => { @@ -1422,6 +1233,7 @@ export default { }) } + /**接口1获取打印数据,接口2获得grid++模板的base64编码 */ else { this.hostPrintQuery.beginVin = this.form.beginVin; @@ -1447,8 +1259,20 @@ export default { } else { - //传给grid++接口json数据,得到返回的文件流pdfstream - this.printpdf(pdfstream);//打印我文件流 + //传给grid++接口json数据,得到返回的文件base64 + //this.fileQuery.report = "menban"; + this.fileQuery.dataname = JSON.stringify(response.item); + //this.fileQuery.dataname = ""; + console.log("打印json"); + console.log(this.fileQuery.dataname); + this.$axios + .posts( + "/Handlers/Handler1.ashx?report=menban",qs.stringify(this.fileQuery)) + .then((response) => { + console.log("获取文件base64编码"); + console.log(response); + this.printpdf(response);//打印我文件流 + }) } }) @@ -1475,8 +1299,20 @@ export default { } else { - //传给grid++接口json数据,得到返回的文件流pdfstream - this.printpdf(pdfstream);//打印我文件流 + //传给grid++接口json数据,得到返回的文件base64 + //this.fileQuery.report = "menban"; + this.fileQuery.dataname = JSON.stringify(response.item); + //this.fileQuery.dataname = ""; + console.log("打印json"); + console.log(this.fileQuery.dataname); + this.$axios + .posts( + "/Handlers/Handler1.ashx?report=zhuhuban",qs.stringify(this.fileQuery)) + .then((response) => { + console.log("获取文件base64编码"); + console.log(response); + this.printpdf(response);//打印我文件流 + }) } }) .catch(() => { diff --git a/vue/src/views/pg-fis/basedate/productLine/index.vue b/vue/src/views/pg-fis/basedate/productLine/index.vue index 7410942b..0bf39866 100644 --- a/vue/src/views/pg-fis/basedate/productLine/index.vue +++ b/vue/src/views/pg-fis/basedate/productLine/index.vue @@ -788,11 +788,7 @@ export default { }, /** 重置按钮操作 */ resetQuery(refName) { - this.listQuery.userName = ""; - this.listQuery.name = ""; - this.listQuery.dep = ""; - this.listQuery.productLineCode = ""; - //this.$refs[refName].resetFields(); + this.$refs[refName].resetFields(); this.handleFilter(); this.getProductLine(); }, diff --git a/vue/src/views/pg-fis/basedate/r100Online/index.vue b/vue/src/views/pg-fis/basedate/r100Online/index.vue index a0076ab5..9175b1db 100644 --- a/vue/src/views/pg-fis/basedate/r100Online/index.vue +++ b/vue/src/views/pg-fis/basedate/r100Online/index.vue @@ -108,7 +108,7 @@ @keyup.enter.native="handleQuery" /> - + - + - + + + + + + + + + - + > + + @@ -421,7 +447,7 @@ export default { ], }, valueSelect: "", - OnlineTimeVale: [],//上线时间 + OnlineTimeValue: [],//上线时间 customerInfos: [], dialogOptions: [], versionValue: "", @@ -528,6 +554,7 @@ export default { dicTypeName:"派格车型", }, vehicleModelList:[],//车型list + ScanPointList:[{id:"0",label:" "},{id:"R100",label:"R100"},{id:"M100",label:"M100"}] }; }, mounted() { @@ -723,7 +750,7 @@ export default { }, /** 重置按钮操作 */ resetQuery(refName) { - this.OnlineTimeVale = []; + this.OnlineTimeValue = []; this.$refs[refName].resetFields(); this.handleQuery(); }, @@ -794,12 +821,12 @@ export default { getList() { this.listLoading = true; this.listQuery.SkipCount = (this.page - 1) * 10; - if (this.OnlineTimeVale != []) { - this.listQuery.OnlineTimeBegin = this.OnlineTimeVale[0]//this.OnlineTimeVale - // ? this.OnlineTimeVale[0] || "" + if (this.OnlineTimeValue != []) { + this.listQuery.OnlineTimeBegin = this.OnlineTimeValue[0]//this.OnlineTimeValue + // ? this.OnlineTimeValue[0] || "" // : ""; - this.listQuery.OnlineTimeEnd = this.OnlineTimeVale[1]//this.OnlineTimeVale - // ? this.OnlineTimeVale[1] || "" + this.listQuery.OnlineTimeEnd = this.OnlineTimeValue[1]//this.OnlineTimeValue + // ? this.OnlineTimeValue[1] || "" // : ""; } this.$axios