<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>业务管理-修改业务</title>
    <link rel="stylesheet" type="text/css" href="/css/external/fileUploadBase.css">
    <style>
        .btn-info:active,
        .btn-info:focus {
            background-color: #fff;
        }

        li.notcompanyli:hover {
            color: #333 !important;
        }

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

        .error option, select.error {
            color: #333 !important;
        }
    </style>
</head>
<body>
<div class="base-extend">
    <div class="addHeader">
        <div class="breadcrumb" style="margin-top:0;">
            <i class="icon-chevron-sign-left newBackBtn"></i>
            <li>业务管理</li>
            <li>修改业务</li>
        </div>
    </div>
    <div class="detailContentBox">
        <p class="detailContentBox-title">修改业务</p>
        <form class="form-horizontal" id="businessAddForm" autocomplete="off">
            <input type="hidden" id="updatePage">
            <input type="hidden" name="basicId" th:value="${businessBasicInfo?.id}">
            <div class="newTabAddUpdateBox">
                <div class="row">
                    <table>
                        <tr>
                            <td colspan="4">
                                <span class="detailContentBox-tabletitle">业务信息</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">核心企业</span>：
                            </td>
                            <td width="35%" class="enter">
                                <ul class="allBuyer" style="display:none;"></ul>
                                <input type="text" readOnly name="buyer" id="buyer"  class="form-control"
                                       th:value="${businessBasicInfo?.customer?.enterpriseName}">
                                <div class="entCustomerListBox buyerListBox"
                                     style="position:absolute !important;z-index:999;background-color: #fff;border: 1px solid #ccc;box-shadow: 0px 0px 2px 2px rgba(62, 192, 230,0.3);display:none;">
                                    <input type="text" class="form-control"
                                           style="margin:0.05rem auto;width:97%;border-color: #5AC4FC;box-shadow: inset 0 1px 1px rgba(90,196,252,.075), 0 0 8px rgba(90,196,252,.6);"
                                           placeholder="可输入关键词查询">
                                    <button class="btn btn-info btn-white colorbtn searchBuyer"
                                            style="position:absolute;right:0;top:0.05rem;height:0.34rem;width:0.3rem;text-align:center;padding-left:0;padding-right:0;">
                                        查
                                    </button>
                                    <ul style="overflow:auto;"></ul>
                                </div>
                                <input type="hidden" id="buyerId"
                                       th:value="${businessBasicInfo?.customer?.id}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">贸易平台</span>：
                            </td>
                            <td colspan="3" class="enter">
                                <input type="hidden" name="tradePlatformBack" th:value="${businessBasicInfo?.tradingPlatformId}">
                                <select class="form-control" name="tradePlatform">

                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">业务名称</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" name="businessName" class="form-control"
                                       th:value="${businessBasicInfo?.businessName}">
                            </td>
                            <td width="15%">
                                <span class="required_fileds_star">业务编号</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" th:value="${businessBasicInfo?.businessNumber}" readonly name="businessNo" class="form-control">
                            </td>

                        </tr>
                        <tr>
                            <td width="15%">履约保证金上限：</td>
                            <td width="35%" style="background:#fff;" class="enter">
                                <input type="text" name="depositLimit" class="form-control" maxlength="50" th:value="${businessBasicInfo?.depositLimit}">
                                <i class="viewDetailWord">元</i>
                            </td>

                            <td width="15%">业务经理：</td>
                            <td width="35%" style="background:#fff;" th:text="${businessBasicInfo?.userName}">
                            </td>
                        </tr>
                        <!-- <tr>
                            <td width="15%">
                                <span class="required_fileds_star">创建时间</span>：
                            </td>
                            <td width="35%" class="enter">
                                <input type="text" th:value="${#calendars.format(businessBasicInfo?.gmtCreate,'yyyy-MM-dd')}" name="creatTime" readonly class="form-control">
                            </td>
                           <td width="15%">
                               <span class="required_fileds_star">贸易平台</span>：
                           </td>
                           <td colspan="3" class="enter">
                               <input type="hidden" name="tradePlatformBack" th:value="${businessBasicInfo?.tradingPlatformId}">
                               <select class="form-control" name="tradePlatform">

                               </select>
                           </td>
                        </tr> -->
                        <tr>
                            <td width="15%">
                                <span class="required_fileds_star">项目内容</span>：
                            </td>
                            <td colspan="3" class="enter" style="border-bottom: 1px solid #E8F0F3;">
                                <textarea class="form-control" style="resize:none;" name="projectContent" rows="4"
                                          maxlength="500" th:text="${businessBasicInfo?.contents}"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="row">
                    <table class="supplierTable">
                        <tr>
                            <td colspan="3">
                                <span class="detailContentBox-tabletitle">供应商列表</span>
                                <ul class="allSupplier" style="display:none;"></ul>
                            </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="supplierListTbody"
                            th:each="supplier,supplierStat:${businessBasicInfo?.businessSupplierInfos}">
                            <td width="12%" style="background-color:#fff;">
                                <span th:text="${supplierStat.count}"></span>
                            </td>
                            <td width="75%" style="background-color:#fff;" class="enter">
                                <input type="text" readOnly class="form-control supplier" placeholder="请选择供应商"
                                       th:value="${supplier?.supplierName}">
                                <div class="entCustomerListBox supplierListBox"
                                     style="position:absolute !important;z-index:999;background-color: #fff;border: 1px solid #ccc;box-shadow: 0px 0px 2px 2px rgba(62, 192, 230,0.3);display:none;">
                                    <input type="text" class="form-control"
                                           style="margin:0.05rem auto;width:97%;border-color: #5AC4FC;box-shadow: inset 0 1px 1px rgba(90,196,252,.075), 0 0 8px rgba(90,196,252,.6);"
                                           placeholder="可输入关键词查询">
                                    <button class="btn btn-info btn-white colorbtn searchSupplier"
                                            style="position:absolute;right:0;top:0.05rem;height:0.34rem;width:0.3rem;text-align:center;padding-left:0;padding-right:0;">
                                        查
                                    </button>
                                    <ul style="overflow:auto;"></ul>
                                </div>
                                <input type="hidden" class="supplierIdOldDate" value="oldDate">
                                <input type="hidden" class="supplierId" th:value="${supplier?.supplierId}">
                                <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">
                    <!-- 附件信息回显 -->
                    <div class="fileInfoListOriginal" style="display:none"
                         th:each="file,files:${businessBasicInfo?.fileStorage}">
                        <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>招投标文件</span>：
                            </td>
                            <td class="enter addFileList">
                                <input type="file" class="fileinput" multiple style="display:none">
                                <div class="uploaderFile">
                                    <div class="fileContent">
                                        <span class="spanHolder">上传附件</span>
                                    </div>
                                </div>
                            </td>
                            <td width="13%" class="choiceFile" style="text-align:center;">
                                +上传附件
                            </td>
                        </tr>
                    </table>
                </div>

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