From a7ae63ad871b986eb1bede54219638edd4e29b63 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 21 十一月 2023 10:45:24 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml | 34 ++++++++++++++++++++++++++--------
1 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml
index 17122a0..c66b0bf 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml
@@ -107,9 +107,18 @@
@foreach (var item in ClassifyId)
{
- <option value="@item.Id" hassubinfo="true">
- @item.ClassifyName
- </option>
+ @if (!item.Id.Equals(Model.ClassifyId))
+ {
+ <option value="@item.Id" hassubinfo="true">
+ @item.ClassifyName
+ </option>
+ }
+ else
+ {
+ <option value="@item.Id" hassubinfo="true" selected="selected">
+ @item.ClassifyName
+ </option>
+ }
}
@@ -125,9 +134,18 @@
@foreach (var item in Goods)
{
- <option value="@item.Id" hassubinfo="true">
- @item.GoodsName
- </option>
+ @if (!item.Id.Equals(Model.Id))
+ {
+ <option value="@item.Id" hassubinfo="true">
+ @item.GoodsName
+ </option>
+ }
+ else
+ {
+ <option value="@item.Id" hassubinfo="true" selected="selected">
+ @item.GoodsName
+ </option>
+ }
}
@@ -144,14 +162,14 @@
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍓╀綑鏁伴噺</label>
<div class="col-sm-2 col-md-2" grouptype="Vdata">
- <input class="form-control" label="鍓╀綑鏁伴噺" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="" readonly="">
+ <input class="form-control" label="鍓╀綑鏁伴噺" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.GoodsLeft" readonly="">
</div>
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍑哄簱鏁伴噺</label>
<div class="col-sm-2 col-md-2" grouptype="Vdata">
- <input class="form-control" label="鍑哄簱鏁伴噺" name="GoodsCaozuo" id="GoodsCaozuo" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+ <input class="form-control" label="鍑哄簱鏁伴噺" name="GoodsCaozuo" id="GoodsCaozuo" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
</div>
--
Gitblit v1.9.1