Authored by weiqingting

提交

@@ -263,7 +263,10 @@ $(document).on("click",".edit",function(){ @@ -263,7 +263,10 @@ $(document).on("click",".edit",function(){
263 var goodsgird=new common.grid({ 263 var goodsgird=new common.grid({
264 el:'#goodsgird', 264 el:'#goodsgird',
265 parms:function(){ 265 parms:function(){
266 - return {}; 266 + return {
  267 + xxx:"",
  268 + xxx1:"",
  269 + };
267 }, 270 },
268 columns:[ 271 columns:[
269 {display:"选择",type:"checkbox"}, 272 {display:"选择",type:"checkbox"},
@@ -279,6 +282,9 @@ var goodsgird=new common.grid({ @@ -279,6 +282,9 @@ var goodsgird=new common.grid({
279 {display:"库存",name:"storage_num"} 282 {display:"库存",name:"storage_num"}
280 ] 283 ]
281 }); 284 });
  285 +$(document).on("click","#search",function(){
  286 + goodsgird.reload();
  287 +});
282 $(document).on("click","#goodsSelectBtn",function(){ 288 $(document).on("click","#goodsSelectBtn",function(){
283 new common.dialog({ 289 new common.dialog({
284 title:"选择商品", 290 title:"选择商品",
@@ -8,7 +8,8 @@ exports.getJSONFile=function(req,res){ @@ -8,7 +8,8 @@ exports.getJSONFile=function(req,res){
8 } 8 }
9 9
10 exports.search=function(req,res){ 10 exports.search=function(req,res){
11 - var url="http://192.168.102.208:8087/yohosearch/search.json?viewNum=15&query=51022754,51178582"; 11 + //req.body
  12 + var url="http://192.168.102.208:8087/yohosearch/search.json";//?viewNum=15&query=51022754,51178582
12 request({url: url}, function (error, response, body) { 13 request({url: url}, function (error, response, body) {
13 var data={}; 14 var data={};
14 data.list=[]; 15 data.list=[];