|
@@ -1,12 +1,20 @@
|
|
|
<template>
|
|
|
<el-dialog :title="title" :visible.sync="dialogVisible" width="80%" :close-on-click-modal="false" center @close="close">
|
|
|
<div>
|
|
|
+ <div class="step">
|
|
|
+ <div class="title">知会阶段:</div>
|
|
|
+ <div class="step-content">
|
|
|
+ <div class="step-content-item" :class="{ active: setp == 1 }" @click="changStep(1)">一阶段</div>
|
|
|
+ <div class="step-content-item" :class="{ active: setp == 2 }" @click="changStep(2)">二阶段</div>
|
|
|
+ <div class="step-content-item" :class="{ active: setp == 3 }" @click="changStep(3)">三阶段</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form">
|
|
|
<el-form :model="form" :rules="rules" ref="ruleFormRef" label-width="120px" :disabled="formDisabled">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="执行包信息" prop="packageId">
|
|
|
- <el-select class="w100" v-model="form.packageId" placeholder="请选择执行包信息" @change="pkgChange">
|
|
|
+ <el-select filterable class="w100" v-model="form.packageId" placeholder="请选择执行包信息" @change="pkgChange">
|
|
|
<el-option v-for="item in redemptionPkgList" :label="item.scorePackageName" :value="item.id" :key="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -23,6 +31,18 @@
|
|
|
<el-input v-model="form.pkgScore" disabled />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="审核通过积分值" prop="passedByNode6ScoreSum">
|
|
|
+ <el-input v-model="form.passedByNode6ScoreSum" disabled />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12" v-if="setp !== 1">
|
|
|
+ <el-form-item label="监督扣减分值" prop="supervisionDeductScore">
|
|
|
+ <el-input v-model="form.supervisionDeductScore" disabled />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="可兑付分值" prop="availRdpScore">
|
|
|
<div class="percent-number">
|
|
@@ -159,6 +179,7 @@ import {
|
|
|
} from '@/api/distributeVoucher.js';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
import Table1 from './table/table1.vue';
|
|
|
+
|
|
|
export default {
|
|
|
components: { Table1 },
|
|
|
data() {
|
|
@@ -167,12 +188,15 @@ export default {
|
|
|
type: '',
|
|
|
currentRow: {},
|
|
|
title: '新增',
|
|
|
+ setp: 1,
|
|
|
formDisabled: false,
|
|
|
redemptionPkgList: [],
|
|
|
form: {
|
|
|
packageId: '',
|
|
|
pkgName: '',
|
|
|
pkgScore: '',
|
|
|
+ passedByNode6ScoreSum: '',
|
|
|
+ availRdpScore: '',
|
|
|
totalAmount: '',
|
|
|
currentRedemptionScore: '',
|
|
|
currentRedemptionRate: ''
|
|
@@ -204,6 +228,10 @@ export default {
|
|
|
this.getRedemptionPkgListApi();
|
|
|
},
|
|
|
methods: {
|
|
|
+ changStep(step) {
|
|
|
+ this.setp = step;
|
|
|
+ this.getRedemptionPkgListApi();
|
|
|
+ },
|
|
|
totalPercentageChange(nums) {
|
|
|
this.totalPercentageNums = nums;
|
|
|
if (this.form.currentRedemptionScore) {
|
|
@@ -212,7 +240,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getRedemptionPkgListApi() {
|
|
|
- const res = await redemptionPkgListApi();
|
|
|
+ const res = await redemptionPkgListApi(this.setp);
|
|
|
this.redemptionPkgList = res.data.data;
|
|
|
},
|
|
|
show(type) {
|
|
@@ -228,9 +256,22 @@ export default {
|
|
|
if (type == 3 && row.noticeState != 'CONFIRM') {
|
|
|
this.redemptionNoticeRead(row.noticeId);
|
|
|
}
|
|
|
+ let arr = [
|
|
|
+ {
|
|
|
+ id: row.packageId,
|
|
|
+ scorePackageName: row.packageName
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ this.redemptionPkgList = arr;
|
|
|
+ this.form.packageId = row.packageId;
|
|
|
this.formDisabled = true;
|
|
|
this.form.pkgName = row.packageName;
|
|
|
this.form.pkgScore = row.packageScore;
|
|
|
+ this.setp = row.step;
|
|
|
+ this.form.availRdpScore = row.availRdpScore;
|
|
|
+
|
|
|
+ this.form.supervisionDeductScore = row.supervisionDeductScore;
|
|
|
+ this.form.passedByNode6ScoreSum = row.passedByNode6ScoreSum;
|
|
|
this.form.currentRedemptionScore = row.currentRedemptionScore;
|
|
|
this.form.currentRedemptionRate = row.currentRedemptionRate;
|
|
|
|
|
@@ -241,11 +282,23 @@ export default {
|
|
|
},
|
|
|
review(row, type) {
|
|
|
console.log('row', row);
|
|
|
+ let arr = [
|
|
|
+ {
|
|
|
+ id: row.packageId,
|
|
|
+ scorePackageName: row.packageName
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ this.redemptionPkgList = arr;
|
|
|
|
|
|
this.type = type;
|
|
|
this.title = '审核';
|
|
|
+ this.form.supervisionDeductScore = row.supervisionDeductScore;
|
|
|
this.currentRow = row;
|
|
|
this.formDisabled = true;
|
|
|
+ this.setp = row.step;
|
|
|
+ this.form.packageId = row.packageId;
|
|
|
+ this.form.availRdpScore = row.availRdpScore;
|
|
|
+ this.form.passedByNode6ScoreSum = row.passedByNode6ScoreSum;
|
|
|
this.form.pkgName = row.packageName;
|
|
|
this.form.pkgScore = row.packageScore;
|
|
|
this.form.currentRedemptionScore = row.currentRedemptionScore;
|
|
@@ -265,7 +318,16 @@ export default {
|
|
|
this.detailInfo = res.data.data;
|
|
|
this.form.pkgName = res.data.data.pkgName;
|
|
|
this.form.pkgScore = res.data.data.pkgScore;
|
|
|
- this.form.availRdpScore = res.data.data.availRdpScore > 0 ? res.data.data.availRdpScore : 0;
|
|
|
+ this.form.passedByNode6ScoreSum = res.data.data.passedByNode6ScoreSum;
|
|
|
+ this.form.supervisionDeductScore = res.data.data.supervisionDeductScore;
|
|
|
+ if (this.setp === 1) {
|
|
|
+ this.form.availRdpScore = res.data.data.availRdpScore > 0 ? res.data.data.availRdpScore : 0;
|
|
|
+ } else if (this.setp === 2) {
|
|
|
+ this.form.availRdpScore = res.data.data.step2AvailRdpScore > 0 ? res.data.data.step2AvailRdpScore : 0;
|
|
|
+ } else {
|
|
|
+ this.form.availRdpScore = res.data.data.step3AvailRdpScore > 0 ? res.data.data.step3AvailRdpScore : 0;
|
|
|
+ }
|
|
|
+
|
|
|
this.$refs.table1.initInfo(this.detailInfo);
|
|
|
}
|
|
|
},
|
|
@@ -273,10 +335,13 @@ export default {
|
|
|
const items = this.$refs.table1.returnInfo();
|
|
|
const obj = {
|
|
|
packageId: this.detailInfo.id,
|
|
|
- step: this.detailInfo.nextStep,
|
|
|
+ step: this.setp,
|
|
|
fromEntId: this.detailInfo.fromEntId,
|
|
|
toEntId: this.detailInfo.toEntId,
|
|
|
items: items,
|
|
|
+ passedByNode6ScoreSum: this.form.passedByNode6ScoreSum,
|
|
|
+ supervisionDeductScore: this.form.supervisionDeductScore,
|
|
|
+ availRdpScore: this.form.availRdpScore,
|
|
|
currentRedemptionScore: this.form.currentRedemptionScore,
|
|
|
currentRedemptionRate: this.form.currentRedemptionRate,
|
|
|
totalAmount: this.form.totalAmount,
|
|
@@ -378,6 +443,37 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
+.step {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 15px;
|
|
|
+ padding-left: 35px;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #333;
|
|
|
+ line-height: 18px;
|
|
|
+ margin-right: 5px;
|
|
|
+ }
|
|
|
+ .step-content {
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .step-content-item {
|
|
|
+ margin-right: 10px;
|
|
|
+ padding: 5px;
|
|
|
+ line-height: 18px;
|
|
|
+ border: 1px solid #dcdfe6;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ background: #6eb657;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.percent-number {
|
|
|
display: flex;
|
|
|
align-items: center;
|