Authored by weiqingting

代销变价,品牌变价合作模式的execl链接修复,放开供应商营业执照

@@ -524,7 +524,7 @@ exports.res = [ @@ -524,7 +524,7 @@ exports.res = [
524 bottons: '{"edit":true,"columnsHidisFr":true}', 524 bottons: '{"edit":true,"columnsHidisFr":true}',
525 gridurl: '/goods/price/list', 525 gridurl: '/goods/price/list',
526 domain: exports.domain, 526 domain: exports.domain,
527 - download: '/common/batchUpdatePrice.xlsx' 527 + download: 'batchUpdatePrice'
528 } 528 }
529 }, { 529 }, {
530 //代销变价 -> 列表数据 530 //代销变价 -> 列表数据
@@ -640,7 +640,7 @@ exports.res = [ @@ -640,7 +640,7 @@ exports.res = [
640 bottons: '{"edit":true,"columnsHidisFr":true}', 640 bottons: '{"edit":true,"columnsHidisFr":true}',
641 gridurl: '/goods/brandCooperation/list', 641 gridurl: '/goods/brandCooperation/list',
642 domain: exports.domain, 642 domain: exports.domain,
643 - download: '/common/brandCooperation.xlsx' 643 + download: 'brandCooperation'
644 } 644 }
645 }, { 645 }, {
646 //品牌合作模式 -> 列表数据 646 //品牌合作模式 -> 列表数据
@@ -2,6 +2,7 @@ var authService = require('../service/auth'); @@ -2,6 +2,7 @@ var authService = require('../service/auth');
2 var uploader=require('../service/upload'); 2 var uploader=require('../service/upload');
3 var down=require('../service/down'); 3 var down=require('../service/down');
4 var ueditor=require('../service/ueditor'); 4 var ueditor=require('../service/ueditor');
  5 +var link=require('../service/link');
5 6
6 module.exports = { 7 module.exports = {
7 '/auth_bak':function(req, res){ 8 '/auth_bak':function(req, res){
@@ -81,5 +82,8 @@ module.exports = { @@ -81,5 +82,8 @@ module.exports = {
81 }, 82 },
82 '/ajax/ueditor':function(req,res){ 83 '/ajax/ueditor':function(req,res){
83 ueditor.uploadFile(req,res); 84 ueditor.uploadFile(req,res);
  85 + },
  86 + '/ajax/link/:name':function(req,res){
  87 + link.linkFile(req,res);
84 } 88 }
85 } 89 }
@@ -165,7 +165,7 @@ @@ -165,7 +165,7 @@
165 <input id="upload-input" name="file" class="btn btn-default excel-upload" type="file"> 165 <input id="upload-input" name="file" class="btn btn-default excel-upload" type="file">
166 </span> 166 </span>
167 167
168 - <a class="excel-model" href="{{domain}}{{download}}">表头下载</a> 168 + <a class="excel-model" href="/ajax/link/{{download}}">表头下载</a>
169 <input id="sure-change" class="btn btn-primary" type="button" value="确定变价"> 169 <input id="sure-change" class="btn btn-primary" type="button" value="确定变价">
170 170
171 </div> 171 </div>
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 <div class="form-group"> 42 <div class="form-group">
43 <label class="col-sm-2 control-label">营业执照号 <span class="red">*</span></label> 43 <label class="col-sm-2 control-label">营业执照号 <span class="red">*</span></label>
44 <div class="col-sm-8"> 44 <div class="col-sm-8">
45 - <input type="number" id="supplierCode" placeholder="营业执照号" class="form-control" required value="{{supplierCode}}"> 45 + <input type="text" id="supplierCode" placeholder="营业执照号" class="form-control" required value="{{supplierCode}}">
46 </div> 46 </div>
47 </div> 47 </div>
48 48