Browse Source

出入库 修改表单提示

master
邓宏 2 years ago
parent
commit
27e618eb17
  1. 4
      pages/stock/list.vue

4
pages/stock/list.vue

@ -192,8 +192,8 @@ export default{
if(!val)call(new Error(`${({in:'入',out:'出'})[this.mode]}库批次号必填!`));
else call()
}},
number:{required:true,validator(rule,val,call){
if(!val)call(new Error(`请输入${({in:'入',out:'出'})[this.mode]}库数量!`));
number:{required:true,validator:(rule,val,call)=>{
if(!(val>0))call(new Error(`请输入${({in:'入',out:'出'})[this.mode]}库数量!`));
else if(this.mode=='out' && val>this.detail.equivalentInventory)call(new Error(`${({in:'入',out:'出'})[this.mode]}库数量不能大于库存数量!`));
else call()
},type:"number"},

Loading…
Cancel
Save