From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 28 二月 2023 13:25:09 +0800 Subject: [PATCH] 工资绩效改版 --- zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml | 384 +++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 303 insertions(+), 81 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml index f2b483f..2ac3108 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml @@ -40,6 +40,7 @@ List<TChallengeletterDTO> ChallengeletterChosen = ViewData["ChallengeletterChosen"] as List<TChallengeletterDTO>; + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; } @{ Layout = null; @@ -145,17 +146,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 +177,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 +216,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 +262,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 +309,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 +359,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 +413,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,8 +456,23 @@ <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="zhiyiXmPackage" id="zhiyiXmPackage" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.XmPackage"> + <div class="input-group"> + <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@(string.IsNullOrEmpty(Model.Id)?"绗�1鍖�":challengeletterDTO.XmPackage)"> + <div class="input-group-btn"> + <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> + + <span class="caret"></span> + </button> + <ul class="dropdown-menu pull-right"> + <li><a href="javascript:$('#zhiyiXmPackage').val('绗�1鍖�')">绗�1鍖�</a></li> + <li><a href="javascript:$('#zhiyiXmPackage').val('绗�2鍖�')">绗�2鍖�</a></li> + <li><a href="javascript:$('#zhiyiXmPackage').val('绗�3鍖�')">绗�3鍖�</a></li> + <li><a href="javascript:$('#zhiyiXmPackage').val('绗�4鍖�')">绗�4鍖�</a></li> + <li><a href="javascript:$('#zhiyiXmPackage').val('绗�5鍖�')">绗�5鍖�</a></li> + </ul> + </div><!-- /btn-group --> + </div><!-- /input-group --> </div> </div> @@ -448,30 +509,30 @@ </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)) - { - <option value="@item.Id" hassubinfo="true"> - @item.OrderId - </option> - } - else - { - <option value="@item.Id" hassubinfo="true" selected="selected"> - @item.OrderId - </option> - } + @*<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)) + { + <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> @@ -553,7 +614,7 @@ <div id="beitousuren"> @for (int i = 0; i < complaintRespondentDTOs.Count; i++) { - @if (complaintRespondentDTOs.Count==1) + @if (complaintRespondentDTOs.Count == 1) { <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> @@ -562,9 +623,7 @@ </div> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addbeitousuren(this)" data-type="1">琚姇璇変汉</button> - </div> + @@ -653,13 +712,16 @@ } </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-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addxiangguangongyingshang(this)" data-type="1">鐩稿叧渚涘簲鍟�</button> + + <button type="button" class="addBtn" onclick="addbeitousuren(this)" data-type="1" style="width:32px">+</button> + <button type="button" class="delBtn" onclick="delBtn(this)" data-type="1" style="width:32px">-</button> </div> </div> + + <div id="xiangguangongyingshang"> @@ -759,7 +821,14 @@ } </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-2 col-md-2" grouptype="Vdata"> + <button type="button" class="addBtn" onclick="addxiangguangongyingshang(this)" data-type="2" style="width:32px">+</button> + <button type="button" class="delBtn" onclick="delBtn(this)" data-type="2" style="width:32px">-</button> + </div> + </div> @@ -780,8 +849,23 @@ <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="tousuXmPackage" id="tousuXmPackage" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.XmPackage"> + <div class="input-group"> + <input type="text" name="tousuXmPackage" id="tousuXmPackage" class="form-control" value="@(string.IsNullOrEmpty(Model.Id)?"绗�1鍖�":complaintletterDTO.XmPackage) "> + <div class="input-group-btn"> + <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> + + <span class="caret"></span> + </button> + <ul class="dropdown-menu pull-right"> + <li><a href="javascript:$('#tousuXmPackage').val('绗�1鍖�')">绗�1鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�2鍖�')">绗�2鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�3鍖�')">绗�3鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�4鍖�')">绗�4鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�5鍖�')">绗�5鍖�</a></li> + </ul> + </div><!-- /btn-group --> + </div><!-- /input-group --> </div> </div> @@ -829,8 +913,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> @@ -865,8 +949,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> @@ -906,11 +990,11 @@ <div class="wrapper wrapper-content" style="margin-top:0px"></div> <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> - <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> + <a class="btn btn-success Delete" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;display:none;"> <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> </a> - <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> + <a class="btn btn-success Update" href="javascript:void(0)" onclick="savePosition();" style="margin-left: 4px; border-radius: 4px; display: none;"> <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> </a> </div> @@ -939,7 +1023,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") { @@ -1008,8 +1093,8 @@ var id = '@Model.Id'; var order_type = '@Model.OrderType'; - var order_type1 = $("#order_type1").val(); - var order_type2 = $("#order_type2").val(); + var order_type1 = '@Html.Raw(Model.OrderType1)';/*$("#order_type1").val();*/ + var order_type2 = '@Html.Raw(Model.OrderType2)';/*$("#order_type2").val();*/ var bUpload = false; var bAdd = false; // 鏂板鎿嶄綔 @@ -1157,7 +1242,7 @@ return; } - + } else if ($("#OrderType1").val() == "浠f嫙璐ㄧ枒鍑�") { if ($.trim($("#GysName").val()) == '') { toastr.warning("璐ㄧ枒渚涘簲鍟嗕笉鑳戒负绌�"); @@ -1196,11 +1281,11 @@ toastr.warning("閲囪喘鏂囦欢鑾峰彇鏃ユ湡涓嶈兘涓虹┖"); return; } - - - - - } + + + + + } @@ -1327,6 +1412,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(); + } }); @@ -1361,6 +1458,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>'; @@ -1394,6 +1498,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(); + } } @@ -1410,6 +1525,7 @@ $("#OrderType2").change(function () { + var OrderType = $("#OrderType").val(); var OrderType1 = $("#OrderType1").val(); var OrderType2 = $("#OrderType2").val(); @@ -1438,7 +1554,7 @@ - if (id != null && id != '') { + if (order_type != null && order_type != '') { $.ajax({ type: "GET", @@ -1482,7 +1598,6 @@ - $.ajax({ type: "GET", url: "/CooperOrder/getOrderType1?OrderType1=" + order_type1 + "&OrderType=" + order_type, @@ -1495,6 +1610,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 = ''; @@ -1519,7 +1641,9 @@ - + if (id == null || id == '') { + $("#OrderType2").trigger("change"); + } }, @@ -1530,10 +1654,22 @@ } }); + + if (order_type == '03' || order_type == '08') { + $("#xiangmuxinxi").show(); + } else { + $("#xiangmuxinxi").hide(); + } + + if (order_type == '08') { + $("#jichujine").show(); + } else { + $("#jichujine").hide(); + } } - + $(document).ready(function () { @@ -1550,11 +1686,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() != "") { @@ -1568,17 +1726,17 @@ } else { $("#tousushouquan").hide(); } - + var sheng = $("#OrderType").val(); if (sheng == '08' || sheng == '11' || sheng == '10') { $('#Price').removeAttr("readonly");//鍘婚櫎input鍏冪礌鐨剅eadonly灞炴�� } else { $('#Price').attr("readonly", "readonly")//灏唅nput鍏冪礌璁剧疆涓簉eadonly } - - $("#TsrId").chosen(); - }); + $("#TsrId").chosen(); + + }); $("#Khdw").change(function () { @@ -1591,13 +1749,13 @@ global: false, data: "", success: function (data) { - - + + $("#Shr").val(data.ShrName); $("#ShrAddress").val(data.ShrAddress); $("#ShrTel").val(data.ShrTel); - $("#GysName").val(data.Name); + $("#GysName").val(data.Name); $("#GysAddress").val(data.Address); $("#GysContacts").val(data.FName); $("#GysPhone").val(data.FTel); @@ -1607,7 +1765,7 @@ $("#TsrPostcode").val(data.Postal); $("#TsrCorporation").val(data.FName); $("#TsrPhone").val(data.FTel); - + }, error: function () { @@ -1629,7 +1787,7 @@ function addzhiyishouquan(obj) { - $("#zhiyishouquan").show(); + $("#zhiyishouquan").toggle(); //var sss = document.getElementsByName("zhiyiShouquandaibiao").length; // $('#zhiyishouquan').append(` <div class="clearfix layer-area" style="padding-bottom:15px;"> @@ -1668,7 +1826,7 @@ function addtousushouquan(obj) { - $("#tousushouquan").show(); + $("#tousushouquan").toggle(); //var sss = document.getElementsByName("tousuShouquandaibiao").length; //$('#tousushouquan').append(` <div class="clearfix layer-area" style="padding-bottom:15px;"> @@ -1785,7 +1943,7 @@ <input class="form-control" label="鐩稿叧渚涘簲鍟哷+ sss + `" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=""> </div> - + </div> @@ -1834,7 +1992,7 @@ global: false, data: "", success: function (data) { - + //$('#zhiyishixiang').html(data.GysId); //$("select").chosen(); $("#TsrName").val(data.GysName); @@ -1850,7 +2008,7 @@ $("#tousuLianxidianhua").val(data.complaintShouquandaibiaoDTOs[0].Lianxidianhua); $("#tousuDizhi").val(data.complaintShouquandaibiaoDTOs[0].Dizhi); $("#tousuYoubian").val(data.complaintShouquandaibiaoDTOs[0].Youbian); - + } } @@ -1869,6 +2027,70 @@ }); } + + function delBtn(obj) { + var num = $(obj).data().type; + console.log(num) + + if (num == 1) { + if ($('#beitousuren').find('.clearfix').length > 3) { + $('#beitousuren').find('.clearfix:last').remove(); + $('#beitousuren').find('.clearfix:last').remove(); + $('#beitousuren').find('.clearfix:last').remove(); + } + + } else if (num == 2) { + if ($('#xiangguangongyingshang').find('.clearfix').length > 1) { + $('#xiangguangongyingshang').find('.clearfix:last').remove(); + $('#xiangguangongyingshang').find('.clearfix:last').remove(); + $('#xiangguangongyingshang').find('.clearfix:last').remove(); + } + + } + } + + + $("#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(); + } + + }); + var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))'; + + + + $(function () { + var data = JSON.parse(ActionInfo22); + for (var o in data) { + if ("@ShouliStatus" == "1") { + $("." + data[o].PageShortcut).show(); + } + + + } + }); + </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1