|
@@ -1,18 +1,17 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <div class="sty" v-show="show">
|
|
|
|
- <el-page-header @back="goBack"> </el-page-header>
|
|
|
|
|
|
+ <div v-show="show" class="sty">
|
|
|
|
+ <el-page-header @back="goBack" />
|
|
</div>
|
|
</div>
|
|
- <br />
|
|
|
|
|
|
+ <br>
|
|
<!-- 筛选条件 -->
|
|
<!-- 筛选条件 -->
|
|
<div v-if="show2">
|
|
<div v-if="show2">
|
|
<el-form ref="searchForm" :model="searchForm" :rules="rulesSearchForm" label-width="100px" size="mini" label-position="left">
|
|
<el-form ref="searchForm" :model="searchForm" :rules="rulesSearchForm" label-width="100px" size="mini" label-position="left">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-form-item label="经销商名称" prop="customerId">
|
|
<el-form-item label="经销商名称" prop="customerId">
|
|
- <el-select class="selectStyle" v-model="searchForm.customerId" placeholder="请选择" filterable>
|
|
|
|
- <el-option v-for="(v, i) in customerList" :key="i" :label="v.name" :value="v.id">
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ <el-select v-model="searchForm.customerId" class="selectStyle" placeholder="请选择" filterable>
|
|
|
|
+ <el-option v-for="(v, i) in customerList" :key="i" :label="v.name" :value="v.id" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -44,52 +43,54 @@
|
|
</div>
|
|
</div>
|
|
</el-col> -->
|
|
</el-col> -->
|
|
</el-row>
|
|
</el-row>
|
|
- <el-divider></el-divider>
|
|
|
|
|
|
+ <el-divider />
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
<div class="table">
|
|
<div class="table">
|
|
- <el-table v-loading="listLoading" :data="walletList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
|
|
|
|
- <el-table-column align="left" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip>
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <CopyButton :copyText="scope.row.customerName" />
|
|
|
|
- <span>{{scope.row.customerName}}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column align="left" label="钱包" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="right" label="余额" prop="amount" min-width="160" show-overflow-tooltip>
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- {{ scope.row.amount | numToFixed }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column align="right" label="可用信用额度" prop="freeCreditAmount" min-width="160" show-overflow-tooltip>
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- {{ scope.row.freeCreditAmount | numToFixed }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column align="right" label="已用信用额度" prop="usedCreditAmount" min-width="160" show-overflow-tooltip>
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- {{ scope.row.usedCreditAmount | numToFixed }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ <el-table v-loading="listLoading" @row-dblclick="$router.push('/finance/details/standbook_list?status=COMMONLY')" :data="walletList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
|
|
|
|
+ <template>
|
|
|
|
+ <el-table-column align="left" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <CopyButton :copy-text="scope.row.customerName" />
|
|
|
|
+ <span>{{ scope.row.customerName }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="left" label="钱包" prop="name" min-width="160" show-overflow-tooltip />
|
|
|
|
+ <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip />
|
|
|
|
+ <el-table-column align="right" label="余额" prop="amount" min-width="160" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.amount | numToFixed }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="right" label="可用信用额度" prop="freeCreditAmount" min-width="160" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.freeCreditAmount | numToFixed }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="right" label="已用信用额度" prop="usedCreditAmount" min-width="160" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.usedCreditAmount | numToFixed }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </template>
|
|
|
|
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<span>返利钱包</span>
|
|
<span>返利钱包</span>
|
|
- <el-divider></el-divider>
|
|
|
|
|
|
+ <el-divider />
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
<div class="table">
|
|
<div class="table">
|
|
- <el-table v-loading="listLoading" :data="rebateList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
|
|
|
|
|
|
+ <el-table v-loading="listLoading" :data="rebateList" @row-dblclick="$router.push('/finance/details/standbook_list?status=REBATE')" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
|
|
<el-table-column align="left" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip>
|
|
<el-table-column align="left" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.customerName" />
|
|
|
|
- <span>{{scope.row.customerName}}</span>
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.customerName" />
|
|
|
|
+ <span>{{ scope.row.customerName }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="left" label="返利钱包" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="left" label="返利钱包" prop="name" min-width="160" show-overflow-tooltip />
|
|
|
|
+ <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip />
|
|
|
|
|
|
<el-table-column align="right" label="钱包余额" prop="amount" min-width="160" show-overflow-tooltip>
|
|
<el-table-column align="right" label="钱包余额" prop="amount" min-width="160" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -120,7 +121,7 @@
|
|
<el-dialog title="配置返利比例" :visible.sync="dialogForm" width="30%" :show-close="false" :close-on-click-modal="false">
|
|
<el-dialog title="配置返利比例" :visible.sync="dialogForm" width="30%" :show-close="false" :close-on-click-modal="false">
|
|
<el-form ref="addForm" :rules="rules" :model="addForm" label-width="100px">
|
|
<el-form ref="addForm" :rules="rules" :model="addForm" label-width="100px">
|
|
<el-form-item label="返利比例" prop="rebateRate">
|
|
<el-form-item label="返利比例" prop="rebateRate">
|
|
- <el-input v-model.number="addForm.rebateRate" oninput="if(value>100)value=100;if(value<0)value=0"><i class="el-input__icon" slot="suffix">% </i></el-input>
|
|
|
|
|
|
+ <el-input v-model.number="addForm.rebateRate" oninput="if(value>100)value=100;if(value<0)value=0"><i slot="suffix" class="el-input__icon">% </i></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -133,9 +134,9 @@
|
|
<el-form ref="exportForm" :rules="exportRules" :model="exportForm" label-width="120px">
|
|
<el-form ref="exportForm" :rules="exportRules" :model="exportForm" label-width="120px">
|
|
<el-form-item label="编码范围" prop="">
|
|
<el-form-item label="编码范围" prop="">
|
|
<div class="fanwei">
|
|
<div class="fanwei">
|
|
- <el-input v-model="exportForm.startCustomerId" type="number"></el-input>
|
|
|
|
|
|
+ <el-input v-model="exportForm.startCustomerId" type="number" />
|
|
<span>——</span>
|
|
<span>——</span>
|
|
- <el-input v-model="exportForm.endCustomerId" type="number"></el-input>
|
|
|
|
|
|
+ <el-input v-model="exportForm.endCustomerId" type="number" />
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -148,56 +149,53 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { mapGetters } from "vuex";
|
|
|
|
-import {
|
|
|
|
- getfinanceInit,
|
|
|
|
- getWalletRebateRateUpdate,
|
|
|
|
- getCustomerList,
|
|
|
|
-} from "@/api/finance/wallet";
|
|
|
|
-import { downloadFiles } from "@/utils/util";
|
|
|
|
-import { getWalletCustomerList } from "@/api/finance/change_apply";
|
|
|
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
|
+import { getCustomerList, getWalletRebateRateUpdate } from '@/api/finance/wallet'
|
|
|
|
+import { downloadFiles } from '@/utils/util'
|
|
|
|
+import { getWalletCustomerList } from '@/api/finance/change_apply'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
dialogExportForm: false,
|
|
dialogExportForm: false,
|
|
exportRules: {},
|
|
exportRules: {},
|
|
exportForm: {
|
|
exportForm: {
|
|
- endCustomerId: "",
|
|
|
|
- startCustomerId: "",
|
|
|
|
|
|
+ endCustomerId: '',
|
|
|
|
+ startCustomerId: ''
|
|
},
|
|
},
|
|
- isShow: JSON.parse(localStorage.getItem("supply_user")).isCustomer,
|
|
|
|
|
|
+ isShow: JSON.parse(localStorage.getItem('supply_user')).isCustomer,
|
|
show: false,
|
|
show: false,
|
|
show2: true,
|
|
show2: true,
|
|
searchForm: {
|
|
searchForm: {
|
|
- customerId: null,
|
|
|
|
|
|
+ customerId: null
|
|
},
|
|
},
|
|
customerList: [],
|
|
customerList: [],
|
|
listLoading: false, // 列表加载loading
|
|
listLoading: false, // 列表加载loading
|
|
walletList: [],
|
|
walletList: [],
|
|
rebateList: [],
|
|
rebateList: [],
|
|
addForm: {
|
|
addForm: {
|
|
- rebateRate: null,
|
|
|
|
|
|
+ rebateRate: null
|
|
},
|
|
},
|
|
dialogForm: false,
|
|
dialogForm: false,
|
|
rulesSearchForm: {
|
|
rulesSearchForm: {
|
|
customerId: [
|
|
customerId: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
- message: "请选择经销商",
|
|
|
|
- trigger: "blur",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ message: '请选择经销商',
|
|
|
|
+ trigger: 'blur'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
rebateRate: [
|
|
rebateRate: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
- message: "请输入返利比例",
|
|
|
|
- trigger: "blur",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- };
|
|
|
|
|
|
+ message: '请输入返利比例',
|
|
|
|
+ trigger: 'blur'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
beforeRouteEnter(to, from, next) {
|
|
beforeRouteEnter(to, from, next) {
|
|
// console.log(11112222);
|
|
// console.log(11112222);
|
|
@@ -205,43 +203,43 @@ export default {
|
|
next((vm) => {
|
|
next((vm) => {
|
|
// 这个时候组件还没有创建,所以要通过vm来访问
|
|
// 这个时候组件还没有创建,所以要通过vm来访问
|
|
if (
|
|
if (
|
|
- from.path == "/finance/details/balance_sum" &&
|
|
|
|
- to.path == "/finance/details/wallet" &&
|
|
|
|
|
|
+ from.path == '/finance/details/balance_sum' &&
|
|
|
|
+ to.path == '/finance/details/wallet' &&
|
|
vm.$route.query.id
|
|
vm.$route.query.id
|
|
) {
|
|
) {
|
|
- //只有是从A进到B页面才执行
|
|
|
|
|
|
+ // 只有是从A进到B页面才执行
|
|
// 将要执行的逻辑
|
|
// 将要执行的逻辑
|
|
- vm.show = true;
|
|
|
|
- vm.show2 = false;
|
|
|
|
|
|
+ vm.show = true
|
|
|
|
+ vm.show2 = false
|
|
vm.getDataWallet({
|
|
vm.getDataWallet({
|
|
customerId: vm.$route.query.id,
|
|
customerId: vm.$route.query.id,
|
|
- type: "COMMONLY",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'COMMONLY'
|
|
|
|
+ })
|
|
vm.getDataRebate({
|
|
vm.getDataRebate({
|
|
customerId: vm.$route.query.id,
|
|
customerId: vm.$route.query.id,
|
|
- type: "REBATE",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'REBATE'
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
if (vm.isShow) {
|
|
if (vm.isShow) {
|
|
- vm.show2 = false;
|
|
|
|
|
|
+ vm.show2 = false
|
|
vm.getDataWallet({
|
|
vm.getDataWallet({
|
|
customerId: vm.customerId,
|
|
customerId: vm.customerId,
|
|
- type: "COMMONLY",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'COMMONLY'
|
|
|
|
+ })
|
|
vm.getDataRebate({
|
|
vm.getDataRebate({
|
|
customerId: vm.customerId,
|
|
customerId: vm.customerId,
|
|
- type: "REBATE",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'REBATE'
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
- vm.show = false;
|
|
|
|
- vm.show2 = true;
|
|
|
|
- vm.walletList = [];
|
|
|
|
- vm.rebateList = [];
|
|
|
|
- vm.$message("请选择经销商");
|
|
|
|
- vm.getCustomerDataList();
|
|
|
|
|
|
+ vm.show = false
|
|
|
|
+ vm.show2 = true
|
|
|
|
+ vm.walletList = []
|
|
|
|
+ vm.rebateList = []
|
|
|
|
+ vm.$message('请选择经销商')
|
|
|
|
+ vm.getCustomerDataList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
@@ -272,88 +270,88 @@ export default {
|
|
// }
|
|
// }
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters(["customerId"]),
|
|
|
|
|
|
+ ...mapGetters(['customerId'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
exportCancelFn() {
|
|
exportCancelFn() {
|
|
this.exportForm = {
|
|
this.exportForm = {
|
|
- endCustomerId: "",
|
|
|
|
- startCustomerId: "",
|
|
|
|
- };
|
|
|
|
- this.dialogExportForm = false;
|
|
|
|
|
|
+ endCustomerId: '',
|
|
|
|
+ startCustomerId: ''
|
|
|
|
+ }
|
|
|
|
+ this.dialogExportForm = false
|
|
},
|
|
},
|
|
exportOKFn() {
|
|
exportOKFn() {
|
|
- downloadFiles("/wallet/count/export", { ...this.exportForm });
|
|
|
|
|
|
+ downloadFiles('/wallet/count/export', { ...this.exportForm })
|
|
this.exportForm = {
|
|
this.exportForm = {
|
|
- endCustomerId: "",
|
|
|
|
- startCustomerId: "",
|
|
|
|
- };
|
|
|
|
- this.dialogExportForm = false;
|
|
|
|
|
|
+ endCustomerId: '',
|
|
|
|
+ startCustomerId: ''
|
|
|
|
+ }
|
|
|
|
+ this.dialogExportForm = false
|
|
},
|
|
},
|
|
- //导出
|
|
|
|
|
|
+ // 导出
|
|
exportFn() {
|
|
exportFn() {
|
|
- this.dialogExportForm = true;
|
|
|
|
|
|
+ this.dialogExportForm = true
|
|
// downloadFiles("/wallet/count/export");
|
|
// downloadFiles("/wallet/count/export");
|
|
},
|
|
},
|
|
- //清空
|
|
|
|
|
|
+ // 清空
|
|
resetFn() {
|
|
resetFn() {
|
|
- this.$refs.searchForm.resetFields();
|
|
|
|
|
|
+ this.$refs.searchForm.resetFields()
|
|
},
|
|
},
|
|
- //搜索
|
|
|
|
|
|
+ // 搜索
|
|
async searchFn() {
|
|
async searchFn() {
|
|
- await this.$refs.searchForm.validate();
|
|
|
|
|
|
+ await this.$refs.searchForm.validate()
|
|
this.getDataWallet({
|
|
this.getDataWallet({
|
|
customerId: this.searchForm.customerId,
|
|
customerId: this.searchForm.customerId,
|
|
- type: "COMMONLY",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'COMMONLY'
|
|
|
|
+ })
|
|
this.getDataRebate({
|
|
this.getDataRebate({
|
|
customerId: this.searchForm.customerId,
|
|
customerId: this.searchForm.customerId,
|
|
- type: "REBATE",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'REBATE'
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- //获取经销商列表
|
|
|
|
|
|
+ // 获取经销商列表
|
|
async getCustomerDataList() {
|
|
async getCustomerDataList() {
|
|
- let res = await getCustomerList({
|
|
|
|
|
|
+ const res = await getCustomerList({
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
- pageSize: -1,
|
|
|
|
- });
|
|
|
|
- this.customerList = res.data.records;
|
|
|
|
|
|
+ pageSize: -1
|
|
|
|
+ })
|
|
|
|
+ this.customerList = res.data.records
|
|
},
|
|
},
|
|
- //返回
|
|
|
|
|
|
+ // 返回
|
|
goBack() {
|
|
goBack() {
|
|
- this.$router.go(-1);
|
|
|
|
- this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
|
|
+ this.$router.go(-1)
|
|
|
|
+ this.$store.dispatch('tagsView/delView', this.$route)
|
|
},
|
|
},
|
|
- //取消
|
|
|
|
|
|
+ // 取消
|
|
async cancelFn() {
|
|
async cancelFn() {
|
|
- this.dialogForm = false;
|
|
|
|
- await this.$refs.addForm.clearValidate();
|
|
|
|
|
|
+ this.dialogForm = false
|
|
|
|
+ await this.$refs.addForm.clearValidate()
|
|
},
|
|
},
|
|
- //确定
|
|
|
|
|
|
+ // 确定
|
|
async determineFn() {
|
|
async determineFn() {
|
|
- await this.$refs.addForm.validate();
|
|
|
|
- const res = this.addForm.rebateRate / 100;
|
|
|
|
- this.addForm.rebateRate = res;
|
|
|
|
- await getWalletRebateRateUpdate({ ...this.addForm });
|
|
|
|
|
|
+ await this.$refs.addForm.validate()
|
|
|
|
+ const res = this.addForm.rebateRate / 100
|
|
|
|
+ this.addForm.rebateRate = res
|
|
|
|
+ await getWalletRebateRateUpdate({ ...this.addForm })
|
|
if (this.$route.query.id) {
|
|
if (this.$route.query.id) {
|
|
this.getDataRebate({
|
|
this.getDataRebate({
|
|
customerId: this.$route.query.id,
|
|
customerId: this.$route.query.id,
|
|
- type: "REBATE",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'REBATE'
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
this.getDataRebate({
|
|
this.getDataRebate({
|
|
customerId: this.searchForm.customerId,
|
|
customerId: this.searchForm.customerId,
|
|
- type: "REBATE",
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'REBATE'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- this.$message.success("修改成功");
|
|
|
|
- this.dialogForm = false;
|
|
|
|
|
|
+ this.$message.success('修改成功')
|
|
|
|
+ this.dialogForm = false
|
|
},
|
|
},
|
|
- //修改
|
|
|
|
|
|
+ // 修改
|
|
editFn(v) {
|
|
editFn(v) {
|
|
- this.addForm.customerWalletId = v.customerWalletId;
|
|
|
|
- this.addForm.rebateRate = v.rebateRate * 100;
|
|
|
|
- this.dialogForm = true;
|
|
|
|
|
|
+ this.addForm.customerWalletId = v.customerWalletId
|
|
|
|
+ this.addForm.rebateRate = v.rebateRate * 100
|
|
|
|
+ this.dialogForm = true
|
|
},
|
|
},
|
|
// //一键生成
|
|
// //一键生成
|
|
// async generateFn() {
|
|
// async generateFn() {
|
|
@@ -364,23 +362,23 @@ export default {
|
|
// },
|
|
// },
|
|
//
|
|
//
|
|
async getDataRebate(data) {
|
|
async getDataRebate(data) {
|
|
- let res = await getWalletCustomerList(data);
|
|
|
|
|
|
+ const res = await getWalletCustomerList(data)
|
|
res.data.forEach((item) => {
|
|
res.data.forEach((item) => {
|
|
- item.sums1 = [];
|
|
|
|
- item.sums2 = ["amount"];
|
|
|
|
- });
|
|
|
|
- this.rebateList = res.data;
|
|
|
|
|
|
+ item.sums1 = []
|
|
|
|
+ item.sums2 = ['amount']
|
|
|
|
+ })
|
|
|
|
+ this.rebateList = res.data
|
|
},
|
|
},
|
|
async getDataWallet(data) {
|
|
async getDataWallet(data) {
|
|
- let res = await getWalletCustomerList(data);
|
|
|
|
|
|
+ const res = await getWalletCustomerList(data)
|
|
res.data.forEach((item) => {
|
|
res.data.forEach((item) => {
|
|
- item.sums1 = [];
|
|
|
|
- item.sums2 = ["amount", "freeCreditAmount", "usedCreditAmount"];
|
|
|
|
- });
|
|
|
|
- this.walletList = res.data;
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
-};
|
|
|
|
|
|
+ item.sums1 = []
|
|
|
|
+ item.sums2 = ['amount', 'freeCreditAmount', 'usedCreditAmount']
|
|
|
|
+ })
|
|
|
|
+ this.walletList = res.data
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|