From 508e38976e2740435c5405bd7e5f0a4c71acc9ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 28 Mar 2024 11:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=A0=87=E5=87=86/=E8=AF=91?= =?UTF-8?q?=E6=96=87=E8=8E=B7=E5=8F=96=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/addModal.vue | 31 ++--- .../index.vue | 107 ++++++++++++++++-- 2 files changed, 113 insertions(+), 25 deletions(-) diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue index c94d14dd4..ad6004777 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue @@ -42,15 +42,15 @@ {{ opt.label }} @@ -61,15 +61,15 @@ {{ opt.label }} @@ -203,15 +203,18 @@ export default { submit () { this.$refs.addFormRef.validate((valid) => { if (valid) { + this.isSubmit = true const url = this.id ? this.url.editUrl : this.url.addUrl this.$http.postData(url, this.StandardApplyForEO, { _this: this }, res => { if (res.ok) { this.$emit('updateList') + this.$message.success(res.message) this.visible = false }else{ this.$message.warning(res.message) } + this.isSubmit = false }) } }) diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue index 7af53e6c4..f13767eee 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue @@ -4,7 +4,20 @@
- + + + {{ opt.label }} + + @@ -35,7 +48,20 @@ /> - + + + {{ opt.label }} + + 查询 @@ -173,7 +199,26 @@ export default { url: { getList: '/lawss/standardApplyFor/queryByPage', updateState: '/lawss/standardApplyFor/batchUpdateStatus' - } + }, + typeList: [], + statusList: [ + { + label: '通过', + value: 'pass', + }, + { + label: '驳回', + value: 'refuse', + }, + { + label: '待审批', + value: 'pendingApproval', + }, + { + label: '草稿', + value: 'draft', + } + ], } }, mounted () { @@ -182,8 +227,17 @@ export default { this.$router.replace({ query: { ...this.$route.query, tag: undefined } }) } this.getList() + this.getDicTypeListCode() }, methods: { + getDicTypeListCode () { + this.$http.get('sys/dictype/getDicTypeListCode', '', { + _this: this + }, res => { + this.typeList = res.data.BZJYWTYPE // 标准类别 + }, e => { + }) + }, searchData () { this.page = 1 this.getList() @@ -209,6 +263,8 @@ export default { this.StandardApplyForEO = [] this.total = 0 } + this.selectedList = [] + this.$refs.selections.clearSelection() this.tableLoading = false }) }, @@ -224,11 +280,26 @@ export default { return } const ids = id.join(',') - this.$http.postData(this.url.updateState, { status: 'pass', ids }, { _this: this }, res => { - if(res.ok) { - this.$message.success('操作成功') - } + this.$confirm('确定通过?', '提示', { + confirmButtonText: '确定', + confirmButtonClass: 'common-button-primary', + cancelButtonText: '取消', + type: 'warning', + roundButton: false + }).then(() => { + this.$http.postData(this.url.updateState, { status: 'pass', ids: ids }, { _this: this }, res => { + if (res.ok) { + this.$message.success('操作成功') + this.getList() + } else { + this.$message.warning(res.message) + } + }) + }).catch(() => { + // 取消删除,清空选择 + this.$refs.selections.clearSelection() }) + }, batchOverrule (id) { if (id.length === 0) { @@ -240,10 +311,24 @@ export default { return } const ids = id.join(',') - this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => { - if(res.ok) { - this.$message.success('操作成功') - } + this.$confirm('确定驳回?', '提示', { + confirmButtonText: '确定', + confirmButtonClass: 'common-button-primary', + cancelButtonText: '取消', + type: 'warning', + roundButton: false + }).then(() => { + this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => { + if (res.ok) { + this.$message.success('操作成功') + this.getList() + } else { + this.$message.warning(res.message) + } + }) + }).catch(() => { + // 取消删除,清空选择 + this.$refs.selections.clearSelection() }) },