From a9cddcd1e3e8ae51f68a885326cfce3247fdbd66 Mon Sep 17 00:00:00 2001
From: yyk <2336760928@qq.com>
Date: 星期五, 23 八月 2024 09:20:47 +0800
Subject: [PATCH] 调整批量添加储位接口。
---
HTML/views/WareHouseSetting/Locate.html | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/HTML/views/WareHouseSetting/Locate.html b/HTML/views/WareHouseSetting/Locate.html
index 47e5016..45973b5 100644
--- a/HTML/views/WareHouseSetting/Locate.html
+++ b/HTML/views/WareHouseSetting/Locate.html
@@ -303,7 +303,8 @@
sendData(IP + "/Sys/AddStorageLocat", param, 'post', function (res) {
console.log(res);
if (res.code == 200) { //鎴愬姛
- layer.msg(res.msg, {
+
+ layer.msg(res.ErrorMsg, {
icon: 1,
time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
}, function () {
@@ -315,13 +316,13 @@
layer.close(index1); //鍏抽棴寮瑰眰
doing = true;
});
- } else if(res.code == 1){
- layer.msg(res.msg, {
+ } else if(res.code == 400){
+ layer.msg(res.ErrorMsg, {
icon: 2,
time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
}, function() {doing = true;});
} else { //涓嶆垚鍔�
- layer.msg(res.statusText, {
+ layer.msg(res.ErrorMsg, {
icon: 2,
time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
}, function() {doing = true;});
--
Gitblit v1.8.0