Index.html
8.69 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
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body" style="padding-bottom: 0">
<a class="btn btn-success " id="addPool"><i class="fa fa-plus"></i> 添加商品池</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input type="hidden" value="3" id="diffType" name="diffType"/>
<input type="text" class="form-control" id="search-id" placeholder="输入编号"
onkeyup="this.value=this.value.replace(/\D/gi,'')"/>
</div>
<div class="panel-col">
<input type="text" class="form-control" id="search-name" placeholder="输入名称"/>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/market/productPool/index" class="btn btn-info">全部</a>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body nopadding">
<div id="product-pool"></div>
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-horizontal" id="productEdit">
<input type="hidden" value="[[id]]" id="id"/>
<div class="form-group">
<label for="poolName" class="col-sm-3 control-label">商品池名称:</label>
<div class="col-sm-5">
<input type="text" id="poolName" value="[[poolName]]" class="form-control"/>
</div>
<div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必填</label></div>
</div>
<div class="form-group">
<label for="comment" class="col-sm-3 control-label">说明:</label>
<div class="col-sm-5">
<input type="text" id="comment" value="[[comment]]" class="form-control"/>
</div>
</div>
<div class="form-group">
<label for="producttype" class="col-sm-3 control-label">商品:</label>
<div class="col-sm-5">
<select id="producttype" class="form-control">
<option value="-1">-- 请选择添加商品类型 --</option>
<option value="1">SKN</option>
<option value="2" disabled>SKU(暂不支持)</option>
<option value="3" disabled>SKC(暂不支持)</option>
</select>
</div>
<div class="col-sm-4"><label style="color: #ff0000; line-height: 40px"> * 必选(当前只支持SKN)</label></div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">上传:</label>
<div class="col-sm-9">
<div class="row">
<div class="col-sm-7">
<input id="path" class="form-control" type="text" disabled="disabled"
style="cursor:default; width: 218px">
</div>
<div class="col-sm-4" style="position: relative; padding-left: 0;">
<input id="productSkn" name="productSkn" class="btn btn-default excel-upload" type="file"
style="position: absolute; top: 0;left: 10px; height:37px">
<div class="file-name btn btn-info">请选择文件</div>
<input type="hidden" id="sknVal"/>
</div>
</div>
<div style="margin: 10px 0 0; color:#f0ad4e">
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、<a href="/ajax/link/productpool" style="margin: 0; text-decoration: underline">下载样例.xlsx</a>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="batchTemplate">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<div class="col-sm-9">
<div class="row">
<div class="col-sm-7">
<input id="bathcPath" class="form-control" type="text" disabled="disabled"
style="cursor:default; width: 218px">
</div>
<div class="col-sm-4" style="position: relative; padding-left: 0;">
<input id="batchProductSkn" name="productSkn" class="btn btn-default excel-upload"
type="file"
style="position: absolute; top: 0;left: 10px; height:37px">
<div class="file-name btn btn-info">请选择文件</div>
<input type="hidden" id="sknVal2"/>
</div>
</div>
<div style="margin: 10px 0 0; color:#f0ad4e">
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、<a href="/ajax/link/productpool" style="margin: 0; text-decoration: underline">下载样例.xlsx</a>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="detailPoolTemplate">
<div class="form-group">
<label class="col-sm-2 control-label">添加SKN到商品池: </label>
<div class="col-sm-3">
<input type="text" id="addSknText" class="form-control input-form" placeholder="输入SKN">
<input type="hidden" id="addSknType" value="[[producttype]]">
<input type="hidden" id="addSknPoolId" value="[[id]]">
</div>
<div class="col-sm-1">
<a href="javascript:;" id="addSknBtn" class="btn btn-info">+添加</a>
</div>
</div>
<div class="form-group">
<div class="col-sm-2">
<input type="text" id="productSkn" class="form-control input-form" placeholder="查询SKN">
</div>
<div class="col-sm-2">
<select name="brandId" id="brandId" class="form-control">
<option value="-1">请选择品牌</option>
</select>
</div>
<div class="col-sm-3">
<div id="sortTree" class="form-control height40" style="border: 0px; padding: 0px;"></div>
</div>
<div class="panel-col">
<a href="javascript:;" id="queryBtn" class="btn btn-info">查询</a>
<a href="javascript:;" id="queryAllBtn" class="btn btn-info">全部</a>
</div>
<div class="col-sm-2">
<a href="javascript:;" id="batchAddPool" class="btn btn-primary">批量导入</a>
</div>
</div>
<div id="faGrid"></div>
</script>
<script type="text/template" id="batchDelTemplate">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<div class="col-sm-9">
<div class="row">
<div class="col-sm-7">
<input id="bathcDelPath" class="form-control" type="text" disabled="disabled"
style="cursor:default; width: 218px">
</div>
<div class="col-sm-4" style="position: relative; padding-left: 0;">
<input id="batchDelProductSkn" name="productSkn" class="btn btn-default excel-upload"
type="file"
style="position: absolute; top: 0;left: 10px; height:37px">
<div class="file-name btn btn-info">请选择文件</div>
</div>
</div>
<div style="margin: 10px 0 0; color:#f0ad4e">
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、Excel表头为<span style="color:red;">SKN</span><br>
3、第一行为表头内容,第二行开始为正式内容<br>
4、每个文件控制在5000行内<br>
5、<a href="/ajax/link/batchDelPool" style="margin: 0; text-decoration: underline">下载样例.xlsx</a>
</div>
</div>
</div>
</div>
</div>
</script>