From 733aca1e22e5b4cecdce37238b9ff43027b2615e Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 04 七月 2022 12:15:43 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml | 257 +++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 196 insertions(+), 61 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml index 0461843..683dbee 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml @@ -145,17 +145,17 @@ <option value="" hassubinfo="true">璇烽�夋嫨</option> @foreach (var item in customer) { - @if (!item.Id.Equals(Model.Khdw)) + @if (!item.Id.Equals(Model.Khdw)) { - <option value="@item.Id" hassubinfo="true"> - @item.Name - </option> + <option value="@item.Id" hassubinfo="true"> + @item.Name + </option> } else { - <option value="@item.Id" hassubinfo="true" selected="selected"> - @item.Name - </option> + <option value="@item.Id" hassubinfo="true" selected="selected"> + @item.Name + </option> } } @@ -176,17 +176,17 @@ <option value="" hassubinfo="true">璇烽�夋嫨</option> @foreach (var item in OrderType) { - @if (!item.CodeSn.Equals(Model.OrderType)) + @if (!item.CodeSn.Equals(Model.OrderType)) { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> + <option value="@item.CodeSn" hassubinfo="true"> + @item.Comments + </option> } else { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> + <option value="@item.CodeSn" hassubinfo="true" selected="selected"> + @item.Comments + </option> } } @@ -215,6 +215,13 @@ <input type="hidden" id="order_type1" name="order_type1" value="@Model.OrderType1" /> <input type="hidden" id="order_type2" name="order_type2" value="@Model.OrderType2" /> </div> + + <label class="text-right col-sm-1 col-md-1 control-label" id="dingdanleixing4">璁㈠崟绫诲瀷2</label> + <div class="col-sm-2 col-md-2" id="dingdanleixing5"> + <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderType3" id="OrderType3" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.OrderType2" maxlength="50"> + + </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"> @@ -254,19 +261,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="text" 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="text" 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="text" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly"> </div> @@ -301,6 +308,44 @@ </div> + <div id="xiangmuxinxi"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + + + + + <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="Xmname" id="Xmname" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Xmname"> + + </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="Xmcode" id="Xmcode" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Xmcode"> + + </div> + + + + + </div> + + </div> + + <div id="jichujine"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + + <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="Jichumoney" id="Jichumoney" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@(Model.Jichumoney.HasValue?Model.Jichumoney.Value.ToString():"")" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> + </div> + + + </div> + + </div> + <div id="zhiyi"> <div class="clearfix layer-area" style="padding-bottom:15px;"> @@ -313,7 +358,7 @@ </div> - + </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍦板潃<i class="red">*</i></label> @@ -367,7 +412,7 @@ <input class="form-control" label="鑱旂郴鐢佃瘽" id="zhiyiLianxidianhua" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua"> </div> - + </div> @@ -410,7 +455,7 @@ <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"> - + <div class="input-group"> <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@challengeletterDTO.XmPackage"> <div class="input-group-btn"> @@ -464,29 +509,29 @@ </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"> - <select id="TsrId" class="form-control" name="TsrId" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="TsrIdchangge();"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in ChallengeletterChosen) - { - @if (!item.Id.Equals(complaintletterDTO.TsrId)) + <div class="col-sm-2 col-md-2" grouptype="Vdata"> + <select id="TsrId" class="form-control" name="TsrId" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="TsrIdchangge();"> + <option value="" hassubinfo="true">璇烽�夋嫨</option> + @foreach (var item in ChallengeletterChosen) { - <option value="@item.Id" hassubinfo="true"> - @item.OrderId - </option> - } - else - { - <option value="@item.Id" hassubinfo="true" selected="selected"> - @item.OrderId - </option> + @if (!item.Id.Equals(complaintletterDTO.TsrId)) + { + <option value="@item.Id" hassubinfo="true"> + @item.OrderId + </option> + } + else + { + <option value="@item.Id" hassubinfo="true" selected="selected"> + @item.OrderId + </option> + } + } - } - - </select> - </div>*@ + </select> + </div>*@ </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍦板潃<i class="red">*</i></label> @@ -867,8 +912,8 @@ </select> </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"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" id="tousuNoticeDatelabel">鍏憡鏈熼檺</label> + <div class="col-sm-2 col-md-2" grouptype="Vdata" id="tousuNoticeDatediv"> <input class="form-control" label="鍏憡鏈熼檺" name="tousuNoticeDate" id="tousuNoticeDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.NoticeDateName" readonly="readonly"> </div> @@ -903,8 +948,8 @@ </select> </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"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" id="tousuResultnoticeDatelabel">鍏憡鏈熼檺</label> + <div class="col-sm-2 col-md-2" grouptype="Vdata" id="tousuResultnoticeDatediv"> <input class="form-control" label="鍏憡鏈熼檺" name="tousuResultnoticeDate" id="tousuResultnoticeDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.ResultnoticeDateName" readonly="readonly"> </div> @@ -916,26 +961,26 @@ </div> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">澶囨敞</label> - <div class="col-sm-8 col-md-8"> - <textarea class="form-control bt" id="Remark" name="Remark" title="澶囨敞" isempty="" maxlength="4000" length="long">@Model.Remark</textarea> - </div> - + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">澶囨敞</label> + <div class="col-sm-8 col-md-8"> + <textarea class="form-control bt" id="Remark" name="Remark" title="澶囨敞" isempty="" maxlength="4000" length="long">@Model.Remark</textarea> </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> + + <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> </div> </div> </div> @@ -977,7 +1022,8 @@ laydate({ elem: "#zhiyiDocumentsDate", format: 'YYYY-MM-DD', istime: true, event: "focus" }); laydate({ elem: "#tousuResultnoticeDate", format: 'YYYY-MM-DD', istime: true, event: "focus" }); laydate({ elem: "#tousuNoticeDate", format: 'YYYY-MM-DD', istime: true, event: "focus" }); - + $("#dingdanleixing4").hide(); + $("#dingdanleixing5").hide(); $(document).ready(function () { if ("@ShouliStatus" != "1") { @@ -1365,6 +1411,18 @@ $("#putong").show(); $("#zhiyi").hide(); $("#tousu").hide(); + + if (sheng == '03' || sheng == '08') { + $("#xiangmuxinxi").show(); + } else { + $("#xiangmuxinxi").hide(); + } + + if (sheng == '08') { + $("#jichujine").show(); + } else { + $("#jichujine").hide(); + } }); @@ -1399,6 +1457,13 @@ $("#dingdanleixing2").hide(); $("#dingdanleixing3").hide(); + if (sheng == "姘戜簨绾犵悍" || sheng == "鍏朵粬绾犵悍") { + $("#dingdanleixing4").show(); + $("#dingdanleixing5").show(); + } else { + $("#dingdanleixing4").hide(); + $("#dingdanleixing5").hide(); + } } else { var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; @@ -1432,6 +1497,17 @@ $("#putong").show(); $("#zhiyi").hide(); $("#tousu").hide(); + if (OrderType == '03' || OrderType == '08') { + $("#xiangmuxinxi").show(); + } else { + $("#xiangmuxinxi").hide(); + } + + if (OrderType == '08') { + $("#jichujine").show(); + } else { + $("#jichujine").hide(); + } } @@ -1533,6 +1609,13 @@ if (order_type != "02" || order_type1 == "鐢佃瘽鍜ㄨ" || order_type1 == "褰撻潰鍜ㄨ" || order_type1 == "浠f嫙璐ㄧ枒绛斿" || order_type1 == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || order_type1 == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹跺弬鍔犳斂搴滈噰璐暟鎹俊鎭煡璇�" || order_type1 == "鏀块噰璐�") { $("#dingdanleixing2").hide(); $("#dingdanleixing3").hide(); + if (order_type1 == "姘戜簨绾犵悍" || order_type1 == "鍏朵粬绾犵悍") { + $("#dingdanleixing4").show(); + $("#dingdanleixing5").show(); + } else { + $("#dingdanleixing4").hide(); + $("#dingdanleixing5").hide(); + } } else { var aaa = ''; @@ -1588,11 +1671,33 @@ $("#putong").show(); $("#zhiyi").hide(); $("#tousu").hide(); + if ($("#OrderType").val() == '03' || $("#OrderType").val() == '08') { + $("#xiangmuxinxi").show(); + } else { + $("#xiangmuxinxi").hide(); + } + + if (sheng == '08') { + $("#jichujine").show(); + } else { + $("#jichujine").hide(); + } } } else { $("#putong").show(); $("#zhiyi").hide(); $("#tousu").hide(); + if ($("#OrderType").val() == '03' || $("#OrderType").val() == '08') { + $("#xiangmuxinxi").show(); + } else { + $("#xiangmuxinxi").hide(); + } + + if ($("#OrderType").val() == '08') { + $("#jichujine").show(); + } else { + $("#jichujine").hide(); + } } if ($("#zhiyiShouquandaibiao").val() != "") { @@ -1928,6 +2033,36 @@ } } + + + $("#tousuIsNotice").change(function () { + + var OrderNum = $("#tousuIsNotice").val(); + if (OrderNum == 'D') { + $("#tousuNoticeDatelabel").hide(); + $("#tousuNoticeDatediv").hide(); + } else { + $("#tousuNoticeDatelabel").show(); + $("#tousuNoticeDatediv").show(); + } + + }); + + + $("#tousuIsResultnotice").change(function () { + + var OrderNum = $("#tousuIsResultnotice").val(); + if (OrderNum == 'D') { + $("#tousuResultnoticeDatelabel").hide(); + $("#tousuResultnoticeDatediv").hide(); + } else { + $("#tousuResultnoticeDatelabel").show(); + $("#tousuResultnoticeDatediv").show(); + } + + }); + + </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1