Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zjxcxServer
Commits
f2baf189
Commit
f2baf189
authored
Jul 06, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
29d160a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
8 deletions
+26
-8
visit.ts
src/biz/mobileFuHuaQi/visit.ts
+21
-1
fuHuaQi.ts
src/config/eccParam/fuHuaQi.ts
+1
-2
visit.ts
src/routers/mobileClient/visit.ts
+4
-5
No files found.
src/biz/mobileFuHuaQi/visit.ts
View file @
f2baf189
...
@@ -62,8 +62,26 @@ export async function visitStatisTypeList(fuHuaQiUscc) {
...
@@ -62,8 +62,26 @@ export async function visitStatisTypeList(fuHuaQiUscc) {
});
});
});
});
let
dataList
=
Object
.
values
(
typeMap
);
let
dataList
=
[];
for
(
let
key
in
typeMap
)
{
dataList
.
push
({
key
:
changeEnumValue
(
VISITENTERPRISETYPE
,
parseInt
(
key
)),
count
:
typeMap
[
key
].
count
,
list
:
typeMap
[
key
].
dataList
});
}
dataList
.
push
({
key
:
"新入驻企业"
,
count
:
1
,
list
:[
{
enterpriseName
:
"测试"
,
id
:
"123"
,
demand
:[
"测试标签"
,
"测试标签2"
]
}
]
});
return
{
dataList
};
return
{
dataList
};
}
}
...
@@ -179,6 +197,8 @@ export async function visitInfo(id:string) {
...
@@ -179,6 +197,8 @@ export async function visitInfo(id:string) {
}
}
export
async
function
visit_update_state
(
id
,
state
:
number
)
{
export
async
function
visit_update_state
(
id
,
state
:
number
)
{
if
(
!
(
state
==
1
||
state
==
2
)
)
throw
new
BizError
(
ERRORENUM
.
参数错误
);
if
(
!
(
state
==
1
||
state
==
2
)
)
throw
new
BizError
(
ERRORENUM
.
参数错误
);
...
...
src/config/eccParam/fuHuaQi.ts
View file @
f2baf189
...
@@ -374,6 +374,5 @@ export const AddVisitConfig = {
...
@@ -374,6 +374,5 @@ export const AddVisitConfig = {
accompany
:{
type
:
"String"
},
//陪同人员
accompany
:{
type
:
"String"
},
//陪同人员
leaderName
:{
type
:
"String"
},
//出席领导
leaderName
:{
type
:
"String"
},
//出席领导
researchType
:{
type
:
"Number"
},
//调研类型 RESEARCHTYPE
researchType
:{
type
:
"Number"
},
//调研类型 RESEARCHTYPE
desc
:{
type
:
"String"
},
//
解决的
备注
desc
:{
type
:
"String"
},
//备注
}
}
src/routers/mobileClient/visit.ts
View file @
f2baf189
...
@@ -8,15 +8,14 @@ import { checkFuHuaQiToken } from '../../middleware/user';
...
@@ -8,15 +8,14 @@ import { checkFuHuaQiToken } from '../../middleware/user';
import
*
as
visitBiz
from
'../../biz/mobileFuHuaQi/visit'
;
import
*
as
visitBiz
from
'../../biz/mobileFuHuaQi/visit'
;
export
function
setRouter
(
httpServer
)
{
export
function
setRouter
(
httpServer
)
{
httpServer
.
post
(
'/fuhuaqi/visit/statis/base'
,
asyncHandler
(
visit_statis_base
));
httpServer
.
post
(
'/fuhuaqi/visit/statis/typelist'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_statis_type_list
));
httpServer
.
post
(
'/fuhuaqi/visit/demand/list'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_list
));
//诉求列表
httpServer
.
post
(
'/fuhuaqi/visit/demand/list'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_list
));
//诉求列表
httpServer
.
post
(
'/fuhuaqi/visit/demand/list/enterpriseinfo'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_enterpriseinfo
));
//单个企业诉求列表
httpServer
.
post
(
'/fuhuaqi/visit/demand/list/enterpriseinfo'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_enterpriseinfo
));
//单个企业诉求列表
httpServer
.
post
(
'/fuhuaqi/visit/demand/add'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_add
));
//添加诉求
httpServer
.
post
(
'/fuhuaqi/visit/demand/add'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_add
));
//添加诉求
httpServer
.
post
(
'/fuhuaqi/visit/demand/delete'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_delete
));
//删除诉求
httpServer
.
post
(
'/fuhuaqi/visit/demand/delete'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_demand_delete
));
//删除诉求
httpServer
.
post
(
'/fuhuaqi/visit/statis/base'
,
asyncHandler
(
visit_statis_base
));
httpServer
.
post
(
'/fuhuaqi/visit/statis/typelist'
,
asyncHandler
(
visit_statis_type_list
));
// httpServer.post('/fuhuaqi/visit/list', checkFuHuaQiToken, asyncHandler(visit_list));
// httpServer.post('/fuhuaqi/visit/list', checkFuHuaQiToken, asyncHandler(visit_list));
// httpServer.post('/fuhuaqi/visit/update', checkFuHuaQiToken, asyncHandler(visit_update));
// httpServer.post('/fuhuaqi/visit/update', checkFuHuaQiToken, asyncHandler(visit_update));
httpServer
.
post
(
'/fuhuaqi/visit/calendar/statis'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_alendar_statis
));
httpServer
.
post
(
'/fuhuaqi/visit/calendar/statis'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_alendar_statis
));
...
@@ -25,7 +24,7 @@ export function setRouter(httpServer) {
...
@@ -25,7 +24,7 @@ export function setRouter(httpServer) {
httpServer
.
post
(
'/fuhuaqi/visit/info'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_info
));
httpServer
.
post
(
'/fuhuaqi/visit/info'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_info
));
httpServer
.
post
(
'/fuhuaqi/visit/update/state'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_update_state
));
httpServer
.
post
(
'/fuhuaqi/visit/update/state'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_update_state
));
httpServer
.
post
(
'/fuhuaqi/visit/track/add'
,
checkFuHuaQiToken
,
asyncHandler
(
visit_track_add
));
//
httpServer.post('/fuhuaqi/visit/track/add', checkFuHuaQiToken, asyncHandler(visit_track_add));
// httpServer.post('/fuhuaqi/visit/track/log/statis', checkFuHuaQiToken, asyncHandler(visit_track_log_statis));
// httpServer.post('/fuhuaqi/visit/track/log/statis', checkFuHuaQiToken, asyncHandler(visit_track_log_statis));
// httpServer.post('/fuhuaqi/visit/track/log/list', checkFuHuaQiToken, asyncHandler(visit_track_log_list));
// httpServer.post('/fuhuaqi/visit/track/log/list', checkFuHuaQiToken, asyncHandler(visit_track_log_list));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment