You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

249 lines
9.5 KiB

3 years ago
<!-- $Id: admin_logs.htm 15477 2008-12-22 03:44:50Z sunxiaodong $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="validator.js,../js/utils.js,listtable.js"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<form action="javascript:searchInventory()" name="searchForm">
<div class="form-div">
<table>
<tr>
<td>
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
商品名称 <input type="text" name="keyword" size="15" />
订单号 <input type="text" name="order_sn" size="15" />
开始时间
<input name="start_time" type="text" id="start_time" size="22" value='' readonly="readonly" />
<input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('start_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn1');" value="{$lang.btn_select}" class="button"/>
结束时间
<input name="end_time" type="text" id="end_time" size="22" value='' readonly="readonly" />
<input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('end_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn2');" value="{$lang.btn_select}" class="button"/>
{if $warehouse_list}
仓库
<select name="warehouse_id" onchange="get_search_area(this.value)">
<option value="0">请选择</option>
{foreach from=$warehouse_list item=list}
<option value="{$list.region_id}">{$list.region_name}</option>
{/foreach}
</select>
地区
<span id="area_list">
<select name="area_id">
<option value="0">请选择</option>
</select>
</span>
{/if}
{if $priv_ru eq 1}
店铺名称
<select name="store_search" onchange="get_store_search(this.value)">
<option value="-1">请选择...</option>
<option value="0">平台自营</option>
<option value="1">按店铺名称</option>
<option value="2">按期望店铺名称</option>
<option value="3">按入驻品牌+类型</option>
</select>
<select name="merchant_id" style="display:none">
{foreach from=$store_list item=store}
<option value="{$store.ru_id}">{$store.store_name}</option>
{/foreach}
</select>
<input name="store_keyword" type="text" style="display:none"/>
<select name="store_type" style="display:none">
<option value="0">店铺类型</option>
<option value="旗舰店">旗舰店</option>
<option value="专卖店">专卖店</option>
<option value="专营店">专营店</option>
<option value="馆"></option>
</select>
{/if}
<input name="submit" type="submit" value="{$lang.comfrom}" class="button" />
</td>
</tr>
</table>
</div>
</form>
<form method="POST" action="goods_inventory_logs.php?act=batch_drop" name="listForm">
<!-- start admin_logs list -->
<div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
<tr>
<th><input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
<a href="javascript:listTable.sort('id'); ">编号</a></th>
<th>{$lang.goods_name}</th>
<th>{$lang.goods_attr}</th>
{if $priv_ru eq 1}
<th>{$lang.goods_steps_name}</th>
{/if}
<th>{$lang.order_sn}</th>
<th>{$lang.order_operation_type}</th>
<th>{$lang.operation_admin}</th>
<th>{$lang.inventory}</th>
<th>{$lang.inventory_type}</th>
<th>{$lang.operation_time}</th>
</tr>
{if $log_list}
{foreach from=$log_list item=list}
<tr>
<td width="5%"><span><input name="checkboxes[]" type="checkbox" value="{$list.id}" />{$list.id}</span></td>
<td width="35%" class="first-cell"><span>{$list.goods_name}</span></td>
<td width="12%"><span>{$list.goods_attr}</span></td>
{if $priv_ru eq 1}
<td align="center" style="color:#F00" width="10%"><font>{$list.shop_name}</font></td>
{/if}
<td align="center"><span>{$list.order_sn}</span></td>
<td align="center">
<span>
{if $list.use_storage eq 0}
发货时
{elseif $list.use_storage eq 1}
下单时
{elseif $list.use_storage eq 2}
订单无效
{elseif $list.use_storage eq 3}
订单取消
{elseif $list.use_storage eq 4}
订单确认收货
{elseif $list.use_storage eq 5}
订单设为未发货
{elseif $list.use_storage eq 6}
订单退货
{/if}
</span>
</td>
<td align="center"><span>{$list.admin_name}</span></td>
<td align="center"><span>{$list.number}</span></td>
<td align="center">
<span>
{if $list.product_id}
商品属性库存
<font style=" color:#009B9B">(
{if $list.model_attr eq 1}
仓库:{$list.warehouse_name}
{elseif $list.model_attr eq 2}
地区:{$list.area_name}
{else}
默认
{/if}
)</font>
{else}
商品库存
<font style=" color:#009B9B">(
{if $list.model_inventory eq 1}
仓库:{$list.warehouse_name}
{elseif $list.model_inventory eq 2}
地区: {$list.area_name}
{else}
默认
{/if}
)</font>
{/if}
</span>
</td>
<td align="center"><span>{$list.add_time}</span></td>
</tr>
{/foreach}
{else}
<tr>
<td colspan="12" align="center">{$lang.no_records}</td>
</tr>
{/if}
<tr>
<td colspan="2">
<input name="drop_type_id" type="submit" id="btnSubmit" value="{$lang.drop_logs}" disabled="true" class="button" />
</td>
<td align="right" nowrap="true" colspan="12">{include file="page.htm"}</td>
</tr>
</table>
{if $full_page}
</div>
</form>
<!-- end ad_position list -->
<script type="text/javascript" language="JavaScript">
listTable.recordCount = {$record_count};
listTable.pageCount = {$page_count};
{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}
{literal}
onload = function()
{
startCheckOrder();
}
{if $priv_ru eq 1}
function get_store_search(val){
if(val == 1){
document.forms['searchForm'].elements['merchant_id'].style.display = '';
document.forms['searchForm'].elements['store_keyword'].style.display = 'none';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}else if(val == 2){
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = '';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}else if(val == 3){
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = '';
document.forms['searchForm'].elements['store_type'].style.display = '';
}else{
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = 'none';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}
}
{/if}
function searchInventory()
{
{if $priv_ru eq 1}
listTable.filter['store_search'] = Utils.trim(document.forms['searchForm'].elements['store_search'].value);
listTable.filter['merchant_id'] = Utils.trim(document.forms['searchForm'].elements['merchant_id'].value);
listTable.filter['store_keyword'] = Utils.trim(document.forms['searchForm'].elements['store_keyword'].value);
listTable.filter['store_type'] = Utils.trim(document.forms['searchForm'].elements['store_type'].value);
{/if}
listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
listTable.filter['order_sn'] = Utils.trim(document.forms['searchForm'].elements['order_sn'].value);
listTable.filter['start_time'] = Utils.trim(document.forms['searchForm'].elements['start_time'].value);
listTable.filter['end_time'] = Utils.trim(document.forms['searchForm'].elements['end_time'].value);
listTable.filter['warehouse_id'] = document.forms['searchForm'].elements['warehouse_id'].value;
listTable.filter['area_id'] = document.forms['searchForm'].elements['area_id'].value;
listTable.filter['page'] = 1;
if(listTable.filter['start_time'] != '' && listTable.filter['end_time'] == ''){
alert('结束时间不能为空');
}else if(listTable.filter['start_time'] == '' && listTable.filter['end_time'] != ''){
alert('开始时间不能为空');
}else{
listTable.loadList();
}
}
function get_search_area(warehouse_id)
{
Ajax.call('goods_inventory_logs.php?is_ajax=1&act=search_area', "warehouse_id=" + warehouse_id, search_areaResult, "GET", "JSON");
}
function search_areaResult(result)
{
document.getElementById('area_list').innerHTML = result.content;
}
{/literal}
</script>
{include file="pagefooter.htm"}
{/if}