add.html
10.8 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{include file="kuerp/common/menu" /}
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="row">
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">{:__('Purchase_code')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-purchase_code" class="form-control" data-rule="required" value="{$code|default=''}" name="row[purchase_code]" type="text" placeholder="{:__('Purchase_code')}">
</div>
</div>
</div>
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">{:__('Purchase_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-purchase_time" class="form-control datetime" data-use-current="true" name="row[purchase_time]" type="text" value="{:date('Y-m-d')}" placeholder="{:__('Purchase_time')}">
</div>
</div>
</div>
</div>
<div class="table_box">
<div class="list" style="overflow-x: auto">
<table id="purchase_table">
<tr>
<th></th>
<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>{:__('Goods_note')}</th><th class="goods_attr_sd">{:__('Goods_attr')}</th><th>{:__('Goods_unit')}</th>
<th class="goods_batch_sd">批次</th><th class="goods_batch_sd">生产日期</th><th class="goods_batch_sd">保质期(天)</th><th class="goods_batch_sd">有效期至</th>
<th>{:__('Number')}</th><th>{:__('Stores_out')}</th><th>{:__('Stores_enter')}</th><th>{:__('Allow_stock')}</th><th>{:__('Remark')}</th>
</tr>
<tr style="display: none;">
<td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
<td>
<div class="goods_code_box">
<input type="hidden" name="row[goods_code][]" class="goods_code">
<span class="goods_code_span"><img src="__CDN__/assets/addons/kuerp/img/more.png"></span>
<input type="text" class="ipt goods_name">
</div>
</td>
<td><div><input type="text" name="row[goods_note][]" class="goods_note" readonly></div></td>
<td class="goods_attr_sd">
<div>
<select name="row[goods_attr][]" class="form-control goods_attr">
<option value=""></option>
</select>
</div>
</td>
<td>
<div>
<select name="row[goods_unit][]" class="form-control goods_unit">
<option value=""></option>
</select>
</div>
</td>
<td class="goods_batch_sd">
<div>
<div class="batch_div">
<input name="row[batch][]" class="batch_sec"><input type="hidden" name="row[batch_id][]" class="batch_id">
<span class="batch_span"><img src="__CDN__/assets/addons/kuerp/img/more.png"></span>
</div>
</div>
</td>
<td class="goods_batch_sd"><div><input type="text" class="ipt manufacture" name="row[manufacture][]" readonly></div></td>
<td class="goods_batch_sd"><div><input type="text" class="ipt guarantee" name="row[guarantee][]" readonly></div></td>
<td class="goods_batch_sd"><div><input type="text" class="ipt validity" name="row[validity][]" readonly></div></td>
<td><div><input type="number" name="row[number][]" class="number number_decimal number_decimal"><input type="hidden" class="period_period" name="row[period_period][]"></div></td>
<td>
<div>
<select name="row[stores_out][]" class="form-control stores_out">
<option value=""></option>
{foreach name="storesList" item="vo"}
<option value="{$vo.id}">{$vo.name}</option>
{/foreach}
</select>
</div>
</td>
<td>
<div>
<select name="row[stores_enter][]" class="form-control stores_enter">
<option value=""></option>
{foreach name="storesList" item="vo"}
<option value="{$vo.id}">{$vo.name}</option>
{/foreach}
</select>
</div>
</td>
<td><div><input type="number" name="row[allow_stock][]" class="allow_stock" readonly><input type="hidden" name="row[info_id][]" value=""></div></td>
<td><div><input type="text" name="row[remark][]" class="remark"></div></td>
</tr>
{php}for($a=0;$a<4;$a++){ {/php}
<tr>
<td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
<td>
<div class="goods_code_box">
<input type="hidden" name="row[goods_code][]" class="goods_code">
<span class="goods_code_span"><img src="__CDN__/assets/addons/kuerp/img/more.png"></span>
<input type="text" class="ipt goods_name">
</div>
</td>
<td><div><input type="text" name="row[goods_note][]" class="goods_note" readonly></div></td>
<td class="goods_attr_sd">
<div>
<select name="row[goods_attr][]" class="form-control goods_attr">
<option value=""></option>
</select>
</div>
</td>
<td>
<div>
<select name="row[goods_unit][]" class="form-control goods_unit">
<option value=""></option>
</select>
</div>
</td>
<td class="goods_batch_sd">
<div>
<div class="batch_div">
<input name="row[batch][]" class="batch_sec">
<input type="hidden" name="row[batch_id][]" class="batch_id">
<span class="batch_span"><img src="__CDN__/assets/addons/kuerp/img/more.png"></span>
</div>
</div>
</td>
<td class="goods_batch_sd"><div><input type="text" class="ipt manufacture" name="row[manufacture][]" readonly></div></td>
<td class="goods_batch_sd"><div><input type="text" class="ipt guarantee" name="row[guarantee][]" readonly></div></td>
<td class="goods_batch_sd"><div><input type="text" class="ipt validity" name="row[validity][]" readonly></div></td>
<td><div><input type="number" name="row[number][]" class="number number_decimal number_decimal"><input type="hidden" class="period_period" name="row[period_period][]"></div></td>
<td>
<div>
<select name="row[stores_out][]" class="form-control stores_out">
<option value=""></option>
{foreach name="storesList" item="vo"}
<option value="{$vo.id}">{$vo.name}</option>
{/foreach}
</select>
</div>
</td>
<td>
<div>
<select name="row[stores_enter][]" class="form-control stores_enter">
<option value=""></option>
{foreach name="storesList" item="vo"}
<option value="{$vo.id}">{$vo.name}</option>
{/foreach}
</select>
</div>
</td>
<td><div><input type="number" name="row[allow_stock][]" class="allow_stock" readonly></div></td>
<td><div><input type="text" name="row[remark][]" class="remark"></div></td>
</tr>
{php}}{/php}
</table>
</div>
</div>
<div class="chose_goods_boxs"></div>
<div class="row" style="margin-bottom: 10px;">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<textarea id="c-note" class="form-control" rows="4" name="row[note]" cols="30" placeholder="备注信息">{$row.note|default=''}</textarea>
</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>