From c206acfaedc69c390fb67daa81bc686f58a212ef Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期一, 27 十一月 2023 16:12:11 +0800 Subject: [PATCH] 提交配置信息2 --- igds-web/src/main/resources/static/admin/inout/out-ship-register.js | 110 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 58 insertions(+), 52 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..8a79147 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', @@ -215,20 +215,26 @@ method: 'POST', contentType: "application/json;charset=UTF-8", cols: [[{ - field: 'customerName', - title: '鏀惰揣鍗曚綅' + field: 'name', + title: '閫氱煡鍗曞悕绉�', + width: '15%' }, { - field: 'depotName', - title: '浠撳簱鍚嶇О', - width: '20%' + field: 'customerName', + title: '鍙戣揣鍗曚綅' }, { field: 'foodVarietyName', title: '绮鍝佺', - width: '20%' + width: '12%' }, { field: 'year', title: '骞翠唤', - width: '15%' + width: '10%' + }, { + field: 'depotName', + title: "鎵�娑変粨搴�" + }, { + field: 'contractName', + title: '鎵�灞炲悎鍚�' }]], where: param, parseData: function (res) { @@ -270,7 +276,7 @@ layer.open({ type: 1, title: "鍑哄簱閫氱煡鍗�", - area: ['700px', '600px'], + area: ['850px', '600px'], shade: 0, content: $('#listNotice'), btn: 0, @@ -288,54 +294,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 +349,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 +369,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