From 715920c2565b1310765bf40d19f9bae6924c7ea5 Mon Sep 17 00:00:00 2001 From: wx-jincw Date: Sat, 23 May 2026 10:48:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=88=E5=B9=B6=E8=AE=BF=E5=AE=A2?= =?UTF-8?q?=E7=99=BB=E8=AE=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/property.js | 29 + app/pages.json | 28 + .../supply_chain/components/CustomHeader.vue | 97 ++++ .../supply_chain/visitor_credential/index.vue | 274 ++++++++++ .../supply_chain/visitor_records/index.vue | 299 ++++++++++ .../components/VisitorInput.vue | 185 +++++++ .../supply_chain/visitor_register/index.vue | 514 ++++++++++++++++++ app/pages/supply_chain/visitor_user/index.vue | 212 ++++++++ 8 files changed, 1638 insertions(+) create mode 100644 app/pages/supply_chain/components/CustomHeader.vue create mode 100644 app/pages/supply_chain/visitor_credential/index.vue create mode 100644 app/pages/supply_chain/visitor_records/index.vue create mode 100644 app/pages/supply_chain/visitor_register/components/VisitorInput.vue create mode 100644 app/pages/supply_chain/visitor_register/index.vue create mode 100644 app/pages/supply_chain/visitor_user/index.vue diff --git a/app/api/property.js b/app/api/property.js index 128f13b..d2f0ebf 100644 --- a/app/api/property.js +++ b/app/api/property.js @@ -262,3 +262,32 @@ export function bindingWx(data) { export function unbindWx(data) { return request.post('unbindWx', data, { useAdminUrl: true }); } + +// ===== 访客登记模块 ===== + +// 访客登记 - 新增 +export function api_addVisit(data) { + return request.post( + 'autogencode/dcvisitbook/save', + data, + { useAdminUrl: true } + ); +} + +// 访客登记 - 记录列表 +export function api_visitRecordList(params) { + return request.get( + 'autogencode/dcvisitbook/list', + params, + { useAdminUrl: true } + ); +} + +// 访客登记 - 详情/凭证信息 +export function api_visitInfo(id) { + return request.get( + 'autogencode/dcvisitbook/info/' + id, + {}, + { useAdminUrl: true } + ); +} diff --git a/app/pages.json b/app/pages.json index 6120da4..0c43ff9 100644 --- a/app/pages.json +++ b/app/pages.json @@ -360,6 +360,34 @@ "navigationStyle": "custom" // #endif } + }, + { + "path": "visitor_register/index", + "style": { + "navigationBarTitleText": "访客登记", + "navigationStyle": "custom" + } + }, + { + "path": "visitor_records/index", + "style": { + "navigationBarTitleText": "访问记录", + "navigationStyle": "custom" + } + }, + { + "path": "visitor_user/index", + "style": { + "navigationBarTitleText": "访客个人中心", + "navigationStyle": "custom" + } + }, + { + "path": "visitor_credential/index", + "style": { + "navigationBarTitleText": "访问凭证", + "navigationStyle": "custom" + } } ] }, diff --git a/app/pages/supply_chain/components/CustomHeader.vue b/app/pages/supply_chain/components/CustomHeader.vue new file mode 100644 index 0000000..5f6351d --- /dev/null +++ b/app/pages/supply_chain/components/CustomHeader.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/app/pages/supply_chain/visitor_credential/index.vue b/app/pages/supply_chain/visitor_credential/index.vue new file mode 100644 index 0000000..f93c235 --- /dev/null +++ b/app/pages/supply_chain/visitor_credential/index.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/app/pages/supply_chain/visitor_records/index.vue b/app/pages/supply_chain/visitor_records/index.vue new file mode 100644 index 0000000..d755c48 --- /dev/null +++ b/app/pages/supply_chain/visitor_records/index.vue @@ -0,0 +1,299 @@ + + + + + diff --git a/app/pages/supply_chain/visitor_register/components/VisitorInput.vue b/app/pages/supply_chain/visitor_register/components/VisitorInput.vue new file mode 100644 index 0000000..d0015ff --- /dev/null +++ b/app/pages/supply_chain/visitor_register/components/VisitorInput.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/app/pages/supply_chain/visitor_register/index.vue b/app/pages/supply_chain/visitor_register/index.vue new file mode 100644 index 0000000..1c276a1 --- /dev/null +++ b/app/pages/supply_chain/visitor_register/index.vue @@ -0,0 +1,514 @@ + + + + + diff --git a/app/pages/supply_chain/visitor_user/index.vue b/app/pages/supply_chain/visitor_user/index.vue new file mode 100644 index 0000000..b39b677 --- /dev/null +++ b/app/pages/supply_chain/visitor_user/index.vue @@ -0,0 +1,212 @@ + + + + +