|
@ -32,7 +32,7 @@ export default { |
|
|
pestSite:{label:"病虫害部位",type:"checkBox",value:[],columns:[{label:"根",value:"根"},{label:"茎",value:"茎"},{label:"叶",value:"叶"}]}, |
|
|
pestSite:{label:"病虫害部位",type:"checkBox",value:[],columns:[{label:"根",value:"根"},{label:"茎",value:"茎"},{label:"叶",value:"叶"}]}, |
|
|
growthProcess:{label:"作物生长过程",type:"select-tab",dictCode:"growth_process"}, |
|
|
growthProcess:{label:"作物生长过程",type:"select-tab",dictCode:"growth_process"}, |
|
|
symptom:{label:"显著症状",type:"select-tab",dictCode:"symptom"}, |
|
|
symptom:{label:"显著症状",type:"select-tab",dictCode:"symptom"}, |
|
|
type:{label:"害虫类型",type:"navigate",btnFun:()=>uni.navigateTo({url:"/pages/massif/pestType"})}, |
|
|
type:{label:"害虫类型",type:"navigate",btnFun:()=>uni.navigateTo({url:"/pages/massif/pestType",events:{type:e=>this.formData.type=e}})}, |
|
|
medicationArea:{label:"农资作用面积",type:"digit",suffix:"亩"}, |
|
|
medicationArea:{label:"农资作用面积",type:"digit",suffix:"亩"}, |
|
|
pic:{label:"凭证",type:"upImg",value:""}, |
|
|
pic:{label:"凭证",type:"upImg",value:""}, |
|
|
description:{label:"病虫害描述",type:"textarea"}, |
|
|
description:{label:"病虫害描述",type:"textarea"}, |
|
@ -41,6 +41,7 @@ export default { |
|
|
growthProcess:'', |
|
|
growthProcess:'', |
|
|
pestSite:'', |
|
|
pestSite:'', |
|
|
symptom:"", |
|
|
symptom:"", |
|
|
|
|
|
type:"", |
|
|
medicationArea:"", |
|
|
medicationArea:"", |
|
|
pic:[], |
|
|
pic:[], |
|
|
description:"", |
|
|
description:"", |
|
@ -49,6 +50,7 @@ export default { |
|
|
growthProcess:{required:true,message:"请选择作物生长过程!",trigger:['blur','change']}, |
|
|
growthProcess:{required:true,message:"请选择作物生长过程!",trigger:['blur','change']}, |
|
|
pestSite:{required:true,message:"请选择病虫害部位!",trigger:['blur','change']}, |
|
|
pestSite:{required:true,message:"请选择病虫害部位!",trigger:['blur','change']}, |
|
|
symptom:{required:true,message:"请选择显著症状!",trigger:['blur','change']}, |
|
|
symptom:{required:true,message:"请选择显著症状!",trigger:['blur','change']}, |
|
|
|
|
|
type:{required:true,message:"请选择害虫类型!",trigger:['blur','change']}, |
|
|
medicationArea:{required:true,message:"请输入农资作用面积!",type:"number",trigger:['blur','change']}, |
|
|
medicationArea:{required:true,message:"请输入农资作用面积!",type:"number",trigger:['blur','change']}, |
|
|
pic:{required:true,validator:(rule,val,call)=>{ |
|
|
pic:{required:true,validator:(rule,val,call)=>{ |
|
|
if(!this.fields.pic.value)call(new Error("请选择凭证!")); |
|
|
if(!this.fields.pic.value)call(new Error("请选择凭证!")); |
|
|