From c54d598cc71ca26f262d498e034b64627d7b6616 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 07 七月 2022 15:25:19 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml | 323 +++++++++++++++++++++++++++++++++++------------------ 1 files changed, 213 insertions(+), 110 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml index b470e0f..c0c1d95 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml @@ -122,10 +122,26 @@ <div class="clearfix layer-area" style="padding-bottom:15px;"> <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"> - <input class="form-control" label="鍓湰鏁伴噺" name="PrintNum" id="PrintNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.PrintNum" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"> - </div> + <div class="col-sm-2 col-md-2"> + + <div class="input-group"> + <input type="text" name="PrintNum" id="PrintNum" class="form-control" value="@Model.PrintNum" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"> + <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:document.getElementById('PrintNum').value =1; ">1</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =2; ">2</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =3; ">3</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =4; ">4</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =5; ">5</a></li> + </ul> + </div><!-- /btn-group --> + </div><!-- /input-group --> + </div> @@ -199,7 +215,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> @@ -244,8 +260,22 @@ <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="@Model.XmPackage"> + <div class="input-group"> + <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@Model.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> @@ -274,12 +304,13 @@ <div id="zhiyishixiang"> @for (int i = 0; i < challengeItemDTOs.Count; i++) { + <div class="zhiyishixiangitem"> @if (challengeItemDTOs.Count == 1) { <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" id="Questionlabel" class="text-right col-sm-1 col-md-1 control-label">璐ㄧ枒浜嬮」</label> <div class="col-sm-4 col-md-4" grouptype="Vdata"> - <select class="form-control" name="Question" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="Questionchangge(@i);"> + <select class="form-control" name="Question" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="Questionchangge(@i);"> <option value="" hassubinfo="true">璇烽�夋嫨</option> @foreach (var item in question) { @@ -300,20 +331,18 @@ } </select> - + <input type="hidden" name="challengeItemId" value="@challengeItemDTOs[i].Id" /> </div> - - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addzhiyishixiang(this)" data-type="1">璐ㄧ枒浜嬮」</button> - </div> - + + + </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" id="Evidentiallabel" 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" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="300" length="long">@challengeItemDTOs[i].Evidential</textarea> + <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="3500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@challengeItemDTOs[i].Evidential</textarea> </div> </div> <div id="falvyiju@(i)"> @@ -321,25 +350,31 @@ { @if (challengeItemDTOs[i].sysCodeDtls.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">娉曞緥渚濇嵁</label> - <div class="col-sm-8 col-md-8"> - 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents - </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">娉曞緥渚濇嵁</label> + <div class="col-sm-8 col-md-8"> + 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> + </div> } else { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> - <div class="col-sm-8 col-md-8"> - 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents - </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">娉曞緥渚濇嵁@(j+1)</label> + <div class="col-sm-8 col-md-8"> + 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> + </div> } @@ -373,7 +408,7 @@ } </select> - + <input type="hidden" name="challengeItemId" value="@challengeItemDTOs[i].Id" /> </div> @if (i == 0) { @@ -381,8 +416,8 @@ <button type="button" class="addBtn" onclick="addzhiyishixiang(this)" data-type="1">璐ㄧ枒浜嬮」</button> </div> @*<div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addquestion(this)" data-type="1">鏂板璐ㄧ枒浜嬮」</button> - </div>*@ + <button type="button" class="addBtn" onclick="addquestion(this)" data-type="1">鏂板璐ㄧ枒浜嬮」</button> + </div>*@ } </div> @@ -390,7 +425,7 @@ <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">浜嬪疄渚濇嵁@(i+1)</label> <div class="col-sm-8 col-md-8"> - <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="300" length="long">@challengeItemDTOs[i].Evidential</textarea> + <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="3500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@challengeItemDTOs[i].Evidential</textarea> </div> </div> <div id="falvyiju@(i)"> @@ -398,29 +433,39 @@ { @if (challengeItemDTOs[i].sysCodeDtls.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">娉曞緥渚濇嵁</label> - <div class="col-sm-8 col-md-8"> - 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents - </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"> + 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> - - </div> + </div> } else { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> - <div class="col-sm-8 col-md-8"> - 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents - </div> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> + <div class="col-sm-8 col-md-8"> + 銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> - - </div> + </div> } } </div> } + </div> + @@ -429,59 +474,66 @@ - - } - </div> - - - - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-left col-sm-2 col-md-2 control-label">鍥涖�佷笌璐ㄧ枒浜嬮」鐩稿叧鐨勮川鐤戣姹�</label> - </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-4 col-md-4" grouptype="Vdata"> - <select id="RequestInfo" class="form-control" name="RequestInfo" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in request_info) - { - @if (!item.CodeSn.Equals(Model.RequestInfo)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } } - } + </div> - </select> + <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="addzhiyishixiang(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 class="clearfix layer-area" style="padding-bottom:15px;"> + <label class="text-left col-sm-2 col-md-2 control-label">鍥涖�佷笌璐ㄧ枒浜嬮」鐩稿叧鐨勮川鐤戣姹�</label> + </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-4 col-md-4" grouptype="Vdata"> + <select id="RequestInfo" class="form-control" name="RequestInfo" data-placeholder="閫夋嫨 搴忓垪 ..."> + <option value="" hassubinfo="true">璇烽�夋嫨</option> + @foreach (var item in request_info) + { + @if (!item.CodeSn.Equals(Model.RequestInfo)) + { + <option value="@item.CodeSn" hassubinfo="true"> + @item.Comments + </option> + } + else + { + <option value="@item.CodeSn" hassubinfo="true" selected="selected"> + @item.Comments + </option> + } + + } + } + + </select> + + </div> + + @*<div class="col-sm-2 col-md-2" grouptype="Vdata"> + <button type="button" class="addBtn" onclick="addrequestinfo(this)" data-type="1">鏂板璐ㄧ枒璇锋眰</button> + </div>*@ + + + + </div> + + + + + + </div> - - @*<div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addrequestinfo(this)" data-type="1">鏂板璐ㄧ枒璇锋眰</button> - </div>*@ - - - - </div> - - - - - - - - </div> </div> </div> </div> @@ -493,12 +545,16 @@ @*<a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> </a>*@ - <a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎵撳嵃</span> + @*<a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;"> + <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎵撳嵃</span> + </a>*@ + <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition(1);" style="margin-left:4px; border-radius:4px;"> + <i class="glyphicon glyphicon-ok"></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" href="javascript:void(0)" onclick="savePosition(2);" style="margin-left:4px; border-radius:4px;"> <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> </a> + <input type="hidden" id="Status" name="Status" value="0" /> </div> </div> @@ -513,6 +569,13 @@ var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 + 1000; $("#div_content").height(hh); + + var Evidential = document.getElementsByName("Evidential"); + for (var a = 0; a < Evidential.length; a++) { + + Evidential[a].style.height = Evidential[a].scrollHeight + 'px'; + } + toastr.options = { "closeButton": true, @@ -556,7 +619,7 @@ // 淇濆瓨宀椾綅淇℃伅 - var savePosition = function () { + var savePosition = function (Status) { if ($.trim($("#GysName").val()) == '') { toastr.warning("璐ㄧ枒渚涘簲鍟嗕笉鑳戒负绌�"); @@ -599,7 +662,7 @@ toastr.warning("鍓湰鏁伴噺涓嶈兘涓虹┖"); return; } - + $("#Status").val(Status); //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } $.ajax({ @@ -671,9 +734,11 @@ function Questionchangge(i) { var sss = document.getElementsByName("Question")[i].value; + + var challengeItemId = document.getElementsByName("challengeItemId")[i].value; $.ajax({ type: "GET", - url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i, + url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i + "&challengeItemId=" + challengeItemId, dataType: "json", global: false, data: "", @@ -694,7 +759,11 @@ 銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + ` </div> - +<input type="hidden" name="Law" value="` + data.DataList[i].Comments + `" /> + <input type="hidden" name="challengeItemIdlaw" value="` + data.Remark + `" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> </div> `; @@ -707,7 +776,11 @@ 銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + ` </div> - +<input type="hidden" name="Law" value="` + data.DataList[i].Comments + `" /> + <input type="hidden" name="challengeItemIdlaw" value="` + data.Remark + `" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> </div> `; @@ -758,7 +831,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;"> @@ -800,12 +873,12 @@ function addzhiyishixiang(obj) { var sss = document.getElementsByName("Question").length; if (document.getElementsByName("Question").length == 1) { - + $('#Questionlabel').text("璐ㄧ枒浜嬮」1"); $('#Evidentiallabel').text("浜嬪疄渚濇嵁1"); } - $('#zhiyishixiang').append(` + $('#zhiyishixiang').append(` <div class="zhiyishixiangitem"> <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璐ㄧ枒浜嬮」`+ (sss+1) + `</label> <div class="col-sm-4 col-md-4" grouptype="Vdata"> @@ -822,7 +895,7 @@ } </select> - + <input type="hidden" name="challengeItemId" value="`+ (guid()) + `" /> </div> </div> @@ -830,7 +903,7 @@ <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">浜嬪疄渚濇嵁`+ (sss + 1) + `</label> <div class="col-sm-8 col-md-8"> - <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁`+ sss + `" isempty="" maxlength="4000" length="long"></textarea> + <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁`+ sss + `" isempty="" maxlength="3500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'"></textarea> </div> </div> <div id="falvyiju`+ sss + `"> @@ -842,7 +915,7 @@ </div> - +</div> `); $("select" + sss).chosen(); } @@ -861,6 +934,10 @@ OpenWindow("鏂板璐ㄧ枒璇锋眰", "98%", "90%", "/SysCode/Editrequestinfo/"); } + //function PrintNumzichangge() { + // var sss = $('#PrintNumzi').val(); + // $('#PrintNum').val(sss); + //} $(document).ready(function () { @@ -874,10 +951,36 @@ - + /* PrintNumzichangge();*/ }); + function delBtn(obj) { + var num = $(obj).data().type; + console.log(num) + + if (num == 1) { + if ($('#zhiyishixiang').find('.zhiyishixiangitem').length > 1) { + $('#zhiyishixiang').find('.zhiyishixiangitem:last').remove(); + } + + } + } + function dellawBtn(obj) { + + $(obj).parent().parent().remove(); + + + } + + function guid() { + function S4() { + return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); + } + return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4()); + } + + </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1