index.html
23.1 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
{include file="kuerp/common/menu" /}
<style>
#edit-form td{
text-align: left;
}
.panel-body{
background: #fff;
}
.explain{
color: #b9b9b9;
}
#edit-form .center{
text-align: center;
}
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
border: 1px solid #dadada;
}
.list_title{
font-size: 18px;
margin: 20px 0 10px 0;
color: #00adff;
}
.width120{
width: 120px;
}
.width70{
width: 70px;
}
.layui-tab-title .layui-this {
color: #18bc9c;
}
.layui-tab-title .layui-this:after {
border: 0;
border-bottom: solid 2px #18bc9c;
top: -1px;
}
#add-form,#xcx-form{
border: solid 1px #d7d7d7;border-top: 0;border-bottom: 0;
position: relative;
}
.form-group {
margin-left: 0!important;
margin-right: 0!important;
border-top: solid 1px #d7d7d7;
border-bottom: solid 1px #d7d7d7;
}
.form-group input,.form-group select{
width: 100%;height: 31px;border: 0;outline: none;
}
.control-label{
background: #efefef;
height: 31px;
line-height: 31px;
padding-left: 0;
padding-top: 0!important;
text-align: left!important;
text-indent: 10px;
}
.col-xs-12{
position: relative;
}
.btn-default{
border: 0;outline: none;height: 31px;background: none;
}
.sub_btn{
position: absolute;bottom:-70px;
}
#add-form>.form-group,#xcx-form>.form-group{
margin-bottom: 0;margin-top: 20px;
}
#add-form>div:first-child,#xcx-form>div:first-child{
margin-bottom: 0!important;
}
input:disabled, input[disabled]{
color: #afafaf;
}
tips{
position: absolute;
width: 500px;
line-height: 31px;
right: -505px;
color: #ff8d00;
}
#edit-form,#price-form,#prefix-form{
position: relative;margin-top: 20px;
}
#prefix-form td{
padding: 0!important;
height: 30px!important;
line-height: 30px;
text-align: center;
}
.textLeft{
text-align: left;
}
#prefix-form input[type='checkbox'],#edit-form input[type='checkbox']{
width: 16px;height: 16px;margin-top: 8px;
}
#prefix-form button{
margin-bottom: 20px;
}
#prefix-form input[type='text'],#prefix-form input[type='number']{
width: 100%;height: 100%;border: none;outline: none;padding-left: 10px;
}
</style>
<div class="panel panel-default panel-intro">
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div class="layui-tab">
<ul class="layui-tab-title">
<li class="layui-this">基础设置</li>
<li>功能参数</li>
<li>价格取数优先级</li>
<li>单号设置</li>
<li>小程序设置</li>
</ul>
<div class="layui-tab-content" style="padding-bottom: 60px;">
<div class="layui-tab-item layui-show">
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" style="max-width: 800px;">
{foreach name="sets" item="vo" key="k"}
{if condition="$vo.type==1"}
{if condition="$vo.name=='valuation'"}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">{$vo.nickname}:</label>
<div class="col-xs-12 col-sm-8">
<input type="hidden" value="{$vo.id}" name="row[{$k}][id]">
<select id="c-{$vo.name}" class="form-control selectpicker" name="row[{$k}][value]">
<option value="1" {if condition="$vo.value==1"}selected{/if}>移动平均法</option>
<option value="2" {if condition="$vo.value==2"}selected{/if}>先进先出法</option>
</select>
</div>
</div>
{else/}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">{$vo.nickname}:</label>
<div class="col-xs-12 col-sm-8">
{if condition="$vo.is_edit<1"}<input type="hidden" value="{$vo.id}" name="row[{$k}][id]">{/if}
<input id="c-{$vo.name}" class="form-control" {if condition="$vo.is_edit<1"}name="row[{$k}][value]"{else/}disabled{/if} value="{$vo.value}" type="text" placeholder="{$vo.nickname}">
{if condition="!empty($vo.notice)"}<tips>{$vo.notice}</tips>{/if}
</div>
</div>
{/if}
{/if}
{/foreach}
<button type="button" data-id="add-form" class="sub_btn btn btn-success btn-embossed">{:__('OK')}</button>
</form>
</div>
<div class="layui-tab-item">
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<table class="table table-striped table-bordered table-hover table-nowrap">
<tr>
<th>功能</th><th class="center">操作</th><th>说明</th>
</tr>
{foreach name="sets" item="vo" key="k"}
{if condition="$vo.type==2"}
<tr>
<td>{$vo.nickname}:</td>
<td class="center">
<input type="hidden" value="{$vo.id}" name="row[{$k}][id]">
{if condition="!empty($vo.set)"}
<input type="checkbox" name="row[{$k}][is_checked]" value="1" checked style="display: none">
{php}$set = unserialize($vo['set']);$setvalue = explode(',',$vo['value']);{/php}
{foreach name="set" item="vo2"}
<div>
<input type="checkbox" name="row[{$k}][value][]" value="{$vo2.id}" {if condition="in_array($vo2['id'],$setvalue)"}checked{/if}>
{$vo2.name}
</div>
{/foreach}
{else/}
<input type="checkbox" id="set_{$vo.name}" name="row[{$k}][is_checked]" value="1" {if condition="$vo.is_checked==1"}checked{/if}>
<input type="hidden" name="row[{$k}][value]">
{/if}
</td>
<td class="explain">
{$vo.explain}
{if condition="$vo.name=='taxes'"}
<input type="number" name="row[{$k}][value]" value="{$vo.value}">%
{/if}
</td>
</tr>
{/if}
{/foreach}
</table>
<button type="button" data-id="edit-form" class="sub_btn btn btn-success btn-embossed">{:__('OK')}</button>
</form>
</div>
<div class="layui-tab-item" style="width: 1000px;">
<form id="price-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" value="4" name="row[type]">
<div class="list_title">销售类单据取价</div>
<table class="table table-striped table-bordered table-hover table-nowrap">
<tr>
<th class="center width120">销售价来源</th>
<th class="center width70">启用</th>
<th class="center width70">优先级</th>
<th class="center">说明</th>
</tr>
<tr>
<td class="center">商品价格策略</td>
<td class="center">
<span>
<input readonly id="c-price_sale-switch" name="row[switch]" type="hidden" value="1" checked="checked">
<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"></i>
</a>
</span>
</td>
<td class="center">1</td>
{foreach name="sets" item="vo" key="k"}
{if condition="$vo.name=='price_sale'"}
<td class="center" style="text-align: left">{$vo.explain|default=''}</td>
{/if}
{/foreach}
</tr>
{foreach name="sets" item="vo" key="k"}
{if condition="$vo.name=='price_sale_last'"}
<tr>
<td class="center">最近售价</td>
<td class="center">
<span>
<input id="c-price_sale_last" name="row[price_sale_last]" type="hidden" value="{$vo.is_checked}" {if condition="$vo.is_checked==1"}checked="checked"{/if}>
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-price_sale_last" data-yes="1" data-no="0">
<i class="fa fa-toggle-on text-success fa-2x {if condition='$vo.is_checked!=1'}fa-flip-horizontal text-gray{/if}"></i>
</a>
</span>
</td>
<td class="center">2</td>
<td class="center" style="text-align: left">{$vo.explain|default=''}</td>
</tr>
{/if}
{/foreach}
</table>
<div class="list_title">购货类单据取价</div>
<table class="table table-striped table-bordered table-hover table-nowrap">
<tr>
<th class="center width120">采购价来源</th>
<th class="center width70">启用</th>
<th class="center width70">优先级</th>
<th class="center">说明</th>
</tr>
<tr>
<td class="center">商品价格策略</td>
<td class="center">
<span>
<input readonly id="c-price_buy-switch" name="row[switch]" type="hidden" value="1" checked="checked">
<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"></i>
</a>
</span>
</td>
<td class="center">1</td>
{foreach name="sets" item="vo" key="k"}
{if condition="$vo.name=='price_buy'"}
<td class="center" style="text-align: left">{$vo.explain|default=''}</td>
{/if}
{/foreach}
</tr>
{foreach name="sets" item="vo" key="k"}
{if condition="$vo.name=='price_buy_last'"}
<tr>
<td class="center">最近采购价</td>
<td class="center">
<span>
<input id="c-price_buy_last" name="row[price_buy_last]" type="hidden" value="{$vo.is_checked}" {if condition="$vo.is_checked==1"}checked="checked"{/if}>
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-price_buy_last" data-yes="1" data-no="0">
<i class="fa fa-toggle-on text-success fa-2x {if condition='$vo.is_checked!=1'}fa-flip-horizontal text-gray{/if}"></i>
</a>
</span>
</td>
<td class="center">2</td>
<td class="center" style="text-align: left">{$vo.explain|default=''}</td>
</tr>
{/if}
{/foreach}
</table>
<button type="button" data-id="price-form" class="sub_btn btn btn-success btn-embossed">{:__('OK')}</button>
</form>
</div>
<div class="layui-tab-item">
<form id="prefix-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" value="3" name="row[type]">
<table class="table table-striped table-bordered table-hover table-nowrap">
<tr>
<th>单据</th><th class="center">单号前缀</th><th>年</th><th>月</th><th>日</th><th>时</th><th>分</th><th>秒</th><th>起始数</th><th>自定义数字长度</th><th>示例</th>
</tr>
{foreach name="prefix" item="vo" key="k"}
<tr>
<td class="textLeft">{$vo.name}:</td>
<td>
<input class="id" type="hidden" value="{$vo.id}" name="row[id][]">
<input class="prefix{$vo.id} dome" type="text" name="row[prefix{$vo.id}]" value="{$vo.prefix}">
</td>
<td class="center">
<input class="year{$vo.id} dome" type="checkbox" name="row[year{$vo.id}]" value="1" {if condition="$vo.year==1"}checked{/if}>
</td>
<td class="center">
<input class="month{$vo.id} dome" type="checkbox" name="row[month{$vo.id}]" value="1" {if condition="$vo.month==1"}checked{/if}>
</td>
<td class="center">
<input class="day{$vo.id} dome" type="checkbox" name="row[day{$vo.id}]" value="1" {if condition="$vo.day==1"}checked{/if}>
</td>
<td class="center">
<input class="hour{$vo.id} dome" type="checkbox" name="row[hour{$vo.id}]" value="1" {if condition="$vo.hour==1"}checked{/if}>
</td>
<td class="center">
<input class="minute{$vo.id} dome" type="checkbox" name="row[minute{$vo.id}]" value="1" {if condition="$vo.minute==1"}checked{/if}>
</td>
<td class="center">
<input class="second{$vo.id} dome" type="checkbox" name="row[second{$vo.id}]" value="1" {if condition="$vo.second==1"}checked{/if}>
</td>
<td>
<input class="start{$vo.id} dome" type="number" name="row[start{$vo.id}]" value="{$vo.start}">
</td>
<td>
<input class="strlen{$vo.id} dome" type="number" name="row[strlen{$vo.id}]" value="{$vo.strlen}">
</td>
<td>
<input class="example{$vo.id} dome" readonly type="text" name="row[example{$vo.id}]" value="{$vo.example}">
</td>
</tr>
{/foreach}
</table>
<button type="button" data-id="prefix-form" class="sub_btn btn btn-success btn-embossed">{:__('OK')}</button>
</form>
</div>
<div class="layui-tab-item">
<form id="xcx-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" style="max-width: 800px;">
{foreach name="sets" item="vo" key="k"}
{if condition="$vo.type==4"}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">{$vo.nickname}:</label>
<div class="col-xs-12 col-sm-8">
{if condition="$vo.is_edit<1"}<input type="hidden" value="{$vo.id}" name="row[{$k}][id]">{/if}
<input id="c-{$vo.name}" class="form-control" {if condition="$vo.is_edit<1"}name="row[{$k}][value]"{else/}disabled{/if} value="{$vo.value}" type="text" placeholder="{$vo.nickname}">
{if condition="!empty($vo.notice)"}<tips>{$vo.notice}</tips>{/if}
</div>
</div>
{/if}
{/foreach}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">用户协议:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control editor" name="agreement" rows="10">{$xcx_agreement|default=''}</textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-4">隐私协议:</label>
<div class="col-xs-12 col-sm-8">
<textarea class="form-control editor" name="privacy" rows="10">{$xcx_privacy|default=''}</textarea>
</div>
</div>
<button type="button" data-id="xcx-form" class="sub_btn btn btn-success btn-embossed">{:__('OK')}</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>