From 4a02ac5e3e06ad57cd416d5928a2bb60aa168594 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 20 Nov 2024 10:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E5=9B=AD=E8=AE=B0=E5=BD=95=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=97=E8=A1=A8=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/patrolGarden/abnoReport.vue | 18 ++++++++++++++++++ pages/patrolGarden/info.vue | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pages/patrolGarden/abnoReport.vue b/pages/patrolGarden/abnoReport.vue index 489df18..0da4b60 100644 --- a/pages/patrolGarden/abnoReport.vue +++ b/pages/patrolGarden/abnoReport.vue @@ -10,6 +10,7 @@ + @@ -28,11 +29,14 @@ export default { remark:"", pic:'', flagDeal:0, + plotId:"", + plotName:"", }, imgs:[], rules:{ pic:{required:true,message:"请上传凭证!",trigger:'blur'}, position:{required:true,message:"请输入位置详情!",trigger:"blur"}, + plotId:{required:true,message:"请选择地块!"}, }, eventChannel:null, } @@ -53,6 +57,20 @@ export default { } }) }, + selectPlot(){ + uni.navigateTo({ + url:"/pages/patrolGarden/searchPlot", + events:{update:e=>{ + this.formData.plotId=e.map(v=>v.id).join(',') + this.formData.plotName=e.map(v=>v.plotName).join(',') + }}, + success: e=>{ + var id=this.formData.plotId?.split?.(',')?.filter(v=>v)||[] + var name=this.formData.plotName?.split?.(',')?.filter(v=>v)||[] + e.eventChannel.emit("list", id.map((v,k)=>({id:v, plotName:name[k]}))) + } + }) + }, } } \ No newline at end of file diff --git a/pages/patrolGarden/info.vue b/pages/patrolGarden/info.vue index 391fa8a..cdd1bb5 100644 --- a/pages/patrolGarden/info.vue +++ b/pages/patrolGarden/info.vue @@ -63,7 +63,6 @@ - @@ -98,15 +97,12 @@ export default { detailList:[], flagAbnormal:0, pic:'', - plotId:"", - plotName:"", remark:"", }, imgs:[], rules:{ pic:{required:true,message:"请上传凭证!",trigger:'blur'}, operateDate:{required:true,message:"请选择巡园日期!",trigger:'blur'}, - plotId:{required:true,message:"请选择地块!"}, }, host:host('imgUrl'), eventChannel:null, @@ -162,20 +158,6 @@ export default { } }) }, - selectPlot(){ - uni.navigateTo({ - url:"/pages/patrolGarden/searchPlot", - events:{update:e=>{ - this.formData.plotId=e.map(v=>v.id).join(',') - this.formData.plotName=e.map(v=>v.plotName).join(',') - }}, - success: e=>{ - var id=this.formData.plotId?.split?.(',')?.filter(v=>v)||[] - var name=this.formData.plotName?.split?.(',')?.filter(v=>v)||[] - e.eventChannel.emit("list", id.map((v,k)=>({id:v, plotName:name[k]}))) - } - }) - }, } } \ No newline at end of file