From 0830a387f0c28c2d448714ad184fd0c17bf27ea9 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 25 May 2021 10:30:50 +0800
Subject: [PATCH] 20210525 回款

---
 src/main/resources/templates/febs/views/modules/otc/otcShopList.html |   58 ++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 36 insertions(+), 22 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/otc/otcShopList.html b/src/main/resources/templates/febs/views/modules/otc/otcShopList.html
index 9a67fdb..502aeb9 100644
--- a/src/main/resources/templates/febs/views/modules/otc/otcShopList.html
+++ b/src/main/resources/templates/febs/views/modules/otc/otcShopList.html
@@ -1,4 +1,4 @@
-<div class="layui-fluid layui-anim febs-anim" id="febs-user" lay-title="OTC商户">
+<div class="layui-fluid layui-anim febs-anim" id="febs-user-shop" lay-title="OTC商户">
     <div class="layui-row febs-container">
         <div class="layui-col-md12">
             <div class="layui-card">
@@ -57,7 +57,7 @@
             febs = layui.febs,
             form = layui.form,
             table = layui.table,
-            $view = $('#febs-user'),
+            $view = $('#febs-user-shop'),
             $query = $view.find('#query'),
             $reset = $view.find('#reset'),
             $searchForm = $view.find('form'),
@@ -81,6 +81,17 @@
             if (layEvent === 'disagreeShop') {
                 febs.modal.confirm('拒绝', '确认拒绝该商户的审核?', function () {
                     disagreeShop(data.id);
+                });
+            }
+            if (layEvent === 'huikuan') {
+                febs.modal.open('回款', 'modules/otc/huikuan/' + data.id, {
+                    btn: ['提交', '取消'],
+                    yes: function (index, layero) {
+                        $('#user-update').find('#submit').trigger('click');
+                    },
+                    btn2: function () {
+                        layer.closeAll();
+                    }
                 });
             }
         });
@@ -121,32 +132,35 @@
                     {field: 'realName', title: '姓名', minWidth: 100,align:'left'},
                     {field: 'inviteId', title: '邀请码', minWidth: 80,align:'center'},
                     {field: 'nikename', title: '昵称', minWidth: 80,align:'center'},
-                    {field: 'status', title: '审核状态',
-                        templet: function (d) {
-                            if (d.status === 1) {
-                                return '<span style="color:blue;">待审核</span>'
-                            } else if (d.status === 2) {
-                                return '<span style="color:green;">审核通过</span>'
-                            } else if (d.status === 3) {
-                                return '<span>拒绝</span>'
-                            }else{
-                                return ''
-                            }
-                        }, minWidth: 80,align:'center'},
+                    // {field: 'status', title: '审核状态',
+                    //     templet: function (d) {
+                    //         if (d.status === 1) {
+                    //             return '<span style="color:blue;">待审核</span>'
+                    //         } else if (d.status === 2) {
+                    //             return '<span style="color:green;">审核通过</span>'
+                    //         } else if (d.status === 3) {
+                    //             return '<span>拒绝</span>'
+                    //         }else{
+                    //             return ''
+                    //         }
+                    //     }, minWidth: 80,align:'center'},
+                    // {field: 'waitBackMoney', title: '待回款',minWidth: 100,align:'center'},
+                    // {field: 'hasBackMoney', title: '已回款',minWidth: 100,align:'center'},
                     {field: 'buyCnt', title: '服务人数',minWidth: 100,align:'center'},
                     {field: 'totalOrderCnt', title: '总单数',minWidth: 100,align:'center'},
                     {field: 'finishRatio', title: '完成率',minWidth: 100,align:'center'},
                     {field: 'avgPayTime', title: '平均付款时间',minWidth: 100,align:'center'},
                     {field: 'avgCoinTime', title: '平均放币时间',minWidth: 100,align:'center'},
                     {field: 'createTime', title: '注册时间', minWidth: 180,align:'center'},
-                    {title: '操作',templet: function (d) {
-                            if(d.status === 1){
-                                return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agreeShop" shiro:hasPermission="user:update">同意</button>'
-                                        +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="disagreeShop" shiro:hasPermission="user:update">拒绝</button>'
-                            }else{
-                                return ''
-                            }
-                        },minWidth: 200,align:'center'}
+                    // {title: '操作',templet: function (d) {
+                    //         return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="huikuan" shiro:hasPermission="user:update">回款</button>'
+                    //         // if(d.status === 1){
+                    //         //     return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agreeShop" shiro:hasPermission="user:update">同意</button>'
+                    //         //             +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="disagreeShop" shiro:hasPermission="user:update">拒绝</button>'
+                    //         // }else{
+                    //         //     return ''
+                    //         // }
+                    //     },minWidth: 200,align:'center'}
                 ]]
             });
         }

--
Gitblit v1.9.1