jufubao-admin-library 1.1.75 → 1.1.76

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"></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 {
@@ -320,7 +355,13 @@ export default {
320
355
  channel_code: null,
321
356
  supplier_ids: null,
322
357
  supplierList: [],
323
- showSupplier: false
358
+ showSupplier: false,
359
+
360
+ //查看明细
361
+ dialogTableVisible:false,
362
+ detailList:[],
363
+ detailTips:'',
364
+ detailCard:'',
324
365
  };
325
366
  },
326
367
  computed: {
@@ -354,8 +395,52 @@ export default {
354
395
  "listPartner",
355
396
  "countPartner",
356
397
  "getSupplierList",
398
+ 'getByCardFeeInfo'
357
399
  ]),
358
400
  ...mapActions("wallet", ["correctPartnerAmount"]),
401
+
402
+ //===扣款明细==========
403
+ isShowDeductDetail(row){
404
+ return ['card_fee_a'].includes(row.trade_type);
405
+ },
406
+ getShowDeductFn(row){
407
+ let temp = {
408
+ card_fee_a: 'getByCardFeeInfo',
409
+ }
410
+ return temp[row.trade_type]
411
+ },
412
+ getShowDeductParams(row){
413
+ let temp = {};
414
+ if(row.trade_type === 'card_fee_a'){
415
+ temp['trade_nnid'] = row['trade_nnid'];
416
+ temp['partner_id'] = row['partner_id'];
417
+ temp['wallet_type'] = this.wallet_type
418
+ }
419
+ return temp;
420
+ },
421
+ handleClose(){
422
+ this.dialogTableVisible = false;
423
+ this.detailTips = '';
424
+ this.detailCard = ''
425
+ },
426
+ handleShowDetail(row){
427
+ let fnName = this.getShowDeductFn(row);
428
+ let loading = Loading.service({})
429
+ this[fnName](this.getShowDeductParams(row))
430
+ .then(res=>{
431
+ this.detailList = res.data['list_rule_item'];
432
+ this.detailTips = res.data['formula'];
433
+ this.detailCard = res.data['card_number']
434
+ this.dialogTableVisible = true;
435
+ loading.close()
436
+ })
437
+ .catch(err=>{
438
+ console.error(err);
439
+ loading.close()
440
+ })
441
+ },
442
+ //===扣款明细==========
443
+
359
444
  handleCorrect() {
360
445
  console.log(this.correctForm);
361
446
  const { amount, correct_type } = this.correctForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.75",
3
+ "version": "1.1.76",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {