Authored by linlong

update

... ... @@ -280,7 +280,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">预计上架时间<span class="red">*</span></label>
<div class="col-sm-2">
<div class="col-sm-2"><input type="hidden" id="firstShelveTime" class="form-control" jsaction="time" required value="[[firstShelveTime]]" />
<input type="text" id="expectShelfTimeStr" jsaction="time" value="[[expectShelfTimeStr]]" required class="form-control" readonly="readonly" placeholder="预计上架时间" />
</div>
[[if isAdvance=='Y']]
... ...
... ... @@ -35,6 +35,21 @@
5、<a href="/ajax/link/brandModelSeries">下载样例</a>
</td>
</tr>
<tr>
<td rowspan="2">批量下架</td>
<td>上传EXCEL:</td>
<td style="position: relative;"><input id="offShelve-file" name="file" data-type="offShelveSkn" type="file" style="cursor: pointer; height: 37px; top: 8px;"></td>
</tr>
<tr>
<td>说明:</td>
<td colspan="2">
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、Excel表头为:<span style="color: #67D267;">SKN、操作下架(1)</span><br>
3、第一行为表头内容,第二行开始为正式内容<br>
4、每个文件控制在500行以内<br>
5、<a href="/ajax/link/offShelveSkn">下载样例</a>
</td>
</tr>
</table>
</div>
</div>
... ...
... ... @@ -114,7 +114,7 @@
<a id="onshelve" href="javascript:;" class="btn btn-info" >上架</a>
<a id="offshelve" href="javascript:;" class="btn btn-info">下架</a>
<a id="export-btn" href="javascript:;" class="btn btn-info">导出</a>
<a id="import-btn" href="/goods/netsale/batch" class="btn btn-info">批量(排序、款型系列)</a>
<a id="import-btn" href="/goods/netsale/batch" class="btn btn-info">批量(排序、款型系列、下架</a>
</div>
</div>
... ...
... ... @@ -242,6 +242,10 @@ $(document).on("click",".sortadd",function(){
common.util.__tip("请填写销售价","warning");
return;
}
if ($.trim($("#firstShelveTime").val())!=""&&$.trim($("#firstShelveTime").val())!=0) {
common.util.__tip("商品有过上架操作,不允许修改厂家颜色","warning");
return;
}
if(g.__e.validate()){
var goodsSizeList=$.extend({},ENUM.goodsSizeList);
goodsSizeList.salePrice=$("#salesPriceStr").val();
... ...
'use strict';
var $ = require('jquery'),
common = require('../common/common');
common = require('../../common/common');
$('input[type="file"]').after('<div class="file-name btn btn-default">请选择文件</div>');
... ... @@ -33,3 +33,4 @@ function batchExport(el, type) {
common.edit.ajaxfileupload('#sort-file', batchExport('#sort-file', 'searchSort'));
common.edit.ajaxfileupload('#brand-file', batchExport('#brand-file', 'brandProperty'));
common.edit.ajaxfileupload('#offShelve-file', batchExport('#offShelve-file', 'offShelveSkn'));
\ No newline at end of file
... ...