From d64f81bccb25c98261b84a4355f92c3b32470606 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期一, 07 四月 2025 09:32:56 +0800
Subject: [PATCH] 日期显示问题修改
---
HTML/views/BaseSetting/Materials.html | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/HTML/views/BaseSetting/Materials.html b/HTML/views/BaseSetting/Materials.html
index 2e777d1..bb78d5c 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>
@@ -177,12 +177,21 @@
{{# } }}
</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">
{{# if(d.Environment=='0'){ }}
<p>甯告俯</p>
{{# } else if(d.Environment=='1') { }}
- <p>浣庢俯</p>
+ <p>闃村噳</p>
{{# } else if(d.Environment=='3') { }}
<p>骞茬嚗閫氶</p>
{{# } }}
@@ -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