diff --git a/pages/stock/list.vue b/pages/stock/list.vue index 90cafaf..f696ef2 100644 --- a/pages/stock/list.vue +++ b/pages/stock/list.vue @@ -165,6 +165,10 @@ + + + + @@ -214,6 +218,7 @@ export default{ packWeightList:[], processMode:[],//处理方式 damageReason:[],//损坏原因 + reciveuser:[],//领用人 formData:{ inInventoryBatch:"", inOutType:"", @@ -231,6 +236,9 @@ export default{ buyerType:"", buyerAddress:"", + reciveUserId:"", + reciveUser:"", + price:"", processMode:"", @@ -263,6 +271,8 @@ export default{ buyerType:{required:true,message:"交易类型必选!",trigger:['blur','change']}, buyerAddress:{required:true,message:"收货地址必填!",trigger:['blur','change']}, + reciveUserId:{required:true,message:"请选择领用人!",trigger:['blur','change']}, + price:{required:true, type:"number", message:"请输入采购单价!",tigger:['blur','change']}, processMode:{required:true, message:"请输入处理方式!",tigger:['blur','change']}, @@ -388,6 +398,19 @@ export default{ showCancel:false, }) } + //领用人 + var res=await request("/api/plantPlot/queryBaseUserByBaseId",{ + params:{baseId: this.$store.state.baseInfo.id} + }) + if(res.statu){ + this.reciveuser=res.data + }else{ + uni.showModal({ + title:"提示", + content:res.msg||"获取领用人选项失败!", + showCancel:false, + }) + } }, submit(){ this.$refs.form.validate().then(async valid=>{