Browse Source

采收信息 修改下拉选接口

master
邓宏 2 years ago
parent
commit
328ec740fb
  1. 16
      pages/massif/plant_info.vue

16
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=>{

Loading…
Cancel
Save