From 85dca5c7a1b814de16023f874484950065622395 Mon Sep 17 00:00:00 2001 From: chenglijuan Date: Thu, 30 Apr 2026 17:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=BF=E5=AE=A2=E9=A2=84?= =?UTF-8?q?=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 3 +-- pages/appointment/appointment.js | 14 +++++++++++--- pages/appointment/appointment.wxml | 4 ++++ utils/api.js | 2 ++ utils/config.js | 9 +++------ 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/app.json b/app.json index 75ff8c8..5411241 100644 --- a/app.json +++ b/app.json @@ -1,9 +1,8 @@ { "pages": [ - "pages/records/records", "pages/index/index", "pages/appointment/appointment", - + "pages/records/records", "pages/scan/result/index" ], "window": { diff --git a/pages/appointment/appointment.js b/pages/appointment/appointment.js index 8f2bba2..207180c 100644 --- a/pages/appointment/appointment.js +++ b/pages/appointment/appointment.js @@ -16,7 +16,9 @@ Page({ time: '', hostName: '', hostId: '', - area: '' + personId: '', + area: '', + plateNumber: '' }, areas: ['A区-生产车间', 'B区-办公楼', 'C区-仓储区', 'D区-研发中心', 'E区-综合区'], areaMap: { 'A区-生产车间': 'A', 'B区-办公楼': 'B', 'C区-仓储区': 'C', 'D区-研发中心': 'D', 'E区-综合区': 'E' }, @@ -78,6 +80,9 @@ Page({ onHostNameInput(e) { this.setData({ 'form.hostName': e.detail.value }) }, + onPlateNumberInput(e) { + this.setData({ 'form.plateNumber': e.detail.value }) + }, onAreaChange(e) { const index = Number(e.detail.value) @@ -88,6 +93,7 @@ Page({ 'form.area': areaName, 'form.hostId': '', 'form.hostName': '', + 'form.personId': '', persons: [], personNames: [], personIndex: -1 @@ -103,7 +109,8 @@ Page({ const list = await appointmentDB.getPersonSelector(department) const persons = list.map(item => ({ personId: item.personId, - personName: item.personName + personName: item.personName, + personId: item.personId })) this.setData({ persons, @@ -125,7 +132,8 @@ Page({ this.setData({ personIndex: index, 'form.hostId': person.personId, - 'form.hostName': person.personName + 'form.hostName': person.personName, + 'form.personId': person.personId }) } }, diff --git a/pages/appointment/appointment.wxml b/pages/appointment/appointment.wxml index efdac13..eb7203a 100644 --- a/pages/appointment/appointment.wxml +++ b/pages/appointment/appointment.wxml @@ -19,6 +19,10 @@ 来访事由 + + 车牌号 + + diff --git a/utils/api.js b/utils/api.js index 79e766e..17307c2 100644 --- a/utils/api.js +++ b/utils/api.js @@ -122,7 +122,9 @@ const appointmentDB = { visitDate: data.date, visitTime: data.time, hostName: data.hostName, + personId: data.personId, area: data.area, + plateNumber: data.plateNumber, openid: data.openid } }) diff --git a/utils/config.js b/utils/config.js index b299803..e995ef6 100644 --- a/utils/config.js +++ b/utils/config.js @@ -2,12 +2,9 @@ // 环境地址配置 const ENV_CONFIG = { - // 正式版 - // release: 'https://xcx.yun.588580.xyz', - trial: 'https://qywx.yun.588580.xyz', - // 开发版 & 体验版 - develop: 'http://172.16.60.235:8080' - // develop: 'http://10.50.13.191:8080' + trial: 'https://smartguest.bmser.com:8091', + // develop: 'https://192.168.123.76:8080' + develop: 'https://10.50.13.191:8091' } // 自动判断当前运行环境