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
d24151a4
Commit
d24151a4
authored
Feb 18, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
725578eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
9 deletions
+52
-9
homePage.ts
src/biz/member/homePage.ts
+1
-1
order.ts
src/biz/member/order.ts
+50
-7
main.ts
src/main.ts
+1
-1
No files found.
src/biz/member/homePage.ts
View file @
d24151a4
...
...
@@ -618,7 +618,7 @@ export async function infomationChangeUpdate({userId, unitName, uscc, legalPerso
applyId
:
generateSystemId
(
TABLEENUM
.
资料变更审批历史表
,
userId
),
infoChangeId
:
generateSystemId
(
TABLEENUM
.
资料变更审批历史表
,
userId
),
userId
,
unitName
,
unitName
,
uscc
,
legalPerson
,
unitMemberType
,
...
...
src/biz/member/order.ts
View file @
d24151a4
...
...
@@ -721,7 +721,7 @@ export async function refundOut({id, desc}) {
/**
* 审批历史
*/
export
async
function
approveLog
({
id
})
{
export
async
function
approveLog
({
id
})
{
let
logsList
=
await
find
(
TABLEENUM
.
订单审批历史表
,
{
orderId
:
id
});
let
dataList
=
[];
...
...
@@ -729,28 +729,71 @@ export async function approveLog({id}) {
let
{
operationTime
,
operationBehavior
,
isReceiveMoney
,
remarks
}
=
info
;
let
desc
=
""
;
if
(
operationBehavior
==
ORDEREXAMINE
.
用户提交
)
desc
=
"线下付款"
;
let
operationBehaviorStr
=
""
;
if
(
operationBehavior
==
ORDEREXAMINE
.
用户提交
)
desc
=
"未收到/已收到"
;
//线下付款
else
{
if
(
isReceiveMoney
)
{
desc
=
"未收到"
operationBehaviorStr
=
"不需退款"
;
desc
=
"未收到/已收到"
}
else
{
operationBehaviorStr
=
"需退款"
;
desc
=
"已收到"
}
// desc = isReceiveMoney ? changeEnumValue(ISRECEIVE, ISRECEIVE.未收到款项_xg其他) : changeEnumValue(ISRECEIVE, ISRECEIVE.提供账户_zkh需退款_ykh)
}
let
addInfo
:
any
=
{
operationTime
:
moment
(
operationTime
).
format
(
"YYYY-MM-DD HH:mm:SS"
),
operationBehavior
:
changeEnumValue
(
ORDEREXAMINE
,
operationBehavior
),
operationTime
,
// operationTime:moment(operationTime).format("YYYY-MM-DD HH:mm:SS"),
operationBehavior
:
operationBehaviorStr
,
desc
,
other
:
remarks
};
dataList
.
push
(
addInfo
);
}
);
return
{
dataList
};
dataList
.
sort
(
(
a
,
b
)
=>
{
return
b
.
operationTime
-
a
.
operationTime
;
})
let
changeSortData
=
[];
dataList
.
forEach
(
info
=>
{
info
.
operationTime
=
moment
(
info
.
operationTime
).
format
(
"YYYY-MM-DD HH:mm:SS"
);
changeSortData
.
push
(
info
);
})
return
{
dataList
:
changeSortData
};
}
// export async function approveLog({id}) {
// let logsList = await find(TABLEENUM.订单审批历史表, {orderId:id});
// let dataList = [];
// logsList.forEach(info => {
// let { operationTime, operationBehavior, isReceiveMoney, remarks } = info;
// let desc = "";
// if (operationBehavior == ORDEREXAMINE.用户提交) desc = "线下付款";
// else {
// if (isReceiveMoney) {
// desc = "未收到"
// } else {
// desc = "已收到"
// }
// // desc = isReceiveMoney ? changeEnumValue(ISRECEIVE, ISRECEIVE.未收到款项_xg其他) : changeEnumValue(ISRECEIVE, ISRECEIVE.提供账户_zkh需退款_ykh)
// }
// let addInfo:any = {
// operationTime,
// // operationTime:moment(operationTime).format("YYYY-MM-DD HH:mm:SS"),
// operationBehavior:changeEnumValue(ORDEREXAMINE, operationBehavior),
// desc,
// other:remarks
// };
// dataList.push(addInfo);
// } );
// return {dataList};
// }
export
async
function
reconfirm
({
id
,
weChartPR
,
offlinePaymentUrl
,
desc
})
{
let
orderInfo
=
await
findOnce
(
TABLEENUM
.
订单表
,
{
id
});
...
...
src/main.ts
View file @
d24151a4
...
...
@@ -29,7 +29,7 @@ async function lanuch() {
// console.log(moment(1498262400000).format("YYYY-MM-DD HH:mm:SS"))
console
.
log
(
"服务初始化成功"
);
// await sendMail("18711017326@163.com");
// await testCallback("40a4e33658fa681429b9990434675c24
")
await
testCallback
(
"e793d4b37c2eac2de13b4df69fa2cc18
"
)
}
lanuch
();
...
...
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