Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiAdminServer
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
yuyiAdminServer
Commits
309134f9
Commit
309134f9
authored
May 15, 2025
by
Zllgogo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
442f2421
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
31 deletions
+32
-31
fuhua.ts
src/biz/fuhua.ts
+10
-6
ruFu.ts
src/biz/ruFu.ts
+18
-21
userRuFu.ts
src/biz/userRuFu.ts
+4
-4
No files found.
src/biz/fuhua.ts
View file @
309134f9
...
...
@@ -791,10 +791,10 @@ export async function updateYuYi(yId, param) {
if
(
!
enterInfo
||
!
enterInfo
.
info_enterId
)
{
throw
new
BizError
(
ERRORENUM
.
数据不存在
);
}
let
promotiondbInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
运营推广信息表
,
{
opId
:
yuyiInfo
.
opId
},
[
"opId"
,
"promotionType"
,
"promotionApp"
,
"promotionNum"
]);
if
(
!
promotiondbInfo
||
!
promotiondbInfo
.
opId
)
{
throw
new
BizError
(
ERRORENUM
.
数据不存在
);
}
//
let promotiondbInfo = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.运营推广信息表, {opId:yuyiInfo.opId}, ["opId", "promotionType", "promotionApp", "promotionNum"]);
//
if (!promotiondbInfo || !promotiondbInfo.opId) {
//
throw new BizError(ERRORENUM.数据不存在);
//
}
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
羽翼孵化器信息
,
param
,
{
yId
});
...
...
@@ -808,8 +808,12 @@ export async function updateYuYi(yId, param) {
for
(
let
key
in
promotionInfo
)
{
for
(
let
app
in
promotionInfo
[
key
])
{
let
updateInfo
=
{
promotionNum
:
promotionInfo
[
key
][
app
]};
let
updateParam
=
{
promotionType
:
PROMOTIONTYPE
[
key
],
promotionApp
:
promotionInfo
[
key
][
app
]}
let
updateParam
:
any
=
{
promotionType
:
PROMOTIONTYPE
[
key
]}
if
(
PROMOTIONTYPE
[
key
]
==
PROMOTIONTYPE
.
线上推广
)
{
updateParam
.
promotionApp
=
ONLINEPROMOTION
[
app
];
}
else
if
(
PROMOTIONTYPE
[
key
]
==
PROMOTIONTYPE
.
线下推广
)
{
updateParam
.
promotionApp
=
OFFLINEPROMOTION
[
app
];
}
let
运营推广
dbInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
运营推广信息表
,
updateParam
,
[
"opId"
,
"promotionType"
,
"promotionApp"
,
"promotionNum"
]);
if
(
!
运营推广
dbInfo
||
!
运营推广
dbInfo
.
opId
)
{
let
addInfo
=
{
...
...
src/biz/ruFu.ts
View file @
309134f9
...
...
@@ -377,7 +377,24 @@ export async function enterpriseRegisterExamineList(enterpriseName, page) {
return
{
dataList
,
dataCount
:
allResList
.
length
};
}
// 辅助函数:获取文件名和格式
// function getFileNameAndFormat(fileName: string | null | undefined): string {
// if (fileName === null || fileName === undefined || fileName === "未提交") {
// return "未提交";
// }
// // 提取文件名(去掉路径)
// const basename = fileName.split('/').pop() || fileName;
// // 分割文件名和格式
// const parts = basename.split('.');
// if (parts.length < 2) {
// return basename; // 如果没有找到 . 则直接返回原字符串
// }
// const name = parts.slice(0, -1).join('.');
// const format = parts.pop();
// return `${name}.${format}`;
// }
function
getFileNameAndFormat
(
fileName
:
string
|
null
|
undefined
):
string
{
if
(
fileName
===
null
||
fileName
===
undefined
||
fileName
===
"未提交"
)
{
return
"未提交"
;
...
...
@@ -399,26 +416,6 @@ function getFileNameAndFormat(fileName: string | null | undefined): string {
return
`
${
name
.
trim
()}
.
${
format
}
`
;
}
function
formatFileDisplay
(
fileName
:
string
|
null
|
undefined
):
string
{
if
(
!
fileName
||
fileName
===
"未提交"
)
return
"未提交"
;
const
{
name
,
ext
}
=
extractFileNameAndExt
(
fileName
);
return
`
${
name
.
trim
()}
.
${
ext
}
`
;
}
function
extractFileNameAndExt
(
fullName
:
string
)
{
const
baseName
=
fullName
.
split
(
'/'
).
pop
()
||
fullName
;
const
cleanName
=
baseName
.
replace
(
/
(\d{8}
_
\d{6})
/
,
''
);
// 移除时间戳
const
parts
=
cleanName
.
split
(
'.'
);
if
(
parts
.
length
<
2
)
{
return
{
name
:
cleanName
,
ext
:
''
};
}
const
ext
=
parts
.
pop
()
!
;
const
name
=
parts
.
join
(
'.'
);
return
{
name
,
ext
};
}
/**
* 入孵材料审核通过
...
...
src/biz/userRuFu.ts
View file @
309134f9
...
...
@@ -199,10 +199,10 @@ export async function getRuFu(eId:string) {
dataInfo
.
businessLicense
=
leaseInfo
.
businessLicense
;
dataInfo
.
agreement
=
leaseInfo
.
agreement
;
//
dataInfo.leaseContract = getFileNameAndFormat(leaseInfo.leaseContract);
//
dataInfo.entryPlan = getFileNameAndFormat(leaseInfo.entryPlan);
//
dataInfo.businessLicense = getFileNameAndFormat(leaseInfo.businessLicense);
//
dataInfo.agreement = getFileNameAndFormat(leaseInfo.agreement);
dataInfo
.
leaseContract
=
getFileNameAndFormat
(
leaseInfo
.
leaseContract
);
dataInfo
.
entryPlan
=
getFileNameAndFormat
(
leaseInfo
.
entryPlan
);
dataInfo
.
businessLicense
=
getFileNameAndFormat
(
leaseInfo
.
businessLicense
);
dataInfo
.
agreement
=
getFileNameAndFormat
(
leaseInfo
.
agreement
);
dataInfo
.
leaseContractModelUrl
=
"/yuyi/files/房屋租赁合同模板.docx"
;
dataInfo
.
entryPlanModelUrl
=
"/yuyi/files/孵化企业入驻计划.xlsx"
;
...
...
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