Authored by weiqingting

提交

... ... @@ -6,9 +6,9 @@ new common.dropDown({el:"#brandId",ajax:"queryBrandByShopId",params:function(){
return {status:1}
}});
new common.dropDown({el:"#shopId",ajax:"sortbybrand",params:function(){
return {brandId:$("#brandId").val()}
}});
// new common.dropDown({el:"#shopId",ajax:"sortbybrand",params:function(){
// return {brandId:$("#brandId").val()}
// }});
new common.dropDown({el:"#supplierId",ajax:"getjitSup",params:function(){
return {brandId:$("#brandId").val()}
... ... @@ -25,17 +25,17 @@ function batchExport(el, type) {
params: {
type: type,
brandId:common.util.__input("brandId"),
shopId:common.util.__input("shopId"),
shopsId:common.util.__input("shopId"),
supplierId:common.util.__input("supplierId"),
__type: "batch-import"
},
onStart: function(params) {
params.brandId=common.util.__input("brandId");
params.shopId=common.util.__input("shopId");
params.shopsId=common.util.__input("shopId");
params.supplierId=common.util.__input("supplierId");
params.brandName=params.brandId?$("#brandId").find("option[value="+$("#brandId").val()+"]").text():"";
params.shopsName=params.shopId?$("#shopId").find("option[value="+$("#shopId").val()+"]").text():"";
params.shopsName=common.util.__input("shopName");
params.supplierName=params.supplierId?$("#supplierId").find("option[value="+$("#supplierId").val()+"]").text():"";
console.log("params",params);
... ...
... ... @@ -45,7 +45,6 @@ $('.shops_id').click(function(){
$.getJSON('/index/ajaxshop?shops_id='+shop_id, function (data){
if(data.code == 200){
window.location.href="/";
}else{
alert(data.message);
}
... ... @@ -54,4 +53,4 @@ $('.shops_id').click(function(){
/*过滤特殊字符*/
$(document).on("keyup",":text",function(){
$(this).val($(this).val().replace(/\W/g,''))
})
\ No newline at end of file
});
\ No newline at end of file
... ...
... ... @@ -12,12 +12,7 @@
{{^ secondTitle}}{{pageTitle}}{{/ secondTitle}}
</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>{{pageTitle}}</h4>
</div>
</div>
<h4>{{pageTitle}}</h4>
</div>
</div>
</div>
... ... @@ -36,12 +31,12 @@
</select>
</div>
<label class="col-sm-1 control-label">管理店铺 </label>
<!-- <label class="col-sm-1 control-label">管理店铺 </label>
<div class="col-sm-2">
<select id="shopId" class="form-control">
<option value="-1">选择店铺</option>
</select>
</div>
</div> -->
<label class="col-sm-1 control-label">JIT供应商</label>
<div class="col-sm-2">
... ... @@ -81,4 +76,7 @@
<div class="panel panel-primary-head">
<div class="panel-body red" id="message">
</div>
</div>
\ No newline at end of file
</div>
<input type="hidden" id="shopId" value="{{auth.shopId}}" />
<input type="hidden" id="shopName" value="{{auth.shopName}}" />
\ No newline at end of file
... ...
... ... @@ -12,12 +12,7 @@
{{^ secondTitle}}{{pageTitle}}{{/ secondTitle}}
</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>{{pageTitle}}</h4>
</div>
</div>
<h4>{{pageTitle}}</h4>
</div>
</div>
</div>
... ...