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 @@ - - - - - - - - -