From 9468f9216cb9a72af52d5a51e658b5a0b5dc92d4 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 27 八月 2021 16:20:27 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/waitMatin/waitMatin.js |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/waitMatin/waitMatin.js b/src/main/webapp/static/js/waitMatin/waitMatin.js
index 91cf79f..6c2059d 100644
--- a/src/main/webapp/static/js/waitMatin/waitMatin.js
+++ b/src/main/webapp/static/js/waitMatin/waitMatin.js
@@ -133,11 +133,15 @@
             content: $('#editDialog').html(),
             area: '700px',
             success: function (layero, dIndex) {
+
                 $(layero).children('.layui-layer-content').css('overflow', 'visible');
                 var url = expTpe ? '../../json/ok.json' : '../../json/ok.json';
                 var isExpAdd = !expTpe;
                 // 鍥炴樉鏁版嵁
                 form.val('editForm', expTpe);
+                if (expTpe) {
+                    $('#billNo').attr("disabled", "disabled");
+                }
                 // 琛ㄥ崟鎻愪氦浜嬩欢
                 form.on('submit(waitMatinEditSubmit)', function (data) {
                     // 缁勮鏁版嵁
@@ -183,6 +187,27 @@
                                 }
                             }
                         })
+                    } else {
+                        layer.load(2);
+                        $.ajax({
+                            url: baseUrl+"/waitMatin/modify/auth",
+                            headers: {'token': localStorage.getItem('token')},
+                            data: JSON.stringify(param),
+                            contentType:'application/json;charset=UTF-8',
+                            method: 'POST',
+                            success: function (res) {
+                                layer.closeAll('loading');
+                                if (res.code === 200){
+                                    layer.close(dIndex);
+                                    insTb.reload({page: {curr: 1}});
+                                    layer.msg(res.msg, {icon: 1});
+                                } else if (res.code === 403){
+                                    top.location.href = baseUrl+"/";
+                                }else {
+                                    layer.msg(res.msg, {icon: 2});
+                                }
+                            }
+                        })
                     }
                     return false;
                 });

--
Gitblit v1.9.1