diff --git a/src/views/payment/order/pay/PayChannelOrderInfo.vue b/src/views/payment/order/pay/PayChannelOrderInfo.vue
index 9e26ff558..e7d308a8f 100644
--- a/src/views/payment/order/pay/PayChannelOrderInfo.vue
+++ b/src/views/payment/order/pay/PayChannelOrderInfo.vue
@@ -10,23 +10,23 @@
>
- {{ form.id }}
+ {{ form.id }}
- {{ dictConvert('PayChannel', form.channel) }}
+ {{ dictConvert('PayChannel', form.channel) }}
- 是
- 否
+ 是
+ 否
- {{ dictConvert('PayWay', form.payWay) }}
+ {{ dictConvert('PayWay', form.payWay) }}
{{ form.amount }}
- {{ dictConvert('PayStatus', form.status) }}
+ {{ dictConvert('PayStatus', form.status) }}
{{ form.payTime }}
@@ -75,6 +75,21 @@
confirmLoading.value = false
})
}
+ function dynamicStyle(item: string){
+ if (item == 'success') {
+ return { color: 'green' }
+ }
+ if (item == 'fail') {
+ return { color: 'red' }
+ }
+ if (item == 'progress') {
+ return { color: 'orange' }
+ }
+ if (item == 'close') {
+ return { color: 'gray' }
+ }
+ return { color: 'red' }
+ }
defineExpose({
init,
})
diff --git a/src/views/payment/order/pay/PayChannelOrderList.vue b/src/views/payment/order/pay/PayChannelOrderList.vue
index 7c7aea5f7..06a0180a5 100644
--- a/src/views/payment/order/pay/PayChannelOrderList.vue
+++ b/src/views/payment/order/pay/PayChannelOrderList.vue
@@ -1,30 +1,30 @@
-
+
- {{ dictConvert('PayChannel', row.channel) }}
+ {{ dictConvert('PayChannel', row.channel) }}
- {{ dictConvert('PayWay', row.payWay) }}
+ {{ dictConvert('PayWay', row.payWay) }}
- 是
- 否
+ 是
+ 否
- {{ dictConvert('PayStatus', row.status) }}
+ {{ dictConvert('PayStatus', row.status) }}
@@ -93,6 +93,38 @@
function show(record) {
payChannelOrderInfo.init(record)
}
+
+ function cellStyle({ row, column }) {
+ if (column.field == 'status') {
+ if (row.status == 'success') {
+ return { color: 'green' }
+ }
+ if (row.status == 'fail') {
+ return { color: 'red' }
+ }
+ if (row.status == 'progress') {
+ return { color: 'orange' }
+ }
+ if (row.status == 'close') {
+ return { color: 'gray' }
+ }
+ return { color: 'red' }
+ }
+ if (column.field == 'asyncPay') {
+ if (row.asyncPay) {
+ return { color: 'green' }
+ } else {
+ return { color: 'gray' }
+ }
+ }
+ if (column.field == 'combinationPayMode') {
+ if (row.combinationPayMode) {
+ return { color: 'green' }
+ } else {
+ return { color: 'gray' }
+ }
+ }
+}
defineExpose({
init,
})
diff --git a/src/views/payment/order/refund/RefundChannelOrderInfo.vue b/src/views/payment/order/refund/RefundChannelOrderInfo.vue
index 748bb0624..a0ca62fa3 100644
--- a/src/views/payment/order/refund/RefundChannelOrderInfo.vue
+++ b/src/views/payment/order/refund/RefundChannelOrderInfo.vue
@@ -28,7 +28,7 @@
{{ dictConvert('PayChannel', form.channel) }}
- {{ dictConvert('RefundStatus', form.status) }}
+ {{ dictConvert('RefundStatus', form.status) }}
@@ -74,6 +74,21 @@
confirmLoading.value = false
})
}
+ function dynamicStyle(item: string){
+ if (item == 'success') {
+ return { color: 'green' }
+ }
+ if (item == 'fail') {
+ return { color: 'red' }
+ }
+ if (item == 'progress') {
+ return { color: 'orange' }
+ }
+ if (item == 'close') {
+ return { color: 'gray' }
+ }
+ return { color: 'red' }
+ }
defineExpose({
init,
})
diff --git a/src/views/payment/order/refund/RefundChannelOrderList.vue b/src/views/payment/order/refund/RefundChannelOrderList.vue
index 95ef533be..ea32e5375 100644
--- a/src/views/payment/order/refund/RefundChannelOrderList.vue
+++ b/src/views/payment/order/refund/RefundChannelOrderList.vue
@@ -1,20 +1,16 @@
-
+
-
- {{ dictConvert('PayChannel', row.channel) }}
-
+ {{ dictConvert('PayChannel', row.channel) }}
-
- {{ dictConvert('RefundStatus', row.status) }}
-
+ {{ dictConvert('RefundStatus', row.status) }}
@@ -30,61 +26,79 @@
diff --git a/src/views/payment/order/refund/RefundOrderList.vue b/src/views/payment/order/refund/RefundOrderList.vue
index e4bcd1723..2b6cdd531 100644
--- a/src/views/payment/order/refund/RefundOrderList.vue
+++ b/src/views/payment/order/refund/RefundOrderList.vue
@@ -14,6 +14,7 @@
-
-
-
+
+
+
+
{{ row.paymentId }}
@@ -31,21 +33,20 @@
-
-
-
+
+
+
- {{ row.asyncPay ? '是' : '否' }}
+ {{ row.asyncPay ? '是' : '否' }}
-
-
-
+
+
- {{ dictConvert('RefundStatus', row.status) }}
+ {{ dictConvert('RefundStatus', row.status) }}
-
+
查看
@@ -214,6 +215,38 @@
function showChannel(record) {
refundChannelOrderList.init(record)
}
+
+ function cellStyle({ row, column }) {
+ if (column.field == 'refundStatus') {
+ if (row.status == 'success') {
+ return { color: 'green' }
+ }
+ if (row.status == 'fail') {
+ return { color: 'red' }
+ }
+ if (row.status == 'progress') {
+ return { color: 'orange' }
+ }
+ if (row.status == 'close') {
+ return { color: 'gray' }
+ }
+ return { color: 'red' }
+ }
+ if (column.field == 'async') {
+ if (row.asyncPay) {
+ return { color: 'green' }
+ } else {
+ return { color: 'gray' }
+ }
+ }
+ if (column.field == 'combinationPayMode') {
+ if (row.combinationPayMode) {
+ return { color: 'green' }
+ } else {
+ return { color: 'gray' }
+ }
+ }
+}