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