From 8ad53894b9fe66d9b007829cf4d214ece1ad34e3 Mon Sep 17 00:00:00 2001 From: "weicw1996@qq.com" Date: Tue, 6 Oct 2026 13:55:57 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E8=BF=90=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=BC=96=E8=BE=91=E6=89=93=E5=8D=A1=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9C=B0=E5=9B=BE=E9=80=89=E7=82=B9=E5=AE=9A?= =?UTF-8?q?=E6=89=93=E5=8D=A1=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 打卡地址改为只读输入框,点击弹出地图选址(复用 address-map-picker, 与空港、港口、维修记录等处同一套),确定后回填地址与经纬度。 地址与经纬度成套更新——只回填地址会让坐标停留在司机打卡时的旧点上。 经纬度输入框保留,仍可手工微调。 --- .../components/waybill-manage-page.vue | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/views/business/components/waybill-manage-page.vue b/src/views/business/components/waybill-manage-page.vue index a582422..70b6a03 100644 --- a/src/views/business/components/waybill-manage-page.vue +++ b/src/views/business/components/waybill-manage-page.vue @@ -2835,8 +2835,11 @@ @@ -2931,6 +2934,14 @@ + + photo?.url) .map(photo => ({ url: photo.url, type: photo.voucherType || photo.type || '' })), }; + this.waybillPunchAddressMapVisible = false; this.waybillPunchRecordEditDialog.visible = true; }, + // 地图选点回填:地址与经纬度必须成套,只回填地址会让坐标停留在旧点上 + handleWaybillPunchAddressMapConfirm(payload) { + const selection = typeof payload === 'string' ? { address: payload } : payload || {}; + if (selection.address) { + this.waybillPunchEditForm.address = selection.address; + } + if ( + selection.longitude !== undefined && + selection.longitude !== null && + selection.longitude !== '' + ) { + this.waybillPunchEditForm.longitude = Number(selection.longitude).toFixed(6); + } + if ( + selection.latitude !== undefined && + selection.latitude !== null && + selection.latitude !== '' + ) { + this.waybillPunchEditForm.latitude = Number(selection.latitude).toFixed(6); + } + }, beforeWaybillPunchPhotoUpload(file) { const validType = ['image/jpeg', 'image/png', 'image/jpg', 'image/bmp'].includes(file.type); if (!validType) {