123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- {extend name='admin@main'}
- {block name="content"}
- {include file='store@goods/form_style'}
- <form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
- <div class="layui-card-body think-box-shadow padding-left-40">
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">类型</span>
- <div class="block">
- {foreach ['买','卖'] as $k=>$pro}
- <label class="think-radio">
- {if isset($vo['type']) && $vo['type'] eq $k}
- <input checked type="radio" name="type" value="{$k}" lay-ignore> {$pro}
- {else}
- <input type="radio" name="type" value="{$k}" lay-ignore> {$pro}
- {/if}
- </label>
- {/foreach}
- </div>
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">车型</span>
- <select class="layui-select" required name="chexing" lay-search>
- {foreach $chexing_ids as $cate}
- {if isset($vo.chexing) and $vo.chexing eq $cate.id}
- <option selected value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
- {else}
- <option value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
- {/if}
- {/foreach}
- </select>
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green">品牌</span>
- <select class="layui-select" required name="pinpai" lay-search>
- {foreach $pinpai as $cate}
- {if isset($vo.pinpai) and $vo.pinpai eq $cate.id}
- <option selected value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
- {else}
- <option value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
- {/if}
- {/foreach}
- </select>
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green">车辆编号</span>
- <input name="cheliangbiaohao" required class="layui-input" placeholder="请输入车辆编号" value="{$vo.cheliangbiaohao|default=''}">
- </label>
- </div>
- <div class="layui-form-item">
- <span class="color-green label-required-prev">轮播图</span>
- <table class="layui-table">
- <thead>
- <tr>
- <th class="text-left">展示图片</th>
- </tr>
- <tr>
- <td width="auto" class="text-left"><input name="image" type="hidden" value="{$vo.image|default=''}"></td>
- </tr>
- </thead>
- </table>
- <script>$('[name="image"]').uploadMultipleImage()</script>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">车龄</span>
- <div style="display: flex">
- <input name="cheling" required class="layui-input" style="width: 80%" placeholder="请输入车龄" value="{$vo.cheling|default=''}">
- <p style="margin-top: 6px;">个月</p>
- </div>
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green">车辆性质</span>
- <input name="cheliangxingzhi" required class="layui-input" placeholder="请输入车辆性质 如营运,非营运" value="{$vo.cheliangxingzhi|default=''}">
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green">车辆类型</span>
- <input name="cheliangleixing" required class="layui-input" placeholder="请输入车辆类型 如油车" value="{$vo.cheliangleixing|default=''}">
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">里程</span>
- <div style="display: flex">
- <input name="licheng" required class="layui-input" style="width: 80%" placeholder="请输入里程" value="{$vo.licheng|default=''}">
- <p style="margin-top: 6px;">万公里</p>
- </div>
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green">箱体宽度</span>
- <div style="display: flex">
- <input name="xiangtikuandu" required class="layui-input" style="width: 80%" placeholder="请输入箱体宽度" value="{$vo.xiangtikuandu|default=''}">
- <p style="margin-top: 6px;">米</p>
- </div>
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">是否有通行证</span>
- <div class="block">
- {foreach ['是','否'] as $k=>$pro}
- <label class="think-radio">
- {if isset($vo['tongxingzheng']) && $vo['tongxingzheng'] eq $k}
- <input checked type="radio" name="tongxingzheng" value="{$k}" lay-ignore> {$pro}
- {else}
- <input type="radio" name="tongxingzheng" value="{$k}" lay-ignore> {$pro}
- {/if}
- </label>
- {/foreach}
- </div>
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green">是否有尾板</span>
- <div class="block">
- {foreach ['是','否'] as $k=>$pro}
- <label class="think-radio">
- {if isset($vo['weiban']) && $vo['weiban'] eq $k}
- <input checked type="radio" name="weiban" value="{$k}" lay-ignore> {$pro}
- {else}
- <input type="radio" name="weiban" value="{$k}" lay-ignore> {$pro}
- {/if}
- </label>
- {/foreach}
- </div>
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">车池经理</span>
- <input name="chechijingli" required class="layui-input" placeholder="请输入车池经理" value="{$vo.chechijingli|default=''}">
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green">首次登记日期</span>
- <input name="shoucidengjiriqi" required class="layui-input" placeholder="请输入首次登记日期" value="{$vo.shoucidengjiriqi|default=''}" id="test1">
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs9 relative">
- <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_province"></select></div>
- <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_city"></select></div>
- <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_area"></select></div>
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">发动机型号</span>
- <input name="fadongjixinghao" required class="layui-input" placeholder="请输入发动机型号" value="{$vo.fadongjixinghao|default=''}">
- </label>
- <label class="layui-col-xs3 relative">
- <span class="color-green"> 马力</span>
- <div style="display: flex">
- <input name="mali" required class="layui-input" style="width: 80%" placeholder="请输入马力" value="{$vo.mali|default=''}">
- <p style="margin-top: 6px;"> 匹</p>
- </div>
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">商业保险额</span>
- <div style="display: flex">
- <input name="shangyebaoxiane" required class="layui-input" style="width: 80%" placeholder="请输入商业保险额" value="{$vo.shangyebaoxiane|default=''}">
- <p style="margin-top: 6px;">万元</p>
- </div>
- </label>
- </div>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs3 relative">
- <span class="color-green">租赁价格</span>
- <div style="display: flex">
- <input name="jiage" required class="layui-input" style="width: 80%" placeholder="请输入租赁价格" value="{$vo.jiage|default=''}">
- <p style="margin-top: 6px;">元/月</p>
- </div>
- </label>
- </div>
- <div class="layui-form-item text-center">
- {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
- <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" type="button">取消编辑</button>
- <button class="layui-btn" type="submit">保存商品</button>
- </div>
- </div>
- </form>
- {/block}
- {block name='script'}
- <script>
- require(['pcasunzips'], function () {
- new PCAS("form_province", "form_city", "form_area", '{$vo.express_province|default=""}', '{$vo.express_city|default=""}', '{$vo.express_area|default=""}');
- laydate.render({
- elem: '#test1'
- });
- window.form.render();
- });
- </script>
- ]
- {/block}
|