You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
148
hyhproject/admin/view/shops/list.html
Executable file
148
hyhproject/admin/view/shops/list.html
Executable file
@ -0,0 +1,148 @@
|
||||
{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__/shops/shops.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="wst-toolbar">
|
||||
<select id="areaId1" class='j-ipt j-areas' level="0" onchange="WST.ITAreas({id:'areaId1',val:this.value,className:'j-areas'});">
|
||||
<option value="">-商家所在地-</option>
|
||||
{volist name="areaList" id="vo"}
|
||||
<option value="{$vo['areaId']}">{$vo['areaName']}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
<div id="select" class='j-ipt' style="float: left;">
|
||||
<select id="cat" class='j-ipt'>
|
||||
<option value="">-商品分类-</option>
|
||||
{volist name="catList" id="vi"}
|
||||
<option value="{$vi['catId']}">{$vi['catName']}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</div>
|
||||
<input type="text" id="shopName" placeholder='店铺名称' id="shopName" class='j-ipt'/>
|
||||
<select id="isInvestment" class='j-ipt'>
|
||||
<option value="-1">-是否招商推广-</option>
|
||||
<option value="1">是</option>
|
||||
<option value="0">否</option>
|
||||
</select>
|
||||
<input type="text" name="userPhone" placeholder='联系方式' id="userPhone" class='j-ipt'/>
|
||||
<button class="btn btn-primary" onclick='javascript:loadGrid(0)'><i class='fa fa-search'></i>查询</button>
|
||||
|
||||
{if WSTGrant('DPGL_01')}
|
||||
<button class="btn btn-success f-right" onclick='javascript:toEdit(0)'><i class='fa fa-plus'></i>新增</button>
|
||||
{/if}
|
||||
<button class="btn btn-success f-right" onclick='javascript:toDeposit(0)'>质保金管理</button>
|
||||
<button class="btn btn-primary btn-fixtop" style="margin-left: 10px;" onclick='javascript:toExport()'><i class="fa fa-sign-in"></i>导出</button>
|
||||
<div style='clear:both'></div>
|
||||
</div>
|
||||
<div class='wst-grid'>
|
||||
<div id="mmg" class="mmg"></div>
|
||||
<div id="pg" style="text-align: right;"></div>
|
||||
</div>
|
||||
|
||||
<div id='accredBox' style='display:none'>
|
||||
<form id='topCommission' autocomplete='off'>
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th>店铺ID:</th>
|
||||
<td>
|
||||
<input type='text' name="shopId" id='shopId' class='ipt' value="" style='width:120px' disabled="disabled">
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<th>店铺名称:</th>
|
||||
<td>
|
||||
<input type='text' name="shopsName" id='shopsName' class='ipt' value="" style='width:120px' />
|
||||
</td>
|
||||
</tr> -->
|
||||
|
||||
<tr>
|
||||
<th>佣金扣点<font color='red'>*</font>:</th>
|
||||
<td class='layui-form'>
|
||||
<label>
|
||||
<input type='text' class='ipt' name='commission' id='commission' value="" style='width:80px'>%
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- <tr>
|
||||
<th>业务员提成<font color='red'>*</font>:</th>
|
||||
<td class='layui-form'>
|
||||
<label>
|
||||
<input type='text' class='ipt' name='comDeduct' id='comDeduct' value="" style='width:80px'>%
|
||||
</label>
|
||||
</td>
|
||||
</tr> -->
|
||||
|
||||
<tr>
|
||||
<th>业务员名称<font color='red'>*</font>:</th>
|
||||
<td class='layui-form'>
|
||||
<label>
|
||||
<input type='text' class='ipt' name='userName' id='userName' style='width:120px' onchange='changeUser()'>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>业务员手机号<font color='red'>*</font>:</th>
|
||||
<td class='layui-form'>
|
||||
<label>
|
||||
<input type='text' class='ipt' name='usersPhone' id='usersPhone' value="" style='width:120px'>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>业务员编号<font color='red'>*</font>:</th>
|
||||
<td class='layui-form'>
|
||||
<label>
|
||||
<input type='text' class='ipt' name='userId' id='userId' value="" style='width:80px' disabled="disabled">
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
function changeUser(){
|
||||
var userName=document.getElementById("userName").value;
|
||||
$.post(WST.U('admin/shops/staffs'),{userName:userName,},function(data){
|
||||
// alert(JSON.stringify(data))
|
||||
var json = WST.toAdminJson(data);
|
||||
if(json.status == -1){
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}else{
|
||||
$("#userId").empty();
|
||||
$("#usersPhone").empty();
|
||||
$('#userId').val(json['userId']);
|
||||
$('#usersPhone').val(json['userPhone']);
|
||||
}
|
||||
|
||||
}
|
||||
, "json")
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function toExport(){
|
||||
var params = {};
|
||||
params = WST.getParams('.j-ipt');
|
||||
var box = WST.confirm({content:"您确定要导出订单吗?",yes:function(){
|
||||
layer.close(box);
|
||||
location.href=WST.U('admin/shops/toExport',params);
|
||||
}});
|
||||
}
|
||||
$(function(){initGrid();})
|
||||
</script>
|
||||
{/block}
|
Reference in New Issue
Block a user