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
70e1eb4a
Commit
70e1eb4a
authored
Mar 22, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a26cc645
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
order.ts
src/biz/member/order.ts
+16
-2
router.ts
src/routers/order/router.ts
+8
-0
No files found.
src/biz/member/order.ts
View file @
70e1eb4a
...
@@ -355,9 +355,9 @@ export async function invoicedList({unitName, paymentType, isPay, pageNumber}) {
...
@@ -355,9 +355,9 @@ export async function invoicedList({unitName, paymentType, isPay, pageNumber}) {
itemData
.
memberType
=
changeEnumValue
(
MEMBERTYPE
,
itemData
.
memberCategory
);
itemData
.
memberType
=
changeEnumValue
(
MEMBERTYPE
,
itemData
.
memberCategory
);
itemData
.
paymentMethod
=
changeEnumValue
(
MEMBERTYPE
,
itemData
.
paymentMethod
);
itemData
.
paymentMethod
=
changeEnumValue
(
MEMBERTYPE
,
itemData
.
paymentMethod
);
itemData
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY-MM-DD"
)}
`
;
itemData
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY-MM-DD"
)}
`
;
itemData
.
state
=
changeEnumValue
(
ORDERSTATE
,
itemData
.
state
);
itemData
.
isPay
=
changeEnumValue
(
ORDERSTATE
,
itemData
.
state
);
let
userInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
itemData
.
userId
},
[
"memberState"
])
let
userInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
itemData
.
userId
},
[
"memberState"
])
itemData
.
memberState
=
userInfo
.
memberState
;
itemData
.
memberState
=
changeEnumValue
(
MEMBERSTATE
,
userInfo
.
memberState
)
;
dataList
.
push
(
itemData
);
dataList
.
push
(
itemData
);
}
}
...
@@ -380,6 +380,20 @@ export async function transferScreenshot({id}) {
...
@@ -380,6 +380,20 @@ export async function transferScreenshot({id}) {
}
}
/**
* 转账截图、转账单号弹窗
* @param id 订单id
* @returns
*/
export
async
function
invoicePop
({
id
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
订单表
,
{
id
},
[
"id"
,
"invoiceAdd"
]);
if
(
!
oldInfo
||
!
oldInfo
.
id
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
let
dataInfo
=
extractData
(
oldInfo
,
[
"id"
,
"invoiceAdd"
]);
return
{
dataInfo
};
}
...
...
src/routers/order/router.ts
View file @
70e1eb4a
...
@@ -110,6 +110,14 @@ export const Config = {
...
@@ -110,6 +110,14 @@ export const Config = {
],
],
bindBiz
:
orderBiz
.
transferScreenshot
bindBiz
:
orderBiz
.
transferScreenshot
},
},
{
apiName
:
"转账单号弹窗"
,
subUrl
:
'/order/invoicepop'
,
param
:[
{
key
:
"id"
,
type
:
"String"
,
desc
:
"订单id"
},
],
bindBiz
:
orderBiz
.
invoicePop
},
],
],
"会员个人页"
:[
"会员个人页"
:[
{
{
...
...
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