jufubao-admin-library 1.1.75 → 1.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -148,6 +148,19 @@ module.exports = {
|
|
|
148
148
|
},
|
|
149
149
|
disabled: true,
|
|
150
150
|
"role": "FINANCE-PARTNER.WALLET_LIST_PARTNER_CHANNEL_SUPPLIERS"
|
|
151
|
-
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
title: "加盟商明细-服务费返点结算明细",
|
|
154
|
+
mapFn: "getByCardFeeInfo",
|
|
155
|
+
path: "/finance-partner/v1/trade-record/get-card-service-fee-rule",
|
|
156
|
+
isRule: false,
|
|
157
|
+
params: {
|
|
158
|
+
trade_nnid: ["交易号", "String", "必填"],
|
|
159
|
+
partner_id: ["加盟商ID", "String", "必填"],
|
|
160
|
+
wallet_type: ["钱包类型", "String", "必填"],
|
|
161
|
+
},
|
|
162
|
+
disabled: true,
|
|
163
|
+
"role": ""
|
|
164
|
+
},
|
|
152
165
|
]
|
|
153
|
-
}
|
|
166
|
+
}
|
|
@@ -152,6 +152,12 @@
|
|
|
152
152
|
</div>
|
|
153
153
|
</div>
|
|
154
154
|
</template>
|
|
155
|
+
<template slot="amount" slot-scope="scope">
|
|
156
|
+
<xd-table-price :price="scope.row.amount" :key="rePriceKey"></xd-table-price>
|
|
157
|
+
<div v-if="isShowDeductDetail(scope.row)" style="display:flex; justify-content: center; align-items: center">
|
|
158
|
+
<el-button type="primary" size="mini" @click="handleShowDetail(scope.row)">查看明细</el-button>
|
|
159
|
+
</div>
|
|
160
|
+
</template>
|
|
155
161
|
</xd-table>
|
|
156
162
|
</div>
|
|
157
163
|
<div class="app-container__list-pagination">
|
|
@@ -198,6 +204,32 @@
|
|
|
198
204
|
>
|
|
199
205
|
<el-input maxlength="20" v-model="exportName" placeholder=""></el-input>
|
|
200
206
|
</xd-dialog>
|
|
207
|
+
<el-dialog
|
|
208
|
+
v-if="dialogTableVisible"
|
|
209
|
+
title="查看明细"
|
|
210
|
+
:visible.sync="dialogTableVisible"
|
|
211
|
+
width="800px"
|
|
212
|
+
@close="handleClose"
|
|
213
|
+
>
|
|
214
|
+
<div v-if="detailCard" style="height: 20px;display: flex;justify-content: flex-start;align-items: center">
|
|
215
|
+
<span style="color: #999;">卡号:</span>
|
|
216
|
+
<span>{{detailCard}}</span>
|
|
217
|
+
</div>
|
|
218
|
+
<div v-if="detailTips" style="height: 40px;display: flex;justify-content: flex-start;align-items: center">
|
|
219
|
+
<i class="el-icon-info" style="color: #666;font-size: 18px; margin-right:5px;margin-top: -1px"></i>
|
|
220
|
+
<span>{{detailTips}}</span>
|
|
221
|
+
</div>
|
|
222
|
+
<el-table
|
|
223
|
+
border
|
|
224
|
+
:data="detailList"
|
|
225
|
+
style="width: 100%"
|
|
226
|
+
>
|
|
227
|
+
<el-table-column prop="project" label="项目" width="100"></el-table-column>
|
|
228
|
+
<el-table-column prop="service_fee" label="税率" width="100"></el-table-column>
|
|
229
|
+
<el-table-column prop="amount_info" label="金额"></el-table-column>
|
|
230
|
+
<el-table-column prop="comment" label="备注"></el-table-column>
|
|
231
|
+
</el-table>
|
|
232
|
+
</el-dialog>
|
|
201
233
|
</div>
|
|
202
234
|
</template>
|
|
203
235
|
|
|
@@ -213,6 +245,8 @@ import { baseJsDateToTime } from "@/utils/xd.base.js";
|
|
|
213
245
|
import checkPermission from "@/utils/permission";
|
|
214
246
|
import roleTRecord from "@/constant/modules/tradeRecord.js";
|
|
215
247
|
import roleWallet from "@/constant/modules/wallet.js";
|
|
248
|
+
import XdTablePrice from "@/components/XdTablePrice.vue";
|
|
249
|
+
import {Loading} from "element-ui";
|
|
216
250
|
|
|
217
251
|
export default {
|
|
218
252
|
name: "PagePartnerDetail",
|
|
@@ -221,6 +255,7 @@ export default {
|
|
|
221
255
|
XdSearch, //搜查插件
|
|
222
256
|
XdTable,
|
|
223
257
|
XdDialog,
|
|
258
|
+
XdTablePrice
|
|
224
259
|
},
|
|
225
260
|
data() {
|
|
226
261
|
return {
|
|
@@ -314,13 +349,20 @@ export default {
|
|
|
314
349
|
label: "备注",
|
|
315
350
|
},
|
|
316
351
|
],
|
|
352
|
+
rePriceKey: 'rePriceKey',
|
|
317
353
|
showExport: false,
|
|
318
354
|
exportName: "加盟商明细",
|
|
319
355
|
channelList: [],
|
|
320
356
|
channel_code: null,
|
|
321
357
|
supplier_ids: null,
|
|
322
358
|
supplierList: [],
|
|
323
|
-
showSupplier: false
|
|
359
|
+
showSupplier: false,
|
|
360
|
+
|
|
361
|
+
//查看明细
|
|
362
|
+
dialogTableVisible:false,
|
|
363
|
+
detailList:[],
|
|
364
|
+
detailTips:'',
|
|
365
|
+
detailCard:'',
|
|
324
366
|
};
|
|
325
367
|
},
|
|
326
368
|
computed: {
|
|
@@ -354,8 +396,53 @@ export default {
|
|
|
354
396
|
"listPartner",
|
|
355
397
|
"countPartner",
|
|
356
398
|
"getSupplierList",
|
|
399
|
+
'getByCardFeeInfo'
|
|
357
400
|
]),
|
|
358
401
|
...mapActions("wallet", ["correctPartnerAmount"]),
|
|
402
|
+
|
|
403
|
+
//===扣款明细==========
|
|
404
|
+
isShowDeductDetail(row){
|
|
405
|
+
return ['card_fee_a'].includes(row.trade_type);
|
|
406
|
+
},
|
|
407
|
+
getShowDeductFn(row){
|
|
408
|
+
let temp = {
|
|
409
|
+
card_fee_a: 'getByCardFeeInfo',
|
|
410
|
+
}
|
|
411
|
+
return temp[row.trade_type]
|
|
412
|
+
},
|
|
413
|
+
getShowDeductParams(row){
|
|
414
|
+
let temp = {};
|
|
415
|
+
if(row.trade_type === 'card_fee_a'){
|
|
416
|
+
temp['trade_nnid'] = row['trade_nnid'];
|
|
417
|
+
temp['partner_id'] = row['partner_id'];
|
|
418
|
+
temp['wallet_type'] = this.wallet_type
|
|
419
|
+
}
|
|
420
|
+
return temp;
|
|
421
|
+
},
|
|
422
|
+
handleClose(){
|
|
423
|
+
this.dialogTableVisible = false;
|
|
424
|
+
this.detailTips = '';
|
|
425
|
+
this.detailCard = ''
|
|
426
|
+
},
|
|
427
|
+
handleShowDetail(row){
|
|
428
|
+
let fnName = this.getShowDeductFn(row);
|
|
429
|
+
let loading = Loading.service({})
|
|
430
|
+
this[fnName](this.getShowDeductParams(row))
|
|
431
|
+
.then(res=>{
|
|
432
|
+
this.detailList = res.data['list_rule_item'];
|
|
433
|
+
this.detailTips = res.data['formula'];
|
|
434
|
+
this.detailCard = res.data['card_number']
|
|
435
|
+
this.dialogTableVisible = true;
|
|
436
|
+
this.rePriceKey = Date.now();
|
|
437
|
+
loading.close()
|
|
438
|
+
})
|
|
439
|
+
.catch(err=>{
|
|
440
|
+
console.error(err);
|
|
441
|
+
loading.close()
|
|
442
|
+
})
|
|
443
|
+
},
|
|
444
|
+
//===扣款明细==========
|
|
445
|
+
|
|
359
446
|
handleCorrect() {
|
|
360
447
|
console.log(this.correctForm);
|
|
361
448
|
const { amount, correct_type } = this.correctForm;
|