From 19d73676d1b85d7b9fe03abda5be0f8fcc888e5f Mon Sep 17 00:00:00 2001 From: yyc <1477138655@qq.com> Date: Thu, 15 Jun 2023 16:29:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?otc=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/otc/otcAppealConfig/index.vue | 36 +-- src/views/otc/otcOrder/index.vue | 295 ++++++++++++++---------- src/views/otc/otcStoreOrder/index.vue | 249 +++++++++++--------- 3 files changed, 333 insertions(+), 247 deletions(-) diff --git a/src/views/otc/otcAppealConfig/index.vue b/src/views/otc/otcAppealConfig/index.vue index f368141..9273274 100644 --- a/src/views/otc/otcAppealConfig/index.vue +++ b/src/views/otc/otcAppealConfig/index.vue @@ -69,7 +69,7 @@ - + @@ -175,8 +175,8 @@ /> - - + + @@ -185,77 +185,95 @@ - + - + - + - - - - - + + - + + + + - - - + + + - - - 请选择字典生成 - + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + @@ -278,18 +296,32 @@ - - 请选择字典生成 - + + + + + + - + + @@ -320,8 +352,11 @@ export default { // 用户otc订单表格数据 otcOrderList: [], feeTypeOptions: [], - orderStatusOptions: [], - tradeTypeStatusOptions: [], + orderStatusOptions: [], + tradeTypeStatusOptions: [], + //申诉字典 + appealStatusOptions:[], + cancelTypeOptions:[], // 弹出层标题 title: "", // 是否显示弹出层 @@ -388,6 +423,12 @@ export default { this.getDicts("fee_type").then(response => { this.feeTypeOptions = response.data; }); + this.getDicts("appeal_status").then(response => { + this.appealStatusOptions = response.data; + }); + this.getDicts("cancel_type").then(response => { + this.cancelTypeOptions = response.data; + }); }, @@ -481,7 +522,7 @@ export default { getOtcOrder(id).then(response => { this.form = response.data; this.open = true; - this.title = "修改用户otc订单"; + this.title = "查询用户otc订单"; }); }, /** 提交按钮 */ diff --git a/src/views/otc/otcStoreOrder/index.vue b/src/views/otc/otcStoreOrder/index.vue index 036fdc4..112671f 100644 --- a/src/views/otc/otcStoreOrder/index.vue +++ b/src/views/otc/otcStoreOrder/index.vue @@ -11,7 +11,7 @@ /> - + - + - - - - - - - - - - - - + + + + + @@ -72,38 +60,38 @@ - - 新增 - - - 修改 - - - 删除 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + - + - - - - + + + + - + - + + + + @@ -167,18 +168,27 @@ /> - + - + + - - + + + + + @@ -195,10 +205,18 @@ - - - 请选择字典生成 - + + + + + + + @@ -209,39 +227,46 @@ - - - + + + + - - + + - - - - - - - - + + + + + + + + + + + + + @@ -299,7 +324,8 @@ export default { feeRate: null, deductedFee: null, walletType: null, - transactionDesc: null + transactionDesc: null, + storeName: null }, // 表单参数 form: {}, @@ -361,9 +387,9 @@ export default { return this.selectDictLabel(this.feeTypeOptions, row.feeType); }, - + tradeTypeFormat(row, column) { - + return this.selectDictLabel(this.tradeTypeStatusOptions, row.tradeType); }, // 取消按钮 @@ -394,7 +420,8 @@ export default { createTime: null, updateTime: null, walletType: null, - transactionDesc: null + transactionDesc: null, + walletTypeName:null }; this.resetForm("form"); }, @@ -430,6 +457,16 @@ export default { this.title = "修改otc订单信息"; }); }, + /** 详情按钮操作 */ + handleDetail(row) { + this.reset(); + const id = row.id || this.ids + getOtcStoreOrder(id).then(response => { + this.form = response.data; + this.open = true; + this.title = "查询otc订单信息"; + }); + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { From 239552e9863f48fee24086fe9ef20a0babafb646 Mon Sep 17 00:00:00 2001 From: yyc <1477138655@qq.com> Date: Fri, 16 Jun 2023 18:46:38 +0800 Subject: [PATCH 2/2] =?UTF-8?q?otc=E8=AE=A2=E5=8D=95=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/otc/otcAppealOrder.js | 12 +- src/api/otc/otcCurrencyCoin.js | 53 ++++ src/api/system/user.js | 2 +- src/views/otc/otcAppealConfig/index.vue | 28 +- src/views/otc/otcAppealOrder/index.vue | 207 ++++++++++++--- src/views/otc/otcCoin/index.vue | 96 ++++--- src/views/otc/otcCurrencyCoin/index.vue | 339 ++++++++++++++++++++++++ src/views/otc/otcOrder/index.vue | 5 + src/views/otc/otcPaymentType/index.vue | 215 ++++++++++----- src/views/otc/otcSysDict/index.vue | 94 +++---- src/views/system/role/index.vue | 2 +- src/views/system/user/index.vue | 2 +- 12 files changed, 840 insertions(+), 215 deletions(-) create mode 100644 src/api/otc/otcCurrencyCoin.js create mode 100644 src/views/otc/otcCurrencyCoin/index.vue diff --git a/src/api/otc/otcAppealOrder.js b/src/api/otc/otcAppealOrder.js index b0c8234..3f8f1eb 100644 --- a/src/api/otc/otcAppealOrder.js +++ b/src/api/otc/otcAppealOrder.js @@ -35,6 +35,16 @@ export function updateOtcAppealOrder(data) { }) } +// 审核OTC申诉订单 +export function appleOtcAppealOrder(data) { + return request({ + url: '/otc/otcAppealOrder/audit', + method: 'put', + data: data + }) +} + + // 删除OTC申诉订单 export function delOtcAppealOrder(id) { return request({ @@ -50,4 +60,4 @@ export function exportOtcAppealOrder(query) { method: 'get', params: query }) -} \ No newline at end of file +} diff --git a/src/api/otc/otcCurrencyCoin.js b/src/api/otc/otcCurrencyCoin.js new file mode 100644 index 0000000..b951b55 --- /dev/null +++ b/src/api/otc/otcCurrencyCoin.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询法币信息列表 +export function listOtcCurrencyCoin(query) { + return request({ + url: '/otc/otcCurrencyCoin/list', + method: 'get', + params: query + }) +} + +// 查询法币信息详细 +export function getOtcCurrencyCoin(coin) { + return request({ + url: '/otc/otcCurrencyCoin/' + coin, + method: 'get' + }) +} + +// 新增法币信息 +export function addOtcCurrencyCoin(data) { + return request({ + url: '/otc/otcCurrencyCoin', + method: 'post', + data: data + }) +} + +// 修改法币信息 +export function updateOtcCurrencyCoin(data) { + return request({ + url: '/otc/otcCurrencyCoin', + method: 'put', + data: data + }) +} + +// 删除法币信息 +export function delOtcCurrencyCoin(coin) { + return request({ + url: '/otc/otcCurrencyCoin/' + coin, + method: 'delete' + }) +} + +// 导出法币信息 +export function exportOtcCurrencyCoin(query) { + return request({ + url: '/otc/otcCurrencyCoin/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/system/user.js b/src/api/system/user.js index f2f76ef..2bfa18e 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -129,7 +129,7 @@ export function updateAuthRole(data) { // 查询部门下拉树结构 export function deptTreeSelect() { return request({ - url: '/system/user/deptTree', + url: '/system/dept/treeselect', method: 'get' }) } diff --git a/src/views/otc/otcAppealConfig/index.vue b/src/views/otc/otcAppealConfig/index.vue index 9273274..832e044 100644 --- a/src/views/otc/otcAppealConfig/index.vue +++ b/src/views/otc/otcAppealConfig/index.vue @@ -68,7 +68,7 @@ - + diff --git a/src/views/otc/otcOrder/index.vue b/src/views/otc/otcOrder/index.vue index f20eabd..4ec9fd0 100644 --- a/src/views/otc/otcOrder/index.vue +++ b/src/views/otc/otcOrder/index.vue @@ -146,6 +146,11 @@ --> + + +