Authored by leo

Update: 修改基础商品更新接口,增加定金字段

@@ -135,7 +135,8 @@ module.exports={ @@ -135,7 +135,8 @@ module.exports={
135 {name: 'stock', type: 'Number'}, 135 {name: 'stock', type: 'Number'},
136 {name: 'isAuditing', type: 'Number'}, 136 {name: 'isAuditing', type: 'Number'},
137 {name: 'productStandardRelationStr', type: 'String'}, 137 {name: 'productStandardRelationStr', type: 'String'},
138 - {name: 'appType', type: 'Number'} 138 + {name: 'appType', type: 'Number'},
  139 + {name: 'deposit', type: 'Number'}
139 ] 140 ]
140 }, 141 },
141 getBaseProduct:{ 142 getBaseProduct:{
@@ -537,6 +537,10 @@ e.on("validate",function(){ @@ -537,6 +537,10 @@ e.on("validate",function(){
537 }); 537 });
538 538
539 e.on("validate",function(){ 539 e.on("validate",function(){
  540 + if(!$("#deposit").val()) {
  541 + return;
  542 + }
  543 +
540 if((+$("#deposit").val()) < 0) { 544 if((+$("#deposit").val()) < 0) {
541 return "预付定金格式不合法"; 545 return "预付定金格式不合法";
542 } 546 }