From c98f5558bccd7744f61cc25367e98e56598f0ebd Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期六, 03 六月 2023 12:45:27 +0800
Subject: [PATCH] 地图编辑器增加隐藏显示按钮

---
 src/main/webapp/static/js/pakStore/turnOver.js |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/pakStore/turnOver.js b/src/main/webapp/static/js/pakStore/turnOver.js
index fb1f72a..b503792 100644
--- a/src/main/webapp/static/js/pakStore/turnOver.js
+++ b/src/main/webapp/static/js/pakStore/turnOver.js
@@ -46,7 +46,7 @@
                 } else {
                     var staNo = $("#staNoSelect").val();
                     if (staNo === "" || staNo === null){
-                        layer.msg("璇烽�夋嫨鐩爣瀹㈡埛", {icon: 2});
+                        layer.msg("璇烽�夋嫨鐩爣璐т富", {icon: 2});
                         return;
                     }
                     let param = {
@@ -73,6 +73,38 @@
                     });
                 }
                 break;
+            case 'outboundPayment':
+                if (locDetlData.length === 0){
+                    layer.msg('璇峰厛鎻愬彇鍟嗗搧搴撳瓨', {icon: 2});
+                } else {
+                    // var staNo = $("#staNoSelect").val();
+                    // if (staNo === "" || staNo === null){
+                    //     layer.msg("璇烽�夋嫨鐩爣璐т富", {icon: 2});
+                    //     return;
+                    // }
+                    let param = {
+                        locDetls: locDetlData
+                    }
+                    $.ajax({
+                        url: baseUrl+"/turn/over/out/payment/start",
+                        headers: {'token': localStorage.getItem('token')},
+                        data: JSON.stringify(param),
+                        contentType:'application/json;charset=UTF-8',
+                        method: 'POST',
+                        success: function (res) {
+                            if (res.code === 200){
+                                locDetlData = [];
+                                tableIns.reload({data: locDetlData,done:function (res) {limit();getOutBound();}});
+                                layer.msg(res.msg, {icon: 1});
+                            } else if (res.code === 403){
+                                top.location.href = baseUrl+"/";
+                            } else {
+                                layer.msg(res.msg, {icon: 2})
+                            }
+                        }
+                    });
+                }
+                break;
         }
     });
 

--
Gitblit v1.9.1