Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 75ea20e7
authored
Mar 19, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 接待中心及表单
1 parent
b44c1ba7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
101 additions
and
8 deletions
apps/uniappX/uniapp-x-tape/api/receiption.uts
apps/uniappX/uniapp-x-tape/api/request/http.uts
apps/uniappX/uniapp-x-tape/api/user-api.uts
apps/uniappX/uniapp-x-tape/components/HomeFrame/ReceptionCenter/FormAdd.uvue
apps/uniappX/uniapp-x-tape/components/HomeFrame/ReceptionCenter/center.uvue
apps/uniappX/uniapp-x-tape/pages.json
apps/uniappX/uniapp-x-tape/api/receiption.uts
View file @
75ea20e
...
...
@@ -26,3 +26,82 @@ export async function searchRecordingEndTime(params: UTSJSONObject): Promise<str
// console.log("🚀 ~ getToken ~ d:", d)
return d as Promise<string>;
}
export async function getMerchantPerformance(params: UTSJSONObject): Promise<any> {
const data: UTSJSONObject = {
projectName: 'boutique',
...params
}
return await http.fetch("dj.api.car.boutique.inspection.findMerchantPerformance", data, true, "dj")
}
/** 查询当前门店客户档案列表(预录列表) */
export async function getCustomerFileList(params: UTSJSONObject): Promise<any> {
const data: UTSJSONObject = {
projectName: 'boutique',
...params
}
return await http.fetch("dj.api.smartcarlife.customervisits.customerInfoPage", data, true, "dj")
}
/**ҵ������ */
// getMerchantPerformance(data){
// return http.post({
// method: 'dj.api.car.boutique.inspection.findMerchantPerformance',
// projectName: 'boutique',
// ...data
// })
// },
// 传参
// {
// "merchantIdList": 44218339,
// "sceneType": 1,
// "startDate": "2026-03-01",
// "endDate": "2026-03-31",
// "hmzxFlag": 3
// }
// /** 查询接待记录列表 */
// getReceptionList(data) {
// return http.post({
// method: 'dj.api.smartcarlife.reception.customer.page',
// projectName: 'boutique',
// ...data
// })
// {
// "merchantId": 44218339,
// "pageNum": 1,
// "pageSize": 10,
// "reviewFlag": 0,
// "orderFinishFlag": 0,
// "bussinessType": 2
// }
/**查询当前门店客户档案列表 */
// getCustomerFileList (data) {
// return http.post({
// method: 'dj.api.smartcarlife.customervisits.customerInfoPage',
// projectName: 'boutique',
// ...data
// })
// },
// 预录列表传参
// {
// "pageNum": 1,
// "pageSize": 10,
// "receptionStatus": 1,
// "merchantId": 44218339,
// "bussinessScene": 2,
// "startTime": "2026-03-18 00:00:00",
// "endTime": "2026-03-18 23:59:59"
// }
// },
// /** 接待统计 */
// getReceptionStatistics(data) {
// return http.post({
// method: 'dj.api.smartcarlife.reception.customer.statistics',
// projectName: 'boutique',
// ...data
// })
// },
\ No newline at end of file
apps/uniappX/uniapp-x-tape/api/request/http.uts
View file @
75ea20e
...
...
@@ -97,7 +97,8 @@ class Request {
secret = djKey.secret as string;
}
const sessionId = storage.get("sessionId") as null | string;
const rawSessionId = storage.get("sessionId");
const sessionId = (rawSessionId != null && rawSessionId != "") ? `${rawSessionId}` : null;
let noSignAttr: string[] = [];
if (params.sessionId == null && sessionId != null && sessionId != "") {
...
...
@@ -171,19 +172,29 @@ class Request {
const path = pathEnum[projectName] ?? "";
const requestData = this.getData(params, finalHostType);
// 手动序列化成 application/x-www-form-urlencoded 格式,避免 Android 原生层类型转换问题
const formPairs: string[] = [];
// Android 原生层对 data 类型敏感:传 string 可能触发 ClassCastException
// 改为传 UTSJSONObject(全 string 值),由框架序列化为 form-urlencoded
const formDataObj: UTSJSONObject = {};
for (const key in requestData) {
const val = requestData[key];
if (val != null) {
formPairs.push(`${key}=${encodeURIComponent(`${val}`)}`);
let valStr: string;
if (typeof val === "string") {
valStr = val;
} else if (typeof val === "number" || typeof val === "boolean") {
valStr = `${val}`;
} else {
valStr = JSON.stringify(val);
}
formDataObj[key] = valStr;
}
}
const formData = formPairs.join("&");
const hostUrl = HOST[finalHostType] as string;
const pathStr = (path != null && path != "") ? `${path}` : "";
const methodStr = (requestData.method != null && requestData.method != "") ? `${requestData.method}` : "";
uni.request({
url: `${hostUrl}${path
}router?method=${requestData.method
}`,
data: formData,
url: `${hostUrl}${path
Str}router?method=${methodStr
}`,
data: formData
Obj
,
method: requestMethod,
header,
dataType: "json",
...
...
apps/uniappX/uniapp-x-tape/api/user-api.uts
View file @
75ea20e
...
...
@@ -52,11 +52,13 @@ export async function apiSelectAccountLogin(params: UTSJSONObject): Promise<UTSJ
// 获取园区店下的4S店:dj.api.scenemerchantref.query4SRefByYqShopByLogin
export async function apiGetSceneMerchantRefStoreList(params: UTSJSONObject): Promise<any> {
console.log("🚀 ~ 取园区店下的4S店 ~ params:", params)
const data: UTSJSONObject = {
projectName: 'boutique',
method: 'dj.api.scenemerchantref.query4SRefByYqShopByLogin',
...params
}
console.log("🚀 ~ 取园区店下的4S店 ~ params:", data)
return await http.post(data, true, 'dj', null)
}
...
...
apps/uniappX/uniapp-x-tape/components/HomeFrame/ReceptionCenter/FormAdd.uvue
0 → 100644
View file @
75ea20e
This diff is collapsed.
Click to expand it.
apps/uniappX/uniapp-x-tape/components/HomeFrame/ReceptionCenter/center.uvue
View file @
75ea20e
This diff is collapsed.
Click to expand it.
apps/uniappX/uniapp-x-tape/pages.json
View file @
75ea20e
...
...
@@ -66,7 +66,8 @@
"^no-data$"
:
"@/pages/common/components/NoData.uvue"
,
"^home-frame$"
:
"@/components/HomeFrame/index.uvue"
,
"^layout-root$"
:
"@/components/LayoutRoot/index.uvue"
,
"^Layout$"
:
"@/components/Layout/index.uvue"
"^Layout$"
:
"@/components/Layout/index.uvue"
,
"^segment-tab$"
:
"@/components/HomeFrame/ReceptionCenter/SegmentTab.uvue"
}
},
"globalStyle"
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment