@model DTO.TChallengeletterDTO
|
@using DTO;
|
@using zhengcaioa.Models;
|
@{
|
|
|
|
List<SysCodeDtl> request_info = ViewData["request_info"] as List<SysCodeDtl>; //质疑请求
|
List<SysCodeDtl> question = ViewData["question"] as List<SysCodeDtl>; //质疑事项
|
List<SysCodeDtl> law = ViewData["law"] as List<SysCodeDtl>; //法律依据
|
|
List<TComplaintShouquandaibiaoDTO> challengecomplaintShouquandaibiaoDTOs = Model.complaintShouquandaibiaoDTOs;
|
|
List<TChallengeItemDTO> challengeItemDTOs = Model.challengeItemDTOs;
|
|
|
}
|
@{
|
Layout = null;
|
}
|
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="description" content="">
|
<meta name="author" content="ThemeBucket">
|
<title>@(SiteConfig.SiteName)</title>
|
<link href="~/css/bootstrap.min.css" rel="stylesheet">
|
<link href="~/css/font-awesome.min.css" rel="stylesheet">
|
<link href="~/css/animate.min.css" rel="stylesheet">
|
|
@*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
|
@*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
|
@*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
|
<link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
|
|
<style type="text/css">
|
.webuploader-pick {
|
position: relative;
|
display: inline-block;
|
cursor: pointer;
|
background: #00b7ee;
|
padding: 8px 14px 7px 14px;
|
color: #fff;
|
text-align: center;
|
border-radius: 3px;
|
overflow: hidden;
|
}
|
|
div.clearfix > label {
|
padding-top: 8px;
|
}
|
|
.chosen-container {
|
border-radius: 1px;
|
border: 1px solid #e5e6e7;
|
}
|
|
.col-md-1.control-label {
|
padding-right: 0px;
|
font-weight: 400;
|
}
|
|
|
|
|
table {
|
border-collapse: collapse;
|
border: none;
|
width: 900px;
|
margin-left: 0px;
|
text-align: center;
|
}
|
|
td {
|
border: solid #000000 1px;
|
height: 30px;
|
}
|
</style>
|
|
<!-- jqgrid-->
|
@*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
|
<script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
|
<script src="~/js/bootstrap.min.js"></script>
|
@*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
|
|
<!--容器-->
|
@*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
|
@*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
|
@*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
|
<script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
|
<script src="~/js/plugins/webuploader/webuploader.min.js"></script>
|
|
<script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
|
<script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
|
@*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
|
<script src="~/js/TUJS.js"></script>
|
</head>
|
<body class="gray-bg" style="overflow:auto">
|
<form id="formtest">
|
<div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
|
<div class="row">
|
<div class="col-sm-12">
|
<div class="ibox float-e-margins">
|
<div class="ibox-title">
|
<h5> <i class="fa fa-list"></i> 基本信息</h5>
|
</div>
|
<div id="div_content" class="ibox-content" style="background-color:white;">
|
<div class="row">
|
<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">
|
|
<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>
|
|
|
|
<input type="hidden" id="OrderId" name="OrderId" value="@Model.OrderId" />
|
<input type="hidden" id="Id" name="Id" value="@Model.Id" />
|
</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">质疑供应商<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="质疑供应商" name="GysName" id="GysName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysName">
|
|
</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>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="地址" name="GysAddress" id="GysAddress" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysAddress">
|
|
</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="GysPostcode" id="GysPostcode" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysPostcode">
|
|
</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>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="联系人" name="GysContacts" id="GysContacts" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysContacts">
|
|
</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="GysPhone" id="GysPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysPhone">
|
|
</div>
|
|
|
</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">授权代表</label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<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">联系电话</label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<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>
|
<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="地址" 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">邮编</label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<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>
|
|
|
</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">质疑项目名称<i class="red">*</i></label>
|
<div class="col-sm-4 col-md-4" grouptype="Vdata">
|
<input class="form-control" label="质疑项目名称" name="zhiyiXmName" id="zhiyiXmName" labtype="txt" addvisible="true" maxlength="100" 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">质疑项目编号<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="质疑项目编号" name="zhiyiXmCode" id="zhiyiXmCode" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.XmCode">
|
|
</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">
|
<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>
|
|
<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>
|
<div class="col-sm-4 col-md-4" grouptype="Vdata">
|
<input class="form-control" label="采购人名称" name="zhiyiPurchaserName" id="zhiyiPurchaserName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.PurchaserName">
|
|
</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="zhiyiDocumentsDate" id="zhiyiDocumentsDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.DocumentsDateName" readonly="readonly">
|
|
</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 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);">
|
<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="OpenWindow('自定义质疑事项','98%','100%', '/SysCode/Editquestionzidingyi')" data-type="1">自定义质疑事项</button>
|
</div>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<button type="button" class="addBtn" onclick="addlawinfo(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" 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>
|
<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].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
|
</div>
|
<input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
|
<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].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
|
</div>
|
<input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
|
<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="OpenWindow('自定义质疑事项','98%','100%', '/SysCode/Editquestionzidingyi')" data-type="1">自定义质疑事项</button>
|
</div>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<button type="button" class="addBtn" onclick="addlawinfo(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">事实依据</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].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
|
</div>
|
<input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
|
<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].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
|
</div>
|
<input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
|
<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">质疑事项</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>
|
</div>
|
</div>
|
</div>
|
</div>
|
<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;">
|
<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>*@
|
<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(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>
|
|
|
|
</form>
|
<script type="text/javascript">
|
|
//var DuanxinNeirong = document.getElementById("DuanxinNeirong");
|
|
//DuanxinNeirong.style.height = DuanxinNeirong.scrollHeight + 'px';
|
|
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,
|
"debug": false,
|
"progressBar": true,
|
"positionClass": "toast-bottom-right",
|
"onclick": null,
|
"showDuration": "300",
|
"hideDuration": "600",
|
"timeOut": "4500",
|
"extendedTimeOut": "600",
|
"showEasing": "swing",
|
"hideEasing": "linear",
|
"showMethod": "fadeIn",
|
"hideMethod": "fadeOut"
|
};
|
|
laydate({ elem: "#zhiyiDocumentsDate", format: 'YYYY-MM-DD', istime: true, event: "focus" });
|
|
$("select").chosen();
|
|
var id = '@Model.Id';
|
var bUpload = false;
|
var bAdd = false; // 新增操作
|
var fileId = ""; // 上传文件生成的Id
|
var bEditFile = false; // 编辑时,是否关联了附件
|
var bDeleteFile = false; // 删除操作
|
var attachment_id = 0; // 附件id
|
var imgLoad = new Object();
|
|
//var aaaaaa = document.getElementsByName("Question");
|
//for (var aa = 0; aa < aaaaaa.length; aa++) {
|
// Questionchangge(aa);
|
//}
|
|
var printPosition = function () {
|
OpenWindow("打印质疑函", "100%", "100%", "/CooperOrder/PrintZhiyihan?id=@Model.OrderId");
|
}
|
|
|
|
|
// 保存岗位信息
|
var savePosition = function (Status) {
|
|
if ($.trim($("#GysName").val()) == '') {
|
toastr.warning("质疑供应商不能为空");
|
return;
|
}
|
if ($.trim($("#GysAddress").val()) == '') {
|
toastr.warning("质疑供应商地址不能为空");
|
return;
|
}
|
//if ($.trim($("#GysPostcode").val()) == '') {
|
// toastr.warning("质疑供应商邮编不能为空");
|
// return;
|
//}
|
if ($.trim($("#GysContacts").val()) == '') {
|
toastr.warning("质疑供应商联系人不能为空");
|
return;
|
}
|
if ($.trim($("#GysPhone").val()) == '') {
|
toastr.warning("质疑供应商联系电话不能为空");
|
return;
|
}
|
|
if ($.trim($("#zhiyiXmName").val()) == '') {
|
toastr.warning("项目名称不能为空");
|
return;
|
}
|
if ($.trim($("#zhiyiXmCode").val()) == '') {
|
toastr.warning("项目编号不能为空");
|
return;
|
}
|
if ($.trim($("#zhiyiPurchaserName").val()) == '') {
|
toastr.warning("采购人名称不能为空");
|
return;
|
}
|
if ($.trim($("#zhiyiDocumentsDate").val()) == '') {
|
toastr.warning("采购文件获取日期不能为空");
|
return;
|
}
|
if ($("#PrintNum").val() == '') {
|
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({
|
type: "POST",
|
url: "/CooperOrder/SaveChallengeletter",
|
dataType: "json",
|
global: false,
|
data: $('form').serializeArray(),
|
success: function (data) {
|
|
|
|
if (data.Result) {
|
// parent._afterSave(true);
|
parent.layer.msg('成功保存', { icon: 6 });
|
//window.location = "/Project/add?id=" + data.ReturnID;
|
|
if (Status == 1) {
|
_reloadPageData();
|
} else {
|
try {
|
_pageAutoClose();//自动关闭页面方法
|
}
|
catch (err) {
|
parent._CloseTab1("/CooperOrder/EditZhiyihan");
|
}
|
}
|
|
|
}
|
else {
|
// toastr.error("失败");
|
parent.layer.msg(data.Message, { icon: 5 });
|
}
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
}
|
|
|
|
|
function Lawchangge(i) {
|
var sss = document.getElementsByName("Law")[i].value;
|
$.ajax({
|
type: "GET",
|
url: "/CooperOrder/getLaw?id=" + sss,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
if (data.Result) {
|
document.getElementsByName("Lawcoment")[i].value = data.Message;
|
|
} else {
|
parent.layer.msg('查询失败', { icon: 5 });
|
}
|
},
|
error: function () {
|
|
|
parent.layer.msg('查询失败', { icon: 5 });
|
}
|
});
|
}
|
|
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 + "&challengeItemId=" + challengeItemId,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
var falvyiju = $("#falvyiju" + data.Message);
|
|
var falvyijuhtml = "";
|
falvyijuhtml += ` <div id="falvyiju` + data.Message + `">`;
|
|
if (data.DataList.length > 0) {
|
for (var i = 0; i < data.DataList.length; i++) {
|
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].Classify3 + `》` + data.DataList[i].Classify2 + `:` + data.DataList[i].Contents + `
|
|
</div>
|
<input type="hidden" name="Law" value="` + data.DataList[i].CodeSn + `" />
|
<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>
|
|
`;
|
} else {
|
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+1) + `</label>
|
<div class="col-sm-8 col-md-8" >
|
《` + data.DataList[i].Classify3 + `》` + data.DataList[i].Classify2 + `:` + data.DataList[i].Contents + `
|
|
</div>
|
<input type="hidden" name="Law" value="` + data.DataList[i].CodeSn + `" />
|
<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>
|
|
`;
|
}
|
|
|
}
|
|
|
}
|
else {
|
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>
|
|
`;
|
}
|
|
falvyijuhtml += ` </div> `;
|
|
falvyiju.html(falvyijuhtml);
|
|
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('查询失败', { icon: 5 });
|
}
|
});
|
}
|
|
|
function _pageAutoClose() {
|
parent.window._reloadPageData();
|
var index = parent.layer.getFrameIndex(window.name);
|
parent.layer.isRefresh = true;
|
parent.layer.closeAll('loading');
|
parent.layer.close(index);
|
return false;
|
}
|
|
|
|
function addzhiyishouquan(obj) {
|
$("#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="">
|
|
// </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="">
|
|
// </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>
|
|
// <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>`);
|
|
}
|
|
|
|
function addzhiyishixiang(obj) {
|
var sss = document.getElementsByName("Question").length;
|
if (document.getElementsByName("Question").length == 1) {
|
|
$('#Questionlabel').text("质疑事项1");
|
$('#Evidentiallabel').text("事实依据");
|
}
|
|
$('#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">
|
<select class="form-control" name="Question" data-placeholder="选择 序列 ..." onchange="Questionchangge(`+ sss + `);">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in question)
|
{
|
|
<option value="@item.CodeSn" hassubinfo="true" >
|
@item.Comments
|
</option>
|
|
}
|
}
|
|
</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>
|
<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'"></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>
|
</div>
|
`);
|
$("select" + sss).chosen();
|
}
|
var addLaw = function () {
|
OpenWindow("新增法律依据", "98%", "90%", "/SysCode/Editlaw/");
|
}
|
|
var _reloadPageData = function () {
|
window.location = "/CooperOrder/EditZhiyihan?id=" + $("#OrderId").val();
|
}
|
var _reloadPageData1 = function (ReturnID) {
|
window.location = "/CooperOrder/EditZhiyihan?id=" + $("#OrderId").val() + "&ReturnID=" + ReturnID;
|
}
|
var addquestion = function () {
|
OpenWindow("新增质疑事项", "98%", "90%", "/SysCode/Editquestion/");
|
}
|
|
var addrequestinfo = function () {
|
OpenWindow("新增质疑请求", "98%", "90%", "/SysCode/Editrequestinfozidingyi/");
|
}
|
var addlawinfo = function () {
|
OpenWindow("新增法律依据", "98%", "90%", "/SysCode/Editlawzidingyi/");
|
}
|
|
|
//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>
|