From 37ae77f3b1b8533b3fd03acfcf9276741875ef7c Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Sun, 29 Aug 2021 19:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=8A=A5=E5=91=8A=E5=8F=91=E6=94=BE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bggl/components/original_db_list.vue | 62 ++++--------------- src/views/print/1000/grant_create.vue | 10 --- src/views/print/1000/print_list.vue | 26 -------- src/views/print/2000/print_list.vue | 26 -------- src/views/print/3000/print_list.vue | 32 ---------- src/views/print/4000/print_list.vue | 35 ----------- src/views/print/5000/print_list.vue | 17 ----- src/views/print/8000/print_list.vue | 23 ------- src/views/print/grant_list.vue | 1 - 9 files changed, 13 insertions(+), 219 deletions(-) diff --git a/src/views/bggl/components/original_db_list.vue b/src/views/bggl/components/original_db_list.vue index 4e29469..b3863cb 100644 --- a/src/views/bggl/components/original_db_list.vue +++ b/src/views/bggl/components/original_db_list.vue @@ -895,10 +895,21 @@ export default { data: { ids: ysjlId, generateType: 'END' + }, + paramsSerializer: function(data) { + return qs.stringify(data, { indices: false }) + } + }) + this.preview({ + url: '/print/batchGeneratePdfHgz', + method: 'get', + params: { + ysjlIds: ysjlId + }, + paramsSerializer: function(params) { + return qs.stringify(params, { indices: false }) } }) - // 发起消红请求 - this.cleanRed(ysjls) } } }) @@ -964,53 +975,6 @@ export default { }) } }, - cleanRed(ysjls) { - if (ysjls != null && ysjls.length > 0) { - this.api({ - url: '/template/getById', - method: 'get', - params: { - id: ysjls[0].modelId - } - }).then(data => { - if (data.cleanState) { - const cleanData = [] - ysjls.forEach(ysjl => { - // 排除使用单位标注了测试的报告 - if (ysjl.shiyongdanwei.indexOf('测试') === -1) { - const data = {} - data.shiyongdanwei = ysjl.shiyongdanwei - data.shebeizhonglei = ysjl.shebeizhongleidaima - // 获取内部类别对应中文名称 - data.jianyanleibie = this.formatter.formatterCategory(null, null, ysjl.neibuleibie) - data.zhucedaima = ysjl.zhucedaima - data.shiyongdengjibianhao = ysjl.shiyongdengjibianhao - data.jianyanriqi = ysjl.jianyanjieshuriqi - data.xiacijianyanriqi = ysjl.xiacijianyanriqi - data.jianyanjielun = ysjl.jianyanjielun - data.baogaobianhao = ysjl.baogaobianhao - data.quxian = ysjl.quhuamingcheng - data.jianyanjigou = '济南市特种设备检验研究院' - data.shi = '济南市' - cleanData.push(data) - } - }) - if (cleanData.length > 0) { - this.apisjse({ - url: '/baseInfo/chaoqijiekoupi', - method: 'post', - headers: { 'content-type': 'application/x-www-form-urlencoded' }, - data: qs.stringify({ - loginname: 'jntjysjgx', - password: '123', - jiekous: JSON.stringify(cleanData) - }) - }) - } - } - }) - } - }, qianming() { this.api({ url: '/user/validationPwd', diff --git a/src/views/print/1000/grant_create.vue b/src/views/print/1000/grant_create.vue index 607f4ea..7d4ff7b 100644 --- a/src/views/print/1000/grant_create.vue +++ b/src/views/print/1000/grant_create.vue @@ -92,16 +92,6 @@ - - - - - - - - -