<!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;
        }
    </style>
</head>
<body>
<div class="base-extend">
    <ol class="breadcrumb">
        <i class="icon-chevron-sign-left newBackBtn"></i>
        <li>销售合同管理</li>
        <li>录入合同信息</li>
    </ol>
    <div class="detailContentBox">
        <p class="detailContentBox-title">录入合同信息</p>
        <form class="form-horizontal" id="contractEntryForm" autocomplete="off">
            <input type="hidden" name="basicId" th:value="${salesContractInfo?.businessKey}">
            <input type="hidden" name="salesContractBasicInfoId" th:value="${salesContractInfo?.salesContractBasicInfo?.id}">
            <input type="hidden" name="taskId" th:value="${taskId}">
            <input type="hidden" name="gmtCreate" th:value="${salesContractInfo?.businessBasicInfo?.gmtCreate}">
            <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="${salesContractInfo?.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="platformName" readonly th:value="${salesContractInfo?.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="${salesContractInfo?.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="${salesContractInfo?.businessBasicInfo?.businessNumber}" 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="enterpriseName" readonly th:value="${salesContractInfo?.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="${#calendars.format(salesContractInfo?.businessBasicInfo?.gmtCreate,'yyyy-MM-dd')}" class="form-control">
                            </td>
                        </tr> -->
                    </table>
                </div>

                <div class="row">
                    <!-- 附件信息回显 -->
                    <div class="fileInfoListOriginal" style="display:none"
                         th:each="file,files:${salesContractInfo?.salesContractFileList}">
                        <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 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="contractNumber" class="form-control" maxlength="50" th:value="${salesContractInfo?.salesContractBasicInfo?.contractNumber}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">合同名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="contractName" class="form-control" maxlength="50" th:value="${salesContractInfo?.salesContractBasicInfo?.contractName}">
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">供方公司名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="sellerName" readonly th:value="${salesContractInfo?.businessBasicInfo?.platform?.platformName}" 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="${salesContractInfo?.businessBasicInfo?.customer?.enterpriseName}" 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="${salesContractInfo?.salesContractBasicInfo?.contractPeriod}">
                                <!-- <i class="viewDetailWord">天</i> -->
                            </td>
                            <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="${salesContractInfo?.salesContractBasicInfo?.contractPlanAmountTypeDict?.id}"></select>
                            </td>
                        </tr>
                        <!-- <tr>
                            <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="${salesContractInfo?.salesContractBasicInfo?.contractPlanAmount}">
                                <i class="viewDetailWord">元</i>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">验收经办人</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" maxlength="50" name="checkOperator" class="form-control" th:value="${salesContractInfo?.salesContractBasicInfo?.checkOperator}">
                            </td>
                        </tr> -->
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">合同约定金额</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <input type="text" name="contractPlanAmount" class="form-control amountInput" th:value="${salesContractInfo?.salesContractBasicInfo?.contractPlanAmount}">
                                <i class="viewDetailWord">元</i>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="row">
                    <table class="personalTable">
                        <tr>
                            <td colspan="6">
                                <span class="detailContentBox-tabletitle">人员信息</span>
                                <span id="personalAdd" class="colorbtn btn" style="float: right;margin-right: 5px">添加</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="25%">
                                <span class="required_fileds_star">类型</span>
                            </td>
                            <td width="25%">
                                <span class="required_fileds_star">姓名</span>
                            </td>
                            <!-- <td width="20%">
                                <span>证件类型</span>
                            </td>
                            <td width="25%">
                                <span>证件号码</span>
                            </td> -->
                            <td width="25%">
                                <span class="required_fileds_star">联系方式</span>
                            </td>
                            <td width="25%">
                                <span>操作</span>
                            </td>
                        </tr>
                        <tbody class="personalTbody">
                            <tr class="personalListTbody personalListTbodyAdd" style="display: none;">
                                <td width="25%" style="background-color:#fff;">
                                    <select class="form-control type validInput" name="type" placeholder="请选择类型">
                                        <option value="">请选择</option>
                                        <option value="合同签署人">合同签署人</option>
                                        <option value="验收经办人">验收经办人</option>
                                        <option value="结算经办人">结算经办人</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" name="name" maxlength="500" class="form-control name validInput">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入姓名</span>
                                </td>
                                <!-- <td width="20%" style="background-color:#fff;">
                                    <input type="text" name="cardType" maxlength="500" class="form-control cardType validInput" readonly>
                                    <span class="error" style="display:none;font-size:0.12rem;">请选择证件类型</span>
                                </td> -->
                                <!-- <td width="25%" style="background-color:#fff;" class="enter">
                                    <input type="text" name="socialCreditCode" maxlength="500" class="form-control socialCreditCode validInput">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入证件号码</span>
                                </td> -->
                                <td width="25%" style="background-color:#fff;" class="enter">
                                    <input type="text" name="mobile" maxlength="500" class="form-control mobile validInput">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入联系方式</span>
                                </td>
                                <td width="25%" style="background-color:#fff;">
                                    <span class="negativeInformationReduce">删除</span>
                                </td>
                            </tr>
                            <tr class="personalListTbody personalListTbodyBack" th:each="personalTerm,personalTermStat:${salesContractInfo?.salesContractPersonInfos}">
                                <td width="25%" style="background-color:#fff;">
                                    <select class="form-control type" name="type" placeholder="请选择类型">
                                        <option value="">请选择</option>
                                        <option value="合同签署人" th:selected="${personalTerm?.type == '合同签署人'}">合同签署人</option>
                                        <option value="验收经办人" th:selected="${personalTerm?.type == '验收经办人'}">验收经办人</option>
                                        <option value="结算经办人" th:selected="${personalTerm?.type == '结算经办人'}">结算经办人</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" name="name" maxlength="500" class="form-control name" th:value="${personalTerm?.name}">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入姓名</span>
                                </td>
                                <!-- <td width="20%" style="background-color:#fff;">
                                    <input type="text" name="cardType" maxlength="500" class="form-control cardType validInput" readonly>
                                    <span class="error" style="display:none;font-size:0.12rem;">请选择证件类型</span>
                                </td>
                                <td width="25%" style="background-color:#fff;" class="enter">
                                    <input type="text" name="socialCreditCode" maxlength="500" class="form-control socialCreditCode" th:value="${personalTerm?.socialCreditCode}">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入证件号码</span>
                                </td> -->
                                <td width="25%" style="background-color:#fff;" class="enter">
                                    <input type="text" name="mobile" maxlength="500" class="form-control mobile" th:value="${personalTerm?.mobile}">
                                    <span class="error" style="display:none;font-size:0.12rem;">请输入联系方式</span>
                                </td>
                                <td width="25%" style="background-color:#fff;">
                                    <span class="negativeInformationReduce">删除</span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div class="row">
                    <table class="paymentTable">
                        <tr>
                            <td colspan="3">
                                <span class="detailContentBox-tabletitle">付款条件</span>
                                <span id="paymentAdd" class="colorbtn btn" style="float: right;margin-right: 5px">
                                    添加
                                </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 validInput">
                                    <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:${salesContractInfo?.paymentConditionList}">
                                <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="${salesContractInfo?.salesContractSettleInfo?.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="${salesContractInfo?.salesContractSettleInfo?.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(salesContractInfo?.salesContractSettleInfo?.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="${salesContractInfo?.salesContractSettleInfo?.settleCycleMethodDict?.id}"></select>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">结算周期</span>：
                            </td>
                            <td width="35%" class="enter">
                                <i class="prevDetailWord">上一次结算后</i>
                                <input type="number" min="0" name="settleCycle" class="form-control" style="padding-left: 0.85rem;padding-right: 0.75rem" th:value="${salesContractInfo?.salesContractSettleInfo?.settleCycle}">
                                <i class="viewDetailWord">个自然月</i>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">应收账款种类</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <select name="receivableType" class="form-control" tag:option="receivableType" th:value="${salesContractInfo?.salesContractSettleInfo?.receivableTypeDic?.id}"></select>
                            </td>
                        </tr>
                        <tr class="receivableTypeChange">
                            <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="${salesContractInfo?.salesContractSettleInfo?.planPaybackDays}">
                                <i class="viewDetailWord">天</i>
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">预估回款时间</span>：
                            </td>
                            <td width="35%" class="enter">
                                <i class="prevDetailWord" style="width: 0.5rem">结算后</i>
                                <input type="number" min="0" name="estimatePayBackDays" class="form-control" style="padding-left: 0.5rem;padding-right: 0.75rem" th:value="${salesContractInfo?.salesContractSettleInfo?.estimatePaybackDays}">
                                <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="${salesContractInfo?.salesContractRetentionInfo?.retention==1}">是</option>
                                    <option value="0" th:selected="${salesContractInfo?.salesContractRetentionInfo?.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="${salesContractInfo?.salesContractRetentionInfo?.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="limit" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1" th:selected="${salesContractInfo?.salesContractRetentionInfo?.limit==1}">是</option>
                                    <option value="0" th:selected="${salesContractInfo?.salesContractRetentionInfo?.limit==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="${salesContractInfo?.salesContractRetentionInfo?.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="${salesContractInfo?.salesContractRetentionInfo?.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(salesContractInfo?.salesContractRetentionInfo?.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" min="0" class="form-control" th:value="${salesContractInfo?.salesContractRetentionInfo?.releaseDays}">
                                <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="addGoods" class="colorbtn btn" style="float: right;margin-left: 5px">
                                    添加
                                </span>
                                <span id="importButton" class="colorbtn btn" style="float: right;margin-left: 5px">
                                    模板导入
                                </span>
                                <span id="downloadFileTemp" class="colorbtn btn" style="float: right;">
                                    下载模板
                                </span>
                                <input type="file" accept="xls, .xlsx, .excel" id="importFile" style="display: none">

                            </td>
                        </tr>
                        <tr>
                            <td width="5%">
                                <span>编号</span>
                            </td>
                            <td width="10%">
                                <span>名称</span>
                            </td>
                            <td width="10%">
                                <span>厂家</span>
                            </td>
                            <td width="10%">
                                <span>型号</span>
                            </td>
                            <td width="10%">
                                <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" class="form-control validInput" maxlength="50">
                                <span class="error" style="display:none;">请填写名称</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput" maxlength="50">
                                <span class="error" style="display:none;">请填写厂家</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput" maxlength="50">
                                <span class="error" style="display:none;">请填写型号</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput" maxlength="50">
                                <span class="error" style="display:none;">请填写单位</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <!-- type="number" min="0" -->
                                <input type="text" class="form-control validInput">
                                <span class="error" style="display:none;">请填写数量</span>
                            </td>

                            <td width="10%" style="background-color:#fff;" class="enter">
                                <select class="form-control validInput definePrice">
                                    <option value="">请选择</option>
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                                <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})?/)" class="form-control validInput ">
                                <span class="error" style="display:none;">请填写单价</span>
                            </td>
                            <td width="14%" style="background-color:#fff;" class="enter">
                                <input type="text" maxlength="50" class="form-control">
                            </td>
                            <td width="10%" style="background-color:#fff;">
<!--                                <span class="negativeInformationPlus">+添加</span>-->
                                <span class="negativeInformationReduce">-删除</span>
                            </td>
                        </tr>
                        <tbody class="goodsListTable">
                        <tr class="goodsListTbody goodsListTbodyBack" th:each="goods,goodsStat:${salesContractInfo?.goodsInfoList}">
                            <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" class="form-control validInput" maxlength="50" th:value="${goods?.goodsName}">
                                <span class="error" style="display:none;">请填写名称</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput" maxlength="50" th:value="${goods?.goodsFactory}">
                                <span class="error" style="display:none;">请填写厂家</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control validInput" maxlength="50" th:value="${goods?.modelNumber}">
                                <span class="error" style="display:none;">请填写型号</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <input type="text"  class="form-control validInput" maxlength="50" th:value="${goods?.units}">
                                <span class="error" style="display:none;">请填写单位</span>
                            </td>
                            <td width="10%" style="background-color:#fff;" class="enter">
                                <!-- type="number" min="0" -->
                                <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">
                                <select class="form-control validInput definePrice">
                                    <option value="">请选择</option>
                                    <option value="0" th:selected="${goods?.clearPrice==0}">否</option>
                                    <option value="1" th:selected="${goods?.clearPrice==1}">是</option>
                                </select>
                                <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})?/)" class="form-control validInput" th:value="${goods?.salesPrice}">
                                <span class="error" style="display:none;">请填写单价</span>
                            </td>
                            <td width="14%" style="background-color:#fff;" class="enter">
                                <input type="text" class="form-control" maxlength="50" 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>
            <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/salesContractManage/entryContract.js"></script>
</html>
