From ba52b62894a2dc376d84e6ede69fccc92f9a8b62 Mon Sep 17 00:00:00 2001 From: j1ack <1209452658@qq.com> Date: Fri, 17 Mar 2023 10:31:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B7=BB=E5=8A=A0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/form.js | 71 ++-- src/main.js | 2 + src/utils/request.js | 3 +- src/utils/ruoyi.js | 37 +- src/views/monitor/job/index.vue | 85 ++--- src/views/monitor/logininfor/index.vue | 101 +++--- src/views/monitor/operlog/index.vue | 259 ++++++-------- .../pay/payAgentUser/payAgentUserList.vue | 219 +++++++++--- src/views/pay/payAgentUser/rate.vue | 126 ++++++- src/views/pay/payBank/payBankManual.vue | 47 ++- src/views/pay/payBank/payBankPayment.vue | 57 ++-- .../pay/payBank/payBankPaymentFormList.vue | 27 +- src/views/pay/payOrder/manyNeiChong.vue | 20 +- src/views/pay/payOrder/payBalanceRecord.vue | 236 +++++++++++++ src/views/pay/payOrder/payDaiFuWater.vue | 37 +- .../pay/payOrder/payLineDownTranferWater.vue | 45 ++- src/views/pay/payOrder/payMoneyCalcu.vue | 2 +- src/views/pay/payOrder/payMoneyTransfer.vue | 19 +- src/views/pay/payOrder/payMoneyWater.vue | 14 +- src/views/pay/payOrder/payNeiChongWater.vue | 30 +- src/views/pay/payOrder/payOrderWater.vue | 319 +++++++++++++++--- .../payOrder/pkCouponScopeRangeStoreList.vue | 178 +++++++--- src/views/pay/payOrder/singleNeiChong.vue | 16 +- src/views/pay/payTest/payCode.vue | 44 +-- src/views/pay/payTest/payDai.vue | 6 +- src/views/pay/payType/payBankManualUser.vue | 23 +- src/views/pay/payType/payChannelDefult.vue | 2 +- src/views/pay/payType/payChannelOut.vue | 23 +- src/views/pay/payType/payTypeChannel.vue | 49 ++- .../pay/payType/payTypeChannelManage.vue | 32 +- src/views/pay/payType/payTypeManage.vue | 32 +- src/views/pay/payType/payTypeSettleConfig.vue | 23 +- src/views/system/config/index.vue | 107 +++--- src/views/system/dept/index.vue | 166 ++++----- src/views/system/dict/index.vue | 121 ++++--- src/views/system/menu/index.vue | 229 +++++-------- src/views/system/notice/index.vue | 79 +++-- src/views/system/post/index.vue | 47 +-- src/views/system/role/index.vue | 155 +++++---- src/views/system/user/index.vue | 6 +- src/views/tool/build/index.vue | 2 +- src/views/tool/gen/editTable.vue | 2 +- src/views/tool/gen/importTable.vue | 5 +- src/views/tool/gen/index.vue | 257 +++++--------- 测试.zip | Bin 0 -> 4548106 bytes 46 files changed, 2081 insertions(+), 1280 deletions(-) create mode 100644 src/views/pay/payOrder/payBalanceRecord.vue create mode 100644 测试.zip diff --git a/package.json b/package.json index 712be0e..fc91142 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "screenfull": "5.0.2", "sortablejs": "1.10.2", "vue": "2.6.12", + "vue-clipboard2": "^0.3.3", "vue-count-to": "1.0.13", "vue-cropper": "0.5.5", "vue-meta": "2.4.0", diff --git a/src/api/form.js b/src/api/form.js index 50435bb..a3863b0 100644 --- a/src/api/form.js +++ b/src/api/form.js @@ -11,6 +11,20 @@ import { * */ export const common_api = { + // 查询所有代理商 + selectAgentListAll: () => { + return request({ + url: '/system/user/selectAgentListAll', + method: 'get', + }) + }, + // 所有国家 + getAllNation: () => { + return request({ + url: '/pay/getAllNation', + method: 'get', + }) + }, // 查询支付类型列表 payTypeAll: () => { return request({ @@ -238,6 +252,17 @@ export const payAgentUser = { }) }, + // 分配用户代理商 + assignAgents: (data) => { + return request({ + url: '/system/user/assignAgents?'+qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) +}, + } @@ -276,7 +301,6 @@ export const card_order_list = { }, }) }, - // 补发异步通知 reissueNotice: (data) => { return request({ @@ -522,6 +546,13 @@ export const platform_payment_list = { * 资金清算模块 */ export const payMoneyCalcu = { + // 人工修改余额接口 + updateBalance: (data) => { + return request({ + url: '/order/updateBalance?' + qs.stringify(data), + method: 'post', + }) + }, // 获取资金管理金额 amountCount: (query) => { return request({ @@ -1295,45 +1326,15 @@ export const payBankPaymentFormList = { /** - * 用户列表 + * 余额修改记录 */ -export const pkUserInfo = { - // 获取用户列表 +export const pkUpdateBalanceRecord = { + // 获取余额修改记录列表 listInfo: (query) => { return request({ - url: '/test/user/list', + url: '/order/getUpdateBalanceRecord', method: 'get', params: query }) }, - // 更新用户 - updateInfo: (data) => { - return request({ - url: '/test/user/update', - method: 'put', - data: data - }) - }, - // 获取用户详细 - getInfo: (id) => { - return request({ - url: '/test/user/' + id, - method: 'get' - }) - }, - // 新增用户 - addInfo: (data) => { - return request({ - url: '/test/user/save', - method: 'post', - data: data - }) - }, - // 删除用户信息 - delInfo: (id) => { - return request({ - url: '/test/user/' + id, - method: 'delete' - }) - }, } diff --git a/src/main.js b/src/main.js index c63d23a..7ee43ad 100644 --- a/src/main.js +++ b/src/main.js @@ -37,7 +37,9 @@ import DictTag from '@/components/DictTag' import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' +import VueClipboard from 'vue-clipboard2' +Vue.use(VueClipboard) // 全局方法挂载 Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey diff --git a/src/utils/request.js b/src/utils/request.js index bd88a61..43e36b9 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -67,7 +67,8 @@ service.interceptors.request.use(config => { if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) { const message = '数据正在处理,请勿重复提交'; console.warn(`[${s_url}]: ` + message) - // return Promise.reject(new Error(message)) + // new Error(message) + return Promise.reject() } else { cache.session.setJSON('sessionObj', requestObj) } diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index 59556ef..4d1b386 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -1,6 +1,21 @@ /** * 通用js方法封装处理 * Copyright (c) 2019 ruoyi + * + * + * + * + * + * pay_channel_name,key_id, user_id, store_id, order_no, out_trade_no, + * transaction_id, tran_amt, pay_amt, pay_type, channel_type, pay_time, order_status, + * rate, channel_rate, mch_id, mch_name, notify_url, back_url, store_no, bank_code, + * bank_id, card_type, product_name, product_desc, qrcode_img, qrcode_url, user_key, source_type, attach, + * version, charset, sign_type, create_time, update_time, order_msg, media_type + * name, mobile,store_settle_time,store_settle, + real_amt,rate_amt,poundage_rate,poundage_amt, + store_name,store_type,type_name pay_type_name, + channel_name pay_channel_name + * */ const baseURL = process.env.VUE_APP_BASE_API @@ -29,17 +44,17 @@ export function download(fileName) { //获取当前年月日 export function today() { - let nowDate = new Date(); - let date = { - year: nowDate.getFullYear(), - month: nowDate.getMonth() + 1, - date: nowDate.getDate(), - } - if (date.date <= 9) { - return date.year + '-' + 0 + date.month + '-' + 0 + date.date; - } else { - return date.year + '-' + 0 + date.month + '-' + date.date; - } + let nowDate = new Date(); + let date = { + year: nowDate.getFullYear(), + month: nowDate.getMonth() + 1, + date: nowDate.getDate(), + } + if (date.date <= 9) { + return date.year + '-' + 0 + date.month + '-' + 0 + date.date; + } else { + return date.year + '-' + 0 + date.month + '-' + date.date; + } } diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index 3a46288..d251bae 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -6,7 +6,50 @@
z_Bj#svb9LBB756BjN57ZM5zG71=h3&HgMwE!*(>Myv^@Fdm2=C1g(+#%=$
zQgJzz?T_eqG=30TxQ$^D(eth`octQvZ;<_Kz(W5cWPbqmM_ls&CNc;SJY-xz9Joq5
zIxPF8#rir^bXhIu5kbR2NM_-zE*o)I0QRj`_2&u7W2~(YDK18|>$FAP=tAwoT9=20
z!o9C~m;82A>RTh0m4$<<4U^oOOi6Yq?HM80?rSYX_CgM2R`Or!;^*-uc+4pWYu$W>
zpg%`Z4{f@jieEzR@?kc0zA4|5pz77kJ&>JaY;cR3Dv7eYb(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