<!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;
        }
        .changeBtn{
            color:#53c3fe;
            cursor:pointer;
        }
    </style>
</head>
<body>
<div class="base-extend">
    <ol class="breadcrumb">
        <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="contractSign-form">
                <input type="hidden" name="taskId" th:value="${taskId}">
                <input type="hidden" name="businessKey" th:value="${businessKey}">
                <input type="hidden" name="purchContractSignConclusionId" th:value="${purchContractSignConclusion?.id}">
                <input type="hidden" name="signContractType" value="签署变更">
                <input type="hidden" name="customerId" th:value="${supplier?.id}">
                <input type="hidden" name="basicId" th:value="${basicId}">

                 <!-- 线上签署还是线下签署 -->
                 <input type="hidden" name="electronType" th:value="${type}">

                <div class="newTabAddUpdateBox">
                    <div class="row" th:if="${type} == 1">
                        <table>
                            <tr>
                                <td colspan="5">
                                    <span class="detailContentBox-tabletitle">电子合同信息</span>
                                </td>
                            </tr>
                            <tr>
                                <td width="15%"  th:rowspan="${electronicInfo.size()} + 2">
                                    <div th:text="${supplier?.enterpriseName}"></div>
                                </td>
                                <td width="16%" class="enter">
                                    <span style="margin-left: 10px">认证链接</span>：
                                </td>
                                <td width="27%" class="enter">
                                    <div>
                                        <input class="form-control" style="width: 80%;float: left;" name="authUrl" rows="2" readonly th:value="${electronicInfo[0]?.certifyLink}">
                                    </div>
                                    <div id="copyAuthUrl" class="btn btn-default btn-white btn-info colorbtn" style="height:0.31rem;line-height:0.31rem;margin:0; float: right;margin-right: 10px">复制</div>
                                </td>
                                <td width="27%" class="enter" style="padding: 10px; padding-left: 10px">
                                    <span style="float: left; line-height: 0.36rem">认证状态：</span>
                                    <input type="text" name="authStatus" style=" width: 60%;float: left;"readonly class="form-control" th:value="${electronicInfo[0]?.certifyStatus}=='1'?'已认证':'未认证'">
                                    <div class="btn btn-default btn-white btn-info colorbtn authRefresh" style="height:0.31rem;line-height:0.31rem;margin:0; float: right; margin-right: 10px">刷新</div>
                                </td>
                            </tr>
                            <tr>
                                <td width="16%" class="enter">
                                    <span style="margin-left: 10px">签署链接</span>：
                                </td>
                                <td colspan="2" class="enter" style="padding: 10px;padding-left: 0px;">
                                    <div>
                                        <input class="form-control" style="width: 86%;float: left;" name="signUrl" readonly th:value="${electronicInfo[0]?.shortContractLink}">
                                    </div>
                                    <div id="copyConUrl" class="btn btn-default btn-white btn-info colorbtn" style="height:0.31rem;line-height:0.31rem;margin:0; float: right;margin-right: 10px">复制</div>
                                </td>
                            </tr>
                            <tr th:each="electron,electrons:${electronicInfo}">
                                <td width="16%" class="enter">
                                    <span style="margin-left: 10px" th:text="${electron?.contractName}"></span>：
                                </td>
                                <td colspan="2" class="enter" style="padding: 10px;">
                                    <div>
                                        <input type="hidden" name="signStatusBack" th:value="${electron?.signStatus}">
                                        <span style="float: left; line-height: 0.36rem">签署状态：</span>
                                        <input type="text" name="signStatus" style="width: 75%;float: left;" readonly class="form-control" th:value="${electron?.signStatus}=='1'?'已签署':'未签署'">
                                    </div>
                                    <!-- th:basicId="${electron?.purchContractBasicInfoId}" -->
                                    <div class="btn btn-default btn-white btn-info colorbtn signRefresh" style="height:0.31rem;line-height:0.31rem;margin:0;float: right;margin-right: 10px"  th:purchContractBasicInfoId="${electron?.id}">刷新</div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="row">
                        <table>
                            <tr>
								<td colspan="4">
									<span class="detailContentBox-tabletitle">签署结论</span>
								</td>
							</tr>
                            <tr>
								<td width="18%">
									<span class="required_fileds_star">签署结论</span>:
								</td>
								<td colspan="3" class="hasradio" style='background-color:#fff'>
									<label style="margin-left:0;">
										<input type="radio" class="radios conclusion" value="pass"
										name="conclusion" />
										<span>完成</span>
									</label>
								</td>
							</tr>
                            <tr th:if="${type} == 0" class="photoImgVideo">
								<td width="18%">
									<span  th:class="required_fileds_star">图片/视频</span>:
								</td>
								<td colspan="2" class="enter purchContractSignTd">
                                    <div class="purchContractSignFileStorage" th:each="fileStorage,fileStorages:${purchContractSignConclusion?.fileStorages}" style="display:none">
                                        <input type="text" class="originalId"   th:value="${fileStorage?.id}">
                                        <input type="text" class="originalUrl"  th:value="${fileStorage?.path}">
                                        <input type="text" class="originalType" th:value="${fileStorage?.fileType}">
                                        <input type="text" class="originalName" th:value="${fileStorage?.originalName}">
                                        <input type="text" class="originalSize" th:value="${fileStorage?.size}">
                                    </div>
                                    <div class="fileListBox">
                                        <input type="file" class="fileinput" name="file" multiple="multiple" style="display:none">
                                        <div class="uploaderFile" style="display: block;border-bottom:0">
                                            <div class="fileContent">
                                                <span class="spanHolder">上传文件</span>
                                            </div>
                                        </div>
                                    </div>
								</td>
								<td width="15%" class="choiceFile" style="text-align:center;">
									+请上传附件
								</td>
							</tr>
                            <tr>
								<td width="15%">
									<span>说明</span>:
								</td>
								<td colspan="3" class="enter">
									<textarea id="remark" name="remark" th:utext="${purchContractSignConclusion?.remark}"  class="form-control"></textarea>
								</td>
							</tr>
                        </table>
                    </div>
                </div>

                <div class="yk_addBtns yk_addNewMsg newTabAddUpdateBtnBox" >
                    <button class="btn btn-white btn-info colorbtn temp" th:if="${type} == 0">暂存</button>
                    <button class="btn btn-white btn-info colorbtn save">提交</button>
                    <button class="btn btn-white btn-info btn-cancel">关闭</button>
                </div>
            </form>
        </div>

    </div>
</div>
<script src="/js/base/uploadFile.js"></script>
<script src="/js/purchaseContractManage/contractSign.js"></script>
<script src="/js/purchaseContractManage/searchHistory.js"></script>
</body>
</html>
