From 723f54708d7c2b71f916e40952ebc818629e66ab Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 19 十月 2023 19:50:34 +0800
Subject: [PATCH] 船运问题修改2
---
igds-web/src/main/resources/static/admin/inout/in-ship-register.js | 120 ++++++++++++++++++++++++++++++------------------------------
1 files changed, 60 insertions(+), 60 deletions(-)
diff --git a/igds-web/src/main/resources/static/admin/inout/in-ship-register.js b/igds-web/src/main/resources/static/admin/inout/in-ship-register.js
index 062e06a..153b3d2 100644
--- a/igds-web/src/main/resources/static/admin/inout/in-ship-register.js
+++ b/igds-web/src/main/resources/static/admin/inout/in-ship-register.js
@@ -16,12 +16,12 @@
});
//鐩戝惉鍝佺
- layui.form.on('select(select_foodVariety)',function (data) {
+ layui.form.on('select(select_foodVariety)', function (data) {
updateFoodVariety(data.value);
});
//鐩戝惉鍖栭獙缁撴灉鍗曞~鍐欐暟鎹�,骞剁粰鍑烘彁绀虹粨鏋�
- table.on('edit(tableCheckItem)',function (obj) {
+ table.on('edit(tableCheckItem)', function (obj) {
getResult(obj);
});
});
@@ -147,7 +147,7 @@
/**
* 寮瑰嚭鍖栭獙鍗曚俊鎭�
*/
-function showCheckDetail(){
+function showCheckDetail() {
// 璧嬪��
var data = form.val("form-data");
data.checkUser = checkUser;
@@ -165,7 +165,7 @@
yes: function () {
curCheckData = form.val("form-detail");
- if(null == curCheckData.foodVariety){
+ if (null == curCheckData.foodVariety) {
notify("璇峰~鍐欑伯椋熷搧绉嶏紒");
return;
}
@@ -210,12 +210,12 @@
var index = layer.load();
$.ajax({
- type : "POST",
- url : "../../basic/inout/get-check-item",
- dataType : "json",
- contentType : "application/json;charset=UTF-8",
- data : JSON.stringify(data),
- success : function(result) {
+ type: "POST",
+ url: "../../basic/inout/get-check-item",
+ dataType: "json",
+ contentType: "application/json;charset=UTF-8",
+ data: JSON.stringify(data),
+ success: function (result) {
if (result.code != "0000") {
layer.msg(result.msg);
} else {
@@ -225,7 +225,7 @@
layer.close(index);
}
},
- error : function() {
+ error: function () {
layer.close(index);
layer.msg("鍚庡彴寮傚父锛岃閲嶈瘯鎴栬�呰仈绯荤鐞嗗憳锛侊紒");
}
@@ -239,11 +239,11 @@
// 娓呯┖鏁版嵁
$("#tableCheckItem").empty();
table.render({
- elem : '#tableCheckItem',
- data : curCheckItems,
- page : false,
+ elem: '#tableCheckItem',
+ data: curCheckItems,
+ page: false,
// skin: 'line',
- even : true,
+ even: true,
cols: [[{
field: 'standardName',
title: '鍖栭獙椤圭洰',
@@ -274,8 +274,8 @@
});
$("thead tr").css({
- "border-bottom" : "2px solid #53adce",
- "background" : "#eff4f6"
+ "border-bottom": "2px solid #53adce",
+ "background": "#eff4f6"
});
}
@@ -387,7 +387,7 @@
// 娓叉煋寰�鏉ュ崟浣嶅垪琛�
table.render({
elem: '#tableNotice',
- url: '../../basic/inout/list-notice鈥攊n',
+ url: '../../basic/inout/list-notice-in',
page: false,
even: true,
method: 'POST',
@@ -461,54 +461,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);
@@ -516,18 +516,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
});
}
@@ -536,11 +536,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