<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>验收单管理-签署确认</title>
	<link rel="stylesheet" type="text/css" href="/css/external/fileUploadBase.css">
	<style>
		.btn-info:active,
		.btn-info:focus{
			background-color:#fff;
		}
		li.notcompanyli:hover{
			color:#333 !important;
		}
		.file-icon-image{
			background-size:100% 100% !important;
		}
		.base-extend .uploaderFile {
			border-bottom: 1px dashed #E8F0F3;
		}
		.base-extend .uploaderFile:last-child {
			border-bottom: 0px dashed #E8F0F3;
		}
		.emptyData {
			float: right;
			cursor: pointer;
			color: #169bd5;
			line-height: 30px;
			margin-left: 5px;
		}
	</style>
</head>
<body>
	<div class="base-extend">
		<ol class="breadcrumb">
			<i class="icon-chevron-sign-left newBackBtn"></i>
				<li>验收单管理</li>
				<li>签署确认</li>
		</ol>
		<div class="detailContentBox">
			<div class="businessNavigation">
				<ul></ul>
			</div>
			<!-- 查看历史消息部分 -->
			<div class="projectManagementTop">
				<div class="newTabAddUpdateBox" style="border:none;"></div>
			</div>
			<div class="projectManagementBottom">
				<p class="detailContentBox-title">签署确认</p>
				<form class="form-horizontal businessClass-form" id="confirmationSign-form" autocomplete="off">
					<input type="hidden" name="taskId" th:value="${taskId}">
					<input type="hidden" name="businessKey" th:value="${businessKey}">
					<input type="hidden" name="id" th:value="${acceptanceSignConfirmation?.id}">
					<div class="newTabAddUpdateBox">
						<div class="row">
							<table class="signList">
								<tr>
									<td colspan="7">
										<span class="detailContentBox-tabletitle">电子合同信息</span>
									</td>
								</tr>
								<div>
									<tr>
										<td width="20%" th:rowspan="${acceptanceSignConfirmation?.signConfirmationElectronicInfos.size()} + 2">
											<div class="certificationLink" th:text="${acceptanceSignConfirmation?.electronicSignaturePersonal?.name}"></div>
										</td>
										<td width="10%" class="enter">
											<span>认证链接</span>:
										</td>
										<td width="45%" class="enter">
											<textarea style="width: 75%;" readonly th:utext="${acceptanceSignConfirmation?.electronicSignaturePersonal?.shortAuthUrl}" class=" copyUrl"></textarea>
											<div class="btn btn-default btn-white btn-info colorbtn copyAuthUrl" style="height:0.31rem;line-height:0.31rem; margin:0.1rem 0.32rem;float:right;">复制</div>
										</td>
										<td  width="25%" class="enter">
											<span style="float: left; line-height: 0.51rem;">认证状态:</span>
											<input style="width: 25%; float: left; margin-top: 0.08rem;" class="form-control certificationStatus" readonly th:value="${acceptanceSignConfirmation?.electronicSignaturePersonal?.authStatus} == 1 ? '已认证' : '未认证'">
											<div  class="btn btn-default btn-white btn-info colorbtn authRefresh" th:fddCustomerId="${acceptanceSignConfirmation?.electronicSignaturePersonal?.fddCustomerId}" style="height:0.31rem;line-height:0.31rem; margin:0.1rem 0.32rem;float:right;">刷新</div>
										</td>
									</tr>
									<tr>
										<td width="10%" class="enter">
											<span>签署链接</span>:
										</td>
										<td width="70%" class="enter" colspan="3">
											<textarea readonly style="width:50%;" th:utext="${acceptanceSignConfirmation?.shortContractLink}" class=" copyUrl"></textarea>
											<div class="btn btn-default btn-white btn-info colorbtn copyAuthUrl" style="height:0.31rem;line-height:0.31rem; margin:0.1rem 0.32rem;">复制</div>
										</td>
									</tr>
									<tr th:each="contractElectronicCustomerInfo,contractElectronicCustomerInfos:${acceptanceSignConfirmation?.signConfirmationElectronicInfos}">
										<td width="10%" class="enter">
											<div class="certificationLink" th:text="${contractElectronicCustomerInfo?.contractName}"></div>
										</td>
										<td  width="70%" class="enter" colspan="3">
											<span style="float: left; line-height: 0.51rem;">签署状态:</span>
											<input style="width: 70%; float: left; margin-top: 0.08rem;" class="form-control signStatus" readonly th:value="${contractElectronicCustomerInfo?.signStatus} == 1 ? '已签署' : '未签署'">
											<div class="btn btn-default btn-white btn-info colorbtn signRefresh" th:contractId="${contractElectronicCustomerInfo?.contractId}" th:transactionId="${contractElectronicCustomerInfo?.transactionId}" th:fddCustomerId="${acceptanceSignConfirmation?.electronicSignaturePersonal?.fddCustomerId}" style="height:0.31rem;line-height:0.31rem; margin:0.1rem 0.32rem;float:right">刷新</div>
										</td>
									</tr>
								</div>
							</table>
						</div>
						<div class="row hide cargoInformation">
              <table class="goodsTable">
                  <tr>
                      <td colspan="10">
                          <span class="detailContentBox-tabletitle">下游验收货物信息</span>
                          <div class="emptyData">清空</div>
                          <div  style="float: right;">
                              <input type="file" name="file" class="fileGoodsInput" style="display:none">
                              <div id="downstreamGoodsTem" class="colorbtn btn" style="margin-left: 5px">
                                  模板导入
                              </div>
                          </div>
                          <div  style="float: right;">
                              <div id="downloadFileTemp" class="colorbtn btn" >
                                  下载模板
                              </div>
                          </div>
													<div  style="float: right;margin-right: 5px ">
														<div id="downloadFoods" class="colorbtn btn" >
																下载货物
														</div>
												</div>
                      </td>
                  </tr>
                  <tr>
                      <td width="5%">
                          <span>序号</span>
                      </td>
                      <td width="10%">
                          <span>名称</span>
                      </td>
                      <td width="10%">
                          <span>材质</span>
                      </td>
                      <td width="10%">
                          <span>型号</span>
                      </td>
                      <td width="10%">
                          <span>厂家</span>
                      </td>
                      <td width="10%">
                          <span>单位</span>
                      </td>
                      <td width="7%">
                          <span>数量</span>
                      </td>
                      <td width="10%">
                          <span>销售单价</span>
                      </td>
                      <td width="15%">
                          <span>验收日期</span>
                      </td>
											<td width="10%">
												<span>操作</span>
										</td>
                  </tr>
                  <tr class="goodsListTbody" style="display: none">
                      <td width="5%" style="background-color:#fff;">
                          <span>1</span>
                      </td>
                      <td width="10%" style="background-color:#fff;" class="enter">
                          <input type="text" name="goodsName" maxlength="50" readonly class="form-control goodsName">
                          <span class="error" style="display:none;font-size:0.12rem;">请输入名称</span>
                      </td>
                      <td width="10%" style="background-color:#fff;" class="enter">
                          <input type="text" name="goodsMaterial" maxlength="50" readonly class="form-control goodsMaterial">
                          <span class="error" style="display:none;font-size:0.12rem;">请输入材质</span>
                      </td>
                      <td width="13%" style="background-color:#fff;" class="enter">
                          <input type="text" name="goodsType" maxlength="50" readonly class="form-control goodsType">
                          <span class="error" style="display:none;font-size:0.12rem;">请输入型号</span>
                      </td>
                      <td width="10%" style="background-color:#fff;" class="enter">
                          <input type="text" name="goodsFactory" maxlength="50" readonly class="form-control goodsFactory">
                          <span class="error" style="display:none;font-size:0.12rem;">请输入厂家</span>
                      </td>

                      <td width="10%" style="background-color:#fff;" class="enter">
                          <input type="text" name="goodsUnit" maxlength="50" readonly class="form-control goodsUnit">
                          <span class="error" style="display:none;font-size:0.12rem;">请输入单位</span>
                      </td>
                      <td width="7%" style="background-color:#fff;" class="enter">
                          <input type="text" name="goodsQuantity" readonly class="form-control goodsQuantity">
                          <span class="error" style="display:none;font-size:0.12rem;">请输入数量</span>
                      </td>
                      <td width="10%" style="background-color:#fff;" class="enter">
                          <input type="text" name="salesPrice" readonly class="form-control ">
                          <!-- <span class="error" style="display:none;font-size:0.12rem;">请输入销售单价</span> -->
                      </td>
                      <td width="15%" style="background-color:#fff;" class="enter">
                          <input type="text" name="acceptanceDate" readonly class="form-control acceptanceDate">
                          <span class="error" style="display:none;font-size:0.12rem;">请输入验收日期</span>
                      </td>
											<td width="10%" style="background-color:#fff;">
												<span class="negativeInformationReduce">-删除</span>
										</td>
                  </tr>
									<tbody class="goodsListTable">
										<tr class="goodsListTbody goodsListTbodyBack"
												th:each="goods,goodsStat:${acceptanceSignConfirmation?.acceptanceGoodInfos}">
												<td width="5%" style="background-color:#fff;">
														<span th:text="${goodsStat.count}"></span>
												</td>
												<td width="10%" style="background-color:#fff;" class="enter">
														<input type="text" readonly name="goodsName" maxlength="50"  class="form-control goodsName"
																th:value="${goods?.goodsName}">
														<span class="error" style="display:none;font-size:0.12rem;">请输入名称</span>
												</td>
												<td width="10%" style="background-color:#fff;" class="enter">
														<input type="text" readonly name="goodsMaterial" maxlength="50"  class="form-control goodsMaterial"  th:value="${goods?.goodsMaterial}">
														<span class="error" style="display:none;font-size:0.12rem;">请输入材质</span>
												</td>
												<td width="13%" style="background-color:#fff;" class="enter">
														<input type="text" readonly name="goodsType" maxlength="50"  class="form-control goodsType" th:value="${goods?.goodsType}">
														<span class="error" style="display:none;font-size:0.12rem;">请输入型号</span>
												</td>
												<td width="10%" style="background-color:#fff;" class="enter">
														<input type="text" readonly name="goodsFactory" maxlength="50"  class="form-control goodsFactory"
																th:value="${goods?.goodsFactory}">
														<span class="error" style="display:none;font-size:0.12rem;">请输入厂家</span>
												</td>
												<td width="10%" style="background-color:#fff;" class="enter">
														<input type="text" readonly name="goodsUnit" maxlength="50"  class="form-control goodsUnit"
																th:value="${goods?.goodsUnit}">
														<span class="error" style="display:none;font-size:0.12rem;">请输入单位</span>
												</td>
												<td width="7%" style="background-color:#fff;" class="enter">
														<input type="number" readonly name="goodsNum" class="form-control goodsNum"
																th:value="${goods?.goodsQuantity}">
														<span class="error" style="display:none;font-size:0.12rem;">请输入数量</span>
												</td>
												<td width="10%" style="background-color:#fff;" class="enter">
														<input type="number" readonly name="salesPrice" class="form-control salesPrice"
																th:value="${#numbers.formatDecimal(goods?.salesPrice,1,2)}">
														<!-- <span class="error" style="display:none;font-size:0.12rem;">请输入销售单价</span> -->
												</td>
												<td width="15%" style="background-color:#fff;" class="enter">
														<input type="text" readonly name="acceptanceDate" th:value=" ${#calendars.format(goods?.acceptanceDate,'yyyy-MM-dd')}"  class="form-control acceptanceDate">
														<span class="error" style="display:none;font-size:0.12rem;" >请输入验收日期</span>
												</td>
												<td width="10%" style="background-color:#fff;">
														<span class="negativeInformationReduce">-删除</span>
												</td>
										</tr>
								</tbody>
									<tr>
										<td style="background-color:#fff;" colspan="10">
												数量合计:
												<span class="totalNum"></span>
												销售总价合计：
												<span class="totalPrice"></span>
										</td>
								</tr>
              </table>
          </div>
						<div class="row">
							<table>
								<tr>
									<td colspan="4">
										<span class="detailContentBox-tabletitle">签署结论</span>
									</td>
								</tr>
								<tr>
									<td width="15%">
										<span class="required_fileds_star">签署结论</span>:
									</td>
									<td colspan="3" class="hasradio" style='background-color:#fff'>
										<label>
											<input type="radio" class="radios conclusion" value="1" name="conclusion">
											<span>完成</span>
										</label>
										<label>
											<input type="radio" class="radios conclusion" value="2" name="conclusion">
											<span>驳回</span>
										</label>
                    <label>
											<input type="radio" class="radios conclusion" value="0" name="conclusion">
											<span>终止</span>
										</label>
									</td>
								</tr>
								<tr>
									<td width="15%">
										<span class="illustrate">说明</span>:
									</td>
									<td colspan="3" class="enter">
										<textarea class="form-control remark" maxlength="3000" style="resize:none;padding:0.05rem;padding-left:0.1rem !important;" rows="3" name="remark"></textarea>
										<span class="error" style="display:none;">请输入说明</span>
									</td>
								</tr>
							</table>
						</div>
						<div class="row yk_addNewMsg downLoad hide">
							<button class="btn btn-white btn-info colorbtn downLoadFile">
									下载上游验收单
							</button>
						</div>
					</div>
					<div class="yk_addBtns yk_addNewMsg newTabAddUpdateBtnBox">
						<button class="btn btn-white btn-info colorbtn save">提交</button>
						<button class="btn btn-white btn-info btn-cancel">关闭</button>
					</div>
				</form>
			</div>
		</div>
		<script src="/js/base/uploadFile.js"></script>
		<script src="/js/acceptanceManage/signConfirmation.js"></script>
		<script src="/js/acceptanceManage/searchHistory.js"></script>
	</div>
</body>
</html>
