zhaoxiaoqiang
2021-04-12 f401147f1459d5a5c68c702abf67b46c240f7b0c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
/*
 * @Descripttion:该文件用于组织服务器请求,添加请求函数时注意 函数重名!
 * @Author: TM丶
 * @LastEditors: 小明丶
 * @Date: 2019-03-30 08:27:46
 * @LastEditTime: 2021-01-04 09:34:57
 */
 
import $http from './config';
import oldapi from './oldapi';
 
 
const api = {
    ...oldapi,
    // 获取微信配置
    getTokenInfo(data) {
        data.apploading = 1;
        return $http.post('/wechat/getSign', data);
    },
    // 获取微信token
    getWeChatUserInfo(data) {
        return $http.post('/wechat/userInfo', data);
    },
    setUserOpenId(data) {
        return Service.post('/wechat/binding', data);
    },
    //token登陆
    loginByToken(data) {
        return $http.post('/login/loginByToken', data);
    },
    loginByMerToken(data){
        return $http.post('/login/loginByMerToken',data);
    },
    //登陆
    login(data) {
        return $http.post('/login/login', data);
    },
    //登出
    logout(data) {
        return $http.post('/login/logout', data);
    },
    // 获取角色列表
    getRole(data) {
        return $http.post('/user/getUserMgrInfo', data);
    },
    getAgencyMerList(data){
        return $http.post('/user/getAgencyMerList',data)
    },
    // 获取用户信息
    getPowerInfo(mgrId) {
        return $http.post('/user/mgr/powerInfo', {
            mgrId
        });
    },
    // 账户管理——获取用户信息
    getUserDetail(mgrId) {
        return $http.post('/user/mgr/detail', {
            mgrId
        });
    },
    //修改密码
    userUpdatePwd(data) {
      return $http.post('/user/updatePwd', data);
    },
    //获取验证码
    userSendMsg(data) {
      return $http.post('/user/sendMsg', data);
    },
    //忘记密码
      userForgetPwd(data) {
        return $http.post('/user/forgetPwd', data);
      },
 
 
 
    // 获取地区列表
    getArea() {
        let data = {
            apploading:1
        };
        return $http.post('/public/areaList',data);
    },
 
    // 获取机构拥有的地区列表
    getOrgAreaInfo(orgType) {
        let data = {
            apploading:1,
            orgType
        };
        return  $http.post('/public/getOrgAreaInfo', data);
    },
    /**
     * 渠道相关
     */
    //列表
    getChannel() {
        return $http.post('/chan/chanList');
    },
    //添加
    addChan(data) {
        return $http.post('/chan/addChan', data);
    },
    //切换状态
    channSwitchStatus(data) {
        return $http.post('/chan/switchStatus', data);
    },
    //更新渠道详细信息
    updateChan(data) {
        return $http.post('/chan/updateChan', data);
    },
    //查看/加载渠道详细信息
    getChannelInfo(chanId) {
        return $http.post('/chan/viewChanInf', {chanId});
    },
 
    // 获取审批列表
    getAuditList(data) {
        return $http.post('/merchant/auditList', data);
    },
    //审批商户
    merAudit(data){
        return $http.post('/merchant/audit', data);
    },
 
    // /merchant/auditList
 
    getAuditType(data){
        return $http.post('/merchant/auditType', data);
    },
    setAuditType(data){
        return $http.post('/merchant/setAuditType', data);
    },
 
 
    /**
     * 门店管理相关
     */
    //门店列表
    storeStoreList(data) {
        return $http.post('/store/storeList', data);
    },
    //门店详情
    storeDtl(data) {
        return $http.post('/store/dtl', data);
    },
    //编辑门店
    storeEdit(data) {
        return $http.post('/store/edit', data);
    },
    //添加门店
    storeAdd(data) {
        return $http.post('/store/add', data);
    },
 
 
 
 
 
 
 
 
 
 
    // 数据查询相关
    //获取产品列表
    getProductList(data) {
        return $http.post('/prod/typeList', data);
    },
 
    // 获取订单初始化数据
    getOrderInit(data) {
        return $http.post('/order/init', data);
    },
 
 
 
 
 
    // 账号管理——列表
    getMgrList(data) {
        return $http.post('/user/getMgrList', data);
    },
    // 账户管理——冻结账户
    userFreezeMgr(mgrId){
        return $http.post('/user/freezeMgr', {mgrId});
    },
    // 账户管理——增加账户
    userAdd(data){
        return $http.post('/user/add', data);
    },
    // 账户管理——更新账户信息
    userUpdate(data){
        return $http.post('/user/update', data);
    },
 
    // 花呗订单列表
    getHBList(data){
        return $http.post('/order/hbList', data);
    },
    // 获取花呗订单详情
    getHBDetail(orderId){
        return $http.post('/order/hbOrderDtl', {orderId});
    },
    // 花呗订单——退款
    hbOrderRefund(data){
        return $http.post('/hbOrder/refund', data);
    },
    // 花呗——订单导出
    hbExport(data){
        return $http.post('/order/hbExport', data);
    },
    // 获取产品订单金额统计
    getAmtReport(prodId){
        return $http.post('/order/amtReport', {prodId});
    },
    //获取周次商户统计
    getMerWeeksReport(){
        return $http.post('/merchant/weeksReport');
    },
    // 商户统计
    getMerReport(data){
        return $http.post('/merchant/report',data);
    },
    // 获取订单统计
    getOrderReport(data){
        return $http.post('/order/report',data);
    },
 
 
 
 
 
 
    //获取商户列表
    merList(data) {
        return $http.post('/merchant/list', data);
    },
    //商户详情
    merDetail(data) {
        return $http.post('/merchant/merDetail', data);
    },
    //商户照片信息
    merFile(data) {
        return $http.post('/merchant/file', data);
    },
    //商户列表导出
    merExport(data) {
        return $http.post('/merchant/export', data);
    },
    getUnAuditNb(data){
        return $http.post('/merchant/unAuditNb',data);
    },
    // 信用卡分期订单
    getCreditOrderList(data){
        return $http.post('/order/list', data);
    },
    // 信用卡分期 导出
    creditExport(data){
        return $http.post('/order/export', data);
    },
    // 信用卡分期 详情
    getCreditDetail(orderId){
        return $http.post('/order/orderDtl', {orderId});
    },
 
 
 
 
    // 手机分期订单列表
    ljOrderList(data){
        return $http.post('/ljOrder/list', data);
    },
    // 手机分期——导出
    ljOrderExport(data){
        return $http.post('/ljOrder/export', data);
    },
    // 智享花 ——订单
    getHeydOrder(data){
        return $http.post('/heydOrder/list', data);
    },
    // 智享花 ——导出
    zxhExport(data){
        return $http.post('/heydOrder/export', data);
    },
 
    // 信用购 ——订单
    getXygOrder(data){
        return $http.post('/xygOrder/list', data);
    },
    // 信用购 ——导出
    xygExport(data){
        return $http.post('/xygOrder/export', data);
    },
    getXygDetail(orderId){
        return $http.post('/xygOrder/orderDtl', {orderId});
    },
    // 信用购 ——订单
    getGzzjOrder(data){
        return $http.post('/gzzjOrder/list', data);
    },
    // 信用购 ——导出
    gzzjExport(data){
        return $http.post('/gzzjOrder/export', data);
    },
    getGzzjDetail(orderId){
        return $http.post('/gzzjOrder/orderDtl', {orderId});
    },
    // 获取商户收款订单列表
    getDmfOrderList(data){
        return $http.post('/dmfOrder/orderList', data);
    },
    //商户收款 详情
    getDmfOrderDetail(orderId){
        return $http.post('/dmfOrder/orderDetails', {orderId});
    },
    //商户收款 退款
    facepay_refund(data){
        return $http.post('/dmfOrder/refund', data);
    },
    // 商户收款 获取支付状态
    facepay_getStatus(orderId){
        return $http.post('/dmfOrder/findOrderSts', {orderId});
    },
 
    // 购机直降——订单列表
    getGjzjList(data){
        return $http.post('/gjzjOrder/list', data);
    },
    // 购机直降——详情
    getGjzjDetail(orderId){
        return $http.post('/gjzjOrder/orderDtl', {orderId});
    },
    // 购机直降——导出
    gjzjExport(data){
        return $http.post('/gjzjOrder/export', data);
    },
 
    getZxhDetail(orderId){
        return $http.post('/heydOrder/orderDtl', {orderId});
    },
 
 
 
 
 
    //商户注册
    merRegist(data) {
        return $http.post('/user/regist', data);
    },
    // 商户筛选条件初始化
    merInitFilter(data){
        return $http.post('/merchant/initFilter', data);
    },
 
    // 模板列表
    getTempList(data){
        return $http.post('/temp/tempList', data);
    },
    // 模板 初始化数据
    // getTempInit(){
    //     return $http.post('/temp/init');
    // },
    getTempInit(data){
        return $http.post('/tempManager/init',data);
    },
    // 模板详情
    // getTempDetail(tempId){
    //     return $http.post('/temp/detail',{tempId});
    // },
    getTempDetail(tempId){
        return $http.post('/tempManager/detail',{tempId});
    },
    //模板——保存
    // tempSave(data){
    //     return $http.post('/temp/save',data);
    // },
    tempSave(data){
        return $http.post('/tempManager/save',data);
    },
    tempManagerUpdate(data){
        return $http.post('/tempManager/update',data)
    },
    //模板——商户保存
    tempSaveMerTemp(data){
        return $http.post('/temp/saveMerTemp',data);
    },
    getTempMerRef(data){
        return $http.post('/temp/getTempMerRef',data);
    },
    tempGetMerRef(data){
        return $http.post('/temp/getMerRef',data);
    },
    //模板——商户列表
    getTempMerList(data){
        return $http.post('/temp/tempMerList',data);
    },
    //模板 保存商户分配模板
    saveMerListTemp(data){
        return $http.post('/temp/saveMerListTemp',data);
    },
 
    //红包接口
    redPacketInit(data){
        return $http.post('/redPacket/init',data)
    },
    redPacketIncomeList(data){
        return $http.post('/redPacket/incomeList',data)
    },
    redPacketExpendList(data){
        return $http.post('/redPacket/expendList',data)
    },
    redPacketBindAliInfo(data){
        return $http.post('/redPacket/bindAliInfo',data)
    },
    redPacketExpend(data){
        return $http.post('/redPacket/expend',data)
    },
    //花呗合约机套餐信息获取
    categoryList(data){
        return $http.post('/contract/categoryList',data)
    },
    // 信用购花呗导出
    xygOrderHbExport(data){
        return $http.post('/xygOrder/hbExport',data)
    },
    // 信用购花呗列表获取
    xygOrderHbList(data){
        return $http.post('/xygOrder/hbList',data)
    },
    // 验证是否需要手动绑定
    xygOrderCheckInfo(data){
        return $http.post('/xygOrder/checkInfo',data)
    },
    //绑定信息
    xygOrderBindInfo(data){
        return $http.post('/xygOrder/bindInfo',data)
    },
    //信用购花呗创建订单
    xygOrderCreateHbOrder(data){
        return $http.post('/xygOrder/createHbOrder',data)
    },
    // 信用购花呗订单详情
    xygOrderHbOrderDtl(data){
        return $http.post('/xygOrder/hbOrderDtl',data)
    },
    // 信用购花呗 退款
    xygOrderRefundHb(data){
        return $http.post('/xygOrder/refundHb',data)
    },
 
    // 花呗间联接口
    hbjlOrderList(data){
        return $http.post('/hbjlOrder/list',data)
    },
    hbjlOrderInit(data){
        return $http.post('/hbjlOrder/init',data)
    },//创建订单初始化
    hbjlOrderExport(data){
        return $http.post('/hbjlOrder/export',data)
    },
    hbjlOrderTrial(data){
        return $http.post('/hbjlOrder/trial',data)
    },
    hbjlOrderOrderDtl(data){
        return $http.post('/hbjlOrder/orderDtl',data)
    },
    /**
     * 通联接口
     * **/
    tltMerOpenInit(data){
        return $http.post('/tlt/merOpen/init',data)
    },//页面信息初始化
    tltMerOpenOpen(data){
        return $http.post('/tlt/merOpen/open',data)
    },//商户开通
    tltMerOpenFindOpenSts(data){
        return $http.post('/tlt/merOpen/findOpenSts',data)
    },//查询开通状态
    tltMerOpenSendSmsCode(data){
        return $http.post('/tlt/merOpen/sendSmsCode',data)
    },//获取网商验证码
    tltMerOpenReOpenMer(data){
        return $http.post('/tlt/merOpen/reOpenMer',data)
    },//重置开通状态
    tltMerOpenQueryElectUrl(data){
        return $http.post('/tlt/merOpen/queryElectUrl',data)
    },//进件电子协议URL查询
    tltMerOpenRepair(data){
        return $http.post('/tlt/merOpen/repair',data)
    },//商户资料补录
    tltMerOpenPayAuth(data){
        return $http.post('/tlt/merOpen/payAuth',data)
    },//打款验证接口
    /**
     * 通联提现接口
     * **/
    tltWalletOpenStatus(data){
        return $http.post('tlt/wallet/openStatus',data)
    },
    tltWalletInit(data){
        return $http.post('/tlt/wallet/init',data)
    },//钱包初始化
    tltWalletSendSmsCode(data){
        return $http.post('/tlt/wallet/sendSmsCode',data)
    },//获取网商验证码
    tltWalletWithdraw(data){
        return $http.post('/tlt/wallet/withdraw',data)
    },//提现
    tltWalletWithdrawDetails(data){
        return $http.post('/tlt/wallet/withdrawDetails',data)
    },//提现记录
    tltWalletWithdrawStatus(data){
        return $http.post('/tlt/wallet/withdrawStatus',data)
    },//提现状态
    tltMerOpenSendAuthFile(data){
        return $http.post('/tlt/merOpen/sendAuthFile',data)
    },//获取授权书模板
    // 风控订单接口
    riskNum(data){
        return $http.post('/risk/num',data)
    },
    riskInit(data){
        return $http.post('/risk/init',data)
    },
    riskList(data){
        return $http.post('/risk/list',data)
    },
    riskHandle(data){
        return $http.post('/risk/handle',data)
    },
    riskExport(data){
        return $http.post('/risk/export',data)
    },
    // 微信扫码登录
    loginByOpenId(data){
        return $http.post('/login/loginByOpenId',data)
    },//openid登录
    checkOpenIdIsBind(data){
        return $http.post('/user/checkOpenIdIsBind',data)
    },//判断是否绑定openId
    userAddStoreManager(data){
        return $http.post('/user/addStoreManager',data)
    },//资料补充
 
    // 商户收款接口
    shskTypeList(data){
        return $http.post('/prod/dmfTypeList',data)
    },//获取支付方式列表
    shskCalAmt(data){
        return $http.post('/prod/calAmt',data)
    },
    shskProdFee(data){
        return $http.post('/dmfOrder/prodFee',data)
    },//获取支付方式费率
 
    // 联通合约机
    cuccOrderInit(data){
        return $http.post('/cuccOrder/init',data)
    },//初始化合约套餐
    cuccOrderPreCreate(data){
        return $http.post('/cuccOrder/preCreate',data)
    },//订单预创建
    cuccOrderList(data){
        return $http.post('/cuccOrder/list',data)
    },//订单列表
    cuccOrderDetail(data){
        return $http.post('cuccOrder/detail',data)
    },//订单详情
 
 
}
 
export default {
    install(Vue, opt) {
        Vue.prototype.$api = api;
    }
}