diff --git a/pages/stock/list.vue b/pages/stock/list.vue index 5254079..fd66014 100644 --- a/pages/stock/list.vue +++ b/pages/stock/list.vue @@ -165,6 +165,17 @@ + + + + + + + + + + + @@ -201,6 +212,8 @@ export default{ number:{suffix:""}, buyerType:{list:[],value:[]}, packWeightList:[], + processMode:[],//处理方式 + damageReason:[],//损坏原因 formData:{ inInventoryBatch:"", inOutType:"", @@ -217,6 +230,13 @@ export default{ tradeNum:"", buyerType:"", buyerAddress:"", + + price:"", + processMode:"", + + damageReason:"", + rateDiscount:"", + amount:"", }, rules:{ inInventoryBatch:{required:true,message:"请选择采收批次!",trigger:['blur','change']}, @@ -242,6 +262,13 @@ export default{ buyerName:{required:true,message:"买方名称必填!",trigger:['blur','change']}, buyerType:{required:true,message:"交易类型必选!",trigger:['blur','change']}, buyerAddress:{required:true,message:"收货地址必填!",trigger:['blur','change']}, + + price:{required:true, type:"number", message:"请输入采购单价!",tigger:['blur','change']}, + processMode:{required:true, message:"请输入处理方式!",tigger:['blur','change']}, + + damageReason:{required:true, message:"请选择损坏原因!",tigger:['blur','change']}, + rateDiscount:{required:true, type:"number", message:"请输入折价率!",tigger:['blur','change']}, + amount:{required:true, type:"number", message:"请输入金额!",tigger:['blur','change']}, }, mode:"", eventChannel:null, @@ -333,6 +360,34 @@ export default{ showCancel:false, }) } + //处理方式 + var res = await request("/common/api/dict/queryDictItemByDictCode",{ + method:"post", + params:{dictCode:"process_mode"} + }) + if(res.statu){ + this.processMode=res.data + }else{ + uni.showModal({ + title:"提示", + content:res.msg||"获取买方类型选项失败!", + showCancel:false, + }) + } + //损坏原因 + var res = await request("/common/api/dict/queryDictItemByDictCode",{ + method:"post", + params:{dictCode:"damage_reason"} + }) + if(res.statu){ + this.damageReason=res.data + }else{ + uni.showModal({ + title:"提示", + content:res.msg||"获取买方类型选项失败!", + showCancel:false, + }) + } }, submit(){ this.$refs.form.validate().then(async valid=>{