2db47680
hexiaodong
chore: 初始提交 php 遗...
|
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
|
{include file="kuerp/common/menu" /}
<style>
form .layer-footer{
display: none;
}
</style>
<form class="layui-form layui-search" id="layui-search" method="get">
<div class="layui-input-inline search_type search_type1" style="min-width: 182px;">
<input name="stores_id" type="hidden" id="stores_id" value="">
<div id="stores_ids" class="xm-select-demo"></div>
</div>
<div class="layui-input-inline search_type search_type2" style="min-width: 182px;">
<input type="text" name="goods_code" id="goods_code" value="{$goods_code|default=''}" autocomplete="off" placeholder="{:__('商品编号')}" class="layui-input">
</div>
<input name="ids" type="hidden" value="{$row.id}">
<div class="layui-input-inline " style="width: 90px">
<button class="layui-btn layui-btn-sm btn-refresh" type="submit" id="search" data-type="reload">
<i class="layui-icon"></i> {:__('Search')}
</button>
</div>
</form>
<div class="">
<button type="button" class="layui-btn layui-icon-btn layui-btn-sm layui-btn-danger fright exchange" data-id="{$row.id}" style="margin-right: 20px;"><i class="layui-icon"></i> 生成盘单单据</button>
<input type="hidden" id="purchase_code" value="{$row.purchase_code}">
</div>
<div style="clear: both;"></div>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="table_box">
<div class="list" style="overflow-x: auto">
<table id="purchase_table">
<tr>
<th>仓库</th><th>商品类别</th><th>商品编号</th><th>商品名称</th><th>商品备注</th><th>属性</th>
<th>规格型号</th><th>单位</th><th>系统库存</th><th>盘点库存</th><th>盘盈盘亏</th>
</tr>
{foreach name="row.info" item="info" key="k"}
<tr>
<td>
<div>
<input type="hidden" name="row[stores_id][]" value="{$info.stores.id|htmlentities}">
<input type="text" class="goods_note" value="{$info.stores.name|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="hidden" name="row[goods_type][]" value="{$info.goods_type.id|htmlentities}">
<input type="text" class="goods_note" value="{$info.goods_type.supplier_type_name|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="hidden" name="row[goods_id][]" value="{$info.goods.id|htmlentities}">
<input type="text" class="goods_note" value="{$info.goods.goods_code|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="text" class="goods_note" value="{$info.goods.goods_name|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="text" class="goods_note" value="{$info.goods.note|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="hidden" name="row[goods_attr][]" value="{$info.attr_id|htmlentities}">
<input type="text" class="goods_note" value="{$info.attr_name|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="text" class="goods_note" value="{$info.goods.goods_specification_id|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="text" class="goods_note" value="{$info.unit_name|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="hidden" name="row[stock][]" value="{$info.stock|htmlentities}">
<input type="text" class="stock" value="{$info.stock|htmlentities}" readonly>
</div>
</td>
<td>
<div>
<input type="number" class="invertory_stock" name="row[invertory_stock][]" value="{$info.invertory_stock|htmlentities}" data-rule="required">
</div>
</td>
<td>
<div>
<input type="number" class="profit" name="row[profit][]" value="{$info.profit|htmlentities}" readonly>
</div>
</td>
</tr>
{/foreach}
</table>
</div>
</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>
|