From 564bf7ab6a639c2c4557d35b8fd9b51dca60a738 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 22 八月 2023 13:32:34 +0800
Subject: [PATCH] #规则完善

---
 src/main/webapp/views/order/order_more.html |   90 +++++++++++++++------------------------------
 1 files changed, 30 insertions(+), 60 deletions(-)

diff --git a/src/main/webapp/views/order/order_more.html b/src/main/webapp/views/order/order_more.html
index 0004463..0d9891c 100644
--- a/src/main/webapp/views/order/order_more.html
+++ b/src/main/webapp/views/order/order_more.html
@@ -44,36 +44,9 @@
         <div class="layui-card">
             <div class="layui-card-header" style="padding-top: 5px; padding-bottom: 5px">
                 <div>
-                    <i class="layui-icon" style="font-size: 20px;color: #1890ff;font-weight: bold">&#xe68e;</i>
+                    <i class="layui-icon" style="font-size: 20px;color: #1890ff;font-weight: bold">&#xe609;</i>
                     <span id="form-name" style="margin: 0 6px;font-size: 18px;font-weight: bold;letter-spacing: 1px"></span>
-                </div>
-            </div>
-            <div class="layui-card-body">
-                <div class="card-body-item">
-                    <div class="header-sub">
-                        鐢佃瘽
-                    </div>
-                    <div class="header-desc" id="form-tel">
-                        &nbsp;
-                    </div>
-                </div>
-
-                <div class="card-body-item" style="width: 400px">
-                    <div class="header-sub">
-                        璇︾粏鍦板潃
-                    </div>
-                    <div class="header-desc" id="form-addr">
-                        &nbsp;
-                    </div>
-                </div>
-
-                <div class="card-body-item">
-                    <div class="header-sub">
-                        璐熻矗浜�
-                    </div>
-                    <div class="header-desc" id="form-director" style="color: #006fdb;">
-                        &nbsp;
-                    </div>
+                    <span style="opacity: .5;font-size: small;margin-left: 5px">璺熻釜椤圭洰</span>
                 </div>
             </div>
         </div>
@@ -89,27 +62,27 @@
                         <div class="layui-form-item layui-row">
                             <input name="id" type="hidden" />
                             <div class="layui-inline layui-col-md6">
-                                <label class="layui-form-label">瀹㈡埛浠e彿:</label>
+                                <label class="layui-form-label">椤圭洰浠e彿:</label>
                                 <div class="layui-input-block">
                                     <input name="uuid" class="layui-input" disabled />
                                 </div>
                             </div>
                             <div class="layui-inline layui-col-md6">
-                                <label class="layui-form-label">鎵�灞為儴闂�:</label>
+                                <label class="layui-form-label">鐢叉柟鍗曚綅:</label>
                                 <div class="layui-input-block">
-                                    <input name="deptId$" class="layui-input" disabled />
+                                    <input name="cstmrId$" class="layui-input" disabled />
                                 </div>
                             </div>
                             <div class="layui-inline layui-col-md6">
-                                <label class="layui-form-label">瀹㈡埛绫诲埆:</label>
+                                <label class="layui-form-label">椤圭洰鎬婚噾棰�:</label>
                                 <div class="layui-input-block">
-                                    <input name="cstmrType$" class="layui-input" disabled />
+                                    <input name="money" class="layui-input" disabled />
                                 </div>
                             </div>
                             <div class="layui-inline layui-col-md6">
-                                <label class="layui-form-label">瀹㈡埛鍏崇郴:</label>
+                                <label class="layui-form-label">鎵�灞炲叕鍙�:</label>
                                 <div class="layui-input-block">
-                                    <input name="rela" class="layui-input" disabled/>
+                                    <input name="company$" class="layui-input" disabled/>
                                 </div>
                             </div>
                             <div class="layui-inline layui-col-md6">
@@ -119,15 +92,15 @@
                                 </div>
                             </div>
                             <div class="layui-inline layui-col-md6">
-                                <label class="layui-form-label">瀹㈡埛鑱旂郴浜�:</label>
+                                <label class="layui-form-label">椤圭洰鍦板潃:</label>
                                 <div class="layui-input-block">
-                                    <input name="contacts" class="layui-input" disabled />
+                                    <input name="addr" class="layui-input" disabled />
                                 </div>
                             </div>
                             <div class="layui-inline layui-col-md6">
-                                <label class="layui-form-label">鍖哄垎:</label>
+                                <label class="layui-form-label">璐熻矗浜�:</label>
                                 <div class="layui-input-block">
-                                    <input name="type$" class="layui-input" disabled />
+                                    <input name="director$" class="layui-input" disabled />
                                 </div>
                             </div>
                             <div class="layui-inline layui-col-md6">
@@ -215,7 +188,7 @@
 </script>
 
 <script>
-    var cstmrId = top.cstmrByMore;
+    var orderId = top.orderByMore;
     $('.layui-layer-close').hide();
     layui.config({
         base: baseUrl + "/static/layui/lay/modules/"
@@ -235,22 +208,19 @@
         function init(){
             notice.msg('姝e湪杞藉叆鏁版嵁......', {icon: 4, position: "topRight"});
             $.ajax({
-                url: baseUrl + "/cstmr/" + cstmrId + "/auth",
+                url: baseUrl + "/order/" + orderId + "/auth",
                 headers: {'token': localStorage.getItem('token')},
                 method: 'GET',
                 success: function (res) {
                     notice.destroy();
                     if (res.code === 200) {
-                        let cstmr = res.data;
-                        top.cstmrByMore = null;
-                        $("#form-name").html(cstmr.name);
-                        if (cstmr.tel) {$("#form-tel").html(cstmr.tel);}
-                        if (cstmr.addr) {$("#form-addr").html(cstmr.addr);$("#form-addr").attr("title", cstmr.addr);}
-                        if (cstmr.director$) {$("#form-director").html(cstmr.director$);}
+                        let order = res.data;
+                        top.orderByMore = null;
+                        $("#form-name").html(order.name);
                         // 璁惧鏄庣粏
-                        form.val('formAdvForm', cstmr);
+                        form.val('formAdvForm', order);
                         // 璺熻繘浜�
-                        initFollowers(cstmr.id);
+                        initFollowers(order.id);
                         layDateRender();
                     } else if (res.code === 403) {
                         top.location.href = baseUrl + "/";
@@ -271,15 +241,15 @@
         layDateRender();
 
         // 娓叉煋璺熻繘浜烘ā鍧�
-        function initFollowers(cstmrId) {
-            if (!cstmrId) {
+        function initFollowers(orderId) {
+            if (!orderId) {
                 return;
             }
             $.ajax({
-                url: baseUrl+"/cstmr/followers/table/auth",
+                url: baseUrl+"/order/followers/table/auth",
                 headers: {'token': localStorage.getItem('token')},
                 data: {
-                    cstmrId: cstmrId
+                    orderId: orderId
                 },
                 method: 'GET',
                 success: function (res) {
@@ -304,17 +274,17 @@
                                 case "del":
                                     let loadIndex = layer.load(2);
                                     $.ajax({
-                                        url: baseUrl+"/cstmr/followers/remove/auth",
+                                        url: baseUrl+"/order/followers/remove/auth",
                                         headers: {'token': localStorage.getItem('token')},
                                         data: {
-                                            cstmrId: cstmrId,
+                                            orderId: orderId,
                                             userId: data.userId
                                         },
                                         method: 'POST',
                                         success: function (res) {
                                             layer.close(loadIndex);
                                             if (res.code === 200){
-                                                initFollowers(cstmrId);
+                                                initFollowers(orderId);
                                             } else if (res.code === 403){
                                                 top.location.href = baseUrl+"/";
                                             } else {
@@ -354,10 +324,10 @@
                         }
                         let loadIndex = layer.load(2);
                         $.ajax({
-                            url: baseUrl+"/cstmr/followers/add/auth",
+                            url: baseUrl+"/order/followers/add/auth",
                             headers: {'token': localStorage.getItem('token')},
                             data: {
-                                cstmrId: cstmrId,
+                                orderId: orderId,
                                 followerIds: selectList.map(function (d) {
                                     return d.value;
                                 })
@@ -366,7 +336,7 @@
                             success: function (res) {
                                 if (res.code === 200){
                                     layer.close(loadIndex);
-                                    initFollowers(cstmrId);
+                                    initFollowers(orderId);
                                 } else if (res.code === 403){
                                     top.location.href = baseUrl+"/";
                                 }else {

--
Gitblit v1.9.1