From fde4ba10a51408bd0d645eae170f9fc98bb99061 Mon Sep 17 00:00:00 2001
From: liweiliang123 <106959139+liweiliang123@users.noreply.github.com>
Date: Wed, 14 Jun 2023 16:57:36 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/otc/otcOrder/index.vue | 93 ++++++++-----
src/views/otc/otcStoreOrder/index.vue | 182 ++++++++++----------------
2 files changed, 126 insertions(+), 149 deletions(-)
diff --git a/src/views/otc/otcOrder/index.vue b/src/views/otc/otcOrder/index.vue
index 10b3ed5..23b5d35 100644
--- a/src/views/otc/otcOrder/index.vue
+++ b/src/views/otc/otcOrder/index.vue
@@ -11,49 +11,44 @@
/>
-
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
搜索
重置
@@ -111,7 +106,7 @@
-
+
@@ -119,9 +114,9 @@
-
+
-
+
@@ -146,11 +141,11 @@
-
+
{
+ this.tradeTypeStatusOptions = response.data;
+ });
+ this.getDicts("order_status").then(response => {
+ this.orderStatusOptions = response.data;
+ });
+
+ this.getDicts("fee_type").then(response => {
+ this.feeTypeOptions = response.data;
+ });
+
+
},
methods: {
/** 查询用户otc订单列表 */
@@ -391,6 +401,19 @@ export default {
this.loading = false;
});
},
+ tradeTypeFormat(row, column) {
+
+ return this.selectDictLabel(this.tradeTypeStatusOptions, row.tradeType);
+ },
+ orderStatusFormat(row, column) {
+
+ return this.selectDictLabel(this.orderStatusOptions, row.orderStatus);
+ },
+
+ feeTypeFormat(row, column) {
+
+ return this.selectDictLabel(this.feeTypeOptions, row.feeType);
+ },
// 取消按钮
cancel() {
this.open = false;
diff --git a/src/views/otc/otcStoreOrder/index.vue b/src/views/otc/otcStoreOrder/index.vue
index a3716e8..036fdc4 100644
--- a/src/views/otc/otcStoreOrder/index.vue
+++ b/src/views/otc/otcStoreOrder/index.vue
@@ -10,11 +10,17 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
搜索
重置
@@ -194,18 +121,18 @@
-
+
-
+
-
+
@@ -230,7 +157,7 @@
-
+
{
+ this.orderStatusOptions = response.data;
+ });
+
+ this.getDicts("fee_type").then(response => {
+ this.feeTypeOptions = response.data;
+ });
+ this.getDicts("trade_type").then(response => {
+ this.tradeTypeStatusOptions = response.data;
+ });
+
},
methods: {
/** 查询otc订单信息列表 */
@@ -412,6 +353,19 @@ export default {
this.loading = false;
});
},
+ orderStatusFormat(row, column) {
+ return this.selectDictLabel(this.orderStatusOptions, row.orderStatus);
+ },
+
+ feeTypeFormat(row, column) {
+
+ return this.selectDictLabel(this.feeTypeOptions, row.feeType);
+ },
+
+ tradeTypeFormat(row, column) {
+
+ return this.selectDictLabel(this.tradeTypeStatusOptions, row.tradeType);
+ },
// 取消按钮
cancel() {
this.open = false;