<!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;
        }

        #importForm .form-group {
            margin-top: 0.2rem;
            padding: 0 0.2rem;
        }

        .import_chooseFile {
            border: none;
            color: #fff;
            background-color: #52AEDC;
            text-shadow: none;
            width: 90%
        }

        #downloadDiv > div, #uploader_file .col-xs-3 {
            line-height: 0.32rem;
            /* text-align: center; */
            white-space: nowrap
        }

        .import_chooseFile:hover {
            color: #fff;
            background-color: #52AEDC;
            border-color: none;
            -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
            box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
        }

        #downloadDiv > a {
            position: relative;
            min-height: 0.32rem;
            margin-bottom: 0.1rem;
            border: 1px solid #ddd;
            text-align: center;
            line-height: 0.32rem;
            color: #ddd;
        }

        .uploaderFile_hidden {
            position: absolute;
            left: 0.1rem;
            top: 0px;
            width: 70%;
            height: 0.3rem;
            opacity: 0
        }

        #uploader_file .filelist > .content {
            margin-top: 0.07rem;
            margin-bottom: 0.07rem;
        }

        #uploader_file .filelist > .content > .file-size {
            float: right;
        }

        #uploader_file .filelist {
            height: auto;
            border: 1px solid #ddd;
            min-height: 0.34rem;
        }

        #sign_loaderFile span {
            display: block
        }

        #sign_loaderFile span label:after {
            content: "*";
            color: red;
            display: inline-block;
            margin-right: 0.1rem;
            margin-left: 0.1rem;
        }

        .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:10.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="5%">
                                        <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="14%">
                                        <span style="color: #656565;font-weight: 700">型号</span>
                                    </td>
                                    <td width="13%">
                                        <span style="color: #656565;font-weight: 700">单位</span>
                                    </td>
                                    <td width="13%">
                                        <span style="color: #656565;font-weight: 700">数量</span>
                                    </td>
                                    <td width="13%">
                                        <span style="color: #656565;font-weight: 700">销售单价</span>
                                    </td>
                                    <td width="10%">
                                        <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>

    <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="contractEntryForm" autocomplete="off">
            <input type="hidden" name="basicId" th:value="${purchContractInfo?.businessKey}">
            <input type="hidden" name="purchContractBasicInfoId" th:value="${purchContractInfo?.purchContractBasicInfo?.id}">
            <input type="hidden" name="taskId" th:value="${taskId}">
            <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="text" name="enterpriseName" readonly
                                       th:value="${purchContractInfo?.businessBasicInfo?.customer?.enterpriseName}"
                                       class="form-control">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">贸易平台</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="creatTime" readonly
                                    th:value="${purchContractInfo?.businessBasicInfo?.platform?.platformName}"
                                       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="businessName" readonly
                                       th:value="${purchContractInfo?.businessBasicInfo?.name}"
                                       class="form-control">
                            </td>
                            <td width="15%">
                                <span class="">业务编号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" readonly name="businessNo"
                                       th:value="${purchContractInfo?.businessBasicInfo?.businessNumber}"
                                       class="form-control">
                            </td>
                            <!-- <td width="15%">
                                <span class="required_fileds_star">创建时间</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="creatTime" readonly
                                       th:value="${#calendars.format(purchContractInfo?.businessBasicInfo?.gmtCreate,'yyyy-MM-dd')}"
                                       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="">合同编号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input maxlength="50" type="text" name="contractNumber" class="form-control"
                                       th:value="${purchContractInfo?.purchContractBasicInfo?.contractNumber}" readonly>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">合同名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input  maxlength="50" type="text" name="contractName" class="form-control"
                                       th:value="${purchContractInfo?.purchContractBasicInfo?.contractName}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">供应商名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="supplierName" readonly
                                       th:value="${purchContractInfo?.customer?.enterpriseName}"
                                       class="form-control">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">需方公司名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="buyerName" readonly
                                       th:value="${purchContractInfo?.businessBasicInfo?.platform?.platformName}"
                                       class="form-control">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">采购合同期限</span>：
                            </td>
                            <td width="35%" class="enter">
                                <!-- 采购合同期限取消校验规则  onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" min="0"-->
                                <input name="contractPeriod"  class="form-control" th:value="${purchContractInfo?.purchContractBasicInfo?.contractPeriod}">
                                <!-- <i class="viewDetailWord">天</i> -->
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">回购方式</span>：
                            </td>
                            <td width="35%" class="enter">
                                <select name="repurchMethod" class="form-control"
                                        tag:option="purchContractRepurchMethod"
                                        th:value="${purchContractInfo?.purchContractBasicInfo?.repurchMethodDic?.id}"></select>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">合同约定金额类型</span>：
                            </td>
                            <td width="35%" class="enter">
                                <select name="contractPlanAmountType" class="form-control"
                                        tag:option="salesContractPlanAmountType"
                                        th:value="${purchContractInfo?.purchContractBasicInfo?.contractPlanAmountTypeDic?.id}"></select>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">合同约定金额</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="contractPlanAmount" class="form-control amountInput"
                                       th:value="${purchContractInfo?.purchContractBasicInfo?.contractPlanAmount}">
                                <i class="viewDetailWord">元</i>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="row">
                    <table class="paymentTable">
                        <tr>
                            <td colspan="3">
                                <span class="detailContentBox-tabletitle">付款条件</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="12%">
                                <span>编号</span>
                            </td>
                            <td width="75%">
                                <span>付款条件</span>
                            </td>
                            <td width="13%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tbody>
                        <tr class="paymentListTbody">
                            <td width="12%" style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td width="75%" style="background-color:#fff;" class="enter">
                                <input type="text" name="paymentCondition" maxlength="500"
                                       class="form-control paymentCondition">
                                <span class="error" style="display:none;font-size:0.12rem;">请输入付款条件</span>
                            </td>
                            <td width="13%" style="background-color:#fff;">
                                <span class="negativeInformationPlus">+添加</span>
                                <span class="negativeInformationReduce">-删除</span>
                            </td>
                        </tr>
                        <tr class="paymentListTbody paymentListTbodyBack"
                            th:each="paymentTerm,paymentTermStat:${purchContractInfo?.purchContractPaymentCondition}">
                            <td width="12%" style="background-color:#fff;">
                                <span th:text="${paymentTermStat.count}"></span>
                            </td>
                            <td width="75%" style="background-color:#fff;" class="enter">
                                <input type="text" name="paymentCondition" maxlength="500"
                                       class="form-control paymentCondition" th:value="${paymentTerm.paymentCondition}">
                                <span class="error" style="display:none;font-size:0.12rem;">请输入付款条件</span>
                            </td>
                            <td width="13%" style="background-color:#fff;">
                                <span class="negativeInformationPlus">+添加</span>
                                <span class="negativeInformationReduce">-删除</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 class="required_fileds_star">发货时间</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="deliveryDate" class="form-control"
                                       th:value="${purchContractInfo?.purchContractSettleCycle?.deliveryDate}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">签收时间</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="signDate" class="form-control"
                                       th:value="${purchContractInfo?.purchContractSettleCycle?.signDate}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">第一次结算时间</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <input type="text" readonly name="firstSettleDate" class="form-control"
                                       th:value="${#calendars.format(purchContractInfo?.purchContractSettleCycle?.firstSettleDate,'yyyy-MM-dd')}">
                            </td>
                        </tr> -->
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">结算周期方式</span>：
                            </td>
                            <td width="35%" class="enter">
                                <select name="settleCycleMethodDict" class="form-control"
                                        tag:option="salesContractSettleCycleMethod"
                                        th:value="${purchContractInfo?.purchContractSettleCycle?.settleCycleMethodDict?.id}"></select>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">结算周期</span>：
                            </td>
                            <td width="35%" class="enter">
                                <i class="prevDetailWord" style="width: 0.95rem">上一次结算后</i>
                                <input type="number" min="0" name="settleCycle" class="form-control"
                                       style="padding-left: 0.95rem;padding-right: 0.75rem"
                                       th:value="${purchContractInfo?.purchContractSettleCycle?.settleCycle}">
                                <i class="viewDetailWord">个自然月</i>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">约定回款时间</span>：
                            </td>
                            <td width="35%" class="enter">
                                <i class="prevDetailWord" style="width: 0.6rem">结算后</i>
                                <input type="number" min="0" name="planPaybackDays" class="form-control"
                                       style="padding-left: 0.6rem;padding-right: 0.75rem"
                                       th:value="${purchContractInfo?.purchContractSettleCycle?.planPaybackDays}">
                                <i class="viewDetailWord">天</i>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">结算最低差额</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="settleMinAmount" class="form-control amountInput"
                                        style="padding-right: 0.75rem"
                                        th:value="${ #numbers.formatDecimal(purchContractInfo?.purchContractSettleCycle?.settleMinAmount, 0,0)}">
                                <i class="viewDetailWord">元</i>
                            </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">
                                <select name="retention" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1"
                                            th:selected="${purchContractInfo?.purchContractRetentionInfo?.retention==1}">
                                        是
                                    </option>
                                    <option value="0"
                                            th:selected="${purchContractInfo?.purchContractRetentionInfo?.retention==0}">
                                        否
                                    </option>
                                </select>
                            </td>
                            <td width="15%" class="retentionTr">
                                <span class="required_fileds_star">质保金比例</span>：
                            </td>
                            <td width="35%" class="enter retentionTr">
                                <input type="text" name="retentionPercent" class="form-control"
                                       th:value="${purchContractInfo?.purchContractRetentionInfo?.retentionPercent}">
                                <i class="viewDetailWord">%</i>
                            </td>
                        </tr>
                        <tr class="retentionTr">
                            <td width="15%">
                                <span class="required_fileds_star">质保金是否有上限</span>：
                            </td>
                            <td width="35%" class="enter">
                                <select name="hasLimit" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1"
                                            th:selected="${purchContractInfo?.purchContractRetentionInfo?.hasLimit==1}">是
                                    </option>
                                    <option value="0"
                                            th:selected="${purchContractInfo?.purchContractRetentionInfo?.hasLimit==0}">否
                                    </option>
                                </select>
                            </td>
                            <td width="15%" class="retentionLimitTr">
                                <span class="required_fileds_star">质保金上限</span>：
                            </td>
                            <td width="35%" class="enter retentionLimitTr">
                                <input type="text" name="retentionLimit" class="form-control amountInput"
                                       th:value="${purchContractInfo?.purchContractRetentionInfo?.retentionLimit}">
                                <i class="viewDetailWord">元</i>
                            </td>
                        </tr>
                        <tr class="retentionTr">
                            <td width="15%">
                                <span class="required_fileds_star">质保金释放时间</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <select name="releaseMethodDict" class="form-control"
                                        tag:option="salesContractReleaseMethod"
                                        th:value="${purchContractInfo?.purchContractRetentionInfo?.releaseMethodDict?.id}"></select>
                            </td>
                            <td width="15%" class="releaseDate" hidden>
                                <span class="required_fileds_star">释放日期</span>：
                            </td>
                            <td width="35%" class="enter releaseDate" hidden>
                                <input type="text" readonly name="releaseDate" class="form-control"
                                       th:value="${#calendars.format(purchContractInfo?.purchContractRetentionInfo?.releaseDate,'yyyy-MM-dd')}">
                            </td>
                            <td width="15%" class="releaseDays" hidden>
                                <span class="required_fileds_star">释放天数</span>：
                            </td>
                            <td width="35%" class="enter releaseDays" hidden>
                                <input type="text" name="releaseDays" class="form-control"
                                       th:value="${purchContractInfo?.purchContractRetentionInfo?.releaseDays}">
                                <i class="viewDetailWord">天</i>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="row">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">价格规则</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">利差计算方式</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <select name="accrualMarginCalcMethod" class="form-control"
                                        tag:option="purchAccrualMarginCalcMethod"
                                        th:value="${purchContractInfo?.purchContractPriceRule?.accrualMarginCalcMethodDict?.id}"></select>
                            </td>
                        </tr>
                        <tr  class="chaTr" style="display: none">
                            <td width="15%" >
                                <span class="required_fileds_star">差额</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <input type="text" name="differAmount" class="form-control amountInput"
                                       th:value="${purchContractInfo?.purchContractPriceRule?.differAmount}">
                                <i class="viewDetailWord">元</i>
                            </td>
                        </tr>
                        <tr class="rateTr" style="display: none">
                            <td width="15%">
                                <span class="required_fileds_star">贸易平台报价/年</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="tradePlatformOffer" class="form-control"
                                        th:value="${purchContractInfo?.purchContractPriceRule?.tradePlatformOffer}">
                                <i class="viewDetailWord">%</i>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">保理报价/年</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="factoringOffer" class="form-control"
                                       th:value="${purchContractInfo?.purchContractPriceRule?.factoringOffer}">
                                <i class="viewDetailWord">%</i>
                            </td>
                        </tr>
                        <tr class="rateTr" style="display: none">
                            <td width="15%">
                                <span class="required_fileds_star">预估保理融资期限</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="number" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
                                       name="factoringFinanceDeadline" min="0" class="form-control"
                                       th:value="${purchContractInfo?.purchContractPriceRule?.factoringFinanceDeadline}">
                                       <i class="viewDetailWord">天</i>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">月利率</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="monthlyInterestRate" class="form-control"
                                       th:value="${purchContractInfo?.purchContractPriceRule?.monthlyInterestRate}">
                                <i class="viewDetailWord">%</i>
                            </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" name="startDate" class="form-control" readonly
                                       value="底层创建日期">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">结束日期</span>：
                            </td>
                            <td width="35%" class="enter">
                                <i class="prevDetailWord" style="width: 0.6rem">结算后</i>
                                <input type="number" min="0" name="endDate" class="form-control"
                                       style="padding-left: 0.6rem;padding-right: 0.75rem"
                                       th:value="${purchContractInfo?.purchContractArExp?.endDate}">
                                <i class="viewDetailWord">天</i>
                            </td>
                        </tr>
                    </table>
                </div> -->

                <div class="row">
                    <table class="goodsTable">
                        <tr>
                            <td colspan="10">
                                <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="10%">
                                <span>名称</span>
                            </td>
                            <td width="15%">
                                <span>厂家</span>
                            </td>
                            <td width="15%">
                                <span>型号</span>
                            </td>
                            <td width="10%">
                                <span>单位</span>
                            </td>
                            <td width="10%">
                                <span>数量</span>
                            </td>
                            <td width="10%">
                                <span>暂定单价</span>
                            </td>
                            <td width="14%">
                                <span>备注</span>
                            </td>
                            <td width="10%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="goodsListTbody" style="display: none">
                            <td width="5%" style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput" >
                                <span class="error" style="display:none;">请填写名称</span>
                            </td>
                            <td width="15%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput">
                                <span class="error" style="display:none;">请填写厂家</span>
                            </td>
                            <td width="15%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput">
                                <span class="error" style="display:none;">请填写型号</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput">
                                <span class="error" style="display:none;">请填写单位</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput">
                                <span class="error" style="display:none;">请填写数量</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" oninput="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)" readonly class="form-control validInput">
                                <span class="error" style="display:none;">请填写暂定单价</span>
                            </td>
                            <td width="14%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control">
                            </td>
                            <td width="10%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">-删除</span>
                            </td>
                        </tr>
                        <tbody class="goodsListTable">
                        <tr class="goodsListTbody goodsListTbodyBack"
                            th:each="goods,goodsStat:${purchContractInfo?.purchContractGoodsInfo}" th:id="${goods?.salesContractGoodsInfoId}">
                            <td width="5%" style="background-color:#fff;">
                                <span th:text="${goodsStat.count}"></span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput"
                                       th:goodsId="${goods?.salesContractGoodsInfoId}"
                                       th:supplement="${goods?.supplement}"
                                       th:value="${goods?.salesContractGoodsInfo?.goodsName}">
                                <span class="error" style="display:none;">请填写名称</span>
                            </td>
                            <td width="15%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput"
                                       th:value="${goods?.salesContractGoodsInfo?.goodsFactory}">
                                <span class="error" style="display:none;">请填写厂家</span>
                            </td>
                            <td width="15%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput"
                                       th:value="${goods?.salesContractGoodsInfo?.modelNumber}">
                                <span class="error" style="display:none;">请填写型号</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" readonly class="form-control validInput"
                                       th:value="${goods?.salesContractGoodsInfo?.units}">
                                <span class="error" style="display:none;">请填写单位</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput"
                                       th:value="${goods?.quantity}">
                                <span class="error" style="display:none;">请填写数量</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" oninput="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)" readonly class="form-control validInput"
                                       th:value="${goods?.price} == '不明确' ? '不明确' : ${#numbers.formatDecimal(goods?.price,1,2)}">
                                <span class="error" style="display:none;">请填写暂定单价</span>
                            </td>
                            <td width="14%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control" th:value="${goods?.remark}">
                            </td>
                            <td width="10%" style="background-color:#fff;">
                                <!-- <span class="negativeInformationPlus">+添加</span> -->
                                <span class="negativeInformationReduce">-删除</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 class="required_fileds_star">价款说明</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" maxlength="50" name="priceComment" th:value="${purchContractInfo?.purchContractVatInfo?.priceComment}" class="form-control" >
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">税率</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input  type="number" min="0" name="taxRate" th:value="${purchContractInfo?.purchContractVatInfo?.taxRate}" class="form-control">
                                <i class="viewDetailWord">%</i>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">发票类型</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <select name="receiptType" class="form-control"
                                    tag:option="invoiceType"
                                    th:value="${purchContractInfo?.purchContractVatInfo?.receiptType}">
                                </select>
                            </td>
                            <!-- <td width="15%">
                                <span class="required_fileds_star">开票周期</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text " name="openCycle" th:value="${purchContractInfo?.purchContractVatInfo?.openCycle}"  maxlength="50" 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="openBank" th:value="${purchContractInfo?.purchContractVatInfo?.openBank}" maxlength="50" class="form-control">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">发票账号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="receiptAccount" th:value="${purchContractInfo?.purchContractVatInfo?.receiptAccount}" maxlength="50" class="form-control">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">
                                <span class="required_fileds_star">发票备注</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <textarea
                                    class="form-control"
                                    style="resize:none;"
                                    name="receiptRemark"
                                    rows="3"
                                    maxlength="500"
                                    th:text="${purchContractInfo?.purchContractVatInfo?.receiptRemark}"
                                ></textarea>
                            </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">
                                <select name="settleMethod" class="form-control"
                                        tag:option="purchContractSettleMethod"
                                        th:value="${purchContractInfo?.purchContractSettlePayment?.settleMethod}">
                                </select>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">付款方式</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text"  name="paymentMethod"  th:value="${purchContractInfo?.purchContractSettlePayment?.paymentMethod}" maxlength="500" class="form-control">
                                <!-- <select name="paymentMethod" class="form-control"
                                        tag:option="purchContractPaymentMethod"
                                        th:value="${purchContractInfo?.purchContractSettlePayment?.paymentMethod}">
                                </select> -->
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">供应商收款账户名</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text"  name="bankAccountName" th:value="${purchContractInfo?.purchContractSettlePayment?.bankAccountName}" maxlength="100" class="form-control">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">收款账号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text"  name="bankAccount"  th:value="${purchContractInfo?.purchContractSettlePayment?.bankAccount}" maxlength="100" class="form-control">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">收款账号开户行</span>：
                            </td>
                            <td colspan="3"class="enter">
                                <input type="text" name="bankName"  th:value="${purchContractInfo?.purchContractSettlePayment?.bankName}" maxlength="100" class="form-control">
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="row">
                    <table class="demandTable">
                        <tr>
                            <td colspan="10">
                                <span class="detailContentBox-tabletitle">需方收货人</span>
                                <span id="demandAddBtn" class="colorbtn btn" style="float: right;">
                                    添加
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="5%">
                                <span>编号</span>
                            </td>
                            <td width="15%">
                                <span>姓名</span>
                            </td>
                            <td width="45%">
                                <span>身份证号</span>
                            </td>
                            <td width="25%">
                                <span>联系方式</span>
                            </td>
                            <td width="10%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="demandListTbody" style="display: none">
                            <td width="5%" style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td width="15%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50"  class="form-control validInput">
                                <span class="error" style="display:none;">请填写姓名</span>
                            </td>
                            <td width="45%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control validInput">
                                <span class="error" style="display:none;">请填写身份证号</span>
                            </td>
                            <td width="25%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control validInput">
                                <span class="error" style="display:none;">请填写联系方式</span>
                            </td>
                            <td width="10%" style="background-color:#fff;">
                                <!--                                <span class="negativeInformationPlus">+添加</span>-->
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        <tbody class="demandListTable">
                        <tr class="demandListTbody demandListTbodyBack"
                            th:each="demand,demandStat:${purchContractInfo?.buyers}">
                            <td width="5%" style="background-color:#fff;">
                                <span th:text="${demandStat.count}"></span>
                            </td>
                            <td width="15%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control validInput"
                                       th:value="${demand?.name}">
                                <span class="error" style="display:none;">请填写姓名</span>
                            </td>
                            <td width="45%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control validInput"
                                       th:value="${demand?.idCard}">
                                <span class="error" style="display:none;">请填写身份证号</span>
                            </td>
                            <td width="25%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control validInput"
                                       th:value="${demand?.contact}">
                                <span class="error" style="display:none;">请填写联系方式</span>
                            </td>
                            <td width="10%" style="background-color:#fff;">
                                <!--                                <span class="negativeInformationPlus">+添加</span>-->
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>

                <div class="row">
                    <table class="supplierTable">
                        <tr>
                            <td colspan="10">
                                <span class="detailContentBox-tabletitle">供应商发货人</span>
                                <span id="supplierAddBtn" class="colorbtn btn" style="float: right;">
                                    添加
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="5%">
                                <span>编号</span>
                            </td>
                            <td width="15%">
                                <span>姓名</span>
                            </td>
                            <td width="45%">
                                <span>身份证号</span>
                            </td>
                            <td width="25%">
                                <span>联系方式</span>
                            </td>
                            <td width="10%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tr class="supplierListTbody" style="display: none">
                            <td width="5%" style="background-color:#fff;">
                                <span>1</span>
                            </td>
                            <td width="15%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control validInput">
                                <span class="error" style="display:none;">请填写姓名</span>
                            </td>
                            <td width="45%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50"  class="form-control validInput">
                                <span class="error" style="display:none;">请填写身份证号</span>
                            </td>
                            <td width="25%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control validInput">
                                <span class="error" style="display:none;">请填写联系方式</span>
                            </td>
                            <td width="10%" style="background-color:#fff;">
                                <span class="negativeInformationReduce">删除</span>
                            </td>
                        </tr>
                        <tbody class="supplierListTable">
                            <tr class="supplierListTbody goodsListTbodyBack"
                                th:each="supplier,supplierStat:${purchContractInfo?.sellers}">
                                <td width="5%" style="background-color:#fff;">
                                    <span th:text="${supplierStat.count}"></span>
                                </td>
                                <td width="15%" style="background-color:#fff;" class="enter">
                                    <input type="text" maxlength="50"  class="form-control validInput"
                                        th:value="${supplier?.name}">
                                    <span class="error" style="display:none;">请填写姓名</span>
                                </td>
                                <td width="45%" style="background-color:#fff;" class="enter">
                                    <input type="text" maxlength="50"  class="form-control validInput"
                                        th:value="${supplier?.idCard}">
                                    <span class="error" style="display:none;">请填写身份证号</span>
                                </td>
                                <td width="25%" style="background-color:#fff;" class="enter">
                                    <input type="text" maxlength="50" class="form-control validInput"
                                        th:value="${supplier?.contact}">
                                    <span class="error" style="display:none;">请填写联系方式</span>
                                </td>
                                <td width="10%" style="background-color:#fff;">
                                    <span class="negativeInformationReduce">删除</span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="yk_addBtns yk_addNewMsg newTabAddUpdateBtnBox">
                <button class="btn btn-white btn-info colorbtn 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/purchaseContractManage/entryContract.js"></script>-->
<script src="/js/purchaseContractManage/entry.js"></script>
</html>
