<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/bss/enterprise/add}">
        <input type="hidden" name="id" th:if="${bssEnterprise}" th:value="${bssEnterprise.id}">
        <div class="layui-form-item">
            <label class="layui-form-label required">名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="name" placeholder="请输入名称" th:value="${bssEnterprise?.name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">统一社会信用代码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="creditCode" placeholder="请输入统一社会信用代码" th:value="${bssEnterprise?.creditCode}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">所属平台</label>
            <div class="layui-input-inline">
                <select name="platform" mo-selected="${bssEnterprise?.platform?.id}" mo-empty="" lay-verify="platform">
                    <option th:value="${bssPlatform.id}" th:text="${bssPlatform.name}" th:selected="${bssPlatform.id == bssEnterprise?.platform?.id}"></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所在地</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="location" placeholder="请输入所在地" th:value="${bssEnterprise?.location}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">行业</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="industry" placeholder="请输入行业" th:value="${bssEnterprise?.industry}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">增值税种类</label>
            <div class="layui-input-inline">
                <select name="vatType" mo:dict="VAT_TYPE" mo-selected="${bssEnterprise?.vatType}" mo-empty="" lay-verify="vatType"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">会计准则</label>
            <div class="layui-input-inline">
                <select name="accountingStandards" mo:dict="ACCOUNTING_STANDARDS" mo-selected="${bssEnterprise?.accountingStandards}" mo-empty="" lay-verify="accountingStandards"></select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${bssEnterprise?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>