username@email.com
2022-07-07 c54d598cc71ca26f262d498e034b64627d7b6616
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>
@@ -179,40 +195,40 @@
                                </div>
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                        <button type="button" class="addBtn" onclick="addzhiyishouquan(this)" data-type="1">授权代表</button>
                                    </div>
                                </div>
                                <div id="zhiyishouquan">
                                    @for (int i = 0; i < challengecomplaintShouquandaibiaoDTOs.Count; i++)
                                    {
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">授权代表@(i!=0?(i+""):"")</label>
                                            <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="授权代表@(i!=0?(i+""):"")" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Shouquandaibiao">
                                                <input class="form-control" label="授权代表" id="zhiyiShouquandaibiao" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Shouquandaibiao">
                                            </div>
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">联系电话@(i!=0?(i+""):"")</label>
                                            <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="联系电话@(i!=0?(i+""):"")" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua">
                                                <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>
                                            @if (i == 0)
                                            {
                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                    <button type="button" class="addBtn" onclick="addzhiyishouquan(this)" data-type="1">授权代表</button>
                                                </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!=0?(i+""):"")</label>
                                            <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="地址@(i!=0?(i+""):"")" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Dizhi">
                                                <input class="form-control" label="地址" id="zhiyiDizhi" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Dizhi">
                                            </div>
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">邮编@(i!=0?(i+""):"")</label>
                                            <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="邮编@(i!=0?(i+""):"")" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Youbian">
                                                <input class="form-control" label="邮编" id="zhiyiYoubian" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Youbian">
                                            </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,82 +304,188 @@
                                <div id="zhiyishixiang">
                                    @for (int i = 0; i < challengeItemDTOs.Count; i++)
                                    {
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">质疑事项@(i!=0?(i+""):"")</label>
                                            <div class="col-sm-4 col-md-4" grouptype="Vdata">
                                                <select class="form-control" name="Question" data-placeholder="选择 序列 ..." onchange="Questionchangge(@i);">
                                                    <option value="" hassubinfo="true">请选择</option>
                                                    @foreach (var item in question)
                                                    {
                                                        @if (!item.CodeSn.Equals(challengeItemDTOs[i].Question))
                                    <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);">
                                                        <option value="" hassubinfo="true">请选择</option>
                                                        @foreach (var item in question)
                                                        {
                                                            <option value="@item.CodeSn" hassubinfo="true">
                                                                @item.Comments
                                                            </option>
                                                            @if (!item.CodeSn.Equals(challengeItemDTOs[i].Question))
                                                            {
                                                                <option value="@item.CodeSn" hassubinfo="true">
                                                                    @item.Comments
                                                                </option>
                                                            }
                                                            else
                                                            {
                                                                <option value="@item.CodeSn" hassubinfo="true" selected="selected">
                                                                    @item.Comments
                                                                </option>
                                                            }
                                                        }
                                                        else
                                                        {
                                                            <option value="@item.CodeSn" hassubinfo="true" selected="selected">
                                                                @item.Comments
                                                            </option>
                                                        }
                                                    }
                                                    }
                                                    </select>
                                                   <input type="hidden" name="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                                </div>
                                                </select>
                                            </div>
                                            @if (i == 0)
                                            {
                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                    <button type="button" class="addBtn" onclick="addzhiyishixiang(this)" data-type="1">质疑事项</button>
                                            <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="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 class="col-sm-2 col-md-2" grouptype="Vdata">
                                            </div>
                                            <div id="falvyiju@(i)">
                                                @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                                {
                                                    @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>
                                                    <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>
                                                <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">质疑事项@(i+1)</label>
                                                <div class="col-sm-4 col-md-4" grouptype="Vdata">
                                                    <select class="form-control" name="Question" data-placeholder="选择 序列 ..." onchange="Questionchangge(@i);">
                                                        <option value="" hassubinfo="true">请选择</option>
                                                        @foreach (var item in question)
                                                        {
                                                            @if (!item.CodeSn.Equals(challengeItemDTOs[i].Question))
                                                            {
                                                                <option value="@item.CodeSn" hassubinfo="true">
                                                                    @item.Comments
                                                                </option>
                                                            }
                                                            else
                                                            {
                                                                <option value="@item.CodeSn" hassubinfo="true" selected="selected">
                                                                    @item.Comments
                                                                </option>
                                                            }
                                                        }
                                                        }
                                                    </select>
                                                    <input type="hidden" name="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                                </div>
                                                @if (i == 0)
                                                {
                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                        <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>*@
                                            }
                                                }
                                            </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+1)</label>
                                                <div class="col-sm-8 col-md-8">
                                                    <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)">
                                                @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                                {
                                                    @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>
                                                    <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>
                                                <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>
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">事实依据@(i!=0?(i+""):"")</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>
                                            <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 id="falvyiju@(i)">
                                            @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                            {
                                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">法律依据@(j!=0?(j+""):"")</label>
                                                    <div class="col-sm-8 col-md-8">
                                                        @challengeItemDTOs[i].sysCodeDtls[j].CodeSn
                                                    </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 != 0?(j + ""):"")</label>
                                                    <div class="col-sm-8 col-md-8">
                                                        @challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                    </div>
                                                </div>
                                            }
                                        </div>
                                            }
                                        </div>
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
@@ -384,8 +520,8 @@
                                            </div>
                                            @*<div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                <button type="button" class="addBtn" onclick="addrequestinfo(this)" data-type="1">新增质疑请求</button>
                                            </div>*@
                    <button type="button" class="addBtn" onclick="addrequestinfo(this)" data-type="1">新增质疑请求</button>
                </div>*@
@@ -409,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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<span class="bold">提交</span>
                </a>
                <input type="hidden" id="Status" name="Status" value="0" />
            </div>
        </div>
@@ -429,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,
@@ -472,7 +619,7 @@
        // 保存岗位信息
        var savePosition = function () {
        var savePosition = function (Status) {
            if ($.trim($("#GysName").val()) == '') {
                toastr.warning("质疑供应商不能为空");
@@ -515,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({
@@ -585,12 +732,13 @@
        }
        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: "",
@@ -602,44 +750,40 @@
                    if (data.DataList.length > 0) {
                        for (var i = 0; i < data.DataList.length; i++) {
                            if (i == 0) {
                                falvyijuhtml += `
                            if (data.DataList.length == 1) {
                                falvyijuhtml += `
                                        <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" >
                                               ` + data.DataList[i].CodeSn + `
                                               《` + 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>
                                        <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" >
                                               ` + data.DataList[i].Contents + `
                                            </div>
                                        </div>   `;
                                           `;
                            } else {
                                falvyijuhtml += `
                                falvyijuhtml += `
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">法律依据 ` + i + `</label>
                                            <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" >
                                               ` + data.DataList[i].CodeSn + `
                                                 《` + 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>
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">内容 ` + i + `</label>
                                             <div class="col-sm-8 col-md-8" >
                                               ` + data.DataList[i].Contents + `
                                            </div>
                                        </div>   `;
                                           `;
                            }
@@ -648,26 +792,23 @@
                    }
                    else {
                        falvyijuhtml += `
                        falvyijuhtml += `
                                        <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>
                                        <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>   `;
                                           `;
                    }
                    falvyijuhtml += `   </div> `;
                    falvyiju.html(falvyijuhtml);
                },
                error: function () {
@@ -690,39 +831,40 @@
        function addzhiyishouquan(obj) {
            var sss = document.getElementsByName("zhiyiShouquandaibiao").length;
            $("#zhiyishouquan").toggle();
            //var sss = document.getElementsByName("zhiyiShouquandaibiao").length;
            $('#zhiyishouquan').append(` <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">授权代表`+ sss + `</label>
                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                <input class="form-control" label="授权代表`+ sss + `" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
            //$('#zhiyishouquan').append(` <div class="clearfix layer-area" style="padding-bottom:15px;">
            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">授权代表`+ sss + `</label>
            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
            //                                    <input class="form-control" label="授权代表`+ sss + `" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
                                            </div>
            //                                </div>
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">联系电话`+ sss + `</label>
                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                <input class="form-control" label="联系电话`+ sss + `" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">联系电话`+ sss + `</label>
            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
            //                                    <input class="form-control" label="联系电话`+ sss + `" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
                                            </div>
            //                                </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">地址`+ sss + `</label>
                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                <input class="form-control" label="地址`+ sss + `" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
            //                            </div>
            //                            <div class="clearfix layer-area" style="padding-bottom:15px;">
            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">地址`+ sss + `</label>
            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
            //                                    <input class="form-control" label="地址`+ sss + `" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
                                            </div>
            //                                </div>
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">邮编`+ sss + `</label>
                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                <input class="form-control" label="邮编`+ sss + `" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">邮编`+ sss + `</label>
            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
            //                                    <input class="form-control" label="邮编`+ sss + `" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
                                            </div>
            //                                </div>
                                        </div>`);
            //                            </div>`);
        }
@@ -730,10 +872,15 @@
        function addzhiyishixiang(obj) {
            var sss = document.getElementsByName("Question").length;
            if (document.getElementsByName("Question").length == 1) {
            $('#zhiyishixiang').append(`
                $('#Questionlabel').text("质疑事项1");
                $('#Evidentiallabel').text("事实依据1");
            }
            $('#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 + `</label>
                                            <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">
                                                <select class="form-control"  name="Question" data-placeholder="选择 序列 ..." onchange="Questionchangge(`+ sss + `);">
                                                    <option value="" hassubinfo="true">请选择</option>
@@ -748,32 +895,29 @@
                                                    }
                                                </select>
                               <input type="hidden"  name="challengeItemId" value="`+ (guid()) + `" />
                                            </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>
                                            <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="事实依据" 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 + `">
                                        <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>
                                        <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>
</div>
</div>
`);
            $("select").chosen();
            $("select" + sss).chosen();
        }
        var addLaw = function () {
            OpenWindow("新增法律依据", "98%", "90%", "/SysCode/Editlaw/");
@@ -789,6 +933,54 @@
        var addrequestinfo = function () {
            OpenWindow("新增质疑请求", "98%", "90%", "/SysCode/Editrequestinfo/");
        }
        //function PrintNumzichangge() {
        //    var sss = $('#PrintNumzi').val();
        //    $('#PrintNum').val(sss);
        //}
        $(document).ready(function () {
            if ($("#zhiyiShouquandaibiao").val() != "") {
                $("#zhiyishouquan").show();
            } else {
                $("#zhiyishouquan").hide();
            }
         /*   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>