ajax_sto_gd_up.html
4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<style type="text/css">
.flexigrid .bDiv tr{display: block;}
.bd-line{font-size: 0;}
.flexigrid .bDiv td{border: 0;}
.flexigrid div.bDiv tr:hover td{background-color: #F4FCFA;}
.flexigrid div.bDiv tr.trSelected td{ background: #ffffdf none repeat scroll 0 0;}
.flexigrid .bDiv a{color: #999;}
.flexigrid .bDiv .active a,.flexigrid .bDiv span a:hover{color: #FFF;}
.flexigrid .bDiv .row a:hover{text-decoration: none;color: #C4182E;background-color: #EEEEEE;text-decoration: underline;}
.flexigrid .bDiv .row .active a:hover{text-decoration: none;color: #fff;background-color: #999;text-decoration: underline;}
.ncsc-default-table thead {font-size: 0;}
.ncsc-default-table thead th{font-size: 12px; vertical-align: middle;display: inline-block;*display: inline;*zoom: 1;}
.w20{width: 2% !important;}
.w50{width: 5% !important;}
.w60{width: 6% !important;}
.w80{width: 8% !important;}
.w120{width: 10% !important;}
.w150{width: 12% !important;}
.w200{width: 14% !important;}
.w250{width: 16% !important;}
</style>
<table class="ncsc-default-table">
<thead>
<tr class="bd-line">
<th class="w20"><input type="checkbox" onclick="$('.gd_ckeck').prop('checked', this.checked);"></th>
<th class="w130">门店信息</th>
<th class="w140">
<a>商品信息</a>
</th>
<th class="w100">
<a>商家商品编码/条码</a>
</th>
<th class="w80">
<a>销售城市</a>
</th>
<th class="w80">
<a>商家价格</a>
</th>
<th class="w100">
<a>现货库存</a>
</th>
<th class="w100">
<a>锁定库存</a>
</th>
<th class="w80">
<a>库存</a>
</th>
<th class="w80">
<a>库存状态</a>
</th>
<th class="w80">操作</th>
</tr>
</thead>
<tbody>
<!------底下按钮------->
<empty name="goodsList">
<tr>
<td colspan="20" class="norecord">
<div class="warning-option"><i class="icon-warning-sign"></i><span>暂无符合条件的数据记录</span></div>
</td>
</tr>
<else/>
<volist name="goodsList" id="list">
<tr class="bd-line">
<td class="w20">
<input class="gd_ckeck" osku="{$list.outSkuId}" sku="{$list.skuId}" type="checkbox" name="goods_id[]" value="{$list.goods_id}"/>
</td>
<td class="tl w130">
<p>门店编号:{$list.stationNo}</p>
<p style="white-space:pre-wrap;">门店名称:{$list.stationName}</p>
</td>
<td class="w140" >
<p>SKU编码:{$list.skuId}</p>
<p style="white-space:pre-wrap;">{$list.skuName}</p>
</td>
<td class="w100"><span >{$list.outSkuId}<br>{$list.upcCode}</span></td>
<td class="w80"><span>{$list.scity}</span></td>
<td class="w80"><span>¥{$list.skuPrice/100}</span></td>
<td class="w100 xh_td"><span>
<input outskuid="{$list.outSkuId}" onblur="changekcun(this,1)" type="text" class="xh_stock" value="{$list['kcun']['currentQty']}" style="width: 80px">
</span></td>
<td class="w100 sd_td"><span>
<input skuid="{$list.skuId}" onblur="changekcun(this,2)" type="text" class="sd_stock" value="{$list['kcun']['lockQty']}" style="width: 80px">
</span></td>
<td class="w80 usableQty_td">
<p class="usableQty_p">可用:<font class="usableQty">{$list['kcun']['usableQty']}</font></p>
<p>预占:{$list['kcun']['orderQty']}</p>
</td>
<td class="w80"><span>
<if condition="$list['kcun']['vendibility'] eq 1">不可售<else/>可售</if>
</span></td>
<td class="nscs-table-handle w100">
<!--<a class="btn green" href="javascript:void(0);" onclick="del('{$list[outSkuId]}')"><i class="fa fa-trash"></i>置顶</a>-->
<a val="{$list['kcun']['vendibility']}" class="btn green" href="javascript:void(0);" onclick="changev('{$list[outSkuId]}',this)"><i class="fa fa-cog"></i><if condition="$list['kcun']['vendibility'] eq 1">可售<else/>不可售</if>
</a>
</td>
</tr>
</volist>
</empty>
</tbody>
</table>
<div class="layer_box dn">
<input readonly="readonly" class="contentTxt" id="content" value="" />
<div id="btn" class="js-copy" data-clipboard-target="#content"><span>复制</span></div>
</div>
<!--分页位置--> {$page}
<script>
var cur_page=1;
//---点击分页触发的事件----
$(".pagination a").click(function(){
cur_page = $(this).data('p');
ajax_get_table('search-form2',cur_page);
});
$(document).ready(function(){
// 表格行点击选中切换
$('#flexigrid >table>tbody>tr').click(function(){
$(this).toggleClass('trSelected');
});
$('#data_count').empty().html("{$pager->totalRows}");
});
</script>