Authored by weiqingting

供应商bug修复

... ... @@ -79,4 +79,12 @@ var edit=require('../common/edit');
},{msg:"提交成功"});
return false;
});
//供应商列表
$("#updatecheck").click(function(){
submit(function(data){
data.operations=2;
data.status=200;
},{msg:"提交成功"});
return false;
});
... ...
... ... @@ -37,7 +37,7 @@ var $ = require('jquery'),
//提交操作
$(document).on('click', '.btn-submit', function() {
Bll.toast("确定要审核通过吗?",function(){
return Bll.model({status:300,operations:2});
return Bll.model({status:300});
});
});
//提交驳回
... ...
exports.domain =require('../config/common.js').domain;
//exports.domain ="http://172.16.9.8:8080/yohobuy-platform-web";
// exports.domain =require('../config/common.js').domain;
//172.16.9.8
exports.domain ="http://172.16.9.8:8080/yohobuy-platform-web";
//路由配置
exports.res = [
{
... ... @@ -107,7 +108,8 @@ exports.res = [
action:'/brand/supplier/add',
data:{},
pageTitle:"添加供应商",
add:true
add:true,
update:true
}
},
{
... ... @@ -137,7 +139,7 @@ exports.res = [
data:{
action:'/brand/action/update',
pageTitle:"修改供应商",
update:true
updatecheck:true
},
params:[
{
... ...
... ... @@ -222,7 +222,12 @@
{{# add}}
<button type="submit" class="btn btn-info" data-loading-text="暂存中..." id="btnTemporary">暂存</button>
{{/ add}}
{{# update}}
<button type="submit" class="btn btn-success mr5" data-loading-text="提交审核中..." id="btnReview">提交审核</button>
{{/ update}}
{{# updatecheck}}
<button type="submit" class="btn btn-success mr5" data-loading-text="提交审核中..." id="updatecheck">提交审核</button>
{{/ updatecheck}}
</div>
</div>
</div>
... ...