From 3cef36cf6eb0fb50cf93087c02853a672fb6f58f Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 17 Feb 2022 11:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppIntegralAudit/AppIntegralAudit.vue | 4 +- src/apps/AppIntegralAudit/detail.vue | 84 +++++++++++++++---- 2 files changed, 69 insertions(+), 19 deletions(-) diff --git a/src/apps/AppIntegralAudit/AppIntegralAudit.vue b/src/apps/AppIntegralAudit/AppIntegralAudit.vue index 7d2f13e3..211da132 100644 --- a/src/apps/AppIntegralAudit/AppIntegralAudit.vue +++ b/src/apps/AppIntegralAudit/AppIntegralAudit.vue @@ -20,7 +20,7 @@
{{ item.createTime }}
-
{{ $dict.getLabel('integralDeclareStatus',item.auditStatus) }}
+
{{ $dict.getLabel('integralDeclareStatus',item.auditStatus) }}
+20
@@ -68,7 +68,9 @@ export default { this.$http.post('/app/appvillagerintegraldeclare/list',null,{ params: { current: 1, + size: 10, description : this.keyword, + applyIntegralType: this.applyIntegralType, auditStatus: this.tabIndex== 0 ? "" : this.tabIndex == 1 ? 0 : this.tabIndex == 2 ? "1|2" : '' } }).then(res => { diff --git a/src/apps/AppIntegralAudit/detail.vue b/src/apps/AppIntegralAudit/detail.vue index 0f310398..6be7ce5a 100644 --- a/src/apps/AppIntegralAudit/detail.vue +++ b/src/apps/AppIntegralAudit/detail.vue @@ -8,7 +8,7 @@
{{ form.createTime }}
-
+
{{ form.areaId }}
@@ -34,23 +34,22 @@
-
积分类别
-
- +
积分类别
+
{{ $dict.getLabel('atWillReportType',data.auditIntegralType) || '请选择' }}
-
-
积分事项
-
- {{ form.auditIntegralType || '请选择' }} +
+
积分事项
+
+ {{ data.ruleName || '请选择' }}
-
积分方式
-
+20
+
积分方式
+
{{ data.integral }}
@@ -63,8 +62,9 @@ - + +
@@ -126,9 +126,14 @@ export default { reason: '', form: {}, data: { + id: '', auditIntegralType: '', - auditOpinion: '', - } + // auditIntegralName: '', + auditOpinion: '', // 不通过理由 + ruleName: '', + integral: '' + }, + typeList: [], } }, onLoad(o) { @@ -142,16 +147,47 @@ export default { getDetail() { this.$http.post(`/app/appvillagerintegraldeclare/queryDetailById?id=${this.id}`).then(res => { if(res.code==0) { - this.form = this.current > 1? [...this.form, ...res.data] : res.data + this.form = res.data this.$forceUpdate() } }) }, + getType() { + if(!this.data.auditIntegralType) { + return this.$u.toast('请选择积分类别') + } else { + this.isShowOption=true + this.$http.post(`/app/appvillagerintegralrule/list?current=1&size=10&auditIntegralType=${this.data.auditIntegralType}`).then(res=>{ + if(res.code == 0){ + this.typeList = res.data.records + // this.data.id = res.data.records.id + } + }) + } + }, + typeChange(e) { + // console.log(e); + this.data.ruleName = e[0].label + this.data.integral = e[0].value + }, integralType(e) { - console.log(e); - this.data.auditIntegralType = e[0].label + // this.data.auditIntegralName = e[0].label + this.data.auditIntegralType = e[0].value }, submit() { + if(this.opts==1){ + if(!this.data.auditIntegralType) { + return this.$u.toast('请选择积分类别') + } + if(!this.data.ruleName) { + return this.$u.toast('请选择积分事项') + } + } + if(this.opts==0){ + if(!this.data.auditOpinion) { + return this.$u.toast('请输入不通过理由') + } + } this.$http.post('/app/appvillagerintegraldeclare/examine',null,{ params: { id: this.id, @@ -160,6 +196,9 @@ export default { } }).then(res=>{ console.log(res); + this.$u.toast('保存成功') + }).catch(err=>{ + console.log(err); }) } }, @@ -275,10 +314,20 @@ export default { background: #FFFFFF; .integral-item { + width: 100%; display: flex; justify-content: space-between; + box-sizing: border-box; padding: 34px 0; border-bottom: 1px solid #D8DDE6; + + .label { + width: 30%; + } + .value { + width: 70%; + text-align: right; + } } .integral-item:last-child { @@ -338,7 +387,6 @@ export default { } - .saveBtn { position: fixed; bottom: 0;