From d5c4d70952111d5dffdc63657f165d5239b6a442 Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Mon, 16 Aug 2021 10:56:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=85=8D=E7=BD=AE=E4=BE=9D?= =?UTF-8?q?=E6=97=A7=E4=BF=AE=E6=94=B9=E9=99=84=E8=A1=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ysjl/3000/common/index.vue | 158 +++++++++++++++-------- src/views/ysjl/3000/dj/common/zdftFb.vue | 35 ++++- src/views/ysjl/3000/dj/yeyin/index.vue | 9 +- src/views/ysjl/3000/dj/zdft/index.vue | 12 +- 4 files changed, 142 insertions(+), 72 deletions(-) diff --git a/src/views/ysjl/3000/common/index.vue b/src/views/ysjl/3000/common/index.vue index f33db5f..eaf4dad 100644 --- a/src/views/ysjl/3000/common/index.vue +++ b/src/views/ysjl/3000/common/index.vue @@ -188,7 +188,10 @@ - + - + - + - + - + 符合 @@ -512,10 +526,7 @@ - + ° @@ -557,7 +568,10 @@ - 号检验专用工具箱 + 号检验专用工具箱 @@ -582,7 +596,7 @@ - + - + @@ -833,6 +864,7 @@ export default { if (fubiao[2]) { this.fubiao3 = fubiao[2] } + console.log(this.fubiao1) }) }, getYsjl() { @@ -856,11 +888,9 @@ export default { }, getParam() { const id = this.ysjlId || this.$route.query.templateId - this.ysjlService - .getParam(id, this.$route.query.sbzldm) - .then((data) => { - this.param = data - }) + this.ysjlService.getParam(id, this.$route.query.sbzldm).then((data) => { + this.param = data + }) }, judgeRepeat(bianhao, id) { this.api({ @@ -880,18 +910,22 @@ export default { }, getJyxm(sort) { if (this.$route.query.state === 'update') { - this.jyxmService.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort).then((data) => { - this.bgfyData = data - this.tableJs.getData(this.cols, this.rows, this.bgfyData) - }) + this.jyxmService + .getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort) + .then((data) => { + this.bgfyData = data + this.tableJs.getData(this.cols, this.rows, this.bgfyData) + }) } else { - this.jyxmService.getCyJyxm(this.$route.query.templateId, sort).then((data) => { - data.forEach(row => { - row.dicJyxmId = row.id + this.jyxmService + .getCyJyxm(this.$route.query.templateId, sort) + .then((data) => { + data.forEach((row) => { + row.dicJyxmId = row.id + }) + this.bgfyData = data + this.tableJs.getData(this.cols, this.rows, this.bgfyData) }) - this.bgfyData = data - this.tableJs.getData(this.cols, this.rows, this.bgfyData) - }) } }, getDicJyxm(sort) { @@ -936,21 +970,21 @@ export default { customClearSign(fieldName) { const data = { id: - this.ysjl.jianyanrenyuan && - this.common - .deleteElement( - this.ysjl.jianyanrenyuan.split(','), - String(this.$store.getters.userId) - ) - .join(','), + this.ysjl.jianyanrenyuan && + this.common + .deleteElement( + this.ysjl.jianyanrenyuan.split(','), + String(this.$store.getters.userId) + ) + .join(','), name: - this.jianyanrenyuan && - this.common - .deleteElement( - this.jianyanrenyuan.split(','), - this.$store.getters.nickname - ) - .join(','), + this.jianyanrenyuan && + this.common + .deleteElement( + this.jianyanrenyuan.split(','), + this.$store.getters.nickname + ) + .join(','), fieldName: fieldName } this.signNameValue(data) @@ -988,14 +1022,20 @@ export default { this.save(operation, 'post', tableData, fubiao) } else if (operation === 'build') { this.ysjl.baogaobianhao = this.ysjl.jilubianhao - if (this.ysjl.jilubianhao && this.ysjl.jilubianhao.indexOf('COPY') > -1) { + if ( + this.ysjl.jilubianhao && + this.ysjl.jilubianhao.indexOf('COPY') > -1 + ) { this.$message({ type: 'error', message: '请先修改报告编号,不允许携带COPY标志生成报告!' }) return false } - if (this.ysjl.jianyanrenyuan === null || this.ysjl.jianyanrenyuan === '') { + if ( + this.ysjl.jianyanrenyuan === null || + this.ysjl.jianyanrenyuan === '' + ) { this.$message({ type: 'error', message: '请先签名再生成报告!' @@ -1004,7 +1044,9 @@ export default { } for (let i = 0; i < this.bgfyData.length; i++) { if (!this.bgfyData[i].jianjianyuan || !this.bgfyData[i].querenriqi) { - this.$message.error('请将检验项目中的监检人员及监检日期填写完毕,再生成报告!') + this.$message.error( + '请将检验项目中的监检人员及监检日期填写完毕,再生成报告!' + ) return false } } @@ -1082,15 +1124,17 @@ export default { if (!this.pic) { return false } - this.uploadService.uploadPhxsBase64File({ - ysjlId: this.ysjl.id, - base64File: this.pic, - shebeizhongleidaima: this.ysjl.shebeizhongleidaima - }).then(() => { - if (operation !== 'add') { - this.buildSaveData(operation) - } - }) + this.uploadService + .uploadPhxsBase64File({ + ysjlId: this.ysjl.id, + base64File: this.pic, + shebeizhongleidaima: this.ysjl.shebeizhongleidaima + }) + .then(() => { + if (operation !== 'add') { + this.buildSaveData(operation) + } + }) }, /** diff --git a/src/views/ysjl/3000/dj/common/zdftFb.vue b/src/views/ysjl/3000/dj/common/zdftFb.vue index 136f77c..b7fe5fd 100644 --- a/src/views/ysjl/3000/dj/common/zdftFb.vue +++ b/src/views/ysjl/3000/dj/common/zdftFb.vue @@ -1,6 +1,6 @@