<!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="acceptanceCheck-form">
                <input type="hidden" name="taskId" th:value="${taskId}">
                <input type="hidden" name="businessKey" th:value="${businessKey}">
                <div class="newTabAddUpdateBox">
                    <div class="row">
                        <div class="salesContractFileList" style="display:none"
                        th:each="file,files:${invoiceApproval?.salesContract }">
                            <input type="text" class="originalId" th:value="${file?.id}">
                            <input type="text" class="originalUrl" th:value="${file?.path}">
                            <input type="text" class="originalType" th:value="${file?.fileType}">
                            <input type="text" class="originalName" th:value="${file?.originalName}">
                            <input type="text" class="originalSize" th:value="${file?.size}">
                        </div>
                        <div class="purchContractFilesList" style="display:none"
                        th:each="file,files:${invoiceApproval?.purchContract}">
                            <input type="text" class="originalId" th:value="${file?.id}">
                            <input type="text" class="originalUrl" th:value="${file?.path}">
                            <input type="text" class="originalType" th:value="${file?.fileType}">
                            <input type="text" class="originalName" th:value="${file?.originalName}">
                            <input type="text" class="originalSize" th:value="${file?.size}">
                        </div>
                        <table>
                            <tr>
                                <td colspan="4">
                                    <span class="detailContentBox-tabletitle">合同信息</span>
                                </td>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span>销售合同文件</span>：
                                </td>
                                <td  class="enter salesContractFileListBox">
                                    <div class="uploaderFile">
                                        <div class="fileContent">

                                        </div>
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td width="15%">
                                    <span>采购合同文件</span>：
                                </td>
                                <td  class="enter purchContractFilesListBox">
                                    <div class="uploaderFile">
                                        <div class="fileContent">

                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="row" th:if="!${invoiceApproval?.amountKind}">
                        <div class="settlementUpstreamSignedFileList" style="display:none"
                        th:each="file,files:${invoiceApproval?.settlementUpstreamSignedFile}">
                            <input type="text" class="originalId" th:value="${file?.id}">
                            <input type="text" class="originalUrl" th:value="${file?.path}">
                            <input type="text" class="originalType" th:value="${file?.fileType}">
                            <input type="text" class="originalName" th:value="${file?.originalName}">
                            <input type="text" class="originalSize" th:value="${file?.size}">
                        </div>
                        <div class="settlementFileList" style="display:none"
                        th:each="file,files:${invoiceApproval?.settlementFile}">
                            <input type="text" class="originalId" th:value="${file?.id}">
                            <input type="text" class="originalUrl" th:value="${file?.path}">
                            <input type="text" class="originalType" th:value="${file?.fileType}">
                            <input type="text" class="originalName" th:value="${file?.originalName}">
                            <input type="text" class="originalSize" th:value="${file?.size}">
                        </div>
                        <table>
                            <tr>
                                <td colspan="4">
                                    <span class="detailContentBox-tabletitle">结算单信息</span>
                                </td>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span>下游结算单</span>：
                                </td>
                                <td  class="enter settlementFileListBox">
                                    <div class="uploaderFile">
                                        <div class="fileContent">
                                        </div>
                                    </div>

                                </td>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span>上游结算单</span>：
                                </td>
                                <td  class="enter settlementUpstreamSignedFileListBox">
                                    <div class="uploaderFile">
                                        <div class="fileContent">
                                        </div>
                                    </div>

                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="row" th:if="!${invoiceApproval?.amountKind}">
                        <div class="pendingInvoiceFilesList" style="display:none"
                        th:each="file,files:${invoiceApproval?.pendingInvoice}">
                            <input type="text" class="originalId" th:value="${file?.id}">
                            <input type="text" class="originalUrl" th:value="${file?.path}">
                            <input type="text" class="originalType" th:value="${file?.fileType}">
                            <input type="text" class="originalName" th:value="${file?.originalName}">
                            <input type="text" class="originalSize" th:value="${file?.size}">
                        </div>
                        <table>
                            <tr>
                                <td colspan="4">
                                    <span class="detailContentBox-tabletitle">销售发票</span>
                                </td>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span>参考待开发票</span>：
                                </td>
                                <td  class="enter pendingInvoiceFilesListBox">
                                    <div class="uploaderFile">
                                        <div class="fileContent">
                                        </div>
                                    </div>
                                </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="enter hasradio">
                                    <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>
                            </tr>
                            <tr>
                                <td width="15%">
                                    <span class="approvalComments">审批意见</span>：
                                </td>
                                <td colspan="3" class="enter">
                                    <textarea class="form-control" maxlength="3000" style="resize:none;padding:0.05rem;padding-left:0.1rem !important;" rows="3" name="approvalComment"></textarea>
                                    <span class="error" style="display:none;">请输入审批意见</span>
                                </td>
                            </tr>
                        </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/saleInvoiceManage/check.js"></script>
<script src="/js/saleInvoiceManage/searchHistory.js"></script>
</body>
</html>
