fix(global): 修复删除无用接口后导致的报错
This commit is contained in:
parent
37292af72b
commit
310811a8bd
|
@ -8,7 +8,7 @@
|
|||
<div v-if="topList[8].changed==true">
|
||||
<div class="thetopbox">
|
||||
<div class="title">
|
||||
<div class="lines"></div>
|
||||
<div class="lines" />
|
||||
<div class="title-style">{{ '分红资金池配置' }}</div>
|
||||
</div>
|
||||
<el-form style="margin-top: 15px;margin-left: 22px" label-width="100px">
|
||||
|
@ -17,10 +17,10 @@
|
|||
<el-form-item :label="'选择日期'" prop="memberName">
|
||||
<el-date-picker
|
||||
v-model="tableData.settleMonth"
|
||||
@change="changeTimes"
|
||||
type="month"
|
||||
placeholder=""
|
||||
value-format="yyyy-MM"
|
||||
@change="changeTimes"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -29,8 +29,8 @@
|
|||
<el-col :span="6">
|
||||
<el-form-item :label="'预计发放总数'" prop="memberName">
|
||||
<el-input
|
||||
disabled="disabled"
|
||||
v-model="tableData.expectShareTotal"
|
||||
disabled="disabled"
|
||||
clearable
|
||||
placeholder=""
|
||||
/>
|
||||
|
@ -41,8 +41,8 @@
|
|||
<el-col :span="6">
|
||||
<el-form-item :label="'实际发放总数'" prop="memberName">
|
||||
<el-input
|
||||
disabled="disabled"
|
||||
v-model="tableData.realShareTotal"
|
||||
disabled="disabled"
|
||||
clearable
|
||||
placeholder=""
|
||||
/>
|
||||
|
@ -73,7 +73,7 @@
|
|||
</div>
|
||||
<div class="main">
|
||||
<div class="title" style="margin-bottom: 20px">
|
||||
<div class="lines"></div>
|
||||
<div class="lines" />
|
||||
<div class="title-style">{{ '分红实发配置' }}</div>
|
||||
</div>
|
||||
<div class="maintable">
|
||||
|
@ -101,15 +101,14 @@
|
|||
width="100"
|
||||
prop="pkAwardsVal"
|
||||
:label="'真实奖衔'"
|
||||
>
|
||||
</el-table-column>
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="promoteTotal"
|
||||
:label="'晋升总数'"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input class="inputs" v-model="scope.row.promoteTotal" disabled="disabled" />
|
||||
<el-input v-model="scope.row.promoteTotal" class="inputs" disabled="disabled" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -118,7 +117,7 @@
|
|||
:label="'达标人数'"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input class="inputs" v-model="scope.row.reachTotal" disabled="disabled" />
|
||||
<el-input v-model="scope.row.reachTotal" class="inputs" disabled="disabled" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -127,7 +126,7 @@
|
|||
:label="'预发金额'+`(${isOther()})`"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input class="inputs" v-model="scope.row.expectShareIncome" disabled="disabled" />
|
||||
<el-input v-model="scope.row.expectShareIncome" class="inputs" disabled="disabled" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -136,7 +135,7 @@
|
|||
:label="'预发合计'+`(${isOther()})`"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input class="inputs" v-model="scope.row.expectShareSubtotal" disabled="disabled" />
|
||||
<el-input v-model="scope.row.expectShareSubtotal" class="inputs" disabled="disabled" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -145,7 +144,7 @@
|
|||
:label="'实发金额'+'($)'"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input class="inputs" v-model="scope.row.realShareIncome" type="number" />
|
||||
<el-input v-model="scope.row.realShareIncome" class="inputs" type="number" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -154,22 +153,26 @@
|
|||
:label="'实发合计'+`(${isOther()})`"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input class="inputs" v-model="scope.row.realShareSubtotal" disabled="disabled" />
|
||||
<el-input v-model="scope.row.realShareSubtotal" class="inputs" disabled="disabled" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div style="margin: 0 auto">
|
||||
<el-button class="thebtn"
|
||||
style="background-color: #ccc;color: #fff"
|
||||
v-hasButtons="['bonusConfigReset']"
|
||||
@click="cancelCz"> {{ '重置' }}</el-button>
|
||||
<el-button type="primary"
|
||||
style="margin-left: 40px"
|
||||
class="thebtn"
|
||||
v-hasButtons="['bonusConfigConfirm']"
|
||||
@click="saveSubmit"> {{ '确认' }}</el-button>
|
||||
<el-button
|
||||
v-hasButtons="['bonusConfigReset']"
|
||||
class="thebtn"
|
||||
style="background-color: #ccc;color: #fff"
|
||||
@click="cancelCz"
|
||||
> {{ '重置' }}</el-button>
|
||||
<el-button
|
||||
v-hasButtons="['bonusConfigConfirm']"
|
||||
type="primary"
|
||||
style="margin-left: 40px"
|
||||
class="thebtn"
|
||||
@click="saveSubmit"
|
||||
> {{ '确认' }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -180,9 +183,11 @@
|
|||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getMemberList"
|
||||
/>
|
||||
<policyMoneyDetails ref="policyMoneyDetails"
|
||||
@handleClose="handleClose"
|
||||
:isPolicy="isPolicy"></policyMoneyDetails>
|
||||
<policyMoneyDetails
|
||||
ref="policyMoneyDetails"
|
||||
:is-policy="isPolicy"
|
||||
@handleClose="handleClose"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -191,7 +196,6 @@
|
|||
import topBar from '@/components/topBar'
|
||||
import policyMoneyDetails from '@/views/information/policyMoney/policyMoneyDetails'
|
||||
import {
|
||||
getMemberList,
|
||||
getvertexValue,
|
||||
getmemberTeamList,
|
||||
getaccountStatus,
|
||||
|
@ -199,8 +203,7 @@ import {
|
|||
getattestation,
|
||||
getYesnouploadsList,
|
||||
getorderStatus,
|
||||
getAgentGrade,
|
||||
getDealerYesno, memberRealInfo
|
||||
getAgentGrade
|
||||
} from '@/api/member'
|
||||
import {
|
||||
getgradeRanglist,
|
||||
|
@ -209,10 +212,10 @@ import {
|
|||
} from '@/api/level'
|
||||
import { findAllArea } from '@/api/product'
|
||||
import { areaList } from '@/api/site'
|
||||
import {getEnableStatus, getEYesNoList} from "@/api/configManage";
|
||||
import {policyList, queryShareBonus, saveShareBonus} from "@/api/specialBusiness";
|
||||
import {Message} from "element-ui";
|
||||
import {getRouters} from "@/api/settle";
|
||||
import { getEnableStatus, getEYesNoList } from '@/api/configManage'
|
||||
import { policyList, queryShareBonus, saveShareBonus } from '@/api/specialBusiness'
|
||||
import { Message } from 'element-ui'
|
||||
import { getRouters } from '@/api/settle'
|
||||
import { isOther } from '@/utils/numberToCurrency'
|
||||
export default {
|
||||
name: 'Jcyw',
|
||||
|
@ -234,47 +237,47 @@ export default {
|
|||
topList: [
|
||||
{
|
||||
name: '空单注册',
|
||||
path: "emptyOrder",
|
||||
changed:false,
|
||||
path: 'emptyOrder',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改直推',
|
||||
path: "modifyDirectpush",
|
||||
changed:false,
|
||||
path: 'modifyDirectpush',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改安置',
|
||||
path: "modifyPlacement",
|
||||
changed:false,
|
||||
path: 'modifyPlacement',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '注水业绩',
|
||||
path: "waterPv",
|
||||
changed:false,
|
||||
path: 'waterPv',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改编号',
|
||||
path: "modifyCode",
|
||||
changed:false,
|
||||
path: 'modifyCode',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '真实奖衔控制',
|
||||
path: "awardControl",
|
||||
changed: false,
|
||||
path: 'awardControl',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改结算国家',
|
||||
path: "modifySettleCountry",
|
||||
changed:false,
|
||||
path: 'modifySettleCountry',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '政策币业务',
|
||||
path: "policyMoney",
|
||||
changed:false,
|
||||
path: 'policyMoney',
|
||||
changed: false
|
||||
}, {
|
||||
name: '分红配置',
|
||||
path: 'bonusConfig',
|
||||
changed:false,
|
||||
changed: false
|
||||
}
|
||||
],
|
||||
colums: [],
|
||||
|
@ -311,8 +314,8 @@ export default {
|
|||
|
||||
sexList: [],
|
||||
cardList: [],
|
||||
getStatusList:[],
|
||||
agreeList:[],
|
||||
getStatusList: [],
|
||||
agreeList: [],
|
||||
creationTime: ''
|
||||
}
|
||||
},
|
||||
|
@ -322,23 +325,23 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
var date=new Date;
|
||||
var year=date.getFullYear();
|
||||
var month=date.getMonth()+1;
|
||||
month =(month<10 ? "0"+month:month);
|
||||
let dates = year + '-' + month
|
||||
this.queryParams.settleMonth =dates
|
||||
var date = new Date()
|
||||
var year = date.getFullYear()
|
||||
var month = date.getMonth() + 1
|
||||
month = (month < 10 ? '0' + month : month)
|
||||
const dates = year + '-' + month
|
||||
this.queryParams.settleMonth = dates
|
||||
// 查询会员信息
|
||||
this.getMemberList()
|
||||
this.getUserRoute();
|
||||
this.getUserRoute()
|
||||
},
|
||||
methods: {
|
||||
isOther,
|
||||
getUserRoute() {
|
||||
getRouters().then((res)=>{
|
||||
res.data.forEach((item)=>{
|
||||
this.topList.forEach((items)=>{
|
||||
if (item.path == items.url){
|
||||
getRouters().then((res) => {
|
||||
res.data.forEach((item) => {
|
||||
this.topList.forEach((items) => {
|
||||
if (item.path == items.url) {
|
||||
items.changed = true
|
||||
}
|
||||
})
|
||||
|
@ -346,24 +349,24 @@ export default {
|
|||
})
|
||||
},
|
||||
cancelCz() {
|
||||
this.tableData.cuMemberShareDetailList.forEach((item) =>{
|
||||
this.tableData.cuMemberShareDetailList.forEach((item) => {
|
||||
item.realShareIncome = 0.00
|
||||
})
|
||||
this.tableData.settleMonth = ''
|
||||
this.$forceUpdate()
|
||||
},
|
||||
saveSubmit() {
|
||||
let data= this.tableData;
|
||||
let arr = JSON.parse(JSON.stringify(this.tableData))
|
||||
const data = this.tableData
|
||||
const arr = JSON.parse(JSON.stringify(this.tableData))
|
||||
delete arr.expectShareTotal
|
||||
delete arr.realShareTotal
|
||||
saveShareBonus(arr).then((res)=>{
|
||||
if(res.code=='200'){
|
||||
saveShareBonus(arr).then((res) => {
|
||||
if (res.code == '200') {
|
||||
Message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
Message({
|
||||
message: res.msg,
|
||||
type: 'error'
|
||||
|
@ -376,13 +379,13 @@ export default {
|
|||
},
|
||||
getEnable_status() {
|
||||
getEnableStatus().then((res) => {
|
||||
this.getStatusList = res.data;
|
||||
});
|
||||
this.getStatusList = res.data
|
||||
})
|
||||
},
|
||||
getEYesNoList() {
|
||||
getEYesNoList().then((res) => {
|
||||
this.agreeList = res.data;
|
||||
});
|
||||
this.agreeList = res.data
|
||||
})
|
||||
},
|
||||
hrefs() {
|
||||
// console.error('11')
|
||||
|
@ -453,12 +456,6 @@ export default {
|
|||
})
|
||||
}
|
||||
},
|
||||
// 经销商
|
||||
getDealerYesno() {
|
||||
getDealerYesno().then((res) => {
|
||||
this.dealerList = res.data
|
||||
})
|
||||
},
|
||||
// 代理等级
|
||||
getAgentGrade() {
|
||||
getAgentGrade().then((res) => {
|
||||
|
@ -472,8 +469,8 @@ export default {
|
|||
this.tableData = res.data
|
||||
})
|
||||
},
|
||||
changeTimes(val){
|
||||
this.queryParams.settleMonth = val
|
||||
changeTimes(val) {
|
||||
this.queryParams.settleMonth = val
|
||||
this.getMemberList()
|
||||
},
|
||||
// 订单状态
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -111,7 +111,7 @@
|
|||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -132,8 +132,7 @@
|
|||
<el-col :span="4">
|
||||
<div class="searchbox">
|
||||
<el-button class="searchbtn" @click="getMemberList">
|
||||
{{ '搜索' }}</el-button
|
||||
>
|
||||
{{ '搜索' }}</el-button>
|
||||
<el-button @click="reChongzhi"> {{ '重置' }}</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
|
@ -163,37 +162,34 @@
|
|||
<div class="maintop">
|
||||
<div class="mainbtn">
|
||||
<el-button
|
||||
v-hasButtons="['policyMoneyAdd']"
|
||||
size="small"
|
||||
class="thebtn1"
|
||||
@click="hrefs()"
|
||||
v-hasButtons="['policyMoneyAdd']"
|
||||
>{{ '政策币业务' }}</el-button
|
||||
>
|
||||
>{{ '政策币业务' }}</el-button>
|
||||
<el-button
|
||||
v-hasButtons="['policyMoneyExport']"
|
||||
size="small"
|
||||
class="thebtn2"
|
||||
@click="exports()"
|
||||
v-hasButtons="['policyMoneyExport']"
|
||||
>
|
||||
{{ '导出' }}</el-button
|
||||
>
|
||||
{{ '导出' }}</el-button>
|
||||
<el-button
|
||||
v-hasButtons="['policyMoneyDelete']"
|
||||
size="small"
|
||||
class="thebtn2"
|
||||
v-hasButtons="['policyMoneyDelete']"
|
||||
@click="handleDelete()"
|
||||
style="background-color: #c73030"
|
||||
@click="handleDelete()"
|
||||
>
|
||||
{{ '删除' }}</el-button
|
||||
>
|
||||
{{ '删除' }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="maintable">
|
||||
<el-table
|
||||
ref="table"
|
||||
:data="tableData"
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
height="685px"
|
||||
style="width: 100%"
|
||||
:header-cell-style="{ background: '#EEEEEE' }"
|
||||
|
@ -296,18 +292,18 @@
|
|||
/>
|
||||
<policyMoneyDetails
|
||||
ref="policyMoneyDetails"
|
||||
:is-policy="isPolicy"
|
||||
@handleClose="handleClose"
|
||||
@getMemberList="getMemberList()"
|
||||
:isPolicy="isPolicy"
|
||||
></policyMoneyDetails>
|
||||
/>
|
||||
<delPplicyDetail
|
||||
ref="delPplicyDetail"
|
||||
v-if="deldataLoad"
|
||||
ref="delPplicyDetail"
|
||||
:is-delete="isDelete"
|
||||
:del-list="delList"
|
||||
@handleClose2="handleClose2"
|
||||
@getMemberList="getMemberList()"
|
||||
:isDelete="isDelete"
|
||||
:delList="delList"
|
||||
></delPplicyDetail>
|
||||
/>
|
||||
</div>
|
||||
<el-dialog
|
||||
:title="'会员信息错误'"
|
||||
|
@ -328,24 +324,20 @@
|
|||
align="center"
|
||||
prop="memberCode"
|
||||
:label="'会员编号'"
|
||||
>
|
||||
</el-table-column>
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="errorMsg"
|
||||
:label="'报错信息'"
|
||||
>
|
||||
</el-table-column>
|
||||
/>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="footer" style="text-align: center">
|
||||
<div style="margin: 0 auto">
|
||||
<el-button class="thebtn" @click="errorShow = false">
|
||||
{{ '取消' }}</el-button
|
||||
>
|
||||
{{ '取消' }}</el-button>
|
||||
<el-button type="primary" class="thebtn" @click="errorShow = false">
|
||||
{{ '确认' }}</el-button
|
||||
>
|
||||
{{ '确认' }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
@ -353,116 +345,107 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import topBar from "@/components/topBar";
|
||||
import policyMoneyDetails from "@/views/information/policyMoney/policyMoneyDetails";
|
||||
import delPplicyDetail from "@/views/information/policyMoney/delPplicyDetail";
|
||||
import topBar from '@/components/topBar'
|
||||
import policyMoneyDetails from '@/views/information/policyMoney/policyMoneyDetails'
|
||||
import delPplicyDetail from '@/views/information/policyMoney/delPplicyDetail'
|
||||
|
||||
import {
|
||||
getMemberList,
|
||||
getvertexValue,
|
||||
getmemberTeamList,
|
||||
getaccountStatus,
|
||||
getsalletStatus,
|
||||
getattestation,
|
||||
getYesnouploadsList,
|
||||
getorderStatus,
|
||||
getAgentGrade,
|
||||
getDealerYesno,
|
||||
memberRealInfo,
|
||||
} from "@/api/member";
|
||||
getmemberTeamList
|
||||
} from '@/api/member'
|
||||
import {
|
||||
getgradeRanglist,
|
||||
getAwardsListChiose,
|
||||
getRegistration,
|
||||
getCardType,
|
||||
getSex,
|
||||
} from "@/api/level";
|
||||
import { findAllArea } from "@/api/product";
|
||||
import { areaList } from "@/api/site";
|
||||
import { getEnableStatus, getEYesNoList } from "@/api/configManage";
|
||||
import { policyList, delPolicyConfirm } from "@/api/specialBusiness";
|
||||
import { getRouters } from "@/api/settle";
|
||||
getSex
|
||||
} from '@/api/level'
|
||||
import { findAllArea } from '@/api/product'
|
||||
import { areaList } from '@/api/site'
|
||||
import { getEnableStatus, getEYesNoList } from '@/api/configManage'
|
||||
import { policyList, delPolicyConfirm } from '@/api/specialBusiness'
|
||||
import { getRouters } from '@/api/settle'
|
||||
export default {
|
||||
name: "Jcyw",
|
||||
name: 'Jcyw',
|
||||
components: {
|
||||
topBar,
|
||||
policyMoneyDetails,
|
||||
delPplicyDetail,
|
||||
delPplicyDetail
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isPolicy: false,
|
||||
areaData: [],
|
||||
regionParams: {
|
||||
label: "name",
|
||||
value: "id",
|
||||
children: "children",
|
||||
expandTrigger: "hover",
|
||||
label: 'name',
|
||||
value: 'id',
|
||||
children: 'children',
|
||||
expandTrigger: 'hover'
|
||||
},
|
||||
moren: "policyMoney",
|
||||
moren: 'policyMoney',
|
||||
topList: [
|
||||
{
|
||||
name: '空单注册',
|
||||
path: "emptyOrder",
|
||||
changed: false,
|
||||
path: 'emptyOrder',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改直推',
|
||||
path: "modifyDirectpush",
|
||||
changed: false,
|
||||
path: 'modifyDirectpush',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改安置',
|
||||
path: "modifyPlacement",
|
||||
changed: false,
|
||||
path: 'modifyPlacement',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '注水业绩',
|
||||
path: "waterPv",
|
||||
changed: false,
|
||||
path: 'waterPv',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改编号',
|
||||
path: "modifyCode",
|
||||
changed: false,
|
||||
path: 'modifyCode',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '真实奖衔控制',
|
||||
path: "awardControl",
|
||||
changed: false,
|
||||
path: 'awardControl',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '修改结算国家',
|
||||
path: "modifySettleCountry",
|
||||
changed: false,
|
||||
path: 'modifySettleCountry',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '政策币业务',
|
||||
path: "policyMoney",
|
||||
changed: false,
|
||||
path: 'policyMoney',
|
||||
changed: false
|
||||
},
|
||||
{
|
||||
name: '分红配置',
|
||||
path: "bonusConfig",
|
||||
changed: false,
|
||||
},
|
||||
path: 'bonusConfig',
|
||||
changed: false
|
||||
}
|
||||
],
|
||||
colums: [],
|
||||
checkLabels: [],
|
||||
checkList: [],
|
||||
rzsj: "", // 认证时间
|
||||
rzsj: '', // 认证时间
|
||||
|
||||
cjsj: "", // 创建时间
|
||||
zfsj: "", // 支付时间
|
||||
cjsj: '', // 创建时间
|
||||
zfsj: '', // 支付时间
|
||||
multipleSelection: [],
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 50,
|
||||
creationTime: [],
|
||||
creationTime: []
|
||||
},
|
||||
address: "",
|
||||
address: '',
|
||||
tableData: [],
|
||||
loading:false,
|
||||
loading: false,
|
||||
// 折叠搜索框
|
||||
isActive: false,
|
||||
total: 0,
|
||||
|
@ -478,31 +461,31 @@ export default {
|
|||
orderStatusList: [], // 订单状态
|
||||
agentGradeList: [], // 代理等级
|
||||
dealerList: [], // 是否是经销商
|
||||
directPushNumber: "", // 修改直推次数
|
||||
directPushNumber: '', // 修改直推次数
|
||||
|
||||
sexList: [],
|
||||
cardList: [],
|
||||
getStatusList: [],
|
||||
agreeList: [],
|
||||
creationTime: "",
|
||||
creationTime: '',
|
||||
isDelete: false,
|
||||
delList: [],
|
||||
deldataLoad: false,
|
||||
errorData: [],
|
||||
errorShow: false,
|
||||
};
|
||||
errorShow: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
canDo() {
|
||||
return this.checkList.length > 0;
|
||||
},
|
||||
return this.checkList.length > 0
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// 查询会员信息
|
||||
this.getMemberList();
|
||||
this.getAllArea();
|
||||
this.getUserRoute();
|
||||
this.getOthers();
|
||||
this.getMemberList()
|
||||
this.getAllArea()
|
||||
this.getUserRoute()
|
||||
this.getOthers()
|
||||
// this.getRegistration();
|
||||
// this.getaccountStatus();
|
||||
// this.getsalletStatus();
|
||||
|
@ -519,29 +502,29 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
handleDelete() {
|
||||
this.delList = [];
|
||||
this.$forceUpdate();
|
||||
let pkIdList = this.multipleSelection.map((item) => {
|
||||
return item.pkId;
|
||||
});
|
||||
this.delList = []
|
||||
this.$forceUpdate()
|
||||
const pkIdList = this.multipleSelection.map((item) => {
|
||||
return item.pkId
|
||||
})
|
||||
if (pkIdList.length > 0) {
|
||||
let pkIdStr = pkIdList.join();
|
||||
const pkIdStr = pkIdList.join()
|
||||
delPolicyConfirm({ pkIdStr: pkIdStr }).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.delList = res.data;
|
||||
this.$forceUpdate();
|
||||
this.deldataLoad = true;
|
||||
this.isDelete = true;
|
||||
this.delList = res.data
|
||||
this.$forceUpdate()
|
||||
this.deldataLoad = true
|
||||
this.isDelete = true
|
||||
} else if (res.code == 504) {
|
||||
this.errorShow = true;
|
||||
this.errorData = res.data;
|
||||
this.errorShow = true
|
||||
this.errorData = res.data
|
||||
} else {
|
||||
this.$message({
|
||||
type: "warning",
|
||||
message: res.msg,
|
||||
});
|
||||
type: 'warning',
|
||||
message: res.msg
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
getOthers() {
|
||||
|
@ -571,34 +554,34 @@ export default {
|
|||
// });
|
||||
// 隶属团队下拉选
|
||||
getmemberTeamList().then((res) => {
|
||||
this.memberteamList = res.rows;
|
||||
});
|
||||
this.memberteamList = res.rows
|
||||
})
|
||||
// 隶属体系下拉选 取pkid和name
|
||||
getvertexValue().then((res) => {
|
||||
this.vertexList = res.data;
|
||||
});
|
||||
this.vertexList = res.data
|
||||
})
|
||||
// 真实奖衔下拉选
|
||||
getAwardsListChiose().then((res) => {
|
||||
this.awardsList = res.rows;
|
||||
});
|
||||
this.awardsList = res.rows
|
||||
})
|
||||
// 注册等级下拉
|
||||
getgradeRanglist().then((res) => {
|
||||
this.gradeRangList = res.data;
|
||||
});
|
||||
//性别
|
||||
this.gradeRangList = res.data
|
||||
})
|
||||
// 性别
|
||||
getSex().then((res) => {
|
||||
this.sexList = res.data;
|
||||
});
|
||||
this.sexList = res.data
|
||||
})
|
||||
// 身份类型
|
||||
getCardType().then((res) => {
|
||||
this.cardList = res.data;
|
||||
});
|
||||
this.cardList = res.data
|
||||
})
|
||||
getEnableStatus().then((res) => {
|
||||
this.getStatusList = res.data;
|
||||
});
|
||||
this.getStatusList = res.data
|
||||
})
|
||||
getEYesNoList().then((res) => {
|
||||
this.agreeList = res.data;
|
||||
});
|
||||
this.agreeList = res.data
|
||||
})
|
||||
// 经销商
|
||||
// getDealerYesno().then((res) => {
|
||||
// this.dealerList = res.data;
|
||||
|
@ -613,20 +596,20 @@ export default {
|
|||
res.data.forEach((item) => {
|
||||
this.topList.forEach((items) => {
|
||||
if (item.path == items.url) {
|
||||
items.changed = true;
|
||||
items.changed = true
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
handleClose() {
|
||||
this.isPolicy = false;
|
||||
this.isPolicy = false
|
||||
},
|
||||
handleClose2() {
|
||||
this.isDelete = false;
|
||||
this.isDelete = false
|
||||
},
|
||||
hrefs() {
|
||||
this.isPolicy = true;
|
||||
this.isPolicy = true
|
||||
// this.$router.push({
|
||||
// name: 'policyMoneyDetails',
|
||||
// query: {
|
||||
|
@ -636,101 +619,101 @@ export default {
|
|||
},
|
||||
// 商品分类赋值
|
||||
flChange(value) {
|
||||
this.queryParams.pkCounty = "";
|
||||
this.queryParams.pkProvince = "";
|
||||
this.queryParams.pkCity = "";
|
||||
this.queryParams.pkCounty = ''
|
||||
this.queryParams.pkProvince = ''
|
||||
this.queryParams.pkCity = ''
|
||||
|
||||
this.queryParams.pkProvince = value[0];
|
||||
this.queryParams.pkCity = value[1];
|
||||
this.queryParams.pkCounty = value[2];
|
||||
this.queryParams.pkProvince = value[0]
|
||||
this.queryParams.pkCity = value[1]
|
||||
this.queryParams.pkCounty = value[2]
|
||||
},
|
||||
changeTime(val) {
|
||||
if (val) {
|
||||
this.queryParams.startDate = val[0];
|
||||
this.queryParams.endDate = val[1];
|
||||
this.queryParams.startDate = val[0]
|
||||
this.queryParams.endDate = val[1]
|
||||
}
|
||||
},
|
||||
changeTime1(val) {
|
||||
this.queryParams.startCreationTime = val[0];
|
||||
this.queryParams.endCreationTime = val[1];
|
||||
this.queryParams.startCreationTime = val[0]
|
||||
this.queryParams.endCreationTime = val[1]
|
||||
},
|
||||
changeTime2(val) {
|
||||
this.queryParams.startPayTime = val[0];
|
||||
this.queryParams.endPayTime = val[1];
|
||||
this.queryParams.startPayTime = val[0]
|
||||
this.queryParams.endPayTime = val[1]
|
||||
},
|
||||
|
||||
getAllArea() {
|
||||
areaList().then((res) => {
|
||||
this.areaData = res.data;
|
||||
});
|
||||
this.areaData = res.data
|
||||
})
|
||||
},
|
||||
exports() {
|
||||
this.download(
|
||||
"/member/manage/update-policy-currency/export",
|
||||
'/member/manage/update-policy-currency/export',
|
||||
{ ...this.params },
|
||||
`${'政策币业务'}-${new Date().getTime()}.xlsx`
|
||||
);
|
||||
)
|
||||
},
|
||||
getMenu(e, id) {
|
||||
if (e && id == 0) {
|
||||
this.menuList.forEach((item) => {
|
||||
this.$set(item, "checked", true);
|
||||
});
|
||||
this.$set(item, 'checked', true)
|
||||
})
|
||||
} else if (!e && id == 0) {
|
||||
this.menuList.forEach((item) => {
|
||||
this.$set(item, "checked", false);
|
||||
});
|
||||
this.$set(item, 'checked', false)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
// 查询会员信息
|
||||
getMemberList() {
|
||||
this.loading = true
|
||||
if (this.creationTime == "" || this.creationTime == null) {
|
||||
this.queryParams.startDate = "";
|
||||
this.queryParams.endDate = "";
|
||||
if (this.creationTime == '' || this.creationTime == null) {
|
||||
this.queryParams.startDate = ''
|
||||
this.queryParams.endDate = ''
|
||||
}
|
||||
policyList(this.queryParams).then((res) => {
|
||||
this.loading = false
|
||||
this.total = res.total;
|
||||
this.tableData = res.rows;
|
||||
});
|
||||
this.isPolicy = false;
|
||||
this.total = res.total
|
||||
this.tableData = res.rows
|
||||
})
|
||||
this.isPolicy = false
|
||||
},
|
||||
|
||||
// 展开折叠
|
||||
changeActive() {
|
||||
this.isActive = !this.isActive;
|
||||
this.isActive = !this.isActive
|
||||
},
|
||||
// 重置
|
||||
reChongzhi() {
|
||||
this.cjsj = [];
|
||||
this.zfsj = [];
|
||||
this.cjsj = []
|
||||
this.zfsj = []
|
||||
this.queryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 50,
|
||||
memberCode: "", // 会员编号
|
||||
memberName: "", // 会员姓名
|
||||
phone: "", // 联系方式
|
||||
};
|
||||
memberCode: '', // 会员编号
|
||||
memberName: '', // 会员姓名
|
||||
phone: '' // 联系方式
|
||||
}
|
||||
// this.$refs.form.clearValidate()
|
||||
// this.$refs.form.resetFields()
|
||||
this.getMemberList();
|
||||
this.getMemberList()
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
this.multipleSelection = val
|
||||
},
|
||||
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
if (rowIndex % 2 == 1) {
|
||||
return "warning-row";
|
||||
return 'warning-row'
|
||||
} else if (rowIndex % 2 == 0) {
|
||||
return "success-row";
|
||||
return 'success-row'
|
||||
}
|
||||
return "";
|
||||
},
|
||||
},
|
||||
};
|
||||
return ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -125,14 +125,14 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item :label="'详细地址'" prop="accountStatus">
|
||||
<el-form-item :label="'详细地址'" prop="accountStatus">
|
||||
<el-cascader
|
||||
@change="flChange"
|
||||
v-model="address"
|
||||
class="area"
|
||||
:options="areaData"
|
||||
:placeholder="'请选择省市区'"
|
||||
:props="regionParams"
|
||||
@change="flChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -273,14 +273,17 @@
|
|||
</div>
|
||||
<div class="maintop">
|
||||
<div class="mainbtn">
|
||||
<el-button size="small" class="thebtn2"
|
||||
v-hasButtons="['realInfoExport']"
|
||||
@click="exports"> {{ '导出' }}</el-button>
|
||||
<el-button
|
||||
v-hasButtons="['realInfoExport']"
|
||||
size="small"
|
||||
class="thebtn2"
|
||||
@click="exports"
|
||||
> {{ '导出' }}</el-button>
|
||||
</div>
|
||||
<div style="padding-right: 0px">
|
||||
<el-dropdown :hide-on-click="false" style="width: 120px">
|
||||
<span class="el-dropdown-link kuang">
|
||||
{{'筛选字段'}}<i class="el-icon-arrow-down el-icon--right" />
|
||||
{{ '筛选字段' }}<i class="el-icon-arrow-down el-icon--right" />
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown" style="">
|
||||
<el-dropdown-item v-for="item in menuList" :key="item.id">
|
||||
|
@ -296,9 +299,9 @@
|
|||
<div class="maintable">
|
||||
<el-table
|
||||
ref="table"
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
height="615px"
|
||||
v-loading="loading"
|
||||
style="width: 100%"
|
||||
:header-cell-style="{ background: '#EEEEEE' }"
|
||||
:row-class-name="tableRowClassName"
|
||||
|
@ -315,21 +318,21 @@
|
|||
/>
|
||||
</template> -->
|
||||
<el-table-column
|
||||
v-if="allTxt.memberCode"
|
||||
v-if="allTxt.memberCode"
|
||||
align="center"
|
||||
prop="memberCode"
|
||||
:label="'会员编号'"
|
||||
width="240"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="allTxt.memberName"
|
||||
v-if="allTxt.memberName"
|
||||
align="center"
|
||||
prop="memberName"
|
||||
:label="'会员姓名'"
|
||||
width="240"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="allTxt.phone"
|
||||
v-if="allTxt.phone"
|
||||
align="center"
|
||||
prop="phone"
|
||||
:label="'联系方式'"
|
||||
|
@ -381,7 +384,7 @@
|
|||
v-if="menuList[6].checked==true&&allTxt.cardTypeVal"
|
||||
align="center"
|
||||
prop="cardTypeVal"
|
||||
:label="'证件类型'"
|
||||
:label="'证件类型'"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
|
@ -391,14 +394,14 @@
|
|||
:label="'证件号码'"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column align="center" prop="idFront" :label="'证件(正面)'" v-if="menuList[8].checked==true&&allTxt.idFront" width="200">
|
||||
<el-table-column v-if="menuList[8].checked==true&&allTxt.idFront" align="center" prop="idFront" :label="'证件(正面)'" width="200">
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.idFront" style="width: 44px;height: 44px;border-radius: 4px" />
|
||||
<img :src="scope.row.idFront" style="width: 44px;height: 44px;border-radius: 4px">
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" prop="idBack" :label="'证件(反面)'" v-if="menuList[9].checked==true&&allTxt.idBack" width="200">
|
||||
<el-table-column v-if="menuList[9].checked==true&&allTxt.idBack" align="center" prop="idBack" :label="'证件(反面)'" width="200">
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.idBack" style="width: 44px;height: 44px;border-radius: 4px" />
|
||||
<img :src="scope.row.idBack" style="width: 44px;height: 44px;border-radius: 4px">
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -411,28 +414,28 @@
|
|||
:label="item.text"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="allTxt.certificationTime"
|
||||
v-if="allTxt.certificationTime"
|
||||
align="center"
|
||||
prop="certificationTime"
|
||||
:label="'认证日期'"
|
||||
width="200"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="allTxt.creationTime"
|
||||
v-if="allTxt.creationTime"
|
||||
align="center"
|
||||
prop="creationTime"
|
||||
:label="'创建日期'"
|
||||
width="200"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="allTxt.payTime"
|
||||
v-if="allTxt.payTime"
|
||||
align="center"
|
||||
prop="payTime"
|
||||
:label="'支付日期'"
|
||||
width="200"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="allTxt.directPushNumber"
|
||||
v-if="allTxt.directPushNumber"
|
||||
align="center"
|
||||
prop="directPushNumber"
|
||||
:label="'修改直推次数'"
|
||||
|
@ -462,7 +465,7 @@ import {
|
|||
getYesnouploadsList,
|
||||
getorderStatus,
|
||||
getAgentGrade,
|
||||
getDealerYesno, memberRealInfo
|
||||
memberRealInfo
|
||||
} from '@/api/member'
|
||||
import {
|
||||
getgradeRanglist,
|
||||
|
@ -470,7 +473,7 @@ import {
|
|||
getRegistration, getCardType, getSex
|
||||
} from '@/api/level'
|
||||
import { findAllArea } from '@/api/product'
|
||||
import {areaList} from "@/api/site";
|
||||
import { areaList } from '@/api/site'
|
||||
import { getRoleMenu } from '@/api/notice'
|
||||
|
||||
export default {
|
||||
|
@ -480,7 +483,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
loading:false,
|
||||
loading: false,
|
||||
areaData: [],
|
||||
regionParams: {
|
||||
label: 'name',
|
||||
|
@ -634,7 +637,7 @@ export default {
|
|||
multipleSelection: [],
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 50,
|
||||
pageSize: 50
|
||||
},
|
||||
address: '',
|
||||
tableData: [],
|
||||
|
@ -657,8 +660,8 @@ export default {
|
|||
|
||||
sexList: [],
|
||||
cardList: [],
|
||||
creationTime:'',
|
||||
allTxt:{}
|
||||
creationTime: '',
|
||||
allTxt: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -690,24 +693,21 @@ export default {
|
|||
// JSON.stringify(Object.keys(this.tableData[0]))
|
||||
// );
|
||||
// this.colums = JSON.parse(JSON.stringify(Object.keys(this.tableData[0])));
|
||||
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.getUserRole()
|
||||
},
|
||||
methods: {
|
||||
getUserRole() {
|
||||
getRoleMenu('RealInfo').then((res) => {
|
||||
let obj ={}
|
||||
res.data.forEach(item=>{
|
||||
const obj = {}
|
||||
res.data.forEach(item => {
|
||||
obj[item] = 1
|
||||
})
|
||||
this.allTxt = obj
|
||||
this.$nextTick(() => {
|
||||
this.$refs.table.doLayout();
|
||||
this.$refs.table.doLayout()
|
||||
})
|
||||
|
||||
})
|
||||
},
|
||||
// 商品分类赋值
|
||||
|
@ -721,16 +721,16 @@ export default {
|
|||
this.queryParams.pkCounty = value[2]
|
||||
},
|
||||
changeTime3(val) {
|
||||
this.queryParams.startCertificationTime = val[0];
|
||||
this.queryParams.endCertificationTime = val[1];
|
||||
this.queryParams.startCertificationTime = val[0]
|
||||
this.queryParams.endCertificationTime = val[1]
|
||||
},
|
||||
changeTime1(val) {
|
||||
this.queryParams.startCreationTime = val[0];
|
||||
this.queryParams.endCreationTime = val[1];
|
||||
this.queryParams.startCreationTime = val[0]
|
||||
this.queryParams.endCreationTime = val[1]
|
||||
},
|
||||
changeTime2(val) {
|
||||
this.queryParams.startPayTime = val[0];
|
||||
this.queryParams.endPayTime = val[1];
|
||||
this.queryParams.startPayTime = val[0]
|
||||
this.queryParams.endPayTime = val[1]
|
||||
},
|
||||
// 性别
|
||||
getSexs() {
|
||||
|
@ -753,14 +753,14 @@ export default {
|
|||
this.$confirm('是否确认导出所有数据项?', '警告', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: "warning",
|
||||
type: 'warning'
|
||||
}).then((_) => {
|
||||
this.download(
|
||||
"/member/manager/member/real-info-export",
|
||||
'/member/manager/member/real-info-export',
|
||||
{ ...this.queryParams },
|
||||
`${'真实信息'}${new Date().getTime()}.xlsx`
|
||||
);
|
||||
});
|
||||
)
|
||||
})
|
||||
},
|
||||
getMenu(e, id) {
|
||||
if (e && id == 0) {
|
||||
|
@ -773,12 +773,7 @@ export default {
|
|||
})
|
||||
}
|
||||
},
|
||||
// 经销商
|
||||
getDealerYesno() {
|
||||
getDealerYesno().then((res) => {
|
||||
this.dealerList = res.data
|
||||
})
|
||||
},
|
||||
|
||||
// 代理等级
|
||||
getAgentGrade() {
|
||||
getAgentGrade().then((res) => {
|
||||
|
@ -866,9 +861,9 @@ export default {
|
|||
pageSize: 50,
|
||||
memberCode: '', // 会员编号
|
||||
memberName: '', // 会员姓名
|
||||
phone: '', // 联系方式
|
||||
phone: '' // 联系方式
|
||||
}
|
||||
this.address=''
|
||||
this.address = ''
|
||||
// this.$refs.form.clearValidate()
|
||||
// this.$refs.form.resetFields()
|
||||
this.getMemberList()
|
||||
|
|
|
@ -338,8 +338,7 @@ import topBar from '@/components/topBar'
|
|||
import * as api from '@/api/settle.js'
|
||||
import { classifyUpdate, classifySave } from '@/api/product'
|
||||
import * as log from '@/api/logistics'
|
||||
import { getcountryAllList } from '@/api/exchangerate'
|
||||
import { getDealerYesno, settleBonus, publishBonus, grantBonus, withdrawalBonus, noPublishBonus } from '@/api/member'
|
||||
import { settleBonus, publishBonus, grantBonus, withdrawalBonus, noPublishBonus } from '@/api/member'
|
||||
import { listPeriod } from '@/api/bonus'
|
||||
import { Message } from 'element-ui'
|
||||
import { isLocal, isLocalSymbol, stateFormat } from '@/utils/numberToCurrency'
|
||||
|
@ -455,7 +454,6 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
// 获取下拉
|
||||
this.getData()
|
||||
// 获取列表
|
||||
this.getDataList()
|
||||
},
|
||||
|
@ -613,12 +611,6 @@ export default {
|
|||
})
|
||||
}
|
||||
},
|
||||
getData() {
|
||||
// 经销商
|
||||
getDealerYesno().then((res) => {
|
||||
this.dealerList = res.data
|
||||
})
|
||||
},
|
||||
changeTime(val) {
|
||||
if (val) {
|
||||
this.select.startDate = val[0]
|
||||
|
|
Loading…
Reference in New Issue