Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
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
wenHuaBu_adminServer
Commits
7a6656ed
Commit
7a6656ed
authored
Mar 22, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
de9990fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
memberFees.ts
src/biz/member/memberFees.ts
+2
-0
order.ts
src/biz/member/order.ts
+1
-1
No files found.
src/biz/member/memberFees.ts
View file @
7a6656ed
...
...
@@ -118,6 +118,7 @@ export async function unpaidList({unitName, joinStartTime, joinEndTime, memberTy
dbList
.
forEach
(
info
=>
{
let
item
:
any
=
extractData
(
info
,
itemFiles
);
item
.
lifespanTime
=
`
${
moment
(
info
.
lifespanStartTime
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
lifespanEndTime
).
format
(
"YYYY-MM-DD"
)}
`
;
item
.
joinTime
=
`
${
moment
(
info
.
joinTime
).
format
(
"YYYY-MM-DD"
)}
`
;
item
.
nextLifespanTime
=
"不足90天"
;
if
(
info
.
lifespanEndTime
<
(
NowMs
+
(
30
*
24
*
3600
*
1000
)
)
)
item
.
nextLifespanTime
=
"不足30天"
;
...
...
@@ -175,6 +176,7 @@ export async function getRenewalPeriod({unitName, joinStartTime, joinEndTime, me
item
.
nextLifespanTime
=
"过期1年及以上"
;
}
item
.
joinTime
=
moment
(
item
.
joinTime
).
format
(
"YYYY-MM-DD"
);
item
.
memberState
=
changeEnumValue
(
MEMBERSTATE
,
item
.
memberState
);
item
.
memberType
=
changeEnumValue
(
MEMBERTYPE
,
item
.
memberType
);
dataList
.
push
(
item
);
...
...
src/biz/member/order.ts
View file @
7a6656ed
...
...
@@ -290,7 +290,7 @@ export async function upInvoice({id, invoiceUrl}) {
let
orderInfo
=
await
findOnce
(
TABLEENUM
.
订单表
,
{
id
});
if
(
!
orderInfo
||
!
orderInfo
.
id
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
orderInfo
.
invoiceStatus
!=
INVOICESTATUS
.
未开发票
)
throw
new
BizError
(
ERRORENUM
.
订单状态无法开具发票
,
`
${
orderInfo
.
id
}
无法开具发票,因为发票状态为
${
orderInfo
.
invoiceStatus
}
`
);
if
(
orderInfo
.
invoiceStatus
!=
INVOICESTATUS
.
未开发票
&&
orderInfo
.
invoiceStatus
!=
INVOICESTATUS
.
已开发票
)
throw
new
BizError
(
ERRORENUM
.
订单状态无法开具发票
,
`
${
orderInfo
.
id
}
无法开具发票,因为发票状态为
${
orderInfo
.
invoiceStatus
}
`
);
let
updateInfo
=
{
invoiceStatus
:
INVOICESTATUS
.
已开发票
,
...
...
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