From 97aa4f0b37b32ae0c9a062e2ec14aceba40785d6 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 15 三月 2022 15:26:08 +0800 Subject: [PATCH] 初始化投诉书 --- zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml | 197 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 129 insertions(+), 68 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml index b470e0f..4dbb8e6 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) { @@ -302,18 +333,16 @@ </select> </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)"> @@ -381,8 +410,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 +419,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)"> @@ -421,6 +450,8 @@ } </div> } + </div> + @@ -429,59 +460,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> @@ -513,6 +551,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, @@ -758,7 +803,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;"> @@ -805,7 +850,7 @@ $('#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"> @@ -830,7 +875,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 +887,7 @@ </div> - +</div> `); $("select" + sss).chosen(); } @@ -861,6 +906,10 @@ OpenWindow("鏂板璐ㄧ枒璇锋眰", "98%", "90%", "/SysCode/Editrequestinfo/"); } + //function PrintNumzichangge() { + // var sss = $('#PrintNumzi').val(); + // $('#PrintNum').val(sss); + //} $(document).ready(function () { @@ -874,10 +923,22 @@ - + /* 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(); + } + + } + } + </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1