From da9f24c49c0e747234d307637e9348da08875c64 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 26 Jul 2023 17:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=9C=E8=B5=84=E5=87=BA=E5=BA=93=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A2=86=E7=94=A8=E4=BA=BA=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/stock/list.vue | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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=>{