From 328ec740fb29fc5d4c1e21095c15f001caf28939 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Fri, 10 Feb 2023 16:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E6=94=B6=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E6=8B=89=E9=80=89=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/plant_info.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pages/massif/plant_info.vue b/pages/massif/plant_info.vue index 551d166..4f92158 100644 --- a/pages/massif/plant_info.vue +++ b/pages/massif/plant_info.vue @@ -34,7 +34,7 @@ export default { harvestBatch:{label:"收获批次号",btnText:"生成", btnFun:()=>this.formData.harvestBatch=`CS${new Date().format('yyyyMMdd')}${new Date().getTime()}`}, principal:{label:"负责人",type:"select",columns:[],value:[]}, harvestTime:{label:"采收时间",type:"calendar"}, - status:{label:"采收状态",type:"select",columns:[[{label:"本次采收完后续还会采收",value:"1"},{label:"已全部采收完",value:"2"}]],value:[]}, + status:{label:"采收状态",type:"select",columns:[],value:[]}, warehouseId:{label:"仓库",type:"select",columns:[],value:[]}, }, formData:{ @@ -88,6 +88,20 @@ export default { showCancel:false, }) } + // 采收状态 + var res=await request("/common/api/dict/queryDictItemByDictCode",{ + method:"post", + params:{dictCode:"harvest_status"} + }) + if(res.statu){ + this.fields.status.columns=[res.data] + }else{ + uni.showModal({ + title:"提示", + content:res.msg||"获取采收状态选项失败!", + showCancel:false, + }) + } }, submit(){ this.$refs.form.validate().then(async valid=>{