edit.html
3 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
{include file="kuerp/common/menu" /}
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Customers_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input type="hidden" id="customers_id" name="row[customers_id]" value="">
<div id="customers_ids" class="xm-select-demo"></div>
</div>
</div>
</div>
</div>
<div class="list">
<table id="purchase_table">
<tr>
<th>
<span class="must">*</span>
商品
<span class="smq_switch">
<span>--扫码枪录入</span>
<span>
<input id="c-switch" name="row[switch]" type="hidden" value="0">
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0" >
<i class="fa fa-toggle-on text-success fa-2x fa-flip-horizontal text-gray"></i>
</a>
</span>
</span>
</th>
<th>单位</th><th>物料编码</th>
</tr>
<tr>
<td class="goods_code_boxs">
<div class="goods_code_box">
{foreach name="goods" item="vo"}
{if condition="$vo.goods_code==$row.goods_code"}
<input type="hidden" name="row[goods_code][]" class="goods_code" value="{$vo.goods_code}">
<span class="goods_code_span"><img src="__CDN__/assets/addons/kuerp/img/more.png"></span>
<input type="text" class="ipt goods_name" value="{$vo.goods_code} {$vo.goods_name}">
{/if}
{/foreach}
</div>
</td>
<td><div><input type="text" class="unit" value="{$row.unit_name|htmlentities}" readonly><input type="hidden" class="unit_id" name="row[unit_id][]" value="{$row.unit_id|htmlentities}"></div></td>
<td><div><input type="text" name="row[customer_code][]" value="{$row.customer_code|htmlentities}"></div></td>
</tr>
</table>
</div>
<div class="chose_goods_boxs"></div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</form>