<!DOCTYPE html>
<html lang="en">
<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;
        }

        .base-extend .newTabAddUpdateBox td.enter .viewDetailWord {
            width: 0.35rem;
            text-align: center;
            top: 0.1rem;
            color: #333 !important;
            cursor: default;
            font-style: normal;
        }

        .base-extend .newTabAddUpdateBox td.enter .prevDetailWord {
            width: 0.85rem;
            text-align: center;
            top: 0.1rem;
            color: #333 !important;
            cursor: default;
            font-style: normal;
        }

        .error option, select.error {
            color: #333 !important;
        }

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            appearance: none;
            margin: 0;
        }
        label.error,span.error{
            z-index:9999 !important;
        }
        .edui-default .edui-editor-toolbarbox {
            position: relative !important;
        }
    </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">
        <p class="detailContentBox-title">处理</p>
        <form class="form-horizontal" id="entryForm" autocomplete="off">
            <input type="hidden" name="basicId" th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.id}">
            <!-- 执行人 -->
            <input type="hidden" class="currentUserId" th:cuid="${currExecutor?.name}" th:value="${currExecutor?.name}">
            <!-- 币种 -->
            <input type="hidden" class="currencyBigId" th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.currencyDict?.code}" th:crid="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.currencyDict?.id}">

            <!-- 银行信息 -->
            <input type="hidden" name="returnBankInfo" th:value="${cashFlowDealOutInfoVo?.returnBankInfo}">
            <input type="hidden" name="supplierBankCardInfoBankName" th:value="${cashFlowDealOutInfoVo?.supplierBankCardInfo?.bankName }">
            <input type="hidden" name="supplierBankCardInfoAccountNumber" th:value="${cashFlowDealOutInfoVo?.supplierBankCardInfo?.accountNumber}">

            <div class="newTabAddUpdateBox">
                <div class="row">
                    <table>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">核心企业名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" readonly name="purchaser"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.customerName}" class="form-control">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">业务名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" readonly name="businessName"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.businessName}" class="form-control">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">业务编号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="businessNumber" class="form-control" readonly
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.businessNumber}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">供应商名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="supplierName" class="form-control" readonly
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.supplierName}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">采购合同编号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="purchContractNumber" readonly class="form-control"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.contractNumber}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">类型</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="hidden" name="cashTypeId" readonly class="form-control"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.cashTypeDict?.id}" th:code="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.cashTypeDict?.code}">
                                <input type="text" name="cashType" readonly class="form-control"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.cashTypeDict?.name}">
                            </td>
                        </tr>
                        <tr class="isOneHide">
                            <td width="15%">
                                <span class="required_fileds_star">供应商名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="supplierName" readonly class="form-control"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.supplierName}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">采购合同编号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input name="contractNumber" readonly th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.contractNumber}" >
                            </td>
                        </tr>
                        <tr class="isTwoHide">
                            <td width="15%">
                                <span class="required_fileds_star">贸易平台名称</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <input type="text" name="platformName" readonly class="form-control"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.platformName}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">金额</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" id="amountMoney" name="amount" readonly class="form-control amountInput"
                                       th:value="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.amount}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">日期</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="cashDate" readonly class="form-control"
                                       th:value="${#calendars.format(cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.cashDate,'yyyy-MM-dd')}">
                            </td>
                        </tr>
                    </table>
                    <table style="border-bottom:none;">
                        <tr>
                            <td rowspan="2" width="5%" style="border-bottom:none;"><span class="">序号</span></td>
                            <td rowspan="2" width="10%" style="border-bottom:none;"><span class="required_fileds_star">此次放款日期</span></td>
                            <td rowspan="2" width="10%" style="border-bottom:none;"><span class="required_fileds_star">此次放款金额</span></td>
                            <td colspan="3" style="border-bottom:none;text-align: center"><span>打款账户</span></td>
                            <td colspan="2" style="border-bottom:none;text-align: center"><span>收款账户</span></td>
                            <td rowspan="2" width="9%" style="border-bottom:none;"><span class="required_fileds_star">当前执行人</span></td>
                            <td rowspan="2" width="8%" style="border-bottom:none;"><span class="">操作</span></td>
                        </tr>
                        <tr>
                            <td width="10%" style="border-bottom:none;">
                                <span class="required_fileds_star">公司归属</span>
                                <select id="companyOwnership" name="companyBelong" style="display:none;"></select>
                            </td>
                            <td width="11%" style="border-bottom:none;"><span class="required_fileds_star">银行名称</span></td>
                            <td width="13%" style="border-bottom:none;"><span class="required_fileds_star">银行卡号</span></td>
                            <td width="11%" style="border-bottom:none;"><span class="required_fileds_star">银行名称</span></td>
                            <td width="13%" style="border-bottom:none;"><span class="required_fileds_star">银行卡号</span></td>
                        </tr>
                    </table>
                    <table class="loanRecordListBox">
                        <tbody class="loanRecordList" th:each="factoringLoanRecord,factoringLoanRecords:${cashFlowDealOutInfoVo?.cashFlowManageOutInfoList}">
                        <tr th:reid="${factoringLoanRecord?.cashFlowManageBaseInfoId}">
                            <td width="5%" rowspan="2" style="background:#fff;">
                                1
                            </td>
                            <td width="10%" class="enter">
                                <input type="text" class="form-control thisLoanDate" th:value="${#calendars.format(factoringLoanRecord?.loanDate,'yyyy-MM-dd')}" readOnly>
                                <span class="error" style="display:none;">请选择此次放款日期</span>
                            </td>
                            <td width="10%" class="enter">
                                <input type="text" class="form-control thisLoanAmount" th:value="${factoringLoanRecord?.loanAmount}" style="padding-right:0.3rem;">
                                <span class="error" style="display:none;">请输入此次放款金额</span>
                                <i class="viewDetailWord" th:crid="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.currency?.id}" th:text="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.currency?.code}"></i>
                            </td>
                            <td width="9%" class="enter companyOwnershipBox">
                                <select class="form-control companyOwnershipInput" tag:option="companyOwnership" th:backValue="${factoringLoanRecord?.fromCompanyBelong}"></select>
                                <span class="error" style="display:none;">请选择公司归属</span>
                            </td>
                            <td width="9%" class="enter loanBankNameBox" th:checkid="${factoringLoanRecord?.fromBankName}">
                                <select class="form-control"></select>
                                <span class="error" style="display:none;">请选择银行名称</span>
                            </td>
                            <td width="11%" class="enter loanBankNoBox" th:checkid="${factoringLoanRecord?.fromBankAccount}">
                                <select class="form-control"></select>
                                <span class="error" style="display:none;">请选择银行卡号</span>
                            </td>
                            <td width="9%" class="enter loanBankNameBox2" >
                                <input type="text" class="form-control" th:value="${factoringLoanRecord?.toBankName}">
                                <span class="error" style="display:none;">请输入银行名称</span>
                            </td>
                            <td width="11%" class="enter loanBankNoBox2">
                                <input type="text" class="form-control" th:value="${factoringLoanRecord?.toBankAccount}">
                                <span class="error" style="display:none;">请输入银行卡号</span>
                            </td>
                            <td width="9%" class="enter">
                                <input type="text" class="form-control nowrite thisExecutor" readOnly th:value="${factoringLoanRecord?.currExecutor}" th:thisExecutorId="${factoringLoanRecord?.currExecutor}" th:thisVisible="${factoringLoanRecord?.visible}">
                            </td>
                            <td width="8%" rowspan="2" style="background:#fff;padding-left:0;padding-right:0;">
                                <span class="negativeInformationPlus">+增加</span>
                                <span class="negativeInformationReduce">-删除</span>
                            </td>
                        </tr>
                        <tr class="editorBigBox">
                            <td colspan="8" class="enter">
                                <textarea th:id="unifiedEditor+${factoringLoanRecords?.index}" class="unifiedEditorClass" style="height:230px;width:100%;" th:utext="${factoringLoanRecord?.fileText}"></textarea>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <table>
                        <tr>
                            <td width="15%" style="border-top:none;">
                                <span class="">备注</span>：
                            </td>
                            <td width="85%" class="enter" style="border-top:none;">
                                <textarea maxlength="1500" style="resize:none;padding:0.05rem 0.1rem !important;" name="remark" th:text="${cashFlowDealOutInfoVo?.cashFlowManageBaseVo?.remark}" id="remark" class="form-control autosize-transition" rows="3"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>

            </div>
            <div class="yk_addBtns yk_addNewMsg newTabAddUpdateBtnBox">
                <button class="btn btn-white btn-info colorbtn submitBusiness">提交</button>
                <button class="btn btn-white btn-info btn-cancel">关闭</button>
            </div>
        </form>
    </div>
</div>
</body>
<script src="/js/cashFlow/dealOther.js"></script>
</html>
