Authored by weiqingting

供应商bug修复

@@ -79,4 +79,12 @@ var edit=require('../common/edit'); @@ -79,4 +79,12 @@ var edit=require('../common/edit');
79 },{msg:"提交成功"}); 79 },{msg:"提交成功"});
80 return false; 80 return false;
81 }); 81 });
  82 + //供应商列表
  83 + $("#updatecheck").click(function(){
  84 + submit(function(data){
  85 + data.operations=2;
  86 + data.status=200;
  87 + },{msg:"提交成功"});
  88 + return false;
  89 + });
82 90
@@ -37,7 +37,7 @@ var $ = require('jquery'), @@ -37,7 +37,7 @@ var $ = require('jquery'),
37 //提交操作 37 //提交操作
38 $(document).on('click', '.btn-submit', function() { 38 $(document).on('click', '.btn-submit', function() {
39 Bll.toast("确定要审核通过吗?",function(){ 39 Bll.toast("确定要审核通过吗?",function(){
40 - return Bll.model({status:300,operations:2}); 40 + return Bll.model({status:300});
41 }); 41 });
42 }); 42 });
43 //提交驳回 43 //提交驳回
1 -exports.domain =require('../config/common.js').domain;  
2 -//exports.domain ="http://172.16.9.8:8080/yohobuy-platform-web"; 1 +// exports.domain =require('../config/common.js').domain;
  2 +//172.16.9.8
  3 +exports.domain ="http://172.16.9.8:8080/yohobuy-platform-web";
3 //路由配置 4 //路由配置
4 exports.res = [ 5 exports.res = [
5 { 6 {
@@ -107,7 +108,8 @@ exports.res = [ @@ -107,7 +108,8 @@ exports.res = [
107 action:'/brand/supplier/add', 108 action:'/brand/supplier/add',
108 data:{}, 109 data:{},
109 pageTitle:"添加供应商", 110 pageTitle:"添加供应商",
110 - add:true 111 + add:true,
  112 + update:true
111 } 113 }
112 }, 114 },
113 { 115 {
@@ -137,7 +139,7 @@ exports.res = [ @@ -137,7 +139,7 @@ exports.res = [
137 data:{ 139 data:{
138 action:'/brand/action/update', 140 action:'/brand/action/update',
139 pageTitle:"修改供应商", 141 pageTitle:"修改供应商",
140 - update:true 142 + updatecheck:true
141 }, 143 },
142 params:[ 144 params:[
143 { 145 {
@@ -222,7 +222,12 @@ @@ -222,7 +222,12 @@
222 {{# add}} 222 {{# add}}
223 <button type="submit" class="btn btn-info" data-loading-text="暂存中..." id="btnTemporary">暂存</button> 223 <button type="submit" class="btn btn-info" data-loading-text="暂存中..." id="btnTemporary">暂存</button>
224 {{/ add}} 224 {{/ add}}
  225 + {{# update}}
225 <button type="submit" class="btn btn-success mr5" data-loading-text="提交审核中..." id="btnReview">提交审核</button> 226 <button type="submit" class="btn btn-success mr5" data-loading-text="提交审核中..." id="btnReview">提交审核</button>
  227 + {{/ update}}
  228 + {{# updatecheck}}
  229 + <button type="submit" class="btn btn-success mr5" data-loading-text="提交审核中..." id="updatecheck">提交审核</button>
  230 + {{/ updatecheck}}
226 </div> 231 </div>
227 </div> 232 </div>
228 </div> 233 </div>