From 844fad5301596a6e94f95288c6b33cb11dd464fe Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 30 Jun 2022 15:27:00 +0800 Subject: [PATCH] 30406 --- .../components/Detail.vue | 112 +++++++++--------- .../AppPartyIntegralAudit/components/List.vue | 6 +- .../components/applyForIntegral.vue | 2 +- 3 files changed, 57 insertions(+), 63 deletions(-) diff --git a/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue b/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue index a765f9eb..5573af44 100644 --- a/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue +++ b/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue @@ -13,29 +13,26 @@ + {{ integralInfo.ruleType==0? '常规': integralInfo.ruleType==1? '阶梯': '区间'}} - - - - + + +
- + - + - + - +
@@ -54,24 +51,27 @@ - - - + + + - - + + {{ integralInfo.integralMin }} - {{ integralInfo.integralMax }} + + + - - + + - - + + - + @@ -98,15 +98,6 @@ export default { }, data() { - const validatorRules = function (rule, value, callback) { - if (value === '') { - callback(new Error('请输入联系方式')) - } else if (!/^1\d{10}$/.test(value)) { - callback(new Error('手机号格式错误')) - } else { - callback() - } - } return { total: 0, info: { @@ -115,13 +106,14 @@ export default { id: '', isShow: false, form: { - auditIntegralType: '', - auditRuleId: '', + pass: '', + integralItem: '', opinion: '', - pass: '' + auditIntegral: '', }, ruleList: [], - num: '' + scoreItem: [], + integralInfo: {}, } }, @@ -156,7 +148,14 @@ export default { getInfo(id) { this.instance.post(`/app/apppartyintegraldeclare/queryDetailById?id=${id}`).then(res => { if (res?.data) { - this.info = res.data + this.info = res.data, + this.integralInfo = res.data.integralRule + this.scoreItem = JSON.parse(res.data.integralRule.ladderRule).map(e=>{ + return { + dictName: e.viewCount, + dictValue: e.integral.toString() + } + }) } }) }, @@ -165,18 +164,32 @@ export default { this.$refs.form.clearValidate() }, + inputChange(e) { + if(e > (this.integralInfo.integralMax || this.integralInfo.integralMax)) { + this.$message.error("请输入区间范围内的分值") + this.form.auditIntegral = '' + } else { + this.form.auditIntegral = e + } + }, + + selectItem(val) { + this.form.auditIntegral = val + }, + onClose() { - this.form.auditIntegralType = '' - this.form.auditRuleId = '' - this.form.pass = '' - this.form.opinion = '' - this.id = '' + this.form = { + pass: '', + integralItem: '', + opinion: '', + auditIntegral: '', + } }, onConfirm() { this.$refs.form.validate(v => { if (v) { - this.instance.post('/app/appvillagerintegraldeclare/examine', null, { + this.instance.post('/app/apppartyintegraldeclare/examine', null, { params: { ...this.form, id: this.params.id, @@ -191,23 +204,6 @@ export default { } }) }, - - onChange(e) { - this.form.auditRuleId = '' - this.instance.post(`/app/appvillagerintegralrule/list?size=1000&classification=${e}`).then(res => { - if (res?.code == 0) { - this.ruleList = res.data.records.filter(v => v.ruleStatus === '1').map(v => { - return { - dictName: v.ruleName, - dictValue: v.id, - ruleName: v.ruleName, - integral: v.integral - } - }) - } - }) - }, - cancel(isRefresh) { this.$emit('change', { type: 'list', diff --git a/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue b/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue index 64764866..e594cb48 100644 --- a/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue +++ b/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue @@ -6,9 +6,7 @@ v-if="search.areaId" isShowBottomBorder :instance="instance" - :disabledLevel="disabledLevel" - v-model="search.areaId" - @change="changeArea"> + :disabledLevel="disabledLevel">