From a3f86d22b6b9d5ab4a335488ddaf8edf3aa5f787 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 03 Jun 2021 16:45:08 +0800
Subject: [PATCH] modify

---
 src/main/resources/templates/febs/views/modules/otc/otcOrderList.html |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html b/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html
index bd0fda3..395e639 100644
--- a/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html
+++ b/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html
@@ -85,6 +85,15 @@
                     }
                 });
             }
+
+            if (layEvent === 'reduceCoin') {
+                febs.modal.confirm('放币', '确定直接放币?', function () {
+                    febs.post(ctx + 'otc/reduceCoin/' + data.id, null, function () {
+                        febs.alert.success('放币成功');
+                        $query.click();
+                    });
+                });
+            }
         });
 
         // 查询按钮
@@ -144,8 +153,10 @@
                             // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dealIng" shiro:hasPermission="user:update">付款</button>'
                             if(d.status === 1){
                                 return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dealIng" shiro:hasPermission="user:update">付款</button>'
-                            }else{
-                                return ''
+                            }else if (d.status === 2 && d.orderType === 'S'){
+                                return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="reduceCoin">放币</button>'
+                            } else {
+                                return '';
                             }
                         },minWidth: 100,align:'center'}
                 ]]

--
Gitblit v1.9.1