From 157abc191c34e57c1b958ae74fc3de6518ca8a30 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期五, 28 二月 2025 11:06:36 +0800
Subject: [PATCH] 修改客户需求

---
 HTML/views/BaseSetting/Materials.html |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/HTML/views/BaseSetting/Materials.html b/HTML/views/BaseSetting/Materials.html
index 2e777d1..5ac5cf5 100644
--- a/HTML/views/BaseSetting/Materials.html
+++ b/HTML/views/BaseSetting/Materials.html
@@ -61,7 +61,7 @@
 						<div class="layui-input-inline">
 							<select name="Type" id="Type" lay-verify="" lay-verify="" lay-search>
 								<option value=""></option>
-								<option value="0">鍘熸枡</option>
+								<option value="0">鍘熻緟鏂�</option>
 								<option value="1">鍖呮潗</option>
 								<option value="2">鎴愬搧</option>
 								<option value="3">鑰楁潗</option>
@@ -98,7 +98,7 @@
 							<select name="Environment" id="Environment" lay-verify="" lay-verify="" lay-search>
 								<option value=""></option>
 								<option value="0">甯告俯</option>
-								<option value="1">浣庢俯</option>
+								<option value="1">闃村噳</option>
 								<!-- <option value="3">骞茬嚗閫氶</option> -->
 							</select>
 						</div>
@@ -176,6 +176,15 @@
 							<p>鏄�</p>
 						{{# }  }}
                     </script>
+
+				<!-- 鏄惁鍏嶆 -->
+				<script type="text/html" id="buttonIsWrap">
+					{{# if(d.IsInspect=='0'){ }}
+						<p>鍚�</p>
+					{{# } else if(d.IsInspect=='1') { }}
+						<p>鏄�</p>
+					{{# }  }}
+				</script>
 
 				<!-- 瀛樺偍鐜 -->
 				<script type="text/html" id="buttonEnvironment">
@@ -442,6 +451,7 @@
 										Environment: field.Environment,
 										Weight: Number(field.Weight),
 										Warranty: Number(field.Warranty),
+										Warrantydate:field.Warrantydate,
 										Price: Number(field.Price),
 										AdventTime: Number(field.AdventTime), //涓存湡
 										LowInventory: Number(field.LowInventory), //浣庡簱瀛�
@@ -449,9 +459,10 @@
 									};
 									if (doing) {
 										doing = false;
+										
 										sendData(IP + "/Basis/AddMate", param, 'post', function (res) {
 											console.log(res);
-											if (res.code == 0) { //鎴愬姛
+											if (res.code == 1) { //鎴愬姛
 												layer.msg(res.msg, {
 													icon: 1,
 													time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級

--
Gitblit v1.8.0