<!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="contractSignCheck-form">
                <input type="hidden" name="taskId" th:value="${taskId}">
                <input type="hidden" name="businessKey" th:value="${businessKey}">
                <input type="hidden" name="signChangetype" value="合同变更审核">
                <div class="newTabAddUpdateBox">
                    <div class="row">
                        <table>
                            <tr>
                                <td colspan="2">
                                    <span class="detailContentBox-tabletitle">补充合同信息</span>
                                </td>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span class="">其他约定</span>：
                                </td>
                                <td colspan="1" class="enter hasradio">
                                    <textarea class="form-control" style="resize:none;padding:0.05rem;padding-left:0.1rem !important;" rows="3" name="otherConvention"></textarea>
                                </td>
                            </tr>
                        </table>
                    </div>

                    <div class="row">
                        <table>
                            <tr>
                                <td colspan="4">
                                    <span class="detailContentBox-tabletitle">审批结论</span>
                                    <span class="colorbtn createProcurementContract btn" style="float: right;margin-right: 5px; display: none;">
                                        生成采购合同文件
                                     </span>
                                </td>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span class="required_fileds_star">审批结论</span>：
                                </td>
                                <td width="35%" class="enter hasradio approvalConclusionTd">
                                    <label>
                                        <input type="radio" class="radios" value="pass" name="approvalConclusion">
                                        <span>通过</span>
                                    </label>
                                    <label>
                                        <input type="radio" class="radios" value="back" name="approvalConclusion">
                                        <span>驳回</span>
                                    </label>
                                </td>
                                <td width="15%" class="validBox">
                                    <span class="required_fileds_star">合同签署方式</span>：
                                </td>
                                <td width="35%" class="enter hasradio validBox">
                                    <label>
                                        <input type="radio" class="radios" value="1" name="signMode" >
                                        <span>线上电子签</span>
                                    </label>
                                    <label>
                                        <input type="radio" class="radios" value="0" name="signMode" >
                                        <span>线下签署</span>
                                    </label>
                                </td>
                            </tr>
                            <tr class="signModeChange procurementContract">
                                <td width="15%">
                                    <span class="">采购合同文件</span>：
                                </td>
                                <td colspan="3" class="enter">
                                    <!-- <div class="procurementContractFileStorage" 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">
                                        <div class="uploaderFile" style="display: flex; align-items: center;">
                                            <div style="margin: 0 20px;">
                                                <input type="checkbox"  th:useContractStatus="${PurchContractApprovalVo?.purchContractApproval?.useContract}" class="radios" name="useContract" value="1">
                                            </div>
                                            <div class="fileContent">
                                                <!-- <span class="spanHolder">上传附件</span> -->
                                            </div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr class="signModeChange">
                                <td width="15%">
                                    <span class="required_fileds_star">上传合同文件</span>：
                                </td>
                                <td colspan="3" class="enter hasradio">
                                    <label>
                                        <input type="radio" class="radios" value="1" name="purchContractApprovalUpload" >
                                        <span>是</span>
                                    </label>
                                    <label>
                                        <input type="radio" class="radios" value="0" name="purchContractApprovalUpload">
                                        <span>否</span>
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span class="">审批意见</span>：
                                </td>
                                <td colspan="3" class="enter" >
                                    <textarea class="form-control" maxlength="500" style="resize:none;padding:0.05rem;padding-left:0.1rem !important;" rows="3" name="approvalComment"></textarea>
                                </td>
                            </tr>
                        </table>
                        <table class="contractTable">
                            <thead>
                                <tr>
                                    <td width="5%">
                                        <span>序号</span>
                                    </td>
                                    <td width="30%">
                                        <span class="required_fileds_star">合同名称</span>
                                    </td>
                                    <td width="25%">
                                        <span>签署人</span>
                                    </td>
                                    <td width="25%">
                                        <span class="required_fileds_star">签署文件</span>
                                    </td>
                                    <td width="15">
                                        <span>操作</span>
                                    </td>
                                </tr>
                            </thead>
                             <tbody class="contractListTable">
                                <tr class="contractListTbody">
                                    <td width="5%" style="background-color:#fff;">
                                            <span>1</span>
                                    </td>
                                    <td width="30%" style="background-color:#fff;" class="enter">
                                        <input class="form-control contractName validInput" name="contractName" placeholder="请输入合同名称" maxlength="200">
                                        </input>
                                        <span class="error" style="display:none;font-size:0.12rem;">请输入合同名称</span>
                                    </td>

                                    <td width="25%" style="background-color:#fff;" class="signatory">
                                        <div th:text="${platform?.platformName}"></div>
                                        <div th:text="${supplier?.enterpriseName}"></div>
                                    </td>
                                    <td width="25%" style="background-color:#fff;">
                                        <div class="fileListBox">
                                            <input type="file" class="fileinput" multiple style="display:none" accept=".pdf">
                                            <div class="uploaderFile">
                                                    <div class="fileContent" style="flex: 1">
                                                        <span class="spanHolder">上传附件</span>
                                                    </div>
                                            </div>
                                        </div>
                                        <div class="choiceFile" style="text-align:center; margin-top: -0.27rem">+上传附件</div>
                                    </td>
                                    <td width="15" style="background-color:#fff;">
                                        <span class="negativeInformationPlus">+添加</span>
                                        <span class="negativeInformationReduce">-删除</span>
                                    </td>
                                 </tr>
                                 <!-- <tr class="contractListTbody"  th:each="uploadContractInfo,uploadContractInfos:${PurchContractApprovalVo?.purchContractApproval?.uploadPurchContracts}">
                                    <td width="5%" style="background-color:#fff;">
                                            <span th:text="${uploadContractInfos?.index}+1">1</span>
                                    </td>
                                    <td width="23%" style="background-color:#fff;" class="enter">
                                        <input class="form-control contractName validInput" name="contractName"  th:value="${uploadContractInfo?.contractName}" placeholder="请输入合同名称" maxlength="200">
                                        </input>
                                        <span class="error" style="display:none;font-size:0.12rem;">请输入合同名称</span>
                                    </td>
                                    <td width="25%" style="background-color:#fff;" class="signatory">
                                        <div th:text="${PurchContractApprovalVo?.platform?.platformName}"></div>
                                        <div th:text="${PurchContractApprovalVo?.supplier?.enterpriseName}"></div>
                                    </td>
                                    <td width="25%" style="background-color:#fff;">
                                        <div class="fileStorage" th:each="fileStorage,fileStorages:${uploadContractInfo?.fileStorage}" 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" style="display:none" accept=".pdf">
                                            <div class="uploaderFile">
                                                    <div class="fileContent">
                                                            <span class="spanHolder">上传附件</span>
                                                    </div>
                                            </div>
                                        </div>
                                        <div class="choiceFile" style="text-align:center; margin-top: -0.27rem">+上传附件</div>
                                    </td>
                                    <td width="15" style="background-color:#fff;">
                                            <span class="negativeInformationPlus">+添加</span>
                                            <span class="negativeInformationReduce">-删除</span>
                                    </td>
                                </tr> -->
                             </tbody>

                        </table>
                    </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>
</div>
<script src="/js/base/uploadFile.js"></script>
<script src="/js/purchaseContractManage/contractChangeCheck.js"></script>
<script src="/js/purchaseContractManage/searchHistory.js"></script>
</body>
</html>
