From 402f9568e48e6e1a9d29d37dcda46737047425d5 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 25 十一月 2021 10:49:10 +0800 Subject: [PATCH] 专家通讯录优化 --- zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml | 74 +++++++++++++++++++++++-------------- 1 files changed, 46 insertions(+), 28 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml index 422a85c..87827bd 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml @@ -12,9 +12,11 @@ string ShouliStatus = ViewData["ShouliStatus"] as string; //鍙楃悊鍚庝笉鍏佽缂栬緫 + //List<SysCodeDtl> YouHuiList = ViewData["YouHuiList"] as List<SysCodeDtl>; //浼樻儬鍒楄〃 + } @{ - Layout = null; + Layout = null; } <!DOCTYPE html> @@ -103,7 +105,7 @@ <div class="row"> <div class="clearfix layer-area" style="padding-bottom:15px;"> - + <label class="text-right col-sm-1 col-md-1 control-label">璁㈠崟鍙�</label> <div class="col-sm-2 col-md-2"> @@ -179,8 +181,8 @@ </div> - <label class="text-right col-sm-1 col-md-1 control-label">璁㈠崟绫诲瀷2</label> - <div class="col-sm-2 col-md-2"> + <label class="text-right col-sm-1 col-md-1 control-label" id="dingdanleixing2">璁㈠崟绫诲瀷2</label> + <div class="col-sm-2 col-md-2" id="dingdanleixing3"> <select id="OrderType2" class="form-control" name="OrderType2" data-placeholder="閫夋嫨 搴忓垪 ..."> <option value="" hassubinfo="true">璇烽�夋嫨</option> </select> @@ -189,30 +191,30 @@ </div> @*<label class="text-right col-sm-1 col-md-1 control-label">椤圭洰<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <select id="OrderPro" class="form-control" name="OrderPro" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in project) - { - @if (!item.Id.Equals(Model.OrderPro)) + <div class="col-sm-2 col-md-2"> + <select id="OrderPro" class="form-control" name="OrderPro" data-placeholder="閫夋嫨 搴忓垪 ..."> + <option value="" hassubinfo="true">璇烽�夋嫨</option> + @foreach (var item in project) { - <option value="@item.Id" hassubinfo="true"> - @item.Name - </option> + @if (!item.Id.Equals(Model.OrderPro)) + { + <option value="@item.Id" hassubinfo="true"> + @item.Name + </option> + } + else + { + <option value="@item.Id" hassubinfo="true" selected="selected"> + @item.Name + </option> + } + } - else - { - <option value="@item.Id" hassubinfo="true" selected="selected"> - @item.Name - </option> } - } - } + </select> - </select> - - </div>*@ + </div>*@ @@ -226,19 +228,19 @@ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璁㈠崟鏁伴噺<i class="red">*</i></label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderNum" id="OrderNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.OrderNum" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" > + <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderNum" id="OrderNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.OrderNum" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"> </div> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍗曚环<i class="red">*</i></label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="瀹㈡埛鍚嶇О" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price" 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="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> </div> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閲戦<i class="red">*</i></label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="瀹㈡埛鍚嶇О" name="Money" id="Money" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly"> + <input class="form-control" label="瀹㈡埛鍚嶇О" name="Money" id="Money" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly"> </div> @@ -279,7 +281,15 @@ </div> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <div class="col-sm-1 col-md-1"> + + </div> + <div class="col-sm-8 col-md-8" style="color:red;"> + 绯荤粺鑷姩鏍规嵁8澶╁唴鐢宠鐨勪紭鎯犻」鐩绠椾紭鎯犻噾棰� + </div> + </div> </div> @@ -622,6 +632,10 @@ $("#Price").trigger("change"); + + $("#dingdanleixing2").hide(); + $("#dingdanleixing3").hide(); + } else { var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; city.append(aaa); @@ -638,7 +652,8 @@ } } - + $("#dingdanleixing2").show(); + $("#dingdanleixing3").show(); } @@ -740,7 +755,8 @@ success: function (data) { var city = $("#OrderType2"); if (order_type != "02" || order_type1 == "鐢佃瘽鍜ㄨ" || order_type1 == "褰撻潰鍜ㄨ" || order_type1 == "浠f嫙璐ㄧ枒绛斿" || order_type1 == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || order_type1 == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹跺弬鍔犳斂搴滈噰璐暟鎹俊鎭煡璇�" || order_type1 == "鏀块噰璐�") { - + $("#dingdanleixing2").hide(); + $("#dingdanleixing3").hide(); } else { var aaa = ''; @@ -758,6 +774,8 @@ } } + $("#dingdanleixing2").show(); + $("#dingdanleixing3").show(); } -- Gitblit v1.9.1