Browse Source

库存增加采购价格字段

master
马景富 2 years ago
parent
commit
e5e32c9903
  1. 3
      pages/stock/agrWarehouse.vue

3
pages/stock/agrWarehouse.vue

@ -93,6 +93,7 @@ import request from '@/common/request'
return{ return{
fields:{ fields:{
specName:{label:"规格", disabled:true, agr:true}, specName:{label:"规格", disabled:true, agr:true},
price:{label:"采购单价",type:"digit",suffix:"",agr:true},
warning:{label:"预警值",type:"digit",suffix:"",agr:true}, warning:{label:"预警值",type:"digit",suffix:"",agr:true},
number:{label:"入库数量", type:"digit",suffix:"", tip:""}, number:{label:"入库数量", type:"digit",suffix:"", tip:""},
inOutBatchNo:{label:"入库批次号",agr:true, btnText:"生成", btnFun:()=>this.formData.inOutBatchNo=`RK${new Date().format('yyyyMMdd')}${new Date().getTime()}`}, inOutBatchNo:{label:"入库批次号",agr:true, btnText:"生成", btnFun:()=>this.formData.inOutBatchNo=`RK${new Date().format('yyyyMMdd')}${new Date().getTime()}`},
@ -104,6 +105,7 @@ import request from '@/common/request'
}, },
formData:{ formData:{
enterpriseId: this.$store.getters['userInfo'].companyId, enterpriseId: this.$store.getters['userInfo'].companyId,
price:"",
specName:"", specName:"",
warning:"", warning:"",
specId:"", specId:"",
@ -119,6 +121,7 @@ import request from '@/common/request'
}, },
rules:{ rules:{
number:{required:true,type:"number", message:"入库数量必填!"}, number:{required:true,type:"number", message:"入库数量必填!"},
price:{required:true,type:"number", message:"采购单价必填!"},
warning:{required:true,type:"number", message:"入库数量必填!"}, warning:{required:true,type:"number", message:"入库数量必填!"},
inOutBatchNo:{required:true, message:"入库批次号必填!"}, inOutBatchNo:{required:true, message:"入库批次号必填!"},
warehouseId:{required:true, message:"仓库必选!"}, warehouseId:{required:true, message:"仓库必选!"},

Loading…
Cancel
Save