From 49a2df483743be8f986b09d116d4533eb3c0ed9b Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Fri, 27 Aug 2021 15:21:43 +0800 Subject: [PATCH 01/29] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E5=8A=9E?= =?UTF-8?q?=E5=8E=9F=E5=A7=8B=E8=AE=B0=E5=BD=95=E6=9F=A5=E8=AF=A2=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E6=95=B0=E6=8D=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bggl/8000/jj/azjj.vue | 2 +- src/views/bggl/components/original_db_list.vue | 14 +++++++------- src/views/bggl/yiban_list.vue | 2 +- src/views/ysjl/components/original_yb_list.vue | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/bggl/8000/jj/azjj.vue b/src/views/bggl/8000/jj/azjj.vue index ecf6738..41d57c9 100644 --- a/src/views/bggl/8000/jj/azjj.vue +++ b/src/views/bggl/8000/jj/azjj.vue @@ -753,7 +753,7 @@ export default { } let url = '' this.ysjl.bglx = 1 - this.ysjl.cjState = 'bggl' + this.ysjl.cjState = 'jybg' this.ysjl.zfState = '0' this.ysjl.jianyanxiangmu = 'azjj' this.ysjl.jlprintState = 0 diff --git a/src/views/bggl/components/original_db_list.vue b/src/views/bggl/components/original_db_list.vue index 7749288..63660af 100644 --- a/src/views/bggl/components/original_db_list.vue +++ b/src/views/bggl/components/original_db_list.vue @@ -620,13 +620,13 @@ export default { }, delReport() { // 批量删除 - this.ysjlId = '' if (this.multipleSelection.length === 0) { this.$message('请在列表选择要删除的数据。') return false } let linkname = '' let revertRenwuByYsjlIds = '' + const ids = [] for (let i = 0; i < this.multipleSelection.length; i++) { if (i === 0 && this.multipleSelection[i].flowstatus === 1) { linkname = this.multipleSelection[i].flowstatus @@ -638,10 +638,7 @@ export default { if (this.multipleSelection[i].shebeileibiedaima === '2100' && this.multipleSelection[i].jianyanleibie === 'DJ') { revertRenwuByYsjlIds = this.multipleSelection[i].id + ',' + revertRenwuByYsjlIds } - this.ysjlId = this.multipleSelection[i].id + ',' + this.ysjlId - if (i + 1 === this.multipleSelection.length) { - this.ysjlId = this.ysjlId.substring(0, this.ysjlId.length - 1) - } + ids.push(this.multipleSelection[i].id) } this.$confirm('确定删除当前选中报告?', '提示', { confirmButtonText: '确定', @@ -650,9 +647,12 @@ export default { }).then(() => { this.api({ url: '/ysjl/delReport', - method: 'post', + method: 'delete', params: { - ids: this.ysjlId + ids: ids + }, + paramsSerializer: function(params) { + return require('qs').stringify(params, { indices: false }) } }).then(() => { this.$message({ diff --git a/src/views/bggl/yiban_list.vue b/src/views/bggl/yiban_list.vue index aa2eb02..983cb9e 100644 --- a/src/views/bggl/yiban_list.vue +++ b/src/views/bggl/yiban_list.vue @@ -144,7 +144,7 @@ export default { }, methods: { getList() { - this.listQuery.cjState = 'bggl' + this.listQuery.cjState = 'jybg' this.api({ url: '/ysjl/getListDoneJybg', method: 'get', diff --git a/src/views/ysjl/components/original_yb_list.vue b/src/views/ysjl/components/original_yb_list.vue index 94b8d23..d93bb2e 100644 --- a/src/views/ysjl/components/original_yb_list.vue +++ b/src/views/ysjl/components/original_yb_list.vue @@ -143,7 +143,7 @@ export default { }, methods: { getList() { - this.listQuery.cjState = 'bggl' + this.listQuery.cjState = 'jybg' this.api({ url: '/ysjl/getListDoneYsjl', method: 'get', From 3485063e7d487aadbcfd88895342b6305d9ad728 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Fri, 27 Aug 2021 16:49:52 +0800 Subject: [PATCH 02/29] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9A=84=E7=AD=BE=E5=90=8D=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bggl/components/original_db_list.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/views/bggl/components/original_db_list.vue b/src/views/bggl/components/original_db_list.vue index 63660af..b442847 100644 --- a/src/views/bggl/components/original_db_list.vue +++ b/src/views/bggl/components/original_db_list.vue @@ -469,7 +469,7 @@ export default { dialogSignVisible: false, passForm: { password: '', - signDate: new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate() + signDate: this.formatter.dateFormat('YYYY-MM-dd') }, isBatchSign: false, // 标记是否为批量签名 listCopy: [], @@ -1048,11 +1048,6 @@ export default { } }, qianming() { - // 锅炉制造科室人员发送报告不输入签名密码 - if (this.$store.getters.departmentId === 74) { - this.sign() - return - } this.api({ url: '/user/validationPwd', method: 'post', From e4da9ef544e69e07b7fed581c4fa7056d466dd07 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Fri, 27 Aug 2021 17:09:53 +0800 Subject: [PATCH 03/29] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=91=E9=80=81?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bggl/components/original_db_list.vue | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/views/bggl/components/original_db_list.vue b/src/views/bggl/components/original_db_list.vue index b442847..1f12098 100644 --- a/src/views/bggl/components/original_db_list.vue +++ b/src/views/bggl/components/original_db_list.vue @@ -660,10 +660,6 @@ export default { type: 'success', duration: 1000, onClose: () => { - // 修改16版任务状态 - if (revertRenwuByYsjlIds) { - this.common.updRenwuState(revertRenwuByYsjlIds, 0, false) - } this.getList() // 刷新原始记录待办,原始记录已办列表,任务列表 Utils.$emit('task-list') @@ -701,7 +697,7 @@ export default { } } this.ysjlId = arr - if (this.ysjlId !== '') { + if (this.ysjlId.length) { this.dialogBohuiVisible = true } }, @@ -749,15 +745,15 @@ export default { const nblb = this.multipleSelection[0].neibuleibie const sbzldm = this.multipleSelection[0].shebeizhongleidaima const bglx = this.multipleSelection[0].bglx + this.ysjlId = [] for (let i = 0; i < this.multipleSelection.length; i++) { + this.ysjlId.push(this.multipleSelection[i].id) if (i === 0) { linkname = this.multipleSelection[i].flowstatus - this.ysjlId = this.multipleSelection[i].id if (this.multipleSelection[i].bglx === 1) { parentIds = this.multipleSelection[i].id } } else { - this.ysjlId = this.ysjlId + ',' + this.multipleSelection[i].id if (this.multipleSelection[i].bglx === 1) { parentIds = parentIds + ',' + this.multipleSelection[i].id } @@ -873,22 +869,24 @@ export default { this.$message('只能选择单人处理下一环节。') return false } - let linkname = '' - for (let i = 0; i < this.multipleSelectionLink.length; i++) { - if (i === 0) { - linkname = this.multipleSelectionLink[i].flowstatus - } - if (linkname !== this.multipleSelectionLink[i].flowstatus) { + const flowstatus = this.multipleSelection[0].flowstatus + for (let i = 1; i < this.multipleSelection.length; i++) { + if (flowstatus !== this.multipleSelection[i].flowstatus) { this.$message('请选择同环节进行发送。') return false } } - this.multipleSelectionLink[0].ysjlId = this.ysjlId const _vue = this + const link = this.multipleSelectionLink[0] this.api({ url: '/flow/send', method: 'post', - data: this.multipleSelectionLink[0] + data: { + ysjlIds: this.ysjlId, + userId: link.userId, + currentLink: flowstatus, + nextValue: link.nextValue + } }).then(() => { this.dialogFormVisible = false this.$message({ From 89e018819218f6d44aed581b23f0c233b75fc3ef Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Fri, 27 Aug 2021 17:23:09 +0800 Subject: [PATCH 04/29] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=88=97=E5=AF=B9=E5=BA=94=E6=A8=A1=E6=9D=BF=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawerDialog/index.vue | 42 +++++++++++++++++---------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/components/drawerDialog/index.vue b/src/components/drawerDialog/index.vue index bbaff9b..3ddab06 100644 --- a/src/components/drawerDialog/index.vue +++ b/src/components/drawerDialog/index.vue @@ -262,12 +262,12 @@