<!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;
        }
    </style>
</head>
<body>
<div class="base-extend">
    <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 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="6%">
                                        <span style="color: #656565;font-weight: 700">编号</span>
                                    </td>
                                    <td width="14%">
                                        <span style="color: #656565;font-weight: 700">验收日期</span>
                                    </td>
                                    <td width="14%">
                                        <span style="color: #656565;font-weight: 700">名称</span>
                                    </td>
                                    <td width="12%">
                                        <span style="color: #656565;font-weight: 700">厂家</span>
                                    </td>
                                    <td width="12%">
                                        <span style="color: #656565;font-weight: 700">型号</span>
                                    </td>
                                    <td width="12%">
                                        <span style="color: #656565;font-weight: 700">单位</span>
                                    </td>
                                    <td width="10%">
                                        <span style="color: #656565;font-weight: 700">数量</span>
                                    </td>
                                    <td width="12%">
                                        <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-chooseGoods2" 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="formForProjectListBox2" 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="chooseGoodsList2" class="tablebox" style="width: 100%;"></table>
                            <div id="chooseGoodsListPage2" class="tablepagebox"></div>

                            <p class="detailContentBox-title" style="margin-top: 20px;display: none">已选货物</p>
                            <table class="chooseGoodsTable2" style="width: 100%!important;display: none">
                                <tr>
                                    <td width="6%">
                                        <span style="color: #656565;font-weight: 700">编号</span>
                                    </td>
                                    <td width="14%">
                                        <span style="color: #656565;font-weight: 700">验收日期</span>
                                    </td>
                                    <td width="14%">
                                        <span style="color: #656565;font-weight: 700">名称</span>
                                    </td>
                                    <td width="12%">
                                        <span style="color: #656565;font-weight: 700">厂家</span>
                                    </td>
                                    <td width="12%">
                                        <span style="color: #656565;font-weight: 700">型号</span>
                                    </td>
                                    <td width="12%">
                                        <span style="color: #656565;font-weight: 700">单位</span>
                                    </td>
                                    <td width="10%">
                                        <span style="color: #656565;font-weight: 700">数量</span>
                                    </td>
                                    <td width="12%">
                                        <span style="color: #656565;font-weight: 700">销售单价</span>
                                    </td>
                                    <td width="8%">
                                        <span style="color: #656565;font-weight: 700">操作</span>
                                    </td>
                                </tr>
                                <tbody class="choosedGoodsList2">

                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default btn-white btn-info colorbtn chooseSure2" 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>

    <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="${businessKey}">
            <input type="hidden" name="taskId" th:value="${taskId}">
            <input type="hidden" name="invoiceBasicInfoId" th:value="${invoiceBasicInfo.id}">
            <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">
                                <!-- <select name="enterpriseName" class="form-control">
                                    <option th:each="supplier,supplierStat:${customers}" th:supplierInfo="${supplier}" th:value="${supplier?.id}" th:text="${supplier?.enterpriseName}"
                                    th:selected="${invoiceBasicInfo?.enterpriseCustomerInfoId==supplier?.id}"
                                    ></option>
                                </select> -->
                                <input type="text" readOnly name="enterpriseName" id="enterpriseName" class="form-control" th:value="${invoiceBasicInfo?.customerName}">
                                <input type="hidden" id="businessNameId" th:value="${invoiceBasicInfo?.enterpriseCustomerInfoId}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">业务名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" readOnly name="businessName" id="businessName" class="form-control" th:value="${invoiceBasicInfo?.businessName}">
                                <input type="hidden" id="businessNameId" th:value="${invoiceBasicInfo?.businessName}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">业务编号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="businessNoHidden" readonly th:value="${invoiceBasicInfo?.businessNumber}" class="form-control">
                                <!-- <select name="businessNo" class="form-control">
                                </select> -->
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">贸易平台</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="hidden" readonly name="tradingPlatformId"  th:value="${invoiceBasicInfo?.tradingPlatformId}">
                                <input type="text" readonly name="platformName" th:value="${invoiceBasicInfo?.tradingPlatformName}" class="form-control">
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="row">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">开票信息</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">公司名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" readonly name="companyName" class="form-control"
                                       th:value="${invoiceBasicInfo?.customerName}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">纳税识别号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="taxIdentifyNumber" class="form-control"
                                       th:value="${invoiceBasicInfo?.taxIdentifyNumber}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">地址</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="address" class="form-control"
                                       th:value="${invoiceBasicInfo?.address}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">电话</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="phone" class="form-control"
                                       th:value="${invoiceBasicInfo?.phone}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">开户行名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="accountBankName" class="form-control"
                                       th:value="${invoiceBasicInfo?.accountBankName}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">开户账号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="accountNumber" class="form-control"
                                       th:value="${invoiceBasicInfo?.accountNumber}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">发票类型</span>：
                            </td>
                            <td width="35%" class="enter">
                                <select name="invoiceType" class="form-control" tag:option="invoiceType" th:value="${invoiceBasicInfo?.invoiceType}"></select>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">金额种类</span>：
                            </td>
                            <td width="35%" class="enter">
                                <select name="amountKind" class="form-control" tag:option="amountKind" th:value="${invoiceBasicInfo?.amountKind}"></select>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="">开票金额</span>：
                            </td>
                            <td width="35%" class="enter" >
                                <input type="text" name="openAmount" readonly class="form-control" th:value="${invoiceBasicInfo?.openAmount}">
                                <i class="viewDetailWord">元</i>
                            </td>
                            <td width="15%">
                                <span class="">备注信息</span>：
                            </td>
                            <td width="35%"  class="enter" style="border-bottom: 1px solid #E8F0F3;">
                                <textarea class="form-control" style="resize:none;" name="remark" th:text="${invoiceBasicInfo?.remark}" rows="2"
                                          maxlength="500"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="row huokuan" style="display: none">
                    <table class="goodsTable">
                        <tr>
                            <td colspan="15">
                                <span class="detailContentBox-tabletitle">货物信息</span>
                                <span id="chooseButton" class="colorbtn btn" style="float: right;">
                                    选择已结算货物
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="5%">
                                <span>编号</span>
                            </td>
                            <td width="8%">
                                <span>结算单号</span>
                            </td>
                            <td width="8%">
                                <span>名称</span>
                            </td>
                            <td width="8%">
                                <span>型号</span>
                            </td>
                            <td width="8%">
                                <span>单位</span>
                            </td>
                            <td width="7%">
                                <span>数量</span>
                            </td>
                            <td width="10%">
                                <span>销售单价</span>
                            </td>
                            <td width="10%">
                                <span>销售总价 </span>
                            </td>
                            <td width="10%">
                                <span>已开票数量</span>
                            </td>
                            <td width="11%">
                                <span>本次开票数量</span>
                            </td>
                            <td width="10%">
                                <span>本次开票金额</span>
                            </td>
                            <td width="6%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="goodsListTbody" style="display: none">
                            <td width="5%" style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td width="8%" style="background-color:#fff;">

                            </td>
                            <td width="8%" style="background-color:#fff;">

                            </td>
                            <td width="8%" style="background-color:#fff;">

                            </td>
                            <td width="8%" style="background-color:#fff;">

                            </td>
                            <td width="7%" style="background-color:#fff;">

                            </td>
                            <td width="10%" style="background-color:#fff;" >
                                <input type="text" class="form-control validInput amountInput">
                                <span class="error" style="display:none;">请填写销售单价</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="amountInput">
                                <input type="text" class="form-control validInput amountInput">
                                <span class="error" style="display:none;">请填写销售总价</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" >
                                <input type="text" class="form-control validInput invoicedQuantity">
                                <span class="error" style="display:none;">请填写已开票数量</span>
                            </td>
                            <td width="11%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput openQuantity" oninput="value=value.toString().match(/^\d+(?:\.\d{0,4})?/)">
                                <span class="error" style="display:none;">请填写开票数量</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput amountInput openAmount" readonly>
                                <span class="error" style="display:none;">请填写开票金额</span>
                            </td>
                            <td width="6%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        <tbody class="goodsListTable">
                        <tr class="goodsListTbody goodsListTbodyBack" th:if="${invoiceBasicInfo?.amountKindDic?.name=='货款'}"
                            th:each="goods,goodsStat:${invoiceBasicInfo?.invoiceGoodsInfos}" th:id="${goods?.settlementBasicInfoId}">
                            <td width="3%" style="background-color:#fff;">
                                <span th:text="${goodsStat.count}"></span>
                            </td>
                            <td width="8%" style="background-color:#fff;" th:text="${goods?.settlementNumber}"  th:settlementBasicInfoId="${goods?.settlementBasicInfoId}" th:id="${goods?.settlementGoodsInfoId}" th:goodsFactory="${goods?.settlementGoodsInfoId}">
                            </td>
                            <td width="8%" style="background-color:#fff;" th:text="${goods?.goodsName}">
                            </td>
                            <td width="8%" style="background-color:#fff;" th:text="${goods?.goodsType}">
                            </td>
                            <td width="8%" style="background-color:#fff;" th:text="${goods?.goodsUnit}">
                            </td>
                            <td width="7%" style="background-color:#fff;" th:text="${#numbers.formatDecimal(goods?.goodsQuantity,1,4)}">
                            </td>
                            <td width="10%" style="background-color:#fff;" th:text="${#numbers.formatDecimal(goods?.salesPrice,1,2)}">

                            </td>
                            <td width="10%" style="background-color:#fff;" th:text="${#numbers.formatDecimal(goods?.salesTotalPrice,1,2)}">
                            </td>
                            <td width="10%" style="background-color:#fff;" th:text="${#numbers.formatDecimal(goods?.usedNum,1,4)}">
                            </td>
                            <td width="11%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput openQuantity"
                                       oninput="value=value.toString().match(/^\d+(?:\.\d{0,4})?/)"
                                       th:value="${#numbers.formatDecimal(goods?.openQuantity,1,4)}">
                                <span class="error" style="display:none;">请填写开票数量</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput amountInput openAmount"
                                       readonly
                                       th:value="${#numbers.formatDecimal(goods?.openAmount,1,2)}">
                                <span class="error" style="display:none;">请填写开票金额</span>
                            </td>
                            <td width="6%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        </tbody>
                        <tbody>
                        <tr>
                            <td colspan="12" style="background-color: #fff">
                                &nbsp;&nbsp;&nbsp;&nbsp;总金额合计：<span class="totalAmount"></span>
                                &nbsp;&nbsp;&nbsp;&nbsp;本次开票数量合计：<span class="totalInvoicing"></span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="row huokuan" 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="hidden" name="possessionCostTypeHidden" th:value="${invoiceBasicInfo?.invoicePossessionCostInfos?.possessionCostType}">
                                <select name="possessionCostType"  class="form-control validInput">
                                    <option value="">请选择资金占用类型</option>
                                    <option value="0">无</option>
                                    <option value="1">有，货物加价款</option>
                                </select>
                            </td>
                            <td width="15%" class="possessionCostHide">
                                <span class="required_fileds_star">资金占用费</span>：
                            </td>
                            <td width="35%" class="enter possessionCostHideInput">
                                <input type="text" name="possessionCost" th:value="${invoiceBasicInfo?.invoicePossessionCostInfos?.possessionCost}" class="form-control amountInput possessionCost" >
                                <i class="viewDetailWord">元</i>
                            </td>
                        </tr>
                    </table>
                </div>

                <!--    贴现费用    -->
                <div class="row tiexian" style="display: none">
                    <table class="goodsTable2">
                        <tr>
                            <td colspan="10">
                                <span class="detailContentBox-tabletitle">发票货物信息</span>
                                <span id="chooseButton2" class="colorbtn btn" style="float: right;">
                                    选择货物
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="10%">
                                <span>编号</span>
                            </td>
                            <td width="20%">
                                <span>名称</span>
                            </td>
                            <td width="20%">
                                <span>型号</span>
                            </td>
                            <td width="20%">
                                <span>单位</span>
                            </td>
                            <td width="20%">
                                <span>开票金额</span>
                            </td>
                            <td width="10%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="goodsListTbody2" style="display: none">
                            <td width="10%" style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td width="20%" style="background-color:#fff;">
                            </td>
                            <td width="20%" style="background-color:#fff;">
                            </td>
                            <td width="20%" style="background-color:#fff;">
                            </td>
                            <td width="20%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput openAmount" oninput="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                <i class="viewDetailWord">元</i>
                                <span class="error" style="display:none;">请填写开票金额</span>
                            </td>
                            <td width="10%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        <tbody class="goodsListTable2">
                        <tr class="goodsListTbody2 goodsListTbodyBack2" th:if="${invoiceBasicInfo?.amountKindDic?.name=='贴现费用'}"
                            th:each="goods,goodsStat:${invoiceBasicInfo?.invoiceGoodsInfos}" >
                            <td width="10%" style="background-color:#fff;">
                                <span th:text="${goodsStat.count}"></span>
                            </td>
                            </td>
                            <td width="20%" style="background-color:#fff;" th:text="${goods?.goodsName}" th:settlementBasicInfoId="${goods?.settlementBasicInfoId}">
                            </td>
                            <td width="20%" style="background-color:#fff;" th:text="${goods?.goodsType}">
                            </td>
                            <td width="20%" style="background-color:#fff;" th:text="${goods?.goodsUnit}">
                            </td>
                            <td width="20%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput openAmount"
                                       th:value="${#numbers.formatDecimal(goods?.openAmount,1,2)}"
                                       oninput="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                       <i class="viewDetailWord">元</i>
                                <span class="error" style="display:none;">请填写开票金额</span>
                            </td>
                            <td width="6%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        </tbody>
                        <tbody>
                        <tr>
                            <td colspan="6" style="background-color: #fff">
                                &nbsp;&nbsp;&nbsp;&nbsp;总金额合计：<span class="totalAmount2"></span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>

                <div class="row zijin" style="display: none">
                    <table class="supplierTable">
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">发票供应商信息</span>
                                <span id="addSupplier" class="colorbtn btn" style="float: right;">
                                    添加
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="12%">
                                <span>编号</span>
                            </td>
                            <td width="50%">
                                <span>供应商名称</span>
                            </td>
                            <td width="25%">
                                <span>开票金额</span>
                            </td>
                            <td width="13%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="supplierListTbody" style="display: none">
                            <td width="12%" style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td width="50%" style="background-color:#fff;" class="enter">
                                <select name="supplierId" class="form-control">
                                    <option th:each="supplier,supplierStat:${suppliers}"
                                            th:value="${supplier?.supplierId}" th:text="${supplier?.supplierName}"></option>
                                </select>
                                <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                            </td>
                            <td width="25%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput openAmount" oninput="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                <i class="viewDetailWord">元</i>
                                <span class="error" style="display:none;">请填写开票金额</span>
                            </td>
                            <td width="13%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        <tbody class="supplierListTable">
                        <tr class="supplierListTbody supplierListTbodyBack" th:if="${invoiceBasicInfo?.amountKindDic?.name=='资金占用费'}"
                            th:each="goods,goodsStat:${invoiceBasicInfo?.invoiceSupplierInfos}">
                            <td width="12%" style="background-color:#fff;">
                                <span th:text="${goodsStat.count}"></span>
                            </td>
                            <td width="50%" style="background-color:#fff;" class="enter">
                                <select name="supplierId" class="form-control" th:supplierId="${goods?.supplierId}">
                                    <option th:each="supplier,supplierStat:${suppliers}"
                                            th:value="${supplier?.supplierId}" th:text="${supplier?.supplierName}" th:seletced="${goods?.supplierId}"></option>
                                </select>
                                <span class="error" style="display:none;font-size:0.12rem;">请选择供应商</span>
                            </td>
                            <td width="25%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput openAmount"
                                       th:value="${#numbers.formatDecimal(goods?.openAmount,1,2)}"
                                       oninput="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                       <i class="viewDetailWord">元</i>
                                <span class="error" style="display:none;">请填写开票金额</span>
                            </td>
                            <td width="13%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        </tbody>
                        <tbody>
                        <tr>
                            <td colspan="4" style="background-color: #fff">
                                &nbsp;&nbsp;&nbsp;&nbsp;总金额合计：<span class="totalAmount3"></span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>

                <!-- <div class="row oldFile">
                    <div class="saleContractFile" style="display:none"
                         th:each="file,files:${salesContractFiles}">
                        <input type="text" class="originalId" th:value="${file?.id}">
                        <input type="text" class="originalUrl" th:value="${file?.path}">
                        <input type="text" class="originalType" th:value="${file?.fileType}">
                        <input type="text" class="originalName" th:value="${file?.originalName}">
                        <input type="text" class="originalSize" th:value="${file?.size}">
                    </div>
                    <div class="purchContractFile" style="display:none"
                         th:each="file,files:${purchContractFiles}">
                        <input type="text" class="originalId" th:value="${file?.id}">
                        <input type="text" class="originalUrl" th:value="${file?.path}">
                        <input type="text" class="originalType" th:value="${file?.fileType}">
                        <input type="text" class="originalName" th:value="${file?.originalName}">
                        <input type="text" class="originalSize" th:value="${file?.size}">
                    </div>
                    <table class="fileInfoListBox">
                        <tr>
                            <td colspan="3">
                                <span class="detailContentBox-tabletitle">合同信息</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">销售合同信息</span>：
                            </td>
                            <td class="enter saleAddFileList">
                                <input type="file" name="file" class="fileinput" multiple style="display:none">
                                <div class="uploaderFile">
                                    <div class="fileContent">
                                        <span class="spanHolder">上传附件</span>
                                    </div>
                                </div>
                                <span class="error" style="display:none;">请上传附件</span>
                            </td>
                            <td width="13%" class="choiceFile" style="text-align:center;">
                                +上传附件
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">采购合同信息</span>：
                            </td>
                            <td class="enter purchAddFileList">
                                <input type="file" name="file" class="fileinput" multiple style="display:none">
                                <div class="uploaderFile">
                                    <div class="fileContent">
                                        <span class="spanHolder">上传附件</span>
                                    </div>
                                </div>
                                <span class="error" style="display:none;">请上传附件</span>
                            </td>
                            <td width="13%" class="choiceFile" style="text-align:center;">
                                +上传附件
                            </td>
                        </tr>
                    </table>
                </div> -->

                <div class="row file">
                    <!-- 附件信息回显 -->
                    <div class="fileInfoListOriginal" style="display:none"
                         th:each="file,files:${invoiceBasicInfo?.files}">
                        <input type="text" class="originalId" th:value="${file?.id}">
                        <input type="text" class="originalUrl" th:value="${file?.path}">
                        <input type="text" class="originalType" th:value="${file?.fileType}">
                        <input type="text" class="originalName" th:value="${file?.originalName}">
                        <input type="text" class="originalSize" th:value="${file?.size}">
                    </div>
                    <table class="fileInfoListBox">
                        <tr>
                            <td colspan="3">
                                <span class="detailContentBox-tabletitle">采购发票信息</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">采购发票附件</span>：
                            </td>
                            <td class="enter addFileList">
                                <input type="file" name="file" class="fileinput" multiple style="display:none">
                                <div class="uploaderFile">
                                    <div class="fileContent">
                                        <span class="spanHolder">上传附件</span>
                                    </div>
                                </div>
                                <span class="error" style="display:none;">请上传附件</span>
                            </td>
                            <td width="13%" class="choiceFile" style="text-align:center;">
                                +上传附件
                            </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/saleInvoiceManage/update.js"></script>
</html>
