<!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.75rem;
            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;
        }

        .chooseGoodsTable td {
            border-left: 1px solid #E8F0F3;
            border-top: 1px solid #E8F0F3;
            padding: 0.1rem;
            text-align: left;
            background-color: #F0F9FC;
            font-size: 0.12rem;
            color: #333;
            min-height: 0.34rem;
            word-break: break-all;
            position: relative;
        }

        .operateText {
            color: #5AC4FC;
            cursor: pointer;
        }
        .calcHide {
            display: none;
        }
        .notCalc {
            display: table-cell;
        }
        .zoom-box, .zoom-hide-box {
            color: #5AC4FC;
            cursor: pointer;
            position: absolute;
            top: 0.99rem;
            right: -0.21rem;
            border: 1px solid #5ac4fc;
            /* border-left: 0px; */
            z-index: 10;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
            font-size: 13px;
            line-height: 25px;
            height: 25px;
        }
        .zoom-hide-box {
            display: none;
        }
    </style>
</head>
<body>
<div class="base-extend">
    <!--查看价格-->
    <div class="modal fade businessDialog" id="myModal-viewPrice" data-backdrop="static">
        <div class="modal-dialog" style="width:12.5rem;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
                </button>
                <span class="modal-title">查看价格</span>
            </div>
            <div class="modal-content" style="max-height:5.7rem;overflow-y:auto;overflow-x:hidden;margin-top: 0.2rem;">
                <div class="newTabAddUpdateBox" style="position:static;padding:0;border:none;">
                    <table style="margin-bottom:0rem;">
                        <tr>
                            <td width="8%">供应商</td>
                            <td width="8%">名称</td>
                            <td width="7%">厂家</td>
                            <td width="7%">型号</td>
                            <td width="7%">单位</td>
                            <td width="7%">数量</td>
                            <td width="8%">销售单价</td>
                            <td width="8%">销售总价</td>
                            <td width="8%">销售质保金</td>
                            <td width="8%">采购单价</td>
                            <td width="8%">采购总价</td>
                            <td width="8%">采购质保金</td>
                            <td width="8%">已分配金额</td>
                        </tr>
                        <tbody class="priceTr">

                        </tbody>
                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default btn-white btn-info colorbtn canclebtn" data-dismiss="modal" style='margin-bottom:0;'>确定</button>
            </div>
        </div>
    </div>

    <!-- 底层货物 -->
    <div class="modal fade businessDialog" id="myModal-chooseGoods" data-backdrop="static">
        <div class="modal-dialog" style="width:12.5rem;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
                </button>
                <span class="modal-title">选择货物</span>
            </div>
            <div class="modal-content" style="max-height:4.7rem;overflow-y:auto;overflow-x:hidden;">
                <div style="justify-content: flex-end; display: flex;">
                    <div style="width:3.5rem;margin-right:0.05rem;margin-top: 0.2rem;">
                        <input style="width:100%" maxlength="30" class="form-control" id="assignSearchName"
                               placeholder="请输入底层编号/保理合同编号/供应商名称"/>
                    </div>
                    <div >
                        <button id="assignSearchBusiness" class="btn btn-white btn-info colorbtn" style="margin-right:0.4rem;margin-top: 0.2rem;">
                            搜索
                        </button>
                    </div>
                </div>
                <div class="listBackBox" style="padding-top:0;">
                    <div class="projectTableBox" id="formForProjectListBox" style="margin:0;">
                        <div class="customerMarketingList formForProjectList col-xs-12 businessTable"
                             style="left:0;padding:0.1rem 0.2rem 0 0.2rem;" tipword="">
                            <p class="detailContentBox-title">可选货物</p>
                            <table id="chooseGoodsList" class="tablebox" style="width: 100%;"></table>
                            <div id="chooseGoodsListPage" class="tablepagebox"></div>

                            <p class="detailContentBox-title" style="margin-top: 20px;display: none">已选货物</p>
                            <table class="chooseGoodsTable" style="width: 100%!important;display: none">
                                <tr>
                                    <td width="5%">
                                        <span style="color: #656565;font-weight: 700">底层编号</span>
                                    </td>
                                    <td width="10%">
                                        <span style="color: #656565;font-weight: 700">SOP底层资产编号</span>
                                    </td>
                                    <td width="8%">
                                        <span style="color: #656565;font-weight: 700">保理合同编号</span>
                                    </td>
                                    <td width="6%">
                                        <span style="color: #656565;font-weight: 700">批次号</span>
                                    </td>
                                    <td width="7%">
                                        <span style="color: #656565;font-weight: 700">供应商名称</span>
                                    </td>
                                    <td width="8%">
                                        <span style="color: #656565;font-weight: 700">放款日期</span>
                                    </td>
                                    <td width="8%">
                                        <span style="color: #656565;font-weight: 700">放款金额</span>
                                    </td>
                                    <td width="8%">
                                        <span style="color: #656565;font-weight: 700">待回款金额</span>
                                    </td>
                                    <td width="8%">
                                        <span style="color: #656565;font-weight: 700">采购单价</span>
                                    </td>
                                    <td width="8%">
                                        <span style="color: #656565;font-weight: 700">操作</span>
                                    </td>
                                </tr>
                                <tbody class="choosedGoodsList">

                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default btn-white btn-info colorbtn chooseSure" style='margin-bottom:0;'>确定
                </button>
                <button class="btn btn-default btn-white btn-info" data-dismiss="modal" style='margin-bottom:0;'>取消
                </button>
            </div>
        </div>
    </div>

    <!-- 结算货物 -->
    <div class="modal fade businessDialog" id="myModal-chooseGoods3" data-backdrop="static">
        <div class="modal-dialog" style="width:12.5rem;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span class="cancelBtn2" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
                </button>
                <span class="modal-title">选择货物</span>
            </div>
            <div class="modal-content" style="max-height:4.7rem;overflow-y:auto;overflow-x:hidden;">
                <div class="listBackBox" style="padding-top:0;">
                    <div class="projectTableBox" id="formForProjectListBox" style="margin:0;">
                        <div style="float:right;">
                            <button id="settleSearchBusiness" class="btn btn-white btn-info colorbtn" style="margin-right:0.2rem;margin-top: 0.2rem;">
                                搜索
                            </button>
                        </div>
                        <div style="float:right;width:2rem;margin-right:0.05rem;margin-top: 0.2rem;">
                            <input style="width:100%" maxlength="30" class="form-control" id="settleSearchName"
                                   placeholder="请输入供应商名称"/>
                        </div>
                        <div class="customerMarketingList formForProjectList col-xs-12 businessTable"
                             style="left:0;padding:0.1rem 0.2rem 0 0.2rem;" tipword="">
                            <p class="detailContentBox-title">可选货物</p>
                            <table id="chooseGoodsList3" class="tablebox" style="width: 100%;"></table>
                            <div id="chooseGoodsListPage3" class="tablepagebox"></div>

                            <p class="detailContentBox-title" style="margin-top: 20px;display: none">已选货物</p>
                            <table class="chooseGoodsTable3" style="width: 100%!important;display: none">
                                <tr>
                                    <td width="6%">
                                        <span style="color: #656565;font-weight: 700">编号</span>
                                    </td>
                                    <td width="10%">
                                        <span style="color: #656565;font-weight: 700">结算单号</span>
                                    </td>
                                    <td width="10%">
                                        <span style="color: #656565;font-weight: 700">供应商</span>
                                    </td>
                                    <td width="13%">
                                        <span style="color: #656565;font-weight: 700">结算日期</span>
                                    </td>
                                </tr>
                                <tbody class="choosedGoodsList3">

                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default btn-white btn-info colorbtn chooseSure3" style='margin-bottom:0;'>确定
                </button>
                <button class="btn btn-default btn-white btn-info cancelBtn2" data-dismiss="modal"  style='margin-bottom:0;'>取消
                </button>
            </div>
        </div>
    </div>

    <div class="modal fade businessDialog" id="myModal-planBox" data-backdrop="static">
        <div class="modal-dialog" style="width:12.5rem;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
                </button>
                <span class="modal-title">收放款计划</span>
            </div>
            <div class="modal-content" style="max-height:4.7rem;overflow-y:auto;overflow-x:hidden;">
                <div class="listBackBox" style="padding-top:0;">
                    <div class="projectTableBox" id="" style="margin:0;">
                        <div class="customerMarketingList formForProjectList col-xs-12 businessTable"
                             style="left:0;padding:0.1rem 0.2rem 0 0.2rem;" tipword="">
                            <table id="planList" class="tablebox" style="width: 100%;"></table>
                            <div id="planListPage" class="tablepagebox"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default btn-white btn-info" data-dismiss="modal" style='margin-bottom:0;'>确定
                </button>
            </div>
        </div>
    </div>

    <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="${ledgerAccountInfo.ledgerAccountBasicInfo?.id}">
            <input type="hidden" name="cashFlowManageBasicInfoId" th:value="${ledgerAccountInfo.ledgerAccountBasicInfo?.cashFlowManageBasicInfoId}">
            <div class="newTabAddUpdateBox">
                <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 width="35%" class="enter">
                                <input type="hidden" name="enterpriseCustomerInfoId"
                                th:value="${ ledgerAccountInfo?.ledgerAccountBasicInfo?.enterpriseCustomerInfoId}">
                                <input type="text" readonly name="customerName"
                                       th:value="${ ledgerAccountInfo?.ledgerAccountBasicInfo?.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="${ledgerAccountInfo?.ledgerAccountBasicInfo?.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" readonly class="form-control"
                                       th:value="${ledgerAccountInfo?.ledgerAccountBasicInfo?.businessNumber}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">分账单号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="ledgerNumber" readonly class="form-control"
                                       th:value="${ledgerAccountInfo?.ledgerAccountBasicInfo?.ledgerNumber}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">入账类型</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="hidden" name="ledgerType"
                                       th:value="${ ledgerAccountInfo?.ledgerAccountBasicInfo?.ledgerTypeDict?.id}">
                                <input type="text" name="ledgerTypeDict" readonly class="form-control"
                                       th:value="${ ledgerAccountInfo?.ledgerAccountBasicInfo?.ledgerTypeDict?.name}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">币种</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="hidden" name="currency"
                                       th:value="${ ledgerAccountInfo?.ledgerAccountBasicInfo?.currencyDict?.id}">
                                <input type="text" name="currencyDict" readonly class="form-control"
                                       th:value="${ ledgerAccountInfo?.ledgerAccountBasicInfo?.currencyDict?.name}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">入账金额</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="ledgerAmount" readonly class="form-control amountInput" th:value="${ledgerAccountInfo?.ledgerAccountBasicInfo?.ledgerAmount}">
                                <i class="viewDetailWord"
                                   style="top:50%;margin-top:-0.1rem;right:auto;right:0;"
                                   th:text="${ledgerAccountInfo?.ledgerAccountBasicInfo?.currencyDict?.code}"></i>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">入账日期</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="ledgerDate" readonly class="form-control"
                                       th:value="${#calendars.format(ledgerAccountInfo?.ledgerAccountBasicInfo?.ledgerDate,'yyyy-MM-dd')}">
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="row tiexianMoney">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">贴现费用</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">贴现费用</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="discountCharge" readonly class="form-control amountInput" th:value="${ledgerAccountInfo?.ledgerAccountBasicInfo?.discountCharge}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">说明</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="remark" maxlength="50"  class="form-control" th:value="${ledgerAccountInfo?.ledgerAccountBasicInfo?.remark}">
                            </td>
                        </tr>
                    </table>
                </div>

                <!-- <ul class="projectListTab" style="margin-left: -10px;margin-right: -10px">
                    <li class="active">货款分配</li>
                    <li>资金占用费</li>
                    <li>质保金</li>
                </ul> -->

                <!-- <div class="row operateDiv goodsRow">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">货款分配</span>
                                <span id="chooseButton" class="colorbtn btn" style="float: right;">
                                    选择货物
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">货款金额</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="goodsAssignAmount" class="form-control amountInput" th:value="${ledgerAccountInfo?.fundGoodsAssignTotal?.goodsAssignAmount}">
                                <span class="error" style="display:none;font-size:0.12rem;">请输入货款金额</span>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">贴现费用</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="discountChargeAmount" class="form-control amountInput" th:value="${ledgerAccountInfo?.fundGoodsAssignTotal?.discountChargeAmount}">
                                <span class="error" style="display:none;font-size:0.12rem;">请输入贴现费用</span>
                            </td>
                        </tr>
                    </table>
                    <table class="goodsTable">
                        <tr>
                            <td width="4%">
                                <span>编号</span>
                            </td>
                            <td width="7%">
                                <span>可分配金额</span>
                            </td>
                            <td width="7%">
                                <span>分配金额</span>
                            </td>
                            <td width="6%">
                                <span>供应商</span>
                            </td>
                            <td width="6%">
                                <span>名称</span>
                            </td>
                            <td width="6%">
                                <span>厂家</span>
                            </td>
                            <td width="6%">
                                <span>型号</span>
                            </td>
                            <td width="4%">
                                <span>单位</span>
                            </td>
                            <td width="5%">
                                <span>已结清数量</span>
                            </td>
                            <td width="5%">
                                <span>已开票数量</span>
                            </td>
                            <td width="6%">
                                <span>融资利息</span>
                            </td>
                            <td width="6%">
                                <span>融资本金</span>
                            </td>
                            <td width="6%">
                                <span>平台利润</span>
                            </td>
                            <td width="6%">
                                <span>实退折扣金额</span>
                            </td>
                            <td width="9%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="goodsListTbody" style="display: none">
                            <td style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td style="background-color: #fff" class="amountText"></td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control  amountInput validInput assignAmount">
                                <span class="error" style="display:none;font-size:0.12rem;">请输入分配金额</span>
                            </td>
                            <td style="background-color: #fff"></td>
                            <td style="background-color: #fff"></td>
                            <td style="background-color: #fff"></td>
                            <td style="background-color: #fff"></td>
                            <td style="background-color: #fff"></td>
                            <td style="background-color: #fff" class="amountText"></td>
                            <td style="background-color: #fff" class="amountText"></td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control financingInterest amountInput ">
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control financingPrincipal amountInput ">
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control platformProfit amountInput ">
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control discountAmount amountInput ">
                            </td>
                            <td style="background-color:#fff;">
                                <span class="viewPlan operateText">查看收支计划</span><br>
                                <span class="viewPrice operateText">查看价格</span>
                                <span class="negativeInformationReduce operateText">删除</span>
                            </td>
                        </tr>
                        <tbody class="goodsListTable">
                        <tr class="goodsListTbody" th:each="goods,good:${ledgerAccountInfo?.fundGoodsAssignTotal?.fundGoodsAssignVoList}">
                            <td style="background-color:#fff;">
                                <span th:text="${good?.count}">1</span>
                            </td>
                            <td style="background-color: #fff" class="amountText" th:text="${goods?.assignableAmount}" th:acceptanceBusinessGoodsId="${goods?.acceptanceBusinessGoodsId}"  th:billGoodsInformationId="${goods?.billGoodsInformationId}" th:mortgageInformationId="${goods?.mortgageInformationId}" th:supplierId="${goods?.supplierId}" th:mortgage="${goods?.mortgage}" th:purchContractNumber="${goods?.purchContractNumber}"></td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control  amountInput validInput assignAmount" th:value="${goods?.assignAmount}">
                                <span class="error" style="display:none;font-size:0.12rem;">请输入分配金额</span>
                            </td>
                            <td style="background-color: #fff" th:text="${goods?.supplierName}"></td>
                            <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsName}"></td>
                            <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsFactory}"></td>
                            <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsType}"></td>
                            <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsUnit}"></td>
                            <td style="background-color: #fff" class="amountText" th:text="${goods?.billGoodsInformation?.goodsNum}"></td>
                            <td style="background-color: #fff" class="amountText" th:text="${goods?.invoicedQuantity}"></td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control financingInterest amountInput " th:value="${goods?.financingInterest}">
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control financingPrincipal amountInput " th:value="${goods?.financingPrincipal}">
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control platformProfit amountInput " th:value="${goods?.platformProfit}">
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control discountAmount amountInput " th:value="${goods?.discountAmount}">
                            </td>
                            <td style="background-color:#fff;">
                                <span class="viewPlan operateText">查看收支计划</span><br>
                                <span class="viewPrice operateText">查看价格</span>
                                <span class="negativeInformationReduce operateText">删除</span>
                            </td>
                            <td style="display: none" class="backGoodsUl">
                                <span th:each="ul,uls:${goods?.ledgerPlanFactoringAssignList}">
                                    <i th:text="${ul?.actualAmount}"></i>
                                    <i th:text="${#calendars.format(ul?.actualDate,'yyyy-MM-dd')}"></i>
                                    <i th:text="${ul?.planAmount}"></i>
                                    <i th:text="${ul?.planFactoringId}"></i>
                                    <i th:text="${ul?.prepayment}"></i>
                                </span>
                            </td>
                        </tr>
                        </tbody>
                        <tbody>
                        <tr>
                            <td colspan="15" style="background-color: #fff">
                                分配货款合计：&nbsp;<span class="totalAssignAmount"></span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div> -->

                <!-- <div class="row zijin operateDiv" style="display: none">
                    <table class="supplierTable">
                        <tr>
                            <td colspan="5">
                                <span class="detailContentBox-tabletitle">资金占用费</span>
                                <span id="addSupplier" class="colorbtn btn" style="float: right;">
                                    添加
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="5%">
                                <span>编号</span>
                            </td>
                            <td width="20%">
                                <span>供应商名称</span>
                            </td>
                            <td width="15%">
                                <span>分配金额</span>
                            </td>
                            <td width="47%">
                                <span>分配原因</span>
                            </td>
                            <td width="13%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="supplierListTbody" style="display: none">
                            <td style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <select class="form-control validInput">
                                    <option th:each="supplier,supplierStat:${supplierList}"
                                            th:value="${supplier?.supplierId}" th:code="${supplier?.purchContractNumber}"
                                            th:text="${supplier?.supplierName}"></option>
                                </select>
                                <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput amountInput fundPossessionCost">
                                <span class="error" style="display:none;">请输入分配金额</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput assignReason">
                                <span class="error" style="display:none;">请输入分配原因</span>
                            </td>
                            <td style="background-color:#fff;">
                                <span class="deleteZijin operateText">-删除</span>
                            </td>
                        </tr>
                        <tbody class="supplierListTable">
                        <tr class="supplierListTbody" th:each="supplier,suppliers:${ledgerAccountInfo?.ledgerFundPossessionCostList}">
                            <td style="background-color:#fff;">
                                <span th:text="${suppliers?.count}">1</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <select class="form-control validInput" th:value="${supplier?.supplierId}">
                                    <option th:each="supplier,supplierStat:${supplierList}"
                                            th:value="${supplier?.supplierId}" th:code="${supplier?.purchContractNumber}"
                                            th:text="${supplier?.supplierName}"></option>
                                </select>
                                <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput amountInput fundPossessionCost" th:value="${supplier?.fundPossessionCost}">
                                <span class="error" style="display:none;">请输入分配金额</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput assignReason" th:value="${supplier?.assignReason}">
                                <span class="error" style="display:none;">请输入分配原因</span>
                            </td>
                            <td style="background-color:#fff;">
                                <span class="deleteZijin operateText">-删除</span>
                            </td>
                        </tr>
                        </tbody>
                        <tr>
                            <td colspan="5" style="background-color: #fff">
                                &nbsp;&nbsp;&nbsp;&nbsp;总金额合计：<span class="totalZijin"></span>
                            </td>
                        </tr>
                    </table>
                </div> -->

                <!-- <div class="row retentionRow operateDiv" style="display: none">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">质保金</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">剩余销售质保金</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" readonly name="surplusSalesRetentionAmount"
                                       class="form-control amountInput"
                                       th:value="${ledgerAccountInfo?.fundRetentionMoneyTotal?.surplusSalesRetentionAmount}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">分配质保金</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="assignRetentionAmountTotal" class="form-control amountInput"
                                       th:value="${ledgerAccountInfo?.fundRetentionMoneyTotal?.assignRetentionAmountTotal}">
                                <span class="error" style="display:none;font-size:0.12rem;">请输入分配质保金</span>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <span class="detailContentBox-tabletitle">采购质保金分配</span>
                                <span id="addRetention" class="colorbtn btn" style="float: right;">
                                    添加
                                </span>
                            </td>
                        </tr>
                    </table>
                    <div class="retentionBox" style="display: none">
                        <span style="display: none" class="retentionIndex"></span>
                        <table class="retentionBasic">
                            <tr>
                                <td width="20%">
                                    <span>供应商名称</span>
                                </td>
                                <td width="17%">
                                    <span>剩余采购质保金</span>
                                </td>
                                <td width="17%">
                                    <span>分配质保金</span>
                                </td>
                                <td width="17%">
                                    <span>现金分配</span>
                                </td>
                                <td width="17%">
                                    <span>抵货款</span>
                                </td>
                                <td width="12%">
                                    <span>操作</span>
                                </td>
                            </tr>
                            <tr>
                                <td style="background-color:#fff;" class="enter">
                                    <select class="form-control validInput supplierId">
                                        <option th:each="supplier,supplierStat:${supplierList}"
                                                th:value="${supplier?.supplierId}" th:code="${supplier?.purchContractNumber}"
                                                th:text="${supplier?.supplierName}"></option>
                                    </select>
                                    <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly
                                           class="form-control validInput amountInput surplusPurchRetentionAmount">
                                    <span class="error" style="display:none;">请输入剩余采购质保金</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text"
                                           class="form-control validInput amountInput assignRetentionAmount">
                                    <span class="error" style="display:none;">请输入分配质保金</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput amountInput cashDistribution">
                                    <span class="error" style="display:none;">请输入现金分配</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput amountInput offsetMoney">
                                    <span class="error" style="display:none;">请输入抵货款</span>
                                </td>
                                <td style="background-color:#fff;">
                                    <span class="deleteReten operateText">-删除</span>
                                </td>
                            </tr>
                        </table>
                        <table class="retentionGoods">
                            <tr>
                                <td colspan="15">
                                    <span>抵扣货款</span>
                                    <span class="colorbtn btn chooseGoods" style="float: right;">
                                    选择货物
                                </span>
                                </td>
                            </tr>
                            <tr>
                                <td width="4%">
                                    <span>编号</span>
                                </td>
                                <td width="7%">
                                    <span>可分配金额</span>
                                </td>
                                <td width="7%">
                                    <span>分配金额</span>
                                </td>
                                <td width="6%">
                                    <span>供应商</span>
                                </td>
                                <td width="6%">
                                    <span>名称</span>
                                </td>
                                <td width="6%">
                                    <span>厂家</span>
                                </td>
                                <td width="6%">
                                    <span>型号</span>
                                </td>
                                <td width="4%">
                                    <span>单位</span>
                                </td>
                                <td width="5%">
                                    <span>已结清数量</span>
                                </td>
                                <td width="5%">
                                    <span>已开票数量</span>
                                </td>
                                <td width="6%">
                                    <span>融资利息</span>
                                </td>
                                <td width="6%">
                                    <span>融资本金</span>
                                </td>
                                <td width="6%">
                                    <span>平台利润</span>
                                </td>
                                <td width="6%">
                                    <span>实退折扣金额</span>
                                </td>
                                <td width="9%">
                                    <span>操作</span>
                                </td>
                            </tr>
                            <tr class="retenGoodsListTbody" style="display: none">
                                <td style="background-color:#fff;">
                                    <span>1</span>
                                </td>
                                <td style="background-color: #fff" class="amountText"></td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control  amountInput validInput assignAmount">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入分配金额</span>
                                </td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff" class="amountText"></td>
                                <td style="background-color: #fff" class="amountText"></td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control financingInterest amountInput">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control financingPrincipal amountInput">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control platformProfit amountInput">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control discountAmount amountInput">
                                </td>
                                <td width="10%" style="background-color:#fff;">
                                    <span class="viewPlan operateText">查看收支计划</span><br>
                                    <span class="viewPrice operateText">查看价格</span>
                                    <span class="retenDeleteGoods operateText">删除</span>
                                </td>
                            </tr>
                            <tbody class="retenGoodsListTable">

                            </tbody>
                            <tr>
                                <td colspan="15" style="background-color: #fff">
                                    分配货款合计：&nbsp;<span class="totalAmount"></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="retentionBox" th:each="reten,retens:${ledgerAccountInfo?.fundRetentionMoneyTotal?.fundRetentionMoneyVoList}">
                        <span style="display: none" class="retentionIndex" th:text="${retens?.count}"></span>
                        <table class="retentionBasic">
                            <tr>
                                <td width="20%">
                                    <span>供应商名称</span>
                                </td>
                                <td width="17%">
                                    <span>剩余采购质保金</span>
                                </td>
                                <td width="17%">
                                    <span>分配质保金</span>
                                </td>
                                <td width="17%">
                                    <span>现金分配</span>
                                </td>
                                <td width="17%">
                                    <span>抵货款</span>
                                </td>
                                <td width="12%">
                                    <span>操作</span>
                                </td>
                            </tr>
                            <tr>
                                <td style="background-color:#fff;" class="enter">
                                    <select class="form-control validInput supplierId" th:value="${reten?.supplierId}">
                                        <option th:each="supplier,supplierStat:${supplierList}"
                                                th:value="${supplier?.supplierId}"  th:code="${supplier?.purchContractNumber}"
                                                th:text="${supplier?.supplierName}"></option>
                                    </select>
                                    <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly  th:value="${reten?.surplusPurchRetentionAmount}"
                                           class="form-control validInput amountInput surplusPurchRetentionAmount">
                                    <span class="error" style="display:none;">请输入剩余采购质保金</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" th:value="${reten?.assignRetentionAmount}"
                                           class="form-control validInput amountInput assignRetentionAmount">
                                    <span class="error" style="display:none;">请输入分配质保金</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput amountInput cashDistribution"
                                           th:value="${reten?.cashDistribution}">
                                    <span class="error" style="display:none;">请输入现金分配</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput amountInput offsetMoney"
                                           th:value="${reten?.offsetMoney}">
                                    <span class="error" style="display:none;">请输入抵货款</span>
                                </td>
                                <td style="background-color:#fff;">
                                    <span class="deleteReten operateText">-删除</span>
                                </td>
                            </tr>
                        </table>
                        <table class="retentionGoods">
                            <tr>
                                <td colspan="15">
                                    <span>抵扣货款</span>
                                    <span class="colorbtn btn chooseGoods" style="float: right;">
                                    选择货物
                                </span>
                                </td>
                            </tr>
                            <tr>
                                <td width="4%">
                                    <span>编号</span>
                                </td>
                                <td width="7%">
                                    <span>可分配金额</span>
                                </td>
                                <td width="7%">
                                    <span>分配金额</span>
                                </td>
                                <td width="6%">
                                    <span>供应商</span>
                                </td>
                                <td width="6%">
                                    <span>名称</span>
                                </td>
                                <td width="6%">
                                    <span>厂家</span>
                                </td>
                                <td width="6%">
                                    <span>型号</span>
                                </td>
                                <td width="4%">
                                    <span>单位</span>
                                </td>
                                <td width="5%">
                                    <span>已结清数量</span>
                                </td>
                                <td width="5%">
                                    <span>已开票数量</span>
                                </td>
                                <td width="6%">
                                    <span>融资利息</span>
                                </td>
                                <td width="6%">
                                    <span>融资本金</span>
                                </td>
                                <td width="6%">
                                    <span>平台利润</span>
                                </td>
                                <td width="6%">
                                    <span>实退折扣金额</span>
                                </td>
                                <td width="9%">
                                    <span>操作</span>
                                </td>
                            </tr>
                            <tr class="retenGoodsListTbody" style="display: none">
                                <td style="background-color:#fff;">
                                    <span>1</span>
                                </td>
                                <td style="background-color: #fff" class="amountText"></td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control  amountInput validInput assignAmount">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入分配金额</span>
                                </td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color: #fff" class="amountText"></td>
                                <td style="background-color: #fff" class="amountText"></td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control financingInterest amountInput">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control financingPrincipal amountInput">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control platformProfit amountInput">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control discountAmount amountInput">
                                </td>
                                <td width="10%" style="background-color:#fff;">
                                    <span class="viewPlan operateText">查看收支计划</span><br>
                                    <span class="viewPrice operateText">查看价格</span>
                                    <span class="retenDeleteGoods operateText">删除</span>
                                </td>
                            </tr>
                            <tbody class="retenGoodsListTable">
                            <tr class="retenGoodsListTbody" th:each="goods,good:${reten?.fundGoodsAssignVoList}" >
                                <td style="background-color:#fff;">
                                    <span th:text="${good?.count}">1</span>
                                </td>
                                <td style="background-color: #fff" class="amountText" th:text="${goods?.assignableAmount}" th:acceptanceBusinessGoodsId="${goods?.acceptanceBusinessGoodsId}"  th:billGoodsInformationId="${goods?.billGoodsInformationId}" th:mortgageInformationId="${goods?.mortgageInformationId}" th:supplierId="${goods?.supplierId}" th:mortgage="${goods?.mortgage}" th:purchContractNumber="${goods?.purchContractNumber}"></td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control  amountInput validInput assignAmount" th:value="${goods?.assignAmount}">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入分配金额</span>
                                </td>
                                <td style="background-color: #fff" th:text="${goods?.supplierName}"></td>
                                <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsName}"></td>
                                <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsFactory}"></td>
                                <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsType}"></td>
                                <td style="background-color: #fff" th:text="${goods?.billGoodsInformation?.goodsUnit}"></td>
                                <td style="background-color: #fff" class="amountText" th:text="${goods?.billGoodsInformation?.goodsNum}"></td>
                                <td style="background-color: #fff" class="amountText" th:text="${goods?.invoicedQuantity}"></td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control financingInterest amountInput " th:value="${goods?.financingInterest}">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control financingPrincipal amountInput " th:value="${goods?.financingPrincipal}">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control platformProfit amountInput " th:value="${goods?.platformProfit}">
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" readonly class="form-control discountAmount amountInput " th:value="${goods?.discountAmount}">
                                </td>
                                <td style="background-color:#fff;">
                                    <span class="viewPlan operateText">查看收支计划</span><br>
                                    <span class="viewPrice operateText">查看价格</span>
                                    <span class="negativeInformationReduce operateText">删除</span>
                                </td>
                                <td style="display: none" class="backGoodsUl">
                                <span th:each="ul,uls:${goods?.ledgerPlanFactoringAssignList}">
                                    <i th:text="${ul?.actualAmount}"></i>
                                    <i th:text="${#calendars.format(ul?.actualDate,'yyyy-MM-dd')}"></i>
                                    <i th:text="${ul?.planAmount}"></i>
                                    <i th:text="${ul?.planFactoringId}"></i>
                                    <i th:text="${ul?.prepayment}"></i>
                                </span>
                                </td>
                            </tr>
                            </tbody>
                            <tr>
                                <td colspan="15" style="background-color: #fff">
                                    分配货款合计：&nbsp;<span class="totalAmount"></span>
                                </td>
                            </tr>
                        </table>
                    </div>

                </div> -->

                <div class="row" style="position: relative;">
                    <div class="zoom-box goodsAssignStatus">展开</div>
                    <div class="zoom-hide-box goodsAssignStatus" style="display: none;">收缩</div>
                    <table >
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">货款分配</span>
                                <span class="specialReminder" style="color: red;font-size: 0.11rem;">(如一键计算后的分账结果不满足需求，请与风控经理沟通，调整还款方式为手动生成后进行收放款计划变更，再进行分账。)</span>
                                <span id="chooseButton3" class="colorbtn btn goodsAssignStatus" style="float: right;margin-left: 10px">
                                    选择已结算货物
                                </span>
                                <span id="chooseButton" class="colorbtn btn goodsAssignStatus" style="float: right;">
                                    选择已底层货物
                                </span>
                                <span class="keyCalc operateText goodsAssignStatus" style="float: right; line-height: 35px;margin-right: 10px; ">一键计算</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">是否分配货款</span>：
                            </td>
                            <td width="35%" class="enter">
                                <select class="form-control" name="goodsAssign">
                                    <option value="">请选择</option>
                                    <option value="1" th:selected="${ledgerAccountInfo?.ledgerAccountBasicInfo?.goodsAssign == true} ">是</option>
                                    <option value="0" th:selected="${ledgerAccountInfo?.ledgerAccountBasicInfo?.goodsAssign == false} ">否</option>
                                </select>
                            </td>
                            <td width="15%" class="goodsAssignStatus">
                                <span class="required_fileds_star">货款金额</span>：
                            </td>
                            <td width="35%" class="enter goodsAssignStatus">
                                <input type="text" name="goodsAmount" readonly class="form-control amountInput" th:value="${ledgerAccountInfo?.ledgerAccountBasicInfo?.goodsAmount}">
                            </td>
                        </tr>
                    </table>
                    <div style="overflow-x: scroll; width: 100%;">
                        <table class="goodsTable goodsAssignStatus goodsTableWidth" style="max-width: 200%; width: 170%">
                            <tr>
                                <td width="2%">
                                    <span>序号</span>
                                </td>
                                <td width="4%" class="notCalc numberType">
                                    <span>底层单号</span>
                                </td>
                                <td width="6%" class="notCalc">
                                    <span>SOP底层资产编号</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>保理合同编号</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>批次号</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>供应商名称</span>
                                </td>
                                <!-- <td width="6%" class="notCalc">
                                    <span>申请付款金额</span>
                                </td> -->
                                <td width="5%" class="notCalc">
                                    <span>销售总价</span>
                                </td>
                                <td width="5%" class="notCalc">
                                    <span>采购总价</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>待分配金额</span>
                                </td>
                                <td width="4%" class="notCalc settmentDate">
                                    <span>放款日期/结算日期</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>放款金额</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>待回款金额</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>本次分配金额</span>
                                </td>
                                <td width="4%" class="notCalc">
                                    <span>是否计提</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>逾期利息</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>融资利息</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>融资管理费</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>融资本金</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>计提金额</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>平台利润</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>实退金额</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>应退管理费</span>
                                </td>
                                <td width="4%" class="calcHide">
                                    <span>应退利息</span>
                                </td>
                                <td width="6%">
                                    <span>操作</span>
                                </td>
                            </tr>
                            <tr class="goodsListTbody" style="display: none">
                                <td style="background-color:#fff;">
                                    <span>1</span>
                                </td>
                                <td style="background-color: #fff" class="notCalc"></td>
                                <td style="background-color:#fff;" class="enter amountText notCalc"> </td>
                                <td style="background-color: #fff" class="notCalc"></td>
                                <td style="background-color: #fff" class="notCalc"></td>
                                <td style="background-color: #fff" class="notCalc"></td>
                                <!-- <td style="background-color: #fff" class="notCalc"></td> -->
                                <td style="background-color: #fff" class="amountText notCalc"></td>
                                <td style="background-color: #fff" class="amountText notCalc"></td>
                                <td style="background-color: #fff" class="amountText notCalc"></td>
                                <td style="background-color: #fff"></td>
                                <td style="background-color:#fff;" class="amountText notCalc"></td>
                                <td style="background-color:#fff;" class="amountText notCalc"></td>
                                <td style="background-color:#fff;" class="enter notCalc">
                                    <input type="text" class="form-control amountInput validInput distributionMoney" style="border: 1px solid #E4E4E4;">
                                    <span class="error" style="display:none;">请填写本次分配金额</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <select class="form-control validInput">
                                        <option value="true">是</option>
                                        <option value="false">否</option>
                                    </select>
                                    <span class="error" style="display:none;">请选择是否计提</span>
                                </td>
                                <td style="background-color: #fff" class="amountText calcHide"></td>
                                <td style="background-color: #fff" class="amountText calcHide"></td>
                                <td style="background-color: #fff" class="amountText calcHide"></td>
                                <td style="background-color: #fff" class="amountText calcHide"></td>
                                <td style="background-color: #fff" class="amountText calcHide"></td>
                                <td style="background-color:#fff;" class="amountText calcHide"></td>
                                <td style="background-color:#fff;" class="amountText calcHide"></td>
                                <td style="background-color:#fff;" class="amountText calcHide"></td>
                                <td style="background-color:#fff;" class="amountText calcHide"></td>
                                <td style="background-color:#fff;" >
                                    <span class="viewPlan operateText">查看收支计划</span><br>
                                    <!-- <span class="viewPrice operateText">查看价格</span> -->
                                    <span class="negativeInformationReduce operateText">删除</span>
                                </td>

                            </tr>
                            <tbody class="goodsListTable">
                                <tr class="goodsListTbody goodsListTbodyBack"
                                    th:each="goods,goodsStat:${ledgerAccountInfo?.goodsAssignList}"  th:id="${goods.goodsAssignId}">
                                    <td style="background-color:#fff;">
                                        <span th:text="${goodsStat.count}"></span>
                                    </td>
                                    <td style="background-color: #fff" class="notCalc"
                                        th:id="${goods.id}"
                                        th:supplierId="${goods.supplierId}"
                                        th:text="${goods.sopAccountsReceivableId} ? ${goods.receivablesNumber} : ${goods.settlementNumber}"
                                        th:receivablesNumber="${goods.receivablesNumber}"
                                        th:settlementNumber="${goods.settlementNumber}"
                                        th:billingFactoringBusinessLoanRecordId="${goods.billingFactoringBusinessLoanRecordId}"
                                        th:sopAccountsReceivableId="${goods.sopAccountsReceivableId}"
                                        th:returnedManagement="${goods.returnedManagement}"
                                        th:returnedInterest="${goods.returnedInterest}"
                                        th:latestCollDate="${#calendars.format(goods.latestCollDate,'yyyy-MM-dd')}"
                                        th:lastPlanDate="${#calendars.format(goods.lastPlanDate,'yyyy-MM-dd')}"
                                        th:payCollBasicId="${goods.payCollBasicId}"
                                    >
                                    </td>
                                    <td style="background-color:#fff;" class="enter amountText notCalc" th:text="${goods.underlyingAssetsNo} == '' ? '/' : ${goods.underlyingAssetsNo}"> </td>
                                    <td style="background-color: #fff" class="notCalc" th:text="${goods.contractNo } == '' ? '/' : ${goods.contractNo}"></td>
                                    <td style="background-color: #fff" class="notCalc" th:text="${goods.quotaDisburseBatch}? ${goods.quotaDisburseBatch} : '/'"></td>
                                    <td style="background-color: #fff" class="notCalc" th:text="${goods.supplierName}"></td>
                                    <!-- <td style="background-color: #fff" class="notCalc"></td> -->
                                    <td style="background-color: #fff" class="amountText notCalc" th:text="${goods.salesTotalPrice}"></td>
                                    <td style="background-color: #fff" class="amountText notCalc" th:text="${goods.purchaseTotalPrice}"></td>
                                    <td style="background-color: #fff" class="amountText notCalc" th:text="${goods.toAssignedAmount}"></td>
                                    <td style="background-color: #fff" th:text="${#calendars.format(goods.loanDate,'yyyy-MM-dd')}"></td>
                                    <td style="background-color:#fff;" class="amountText notCalc" th:text="${goods.loanAmount} ? ${goods.loanAmount} : '/'"></td>
                                    <td style="background-color:#fff;" class="amountText notCalc" th:text="${goods.returnedAmount} ? ${goods.returnedAmount} : '/'"></td>
                                    <td style="background-color:#fff;" class="enter notCalc">
                                        <input type="text" class="form-control amountInput validInput distributionMoney" style="border: 1px solid #E4E4E4;"  th:value="${goods.currentAssignAmount}">
                                        <span class="error" style="display:none;">请填写本次分配金额</span>
                                    </td>
                                    <td style="background-color:#fff;" class="enter">
                                        <select class="form-control validInput">
                                            <option value="true" th:selected="${goods.accrual == true} ">是</option>
                                            <option value="false" th:selected="${goods.accrual == false} ">否</option>
                                        </select>
                                        <span class="error" style="display:none;">请选择是否计提</span>
                                    </td>
                                    <td style="background-color: #fff" class="amountText calcHide" th:text="${goods.financingOverdueInterest}" th:ledgerPlanFactoringAssignList="${goods.ledgerPlanFactoringAssignList}"></td>
                                    <td style="background-color: #fff" class="amountText calcHide" th:text="${goods.financingInterest}"></td>
                                    <td style="background-color: #fff" class="amountText calcHide" th:text="${goods.financingManagementFee}"></td>
                                    <td style="background-color: #fff" class="amountText calcHide" th:text="${goods.financingPrincipal}"></td>
                                    <td style="background-color: #fff" class="amountText calcHide" th:text="${goods.accrualAmount}"></td>
                                    <td style="background-color:#fff;" class="amountText calcHide" th:text="${goods.platformProfit}"></td>
                                    <td style="background-color:#fff;" class="amountText calcHide" th:text="${goods.discountAmount}"></td>
                                    <td style="background-color:#fff;" class="amountText calcHide" th:text="${goods.refundManagementFee}"></td>
                                    <td style="background-color:#fff;" class="amountText calcHide" th:text="${goods.refundInterest}"></td>
                                    <td style="background-color:#fff;" >
                                        <span class="viewPlan operateText">查看收支计划</span><br>
                                        <!-- <span class="viewPrice operateText">查看价格</span> -->
                                        <span class="negativeInformationReduce operateText">删除</span>
                                    </td>
                                </tr>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td colspan="24" style="background-color: #fff">
                                        <span class="financingOverdueInterest hide">逾期利息合计：&nbsp;</span><span class="totalFinancingOverdueInterest financingOverdueInterest hide"></span>
                                        <span class="financingInterest hide">&nbsp;&nbsp;&nbsp;&nbsp;融资利息合计：&nbsp;</span><span class="totalFinancingInterest financingInterest hide"></span>
                                        <span class="financingManagementFee hide">&nbsp;&nbsp;&nbsp;&nbsp;融资管理费合计：&nbsp;</span><span class="totalFinancingManagementFee financingManagementFee hide"></span>
                                        <span class="financingPrincipal hide">&nbsp;&nbsp;&nbsp;&nbsp;融资本金合计：&nbsp;</span><span class="totalFinancingPrincipal financingPrincipal hide"></span>
                                        <span class="accrualAmount hide">&nbsp;&nbsp;&nbsp;&nbsp;计提金额合计：&nbsp;</span><span class="totalAccrualAmount accrualAmount hide"></span>
                                        <span class="platformProfit hide">&nbsp;&nbsp;&nbsp;&nbsp;平台利润合计：&nbsp;</span><span class="totalPlatformProfit platformProfit hide"></span>
                                        <span class="discountAmount hide">&nbsp;&nbsp;&nbsp;&nbsp;实退金额合计：&nbsp;</span><span class="totalDiscountAmount discountAmount hide"></span>
                                        <span class="refundManagementFee hide">&nbsp;&nbsp;&nbsp;&nbsp;应退管理费合计：&nbsp;</span><span class="totalRefundManagementFee refundManagementFee hide"></span>
                                        <span class="refundInterest hide">&nbsp;&nbsp;&nbsp;&nbsp;应退利息合计：&nbsp;</span><span class="totalRefundInterest refundInterest hide"></span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                </div>

                <div class="row">
                    <table class="supplierTable">
                        <tr>
                            <td colspan="5">
                                <span class="detailContentBox-tabletitle">资金占用费</span>
                                <span id="addSupplier" class="colorbtn btn possessionCostStatus" style="float: right;">
                                    添加
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">是否分配资金占用费</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <select class="form-control" name="possessionCost">
                                    <option value="">请选择</option>
                                    <option value="1" th:selected="${ledgerAccountInfo?.ledgerAccountBasicInfo?.possessionCost}==true">是</option>
                                    <option value="0" th:selected="${ledgerAccountInfo?.ledgerAccountBasicInfo?.possessionCost}==false">否</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="possessionCostStatus">
                            <td width="20%">
                                <span>供应商名称</span>
                            </td>
                            <td width="15%">
                                <span>分配金额</span>
                            </td>
                            <td width="50%">
                                <span>分配原因</span>
                            </td>
                            <td width="15%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="supplierListTbody possessionCostStatus" style="display: none">
                            <td style="background-color:#fff;" class="enter">
                                <select class="form-control validInput">
                                    <option th:each="supplier,supplierStat:${supplierList}"
                                            th:value="${supplier?.supplierId}"
                                            th:text="${supplier?.supplierName}"></option>
                                </select>
                                <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput amountInput fundPossessionCost">
                                <span class="error" style="display:none;">请输入分配金额</span>
                            </td>
                            <td style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput assignReason">
                                <span class="error" style="display:none;">请输入分配原因</span>
                            </td>
                            <td style="background-color:#fff;">
                                <span class="deleteZijin operateText">-删除</span>
                            </td>
                        </tr>
                        <tbody class="supplierListTable possessionCostStatus">
                            <tr class="supplierListTbody" th:each="supplier,suppliers:${ledgerAccountInfo?.ledgerFundPossessionCostList}">
                                <td style="background-color:#fff;" class="enter">
                                    <select class="form-control validInput" th:value="${supplier?.supplierId}">
                                        <option th:each="supplier,supplierStat:${supplierList}"
                                                th:value="${supplier?.supplierId}"
                                                th:text="${supplier?.supplierName}"></option>
                                    </select>
                                    <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput amountInput fundPossessionCost" th:value="${supplier?.fundPossessionCost}">
                                    <span class="error" style="display:none;">请输入分配金额</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput assignReason" th:value="${supplier?.assignReason}">
                                    <span class="error" style="display:none;">请输入分配原因</span>
                                </td>
                                <td style="background-color:#fff;">
                                    <span class="deleteZijin operateText">-删除</span>
                                </td>
                            </tr>
                        </tbody>
                        <!-- <tr class="possessionCostStatus">
                            <td colspan="5" style="background-color: #fff">
                                &nbsp;&nbsp;&nbsp;&nbsp;总金额合计：<span class="totalZijin"></span>
                            </td>
                        </tr> -->
                    </table>
                </div>

                <div class="row">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">关联收款账号</span>
                                <span id="getMoneyNumber" class="colorbtn btn" style="float: right;">
                                    一键获取收款账号
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="25%">
                                <span>供应商名称</span>
                            </td>
                            <td width="25%">
                                <span>所属银行</span>
                            </td>
                            <td width="25%">
                                <span>账户名称</span>
                            </td>
                            <td width="25%">
                                <span>账号</span>
                            </td>
                        </tr>
                        <tbody class="collectionNumberListTable">
                            <tr class="collectionNumberListTbody" th:each="supplier,suppliers:${ledgerAccountInfo?.ledgerFundPossessionCostList}">
                                <td style="background-color:#fff;" class="enter">
                                    <select class="form-control validInput" th:value="${supplier?.supplierId}">
                                        <option th:each="supplier,supplierStat:${supplierList}"
                                                th:value="${supplier?.supplierId}"
                                                th:text="${supplier?.supplierName}"></option>
                                    </select>
                                    <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput amountInput fundPossessionCost" th:value="${supplier?.fundPossessionCost}">
                                    <span class="error" style="display:none;">请输入所属银行</span>
                                </td>
                                <td style="background-color:#fff;" class="enter">
                                    <input type="text" class="form-control validInput assignReason" th:value="${supplier?.assignReason}">
                                    <span class="error" style="display:none;">请输入账户名称</span>
                                </td>
                                <td style="background-color:#fff;">
                                    <input type="text" class="form-control validInput assignReason" th:value="${supplier?.assignReason}">
                                    <span class="error" style="display:none;">请输入户账号</span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div class="row">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">回款合计</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span>货款金额</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="FrontgoodsAssignAmount" readonly class="form-control amountInput" value="0" >
                            </td>
                            <td width="15%">
                                <span >资金占用费</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" value="0" name="totalZi" readonly class="form-control amountInput">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span>贴现费用</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <input type="text" name="totalSale" readonly th:value="${ledgerAccountInfo?.ledgerAccountBasicInfo?.discountCharge} ? ${ledgerAccountInfo?.ledgerAccountBasicInfo?.discountCharge} : '0' " class="form-control amountInput" >
                            </td>

                        </tr>
                    </table>
                </div>

            </div>
            <div class="yk_addBtns yk_addNewMsg newTabAddUpdateBtnBox">
                <button class="btn btn-white btn-info colorbtn submitTemSave">暂存</button>
                <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/ledgerManage/assign.js"></script>
</html>
