From 6d5c3dee0d97798f70bf965e48c3a782b3df9e7d Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期三, 10 七月 2024 10:48:25 +0800
Subject: [PATCH] Merge branch 'hwh' into Liudl

---
 HTML/views/BaseSetting/Materials.html |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/HTML/views/BaseSetting/Materials.html b/HTML/views/BaseSetting/Materials.html
index dfbbea7..441f040 100644
--- a/HTML/views/BaseSetting/Materials.html
+++ b/HTML/views/BaseSetting/Materials.html
@@ -245,7 +245,7 @@
 					
 					var url  = "/Basis/GetMateList?SkuNo="+SkuNo+"&&SkuName="+SkuName+"&&AuditStatusNo="+AuditStatusNo+"&&Type="+Type+"&&IsControlled="+IsControlled+"&&IsInspect="+IsInspect+"&&Environment="+Environment+"&CategoryNo="+CategoryNo;
 					sendData(IP + url, {}, 'get', function(res) {
-						if (res.code == 0) //鎴愬姛
+						if (res.code == 200) //鎴愬姛
 						{
 							var list = res.data;
 							$.extend(infoOptions, {
@@ -459,7 +459,7 @@
 											doing = false;
 											sendData(IP + "/Basis/AddMate", param, 'post',function(res) {
 												console.log(res);
-												if (res.code == 0) { //鎴愬姛
+												if (res.code == 200) { //鎴愬姛
 													layer.msg(res.msg, {
 														icon: 1,
 														time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -559,7 +559,7 @@
 								doing = false;
 								sendData(IP + "/Basis/DelMate?Id="+data.Id+"", {} , 'get', function(res) {
 									console.log(res);
-									if (res.code == 0) { //鎴愬姛
+									if (res.code == 200) { //鎴愬姛
 										layer.msg(res.msg, {
 											icon: 1,
 											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -641,7 +641,7 @@
 										doing = false;
 										sendData(IP + "/Basis/ExitMate", param, 'post',
 										function(res) {
-											if (res.code == 0) //鎴愬姛
+											if (res.code == 200) //鎴愬姛
 											{
 												layer.msg("淇敼鎴愬姛", {
 													icon: 1,

--
Gitblit v1.8.0