fix(global): 修复删除无用接口后导致的报错

This commit is contained in:
woody 2025-04-23 12:02:03 +08:00
parent 37292af72b
commit 310811a8bd
4 changed files with 279 additions and 312 deletions

View File

@ -8,7 +8,7 @@
<div v-if="topList[8].changed==true"> <div v-if="topList[8].changed==true">
<div class="thetopbox"> <div class="thetopbox">
<div class="title"> <div class="title">
<div class="lines"></div> <div class="lines" />
<div class="title-style">{{ '分红资金池配置' }}</div> <div class="title-style">{{ '分红资金池配置' }}</div>
</div> </div>
<el-form style="margin-top: 15px;margin-left: 22px" label-width="100px"> <el-form style="margin-top: 15px;margin-left: 22px" label-width="100px">
@ -17,10 +17,10 @@
<el-form-item :label="'选择日期'" prop="memberName"> <el-form-item :label="'选择日期'" prop="memberName">
<el-date-picker <el-date-picker
v-model="tableData.settleMonth" v-model="tableData.settleMonth"
@change="changeTimes"
type="month" type="month"
placeholder="" placeholder=""
value-format="yyyy-MM" value-format="yyyy-MM"
@change="changeTimes"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -29,8 +29,8 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="'预计发放总数'" prop="memberName"> <el-form-item :label="'预计发放总数'" prop="memberName">
<el-input <el-input
disabled="disabled"
v-model="tableData.expectShareTotal" v-model="tableData.expectShareTotal"
disabled="disabled"
clearable clearable
placeholder="" placeholder=""
/> />
@ -41,8 +41,8 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="'实际发放总数'" prop="memberName"> <el-form-item :label="'实际发放总数'" prop="memberName">
<el-input <el-input
disabled="disabled"
v-model="tableData.realShareTotal" v-model="tableData.realShareTotal"
disabled="disabled"
clearable clearable
placeholder="" placeholder=""
/> />
@ -73,7 +73,7 @@
</div> </div>
<div class="main"> <div class="main">
<div class="title" style="margin-bottom: 20px"> <div class="title" style="margin-bottom: 20px">
<div class="lines"></div> <div class="lines" />
<div class="title-style">{{ '分红实发配置' }}</div> <div class="title-style">{{ '分红实发配置' }}</div>
</div> </div>
<div class="maintable"> <div class="maintable">
@ -101,15 +101,14 @@
width="100" width="100"
prop="pkAwardsVal" prop="pkAwardsVal"
:label="'真实奖衔'" :label="'真实奖衔'"
> />
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="promoteTotal" prop="promoteTotal"
:label="'晋升总数'" :label="'晋升总数'"
> >
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -118,7 +117,7 @@
:label="'达标人数'" :label="'达标人数'"
> >
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -127,7 +126,7 @@
:label="'预发金额'+`(${isOther()})`" :label="'预发金额'+`(${isOther()})`"
> >
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -136,7 +135,7 @@
:label="'预发合计'+`(${isOther()})`" :label="'预发合计'+`(${isOther()})`"
> >
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -145,7 +144,7 @@
:label="'实发金额'+'($)'" :label="'实发金额'+'($)'"
> >
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -154,22 +153,26 @@
:label="'实发合计'+`(${isOther()})`" :label="'实发合计'+`(${isOther()})`"
> >
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="footer"> <div class="footer">
<div style="margin: 0 auto"> <div style="margin: 0 auto">
<el-button class="thebtn" <el-button
style="background-color: #ccc;color: #fff"
v-hasButtons="['bonusConfigReset']" v-hasButtons="['bonusConfigReset']"
@click="cancelCz"> {{ '重置' }}</el-button> class="thebtn"
<el-button type="primary" style="background-color: #ccc;color: #fff"
@click="cancelCz"
> {{ '重置' }}</el-button>
<el-button
v-hasButtons="['bonusConfigConfirm']"
type="primary"
style="margin-left: 40px" style="margin-left: 40px"
class="thebtn" class="thebtn"
v-hasButtons="['bonusConfigConfirm']" @click="saveSubmit"
@click="saveSubmit"> {{ '确认' }}</el-button> > {{ '确认' }}</el-button>
</div> </div>
</div> </div>
</div> </div>
@ -180,9 +183,11 @@
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getMemberList" @pagination="getMemberList"
/> />
<policyMoneyDetails ref="policyMoneyDetails" <policyMoneyDetails
ref="policyMoneyDetails"
:is-policy="isPolicy"
@handleClose="handleClose" @handleClose="handleClose"
:isPolicy="isPolicy"></policyMoneyDetails> />
</div> </div>
</div> </div>
</template> </template>
@ -191,7 +196,6 @@
import topBar from '@/components/topBar' import topBar from '@/components/topBar'
import policyMoneyDetails from '@/views/information/policyMoney/policyMoneyDetails' import policyMoneyDetails from '@/views/information/policyMoney/policyMoneyDetails'
import { import {
getMemberList,
getvertexValue, getvertexValue,
getmemberTeamList, getmemberTeamList,
getaccountStatus, getaccountStatus,
@ -199,8 +203,7 @@ import {
getattestation, getattestation,
getYesnouploadsList, getYesnouploadsList,
getorderStatus, getorderStatus,
getAgentGrade, getAgentGrade
getDealerYesno, memberRealInfo
} from '@/api/member' } from '@/api/member'
import { import {
getgradeRanglist, getgradeRanglist,
@ -209,10 +212,10 @@ import {
} from '@/api/level' } from '@/api/level'
import { findAllArea } from '@/api/product' import { findAllArea } from '@/api/product'
import { areaList } from '@/api/site' import { areaList } from '@/api/site'
import {getEnableStatus, getEYesNoList} from "@/api/configManage"; import { getEnableStatus, getEYesNoList } from '@/api/configManage'
import {policyList, queryShareBonus, saveShareBonus} from "@/api/specialBusiness"; import { policyList, queryShareBonus, saveShareBonus } from '@/api/specialBusiness'
import {Message} from "element-ui"; import { Message } from 'element-ui'
import {getRouters} from "@/api/settle"; import { getRouters } from '@/api/settle'
import { isOther } from '@/utils/numberToCurrency' import { isOther } from '@/utils/numberToCurrency'
export default { export default {
name: 'Jcyw', name: 'Jcyw',
@ -234,47 +237,47 @@ export default {
topList: [ topList: [
{ {
name: '空单注册', name: '空单注册',
path: "emptyOrder", path: 'emptyOrder',
changed:false, changed: false
}, },
{ {
name: '修改直推', name: '修改直推',
path: "modifyDirectpush", path: 'modifyDirectpush',
changed:false, changed: false
}, },
{ {
name: '修改安置', name: '修改安置',
path: "modifyPlacement", path: 'modifyPlacement',
changed:false, changed: false
}, },
{ {
name: '注水业绩', name: '注水业绩',
path: "waterPv", path: 'waterPv',
changed:false, changed: false
}, },
{ {
name: '修改编号', name: '修改编号',
path: "modifyCode", path: 'modifyCode',
changed:false, changed: false
}, },
{ {
name: '真实奖衔控制', name: '真实奖衔控制',
path: "awardControl", path: 'awardControl',
changed: false, changed: false
}, },
{ {
name: '修改结算国家', name: '修改结算国家',
path: "modifySettleCountry", path: 'modifySettleCountry',
changed:false, changed: false
}, },
{ {
name: '政策币业务', name: '政策币业务',
path: "policyMoney", path: 'policyMoney',
changed:false, changed: false
}, { }, {
name: '分红配置', name: '分红配置',
path: 'bonusConfig', path: 'bonusConfig',
changed:false, changed: false
} }
], ],
colums: [], colums: [],
@ -311,8 +314,8 @@ export default {
sexList: [], sexList: [],
cardList: [], cardList: [],
getStatusList:[], getStatusList: [],
agreeList:[], agreeList: [],
creationTime: '' creationTime: ''
} }
}, },
@ -322,23 +325,23 @@ export default {
} }
}, },
created() { created() {
var date=new Date; var date = new Date()
var year=date.getFullYear(); var year = date.getFullYear()
var month=date.getMonth()+1; var month = date.getMonth() + 1
month =(month<10 ? "0"+month:month); month = (month < 10 ? '0' + month : month)
let dates = year + '-' + month const dates = year + '-' + month
this.queryParams.settleMonth =dates this.queryParams.settleMonth = dates
// //
this.getMemberList() this.getMemberList()
this.getUserRoute(); this.getUserRoute()
}, },
methods: { methods: {
isOther, isOther,
getUserRoute() { getUserRoute() {
getRouters().then((res)=>{ getRouters().then((res) => {
res.data.forEach((item)=>{ res.data.forEach((item) => {
this.topList.forEach((items)=>{ this.topList.forEach((items) => {
if (item.path == items.url){ if (item.path == items.url) {
items.changed = true items.changed = true
} }
}) })
@ -346,24 +349,24 @@ export default {
}) })
}, },
cancelCz() { cancelCz() {
this.tableData.cuMemberShareDetailList.forEach((item) =>{ this.tableData.cuMemberShareDetailList.forEach((item) => {
item.realShareIncome = 0.00 item.realShareIncome = 0.00
}) })
this.tableData.settleMonth = '' this.tableData.settleMonth = ''
this.$forceUpdate() this.$forceUpdate()
}, },
saveSubmit() { saveSubmit() {
let data= this.tableData; const data = this.tableData
let arr = JSON.parse(JSON.stringify(this.tableData)) const arr = JSON.parse(JSON.stringify(this.tableData))
delete arr.expectShareTotal delete arr.expectShareTotal
delete arr.realShareTotal delete arr.realShareTotal
saveShareBonus(arr).then((res)=>{ saveShareBonus(arr).then((res) => {
if(res.code=='200'){ if (res.code == '200') {
Message({ Message({
message: res.msg, message: res.msg,
type: 'success' type: 'success'
}) })
}else{ } else {
Message({ Message({
message: res.msg, message: res.msg,
type: 'error' type: 'error'
@ -376,13 +379,13 @@ export default {
}, },
getEnable_status() { getEnable_status() {
getEnableStatus().then((res) => { getEnableStatus().then((res) => {
this.getStatusList = res.data; this.getStatusList = res.data
}); })
}, },
getEYesNoList() { getEYesNoList() {
getEYesNoList().then((res) => { getEYesNoList().then((res) => {
this.agreeList = res.data; this.agreeList = res.data
}); })
}, },
hrefs() { hrefs() {
// console.error('11') // console.error('11')
@ -453,12 +456,6 @@ export default {
}) })
} }
}, },
//
getDealerYesno() {
getDealerYesno().then((res) => {
this.dealerList = res.data
})
},
// //
getAgentGrade() { getAgentGrade() {
getAgentGrade().then((res) => { getAgentGrade().then((res) => {
@ -472,7 +469,7 @@ export default {
this.tableData = res.data this.tableData = res.data
}) })
}, },
changeTimes(val){ changeTimes(val) {
this.queryParams.settleMonth = val this.queryParams.settleMonth = val
this.getMemberList() this.getMemberList()
}, },

View File

@ -95,7 +95,7 @@
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -111,7 +111,7 @@
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -132,8 +132,7 @@
<el-col :span="4"> <el-col :span="4">
<div class="searchbox"> <div class="searchbox">
<el-button class="searchbtn" @click="getMemberList"> <el-button class="searchbtn" @click="getMemberList">
{{ '搜索' }}</el-button {{ '搜索' }}</el-button>
>
<el-button @click="reChongzhi"> {{ '重置' }}</el-button> <el-button @click="reChongzhi"> {{ '重置' }}</el-button>
</div> </div>
</el-col> </el-col>
@ -163,37 +162,34 @@
<div class="maintop"> <div class="maintop">
<div class="mainbtn"> <div class="mainbtn">
<el-button <el-button
v-hasButtons="['policyMoneyAdd']"
size="small" size="small"
class="thebtn1" class="thebtn1"
@click="hrefs()" @click="hrefs()"
v-hasButtons="['policyMoneyAdd']" >{{ '政策币业务' }}</el-button>
>{{ '政策币业务' }}</el-button
>
<el-button <el-button
v-hasButtons="['policyMoneyExport']"
size="small" size="small"
class="thebtn2" class="thebtn2"
@click="exports()" @click="exports()"
v-hasButtons="['policyMoneyExport']"
>
{{ '导出' }}</el-button
> >
{{ '导出' }}</el-button>
<el-button <el-button
v-hasButtons="['policyMoneyDelete']"
size="small" size="small"
class="thebtn2" class="thebtn2"
v-hasButtons="['policyMoneyDelete']"
@click="handleDelete()"
style="background-color: #c73030" style="background-color: #c73030"
@click="handleDelete()"
> >
{{ '删除' }}</el-button {{ '删除' }}</el-button>
>
</div> </div>
</div> </div>
<div class="main"> <div class="main">
<div class="maintable"> <div class="maintable">
<el-table <el-table
ref="table" ref="table"
:data="tableData"
v-loading="loading" v-loading="loading"
:data="tableData"
height="685px" height="685px"
style="width: 100%" style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }" :header-cell-style="{ background: '#EEEEEE' }"
@ -296,18 +292,18 @@
/> />
<policyMoneyDetails <policyMoneyDetails
ref="policyMoneyDetails" ref="policyMoneyDetails"
:is-policy="isPolicy"
@handleClose="handleClose" @handleClose="handleClose"
@getMemberList="getMemberList()" @getMemberList="getMemberList()"
:isPolicy="isPolicy" />
></policyMoneyDetails>
<delPplicyDetail <delPplicyDetail
ref="delPplicyDetail"
v-if="deldataLoad" v-if="deldataLoad"
ref="delPplicyDetail"
:is-delete="isDelete"
:del-list="delList"
@handleClose2="handleClose2" @handleClose2="handleClose2"
@getMemberList="getMemberList()" @getMemberList="getMemberList()"
:isDelete="isDelete" />
:delList="delList"
></delPplicyDetail>
</div> </div>
<el-dialog <el-dialog
:title="'会员信息错误'" :title="'会员信息错误'"
@ -328,24 +324,20 @@
align="center" align="center"
prop="memberCode" prop="memberCode"
:label="'会员编号'" :label="'会员编号'"
> />
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="errorMsg" prop="errorMsg"
:label="'报错信息'" :label="'报错信息'"
> />
</el-table-column>
</el-table> </el-table>
</div> </div>
<div class="footer" style="text-align: center"> <div class="footer" style="text-align: center">
<div style="margin: 0 auto"> <div style="margin: 0 auto">
<el-button class="thebtn" @click="errorShow = false"> <el-button class="thebtn" @click="errorShow = false">
{{ '取消' }}</el-button {{ '取消' }}</el-button>
>
<el-button type="primary" class="thebtn" @click="errorShow = false"> <el-button type="primary" class="thebtn" @click="errorShow = false">
{{ '确认' }}</el-button {{ '确认' }}</el-button>
>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@ -353,116 +345,107 @@
</template> </template>
<script> <script>
import topBar from "@/components/topBar"; import topBar from '@/components/topBar'
import policyMoneyDetails from "@/views/information/policyMoney/policyMoneyDetails"; import policyMoneyDetails from '@/views/information/policyMoney/policyMoneyDetails'
import delPplicyDetail from "@/views/information/policyMoney/delPplicyDetail"; import delPplicyDetail from '@/views/information/policyMoney/delPplicyDetail'
import { import {
getMemberList,
getvertexValue, getvertexValue,
getmemberTeamList, getmemberTeamList
getaccountStatus, } from '@/api/member'
getsalletStatus,
getattestation,
getYesnouploadsList,
getorderStatus,
getAgentGrade,
getDealerYesno,
memberRealInfo,
} from "@/api/member";
import { import {
getgradeRanglist, getgradeRanglist,
getAwardsListChiose, getAwardsListChiose,
getRegistration, getRegistration,
getCardType, getCardType,
getSex, getSex
} from "@/api/level"; } from '@/api/level'
import { findAllArea } from "@/api/product"; import { findAllArea } from '@/api/product'
import { areaList } from "@/api/site"; import { areaList } from '@/api/site'
import { getEnableStatus, getEYesNoList } from "@/api/configManage"; import { getEnableStatus, getEYesNoList } from '@/api/configManage'
import { policyList, delPolicyConfirm } from "@/api/specialBusiness"; import { policyList, delPolicyConfirm } from '@/api/specialBusiness'
import { getRouters } from "@/api/settle"; import { getRouters } from '@/api/settle'
export default { export default {
name: "Jcyw", name: 'Jcyw',
components: { components: {
topBar, topBar,
policyMoneyDetails, policyMoneyDetails,
delPplicyDetail, delPplicyDetail
}, },
data() { data() {
return { return {
isPolicy: false, isPolicy: false,
areaData: [], areaData: [],
regionParams: { regionParams: {
label: "name", label: 'name',
value: "id", value: 'id',
children: "children", children: 'children',
expandTrigger: "hover", expandTrigger: 'hover'
}, },
moren: "policyMoney", moren: 'policyMoney',
topList: [ topList: [
{ {
name: '空单注册', name: '空单注册',
path: "emptyOrder", path: 'emptyOrder',
changed: false, changed: false
}, },
{ {
name: '修改直推', name: '修改直推',
path: "modifyDirectpush", path: 'modifyDirectpush',
changed: false, changed: false
}, },
{ {
name: '修改安置', name: '修改安置',
path: "modifyPlacement", path: 'modifyPlacement',
changed: false, changed: false
}, },
{ {
name: '注水业绩', name: '注水业绩',
path: "waterPv", path: 'waterPv',
changed: false, changed: false
}, },
{ {
name: '修改编号', name: '修改编号',
path: "modifyCode", path: 'modifyCode',
changed: false, changed: false
}, },
{ {
name: '真实奖衔控制', name: '真实奖衔控制',
path: "awardControl", path: 'awardControl',
changed: false, changed: false
}, },
{ {
name: '修改结算国家', name: '修改结算国家',
path: "modifySettleCountry", path: 'modifySettleCountry',
changed: false, changed: false
}, },
{ {
name: '政策币业务', name: '政策币业务',
path: "policyMoney", path: 'policyMoney',
changed: false, changed: false
}, },
{ {
name: '分红配置', name: '分红配置',
path: "bonusConfig", path: 'bonusConfig',
changed: false, changed: false
}, }
], ],
colums: [], colums: [],
checkLabels: [], checkLabels: [],
checkList: [], checkList: [],
rzsj: "", // rzsj: '', //
cjsj: "", // cjsj: '', //
zfsj: "", // zfsj: '', //
multipleSelection: [], multipleSelection: [],
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 50, pageSize: 50,
creationTime: [], creationTime: []
}, },
address: "", address: '',
tableData: [], tableData: [],
loading:false, loading: false,
// //
isActive: false, isActive: false,
total: 0, total: 0,
@ -478,31 +461,31 @@ export default {
orderStatusList: [], // orderStatusList: [], //
agentGradeList: [], // agentGradeList: [], //
dealerList: [], // dealerList: [], //
directPushNumber: "", // directPushNumber: '', //
sexList: [], sexList: [],
cardList: [], cardList: [],
getStatusList: [], getStatusList: [],
agreeList: [], agreeList: [],
creationTime: "", creationTime: '',
isDelete: false, isDelete: false,
delList: [], delList: [],
deldataLoad: false, deldataLoad: false,
errorData: [], errorData: [],
errorShow: false, errorShow: false
}; }
}, },
computed: { computed: {
canDo() { canDo() {
return this.checkList.length > 0; return this.checkList.length > 0
}, }
}, },
created() { created() {
// //
this.getMemberList(); this.getMemberList()
this.getAllArea(); this.getAllArea()
this.getUserRoute(); this.getUserRoute()
this.getOthers(); this.getOthers()
// this.getRegistration(); // this.getRegistration();
// this.getaccountStatus(); // this.getaccountStatus();
// this.getsalletStatus(); // this.getsalletStatus();
@ -519,29 +502,29 @@ export default {
}, },
methods: { methods: {
handleDelete() { handleDelete() {
this.delList = []; this.delList = []
this.$forceUpdate(); this.$forceUpdate()
let pkIdList = this.multipleSelection.map((item) => { const pkIdList = this.multipleSelection.map((item) => {
return item.pkId; return item.pkId
}); })
if (pkIdList.length > 0) { if (pkIdList.length > 0) {
let pkIdStr = pkIdList.join(); const pkIdStr = pkIdList.join()
delPolicyConfirm({ pkIdStr: pkIdStr }).then((res) => { delPolicyConfirm({ pkIdStr: pkIdStr }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.delList = res.data; this.delList = res.data
this.$forceUpdate(); this.$forceUpdate()
this.deldataLoad = true; this.deldataLoad = true
this.isDelete = true; this.isDelete = true
} else if (res.code == 504) { } else if (res.code == 504) {
this.errorShow = true; this.errorShow = true
this.errorData = res.data; this.errorData = res.data
} else { } else {
this.$message({ this.$message({
type: "warning", type: 'warning',
message: res.msg, message: res.msg
}); })
} }
}); })
} }
}, },
getOthers() { getOthers() {
@ -571,34 +554,34 @@ export default {
// }); // });
// //
getmemberTeamList().then((res) => { getmemberTeamList().then((res) => {
this.memberteamList = res.rows; this.memberteamList = res.rows
}); })
// pkidname // pkidname
getvertexValue().then((res) => { getvertexValue().then((res) => {
this.vertexList = res.data; this.vertexList = res.data
}); })
// //
getAwardsListChiose().then((res) => { getAwardsListChiose().then((res) => {
this.awardsList = res.rows; this.awardsList = res.rows
}); })
// //
getgradeRanglist().then((res) => { getgradeRanglist().then((res) => {
this.gradeRangList = res.data; this.gradeRangList = res.data
}); })
// //
getSex().then((res) => { getSex().then((res) => {
this.sexList = res.data; this.sexList = res.data
}); })
// //
getCardType().then((res) => { getCardType().then((res) => {
this.cardList = res.data; this.cardList = res.data
}); })
getEnableStatus().then((res) => { getEnableStatus().then((res) => {
this.getStatusList = res.data; this.getStatusList = res.data
}); })
getEYesNoList().then((res) => { getEYesNoList().then((res) => {
this.agreeList = res.data; this.agreeList = res.data
}); })
// //
// getDealerYesno().then((res) => { // getDealerYesno().then((res) => {
// this.dealerList = res.data; // this.dealerList = res.data;
@ -613,20 +596,20 @@ export default {
res.data.forEach((item) => { res.data.forEach((item) => {
this.topList.forEach((items) => { this.topList.forEach((items) => {
if (item.path == items.url) { if (item.path == items.url) {
items.changed = true; items.changed = true
} }
}); })
}); })
}); })
}, },
handleClose() { handleClose() {
this.isPolicy = false; this.isPolicy = false
}, },
handleClose2() { handleClose2() {
this.isDelete = false; this.isDelete = false
}, },
hrefs() { hrefs() {
this.isPolicy = true; this.isPolicy = true
// this.$router.push({ // this.$router.push({
// name: 'policyMoneyDetails', // name: 'policyMoneyDetails',
// query: { // query: {
@ -636,101 +619,101 @@ export default {
}, },
// //
flChange(value) { flChange(value) {
this.queryParams.pkCounty = ""; this.queryParams.pkCounty = ''
this.queryParams.pkProvince = ""; this.queryParams.pkProvince = ''
this.queryParams.pkCity = ""; this.queryParams.pkCity = ''
this.queryParams.pkProvince = value[0]; this.queryParams.pkProvince = value[0]
this.queryParams.pkCity = value[1]; this.queryParams.pkCity = value[1]
this.queryParams.pkCounty = value[2]; this.queryParams.pkCounty = value[2]
}, },
changeTime(val) { changeTime(val) {
if (val) { if (val) {
this.queryParams.startDate = val[0]; this.queryParams.startDate = val[0]
this.queryParams.endDate = val[1]; this.queryParams.endDate = val[1]
} }
}, },
changeTime1(val) { changeTime1(val) {
this.queryParams.startCreationTime = val[0]; this.queryParams.startCreationTime = val[0]
this.queryParams.endCreationTime = val[1]; this.queryParams.endCreationTime = val[1]
}, },
changeTime2(val) { changeTime2(val) {
this.queryParams.startPayTime = val[0]; this.queryParams.startPayTime = val[0]
this.queryParams.endPayTime = val[1]; this.queryParams.endPayTime = val[1]
}, },
getAllArea() { getAllArea() {
areaList().then((res) => { areaList().then((res) => {
this.areaData = res.data; this.areaData = res.data
}); })
}, },
exports() { exports() {
this.download( this.download(
"/member/manage/update-policy-currency/export", '/member/manage/update-policy-currency/export',
{ ...this.params }, { ...this.params },
`${'政策币业务'}-${new Date().getTime()}.xlsx` `${'政策币业务'}-${new Date().getTime()}.xlsx`
); )
}, },
getMenu(e, id) { getMenu(e, id) {
if (e && id == 0) { if (e && id == 0) {
this.menuList.forEach((item) => { this.menuList.forEach((item) => {
this.$set(item, "checked", true); this.$set(item, 'checked', true)
}); })
} else if (!e && id == 0) { } else if (!e && id == 0) {
this.menuList.forEach((item) => { this.menuList.forEach((item) => {
this.$set(item, "checked", false); this.$set(item, 'checked', false)
}); })
} }
}, },
// //
getMemberList() { getMemberList() {
this.loading = true this.loading = true
if (this.creationTime == "" || this.creationTime == null) { if (this.creationTime == '' || this.creationTime == null) {
this.queryParams.startDate = ""; this.queryParams.startDate = ''
this.queryParams.endDate = ""; this.queryParams.endDate = ''
} }
policyList(this.queryParams).then((res) => { policyList(this.queryParams).then((res) => {
this.loading = false this.loading = false
this.total = res.total; this.total = res.total
this.tableData = res.rows; this.tableData = res.rows
}); })
this.isPolicy = false; this.isPolicy = false
}, },
// //
changeActive() { changeActive() {
this.isActive = !this.isActive; this.isActive = !this.isActive
}, },
// //
reChongzhi() { reChongzhi() {
this.cjsj = []; this.cjsj = []
this.zfsj = []; this.zfsj = []
this.queryParams = { this.queryParams = {
pageNum: 1, pageNum: 1,
pageSize: 50, pageSize: 50,
memberCode: "", // memberCode: '', //
memberName: "", // memberName: '', //
phone: "", // phone: '' //
}; }
// this.$refs.form.clearValidate() // this.$refs.form.clearValidate()
// this.$refs.form.resetFields() // this.$refs.form.resetFields()
this.getMemberList(); this.getMemberList()
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val
}, },
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} else if (rowIndex % 2 == 0) { } else if (rowIndex % 2 == 0) {
return "success-row"; return 'success-row'
} }
return ""; return ''
}, }
}, }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -127,12 +127,12 @@
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="'详细地址'" prop="accountStatus"> <el-form-item :label="'详细地址'" prop="accountStatus">
<el-cascader <el-cascader
@change="flChange"
v-model="address" v-model="address"
class="area" class="area"
:options="areaData" :options="areaData"
:placeholder="'请选择省市区'" :placeholder="'请选择省市区'"
:props="regionParams" :props="regionParams"
@change="flChange"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -273,14 +273,17 @@
</div> </div>
<div class="maintop"> <div class="maintop">
<div class="mainbtn"> <div class="mainbtn">
<el-button size="small" class="thebtn2" <el-button
v-hasButtons="['realInfoExport']" v-hasButtons="['realInfoExport']"
@click="exports"> {{ '导出' }}</el-button> size="small"
class="thebtn2"
@click="exports"
> {{ '导出' }}</el-button>
</div> </div>
<div style="padding-right: 0px"> <div style="padding-right: 0px">
<el-dropdown :hide-on-click="false" style="width: 120px"> <el-dropdown :hide-on-click="false" style="width: 120px">
<span class="el-dropdown-link kuang"> <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> </span>
<el-dropdown-menu slot="dropdown" style=""> <el-dropdown-menu slot="dropdown" style="">
<el-dropdown-item v-for="item in menuList" :key="item.id"> <el-dropdown-item v-for="item in menuList" :key="item.id">
@ -296,9 +299,9 @@
<div class="maintable"> <div class="maintable">
<el-table <el-table
ref="table" ref="table"
v-loading="loading"
:data="tableData" :data="tableData"
height="615px" height="615px"
v-loading="loading"
style="width: 100%" style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }" :header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
@ -391,14 +394,14 @@
:label="'证件号码'" :label="'证件号码'"
width="180" 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"> <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> </template>
</el-table-column> </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"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -462,7 +465,7 @@ import {
getYesnouploadsList, getYesnouploadsList,
getorderStatus, getorderStatus,
getAgentGrade, getAgentGrade,
getDealerYesno, memberRealInfo memberRealInfo
} from '@/api/member' } from '@/api/member'
import { import {
getgradeRanglist, getgradeRanglist,
@ -470,7 +473,7 @@ import {
getRegistration, getCardType, getSex getRegistration, getCardType, getSex
} from '@/api/level' } from '@/api/level'
import { findAllArea } from '@/api/product' import { findAllArea } from '@/api/product'
import {areaList} from "@/api/site"; import { areaList } from '@/api/site'
import { getRoleMenu } from '@/api/notice' import { getRoleMenu } from '@/api/notice'
export default { export default {
@ -480,7 +483,7 @@ export default {
}, },
data() { data() {
return { return {
loading:false, loading: false,
areaData: [], areaData: [],
regionParams: { regionParams: {
label: 'name', label: 'name',
@ -634,7 +637,7 @@ export default {
multipleSelection: [], multipleSelection: [],
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 50, pageSize: 50
}, },
address: '', address: '',
tableData: [], tableData: [],
@ -657,8 +660,8 @@ export default {
sexList: [], sexList: [],
cardList: [], cardList: [],
creationTime:'', creationTime: '',
allTxt:{} allTxt: {}
} }
}, },
computed: { computed: {
@ -690,24 +693,21 @@ export default {
// JSON.stringify(Object.keys(this.tableData[0])) // JSON.stringify(Object.keys(this.tableData[0]))
// ); // );
// this.colums = JSON.parse(JSON.stringify(Object.keys(this.tableData[0]))); // this.colums = JSON.parse(JSON.stringify(Object.keys(this.tableData[0])));
}, },
mounted() { mounted() {
this.getUserRole() this.getUserRole()
}, },
methods: { methods: {
getUserRole() { getUserRole() {
getRoleMenu('RealInfo').then((res) => { getRoleMenu('RealInfo').then((res) => {
let obj ={} const obj = {}
res.data.forEach(item=>{ res.data.forEach(item => {
obj[item] = 1 obj[item] = 1
}) })
this.allTxt = obj this.allTxt = obj
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.table.doLayout(); this.$refs.table.doLayout()
}) })
}) })
}, },
// //
@ -721,16 +721,16 @@ export default {
this.queryParams.pkCounty = value[2] this.queryParams.pkCounty = value[2]
}, },
changeTime3(val) { changeTime3(val) {
this.queryParams.startCertificationTime = val[0]; this.queryParams.startCertificationTime = val[0]
this.queryParams.endCertificationTime = val[1]; this.queryParams.endCertificationTime = val[1]
}, },
changeTime1(val) { changeTime1(val) {
this.queryParams.startCreationTime = val[0]; this.queryParams.startCreationTime = val[0]
this.queryParams.endCreationTime = val[1]; this.queryParams.endCreationTime = val[1]
}, },
changeTime2(val) { changeTime2(val) {
this.queryParams.startPayTime = val[0]; this.queryParams.startPayTime = val[0]
this.queryParams.endPayTime = val[1]; this.queryParams.endPayTime = val[1]
}, },
// //
getSexs() { getSexs() {
@ -753,14 +753,14 @@ export default {
this.$confirm('是否确认导出所有数据项?', '警告', { this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: "warning", type: 'warning'
}).then((_) => { }).then((_) => {
this.download( this.download(
"/member/manager/member/real-info-export", '/member/manager/member/real-info-export',
{ ...this.queryParams }, { ...this.queryParams },
`${'真实信息'}${new Date().getTime()}.xlsx` `${'真实信息'}${new Date().getTime()}.xlsx`
); )
}); })
}, },
getMenu(e, id) { getMenu(e, id) {
if (e && id == 0) { if (e && id == 0) {
@ -773,12 +773,7 @@ export default {
}) })
} }
}, },
//
getDealerYesno() {
getDealerYesno().then((res) => {
this.dealerList = res.data
})
},
// //
getAgentGrade() { getAgentGrade() {
getAgentGrade().then((res) => { getAgentGrade().then((res) => {
@ -866,9 +861,9 @@ export default {
pageSize: 50, pageSize: 50,
memberCode: '', // memberCode: '', //
memberName: '', // memberName: '', //
phone: '', // phone: '' //
} }
this.address='' this.address = ''
// this.$refs.form.clearValidate() // this.$refs.form.clearValidate()
// this.$refs.form.resetFields() // this.$refs.form.resetFields()
this.getMemberList() this.getMemberList()

View File

@ -338,8 +338,7 @@ import topBar from '@/components/topBar'
import * as api from '@/api/settle.js' import * as api from '@/api/settle.js'
import { classifyUpdate, classifySave } from '@/api/product' import { classifyUpdate, classifySave } from '@/api/product'
import * as log from '@/api/logistics' import * as log from '@/api/logistics'
import { getcountryAllList } from '@/api/exchangerate' import { settleBonus, publishBonus, grantBonus, withdrawalBonus, noPublishBonus } from '@/api/member'
import { getDealerYesno, settleBonus, publishBonus, grantBonus, withdrawalBonus, noPublishBonus } from '@/api/member'
import { listPeriod } from '@/api/bonus' import { listPeriod } from '@/api/bonus'
import { Message } from 'element-ui' import { Message } from 'element-ui'
import { isLocal, isLocalSymbol, stateFormat } from '@/utils/numberToCurrency' import { isLocal, isLocalSymbol, stateFormat } from '@/utils/numberToCurrency'
@ -455,7 +454,6 @@ export default {
}, },
mounted() { mounted() {
// //
this.getData()
// //
this.getDataList() this.getDataList()
}, },
@ -613,12 +611,6 @@ export default {
}) })
} }
}, },
getData() {
//
getDealerYesno().then((res) => {
this.dealerList = res.data
})
},
changeTime(val) { changeTime(val) {
if (val) { if (val) {
this.select.startDate = val[0] this.select.startDate = val[0]