From 6bd36a38fc587ba39bd50e26257ed6ece71363e7 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 19 十月 2023 11:30:18 +0800
Subject: [PATCH] 船运问题修改

---
 igds-web/src/main/resources/static/admin/inout/out-ship-register.js |   88 ++++++++++++++++++++++----------------------
 1 files changed, 44 insertions(+), 44 deletions(-)

diff --git a/igds-web/src/main/resources/static/admin/inout/out-ship-register.js b/igds-web/src/main/resources/static/admin/inout/out-ship-register.js
index 5f7315c..5175132 100644
--- a/igds-web/src/main/resources/static/admin/inout/out-ship-register.js
+++ b/igds-web/src/main/resources/static/admin/inout/out-ship-register.js
@@ -16,7 +16,7 @@
         });
 
         // 鐩戝惉浠撳簱閫夋嫨锛岄�夋嫨鍚庤嚜鍔ㄨ皟鐢ㄤ粨搴撶殑绮搧绉嶅拰浜у湴淇℃伅
-        form.on('select(select_depotId)', function(obj) {
+        form.on('select(select_depotId)', function (obj) {
             updateFoodVarietyByDepot(obj.value);
         });
     });
@@ -207,7 +207,7 @@
     // 娓叉煋寰�鏉ュ崟浣嶅垪琛�
     table.render({
         elem: '#tableNotice',
-        url: '../../basic/inout/list-notice鈥攐ut',
+        url: '../../basic/inout/list-notice-out',
         page: false,
         // skin : "nob",
         // size : 'sm',
@@ -288,54 +288,54 @@
     var index = layer.load();
     // 娓叉煋寰�鏉ュ崟浣嶅垪琛�
     table.render({
-        elem : '#tableFoodLoaction',
-        url : '../../basic/common/page-food-location',
-        page : false,
-        toolbar : '#toolbarFoodLocaton',
-        even : true,
-        method : 'POST',
-        contentType : "application/json;charset=UTF-8",
-        cols : [ [ {
-            field : 'code',
-            title : '缂栫爜'
+        elem: '#tableFoodLoaction',
+        url: '../../basic/common/page-dicArea',
+        page: false,
+        toolbar: '#toolbarFoodLocaton',
+        even: true,
+        method: 'POST',
+        contentType: "application/json;charset=UTF-8",
+        cols: [[{
+            field: 'code',
+            title: '缂栫爜'
         }, {
-            field : 'simple',
-            title : '绠�鎷�'
+            field: 'simple',
+            title: '绠�鎷�'
         }, {
-            field : 'name',
-            title : '鍚嶇О',
-            width : '60%'
-        } ] ],
-        where : {
-            "page" : 1,
-            "limit" : 100
+            field: 'name',
+            title: '鍚嶇О',
+            width: '60%'
+        }]],
+        where: {
+            "page": 1,
+            "limit": 100
         },
-        parseData : function(res) {
+        parseData: function (res) {
             if ("0000" == res.code) {
                 return {
-                    "code" : "0",
-                    "msg" : res.msg,
-                    "count" : res.data.total,
-                    "data" : res.data.records
+                    "code": "0",
+                    "msg": res.msg,
+                    "count": res.data.total,
+                    "data": res.data.records
                 }
             } else {
                 return {
-                    "code" : "1",
-                    "msg" : res.msg
+                    "code": "1",
+                    "msg": res.msg
                 }
             }
         },
-        done : function(res) {
+        done: function (res) {
             layer.close(index);
         }
     });
 
     //鍙屽嚮鏄剧ず閫変腑鏁版嵁
-    table.on('rowDouble(tableFoodLoaction)', function(obj){
+    table.on('rowDouble(tableFoodLoaction)', function (obj) {
         var data = obj.data;
         // 璧嬪��
         form.val("form-data", {
-            foodLocation : data.name,
+            foodLocation: data.name,
         });
         // 鍏抽棴
         layer.close(index2);
@@ -343,18 +343,18 @@
 
     // 寮瑰嚭瀵硅瘽妗�
     var index2 = layer.open({
-        type : 1,
-        title : "閫夋嫨绮骇鍦�",
-        area : [ '600px', '600px' ],
-        shade : 0,
-        content : $('#listFoodLocation'),
-        btn : 0,
-        btn : [ '鍙栨秷' ],
-        yes : function() {
+        type: 1,
+        title: "閫夋嫨绮骇鍦�",
+        area: ['600px', '600px'],
+        shade: 0,
+        content: $('#listFoodLocation'),
+        btn: 0,
+        btn: ['鍙栨秷'],
+        yes: function () {
             // 鍏抽棴
             layer.close(index2);
         },
-        closeBtn : 0
+        closeBtn: 0
     });
 
 }
@@ -363,11 +363,11 @@
 function flushFoodLocation() {
     var key = $("#key2").val();
     table.reload('tableFoodLoaction', {
-        url : "../../basic/common/page-food-location",
-        where : {
-            key : key
+        url: "../../basic/common/page-dicArea",
+        where: {
+            key: key
         },
-        done : function(res) {
+        done: function (res) {
             if (key) {
                 $("#key2").val(key);
             }

--
Gitblit v1.9.3