Browse Source

修改添加农事显示名称

master
邓宏 2 years ago
parent
commit
60962844ad
  1. 4
      pages/massif/pestRecord.vue
  2. 2
      pages/massif/pestType.vue

4
pages/massif/pestRecord.vue

@ -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",events:{type:e=>this.formData.type=e}})}, 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"},
@ -50,7 +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']}, 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("请选择凭证!"));

2
pages/massif/pestType.vue

@ -80,7 +80,7 @@
</style> </style>
<template> <template>
<view class="container flex"> <view class="container flex">
<d-navbar style="--bg:#10C176;--c:#fff;" isBack text="添加农事"> <d-navbar style="--bg:#10C176;--c:#fff;" isBack text="选择害虫">
<button slot="right" class="cu-btn round" @click="submit">提交</button> <button slot="right" class="cu-btn round" @click="submit">提交</button>
</d-navbar> </d-navbar>

Loading…
Cancel
Save