diff --git a/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue b/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue index db63a0e4..38916758 100644 --- a/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue +++ b/project/sanjianxi/apps/AppPartyIntegralAudit/components/Detail.vue @@ -15,8 +15,8 @@ {{ integralInfo.ruleType==0? '常规': integralInfo.ruleType==1? '阶梯': '区间'}} - - + + @@ -25,11 +25,12 @@
- + - + - + + @@ -52,8 +53,8 @@ - - + + {{ integralInfo.ruleType == 0? '+'+ integralInfo.integral : '' }} @@ -150,12 +151,17 @@ export default { if (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() - } - }) + if(res.data.integralRule.ruleType == 1) { + this.scoreItem = JSON.parse(res.data.integralRule.ladderRule)?.map(e=>{ + return { + dictName: e.viewCount, + dictValue: e.integral.toString() + } + }) + } + if(res.data.integralRule.ruleType == 0) { + this.form.auditIntegral = this.integralInfo.integral + } } }) }, @@ -187,6 +193,12 @@ export default { }, onConfirm() { + if(this.integralInfo.ruleType == 2 && this.form.pass == 1) { + this.form.integralItem = this.scoreItem.filter(e=> e.dictValue == this.form.auditIntegral)[0]?.dictName + } + if(this.integralInfo.ruleType == 0 && this.form.pass == 1) { + this.form.auditIntegral = this.integralInfo.integral + } this.$refs.form.validate(v => { if (v) { this.instance.post('/app/apppartyintegraldeclare/examine', null, { diff --git a/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue b/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue index e594cb48..0677cf21 100644 --- a/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue +++ b/project/sanjianxi/apps/AppPartyIntegralAudit/components/List.vue @@ -20,16 +20,16 @@ @change="search.current = 1, getList()"> + start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"> @@ -70,7 +70,6 @@ search: { current: 1, size: 10, - areaId: '', auditStatus: '', //审核状态 createTimeStart: '', createTimeEnd: '', @@ -89,7 +88,7 @@ { prop: 'partyName', label: '申请人' }, { prop: 'partyPhone', align: 'center', label: '联系电话' }, { prop: 'createTime', align: 'center', label: '申请时间' }, - { prop: 'integralRuleName', align: 'center', label: '积分类型'}, + { prop: 'integralRuleName', align: 'center', label: '事件名称'}, { prop: 'auditStatus', align: 'center', label: '状态', formart: v => v ? this.dict.getLabel('integralDeclareStatus', v) : '-' }, { prop: 'auditUserName', align: 'center', label: '审批人' }, { prop: 'auditTime', align: 'center', label: '审批时间' } diff --git a/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue b/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue index 57e8c652..cde71cd1 100644 --- a/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue +++ b/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue @@ -7,31 +7,29 @@ + - - - - - - - @@ -55,45 +53,42 @@ export default { {label: "剩余积分", prop: "residualIntegral", align: 'center'}, {label: "调整说明", prop: "remark"}, ], - dialog: false, form: {}, rules: { learningIntegral: [ {required: true, message: "请输入学习强国积分"}, {pattern: /^\d+$/g, message: "请输入正整数"} ] - } + }, + id: '', + name: '', + nowIntegral: '', + page: {current: 1, size: 10}, + total: 0 } }, methods: { getDetail() { - let {id} = this.$route.query - this.instance.post("/app/appparty/getPartyIntegralDetail", null, { - params: {id} + let { id, name, nowIntegral } = this.$route.query + this.instance.post("/app/apppartyintegralinfo/list", null, { + params: { + partyId: id, + ...this.page, + total: this.total + } }).then(res => { if (res?.data) { - this.detail = res.data + this.detailTable = res.data.records + this.total = res.data.total + this.name = name + this.nowIntegral = nowIntegral + this.id = id } }) }, back() { this.$router.push({}) }, - submit() { - this.$refs.DialogForm.validate(v => { - if (v) { - this.instance.post("/app/appparty/editLearningIntegral", null,{ - params:this.form - }).then(res => { - if (res?.code == 0) { - this.$message.success("提交成功!") - this.dialog = false - this.getDetail() - } - }) - } - }) - }, handleEditLearningIntergral(partyMemberId) { this.dialog = true this.form = {partyMemberId} diff --git a/project/sanjianxi/apps/AppPartyMemberScore/psList.vue b/project/sanjianxi/apps/AppPartyMemberScore/psList.vue index 2132e11a..f8ed93df 100644 --- a/project/sanjianxi/apps/AppPartyMemberScore/psList.vue +++ b/project/sanjianxi/apps/AppPartyMemberScore/psList.vue @@ -8,6 +8,7 @@
统计周期
+ start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"> @@ -27,7 +27,6 @@ export default { props: { instance: Function, dict: Object, - permissions: Function }, computed: { diff --git a/project/sanjianxi/apps/AppPartyScoreManage/pointsDetails.vue b/project/sanjianxi/apps/AppPartyScoreManage/pointsDetails.vue index 8cd4d724..8c1c3341 100644 --- a/project/sanjianxi/apps/AppPartyScoreManage/pointsDetails.vue +++ b/project/sanjianxi/apps/AppPartyScoreManage/pointsDetails.vue @@ -5,7 +5,7 @@