2019-09-06 23:53:10 +08:00

72 lines
3.2 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="js"}
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/speccats/speccats.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="wst-toolbar">
<div class="f-left">
<div id="pcat_0_box" class="f-left">
<select id="cat_0" class='ipt pgoodsCats' level="0" onchange="WST.ITGoodsCats({id:'cat_0',val:this.value,isRequire:false,className:'pgoodsCats'});">
<option value="">-所属商品分类-</option>
{volist name=":WSTGoodsCats(0)" id="vo"}
<option value="{$vo['catId']}">{$vo['catName']}</option>
{/volist}
</select>
</div>
<input type="text" id="keyName" placeholder="请输入规格名称"/>
<button class="btn btn-primary" onclick="loadGrid(0)"><i class='fa fa-search'></i>查询</button>
</div>
{if WSTGrant('SPGG_01')}
<button class="btn btn-success f-right" onclick="javascript:toEditCat(0);"><i class='fa fa-plus'></i>新增</button>
{/if}
<div style="clear:both"></div>
</div>
<div class='wst-grid'>
<div id="mmg" class="mmg layui-form"></div>
</div>
<div id="pg" style="text-align: right;"></div>
<div id='specCatsBox' style='display:none'>
<form id="specCatsForm">
<input type='hidden' id='catId' class='ipt'/>
<table class='wst-form wst-box-top'>
<tr>
<th width='150'>
所属商品分类<font color='red'>*</font></th>
<td id="bcat_0_box">
<select id="bcat_0" class='ipt goodsCats' level="0" onchange="WST.ITGoodsCats({id:'bcat_0',val:this.value,isRequire:false,className:'goodsCats'});" data-rule='所属商品分类:required;' data-target="#msg_bcat_0">
<option value="">-请选择-</option>
{volist name=":WSTGoodsCats(0)" id="vo"}
<option value="{$vo['catId']}">{$vo['catName']}</option>
{/volist}
</select>
<span class='msg-box' id='msg_bcat_0' style='color:red;'>(至少选择一个商品分类)</span>
</td>
</tr>
<tr>
<th>规格名称<font color='red'>*</font></th>
<td>
<input type="text" id="catName" name="catName" class="ipt" maxLength='20'/>
</td>
</tr>
<tr>
<th>是否允许上传图片<font color='red'> </font></th>
<td class='layui-form'>
<input type="checkbox" id="isAllowImg" name="isAllowImg" value="1" class="ipt" lay-skin="switch" lay-filter="isAllowImg" lay-text="是|否">
<span style='color:red;margin-left:20px;'>(*同一分类下只能设置一个上传图片的规格分类)</span>
</td>
</tr>
<tr>
<th>是否显示<font color='red'> </font></th>
<td class='layui-form'>
<input type="checkbox" id="isShow" name="isShow" value="1" class="ipt" lay-skin="switch" lay-filter="isShow" lay-text="显示|隐藏">
</td>
</tr>
</table>
</form>
</div>
{/block}