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
ff5cae23
Commit
ff5cae23
authored
Dec 21, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a13a75cc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
15 deletions
+33
-15
costVerification.ts
src/biz/member/finance/costVerification.ts
+7
-4
invoice.ts
src/biz/member/finance/invoice.ts
+17
-7
order.ts
src/biz/member/order.ts
+3
-3
model.ts
src/data/models/model.ts
+1
-0
router.ts
src/routers/order/router.ts
+2
-1
verificationEnum.ts
src/util/verificationEnum.ts
+3
-0
No files found.
src/biz/member/finance/costVerification.ts
View file @
ff5cae23
...
@@ -93,10 +93,12 @@ export async function paidList({name, memberType, documentId, phone, mail, joinS
...
@@ -93,10 +93,12 @@ export async function paidList({name, memberType, documentId, phone, mail, joinS
}
}
if
(
phone
)
findParam
.
phone
=
phone
;
if
(
phone
)
findParam
.
phone
=
phone
;
if
(
examineState
)
{
if
(
examineState
==
1
)
{
if
(
examineState
==
1
)
{
findParam
.
confirmReceipt
=
RECEIPTCONFIRMATION
.
收款确认
;
}
else
{
findParam
.
confirmReceipt
=
{
"$ne"
:
RECEIPTCONFIRMATION
.
收款确认
};
findParam
.
confirmReceipt
=
{
"$ne"
:
RECEIPTCONFIRMATION
.
收款确认
};
}
else
{
findParam
.
confirmReceipt
=
RECEIPTCONFIRMATION
.
收款确认
;
}
}
}
if
(
costType
)
findParam
.
isFirst
=
costType
==
COSTTYPE
.
首次
;
if
(
costType
)
findParam
.
isFirst
=
costType
==
COSTTYPE
.
首次
;
...
@@ -122,7 +124,8 @@ export async function paidList({name, memberType, documentId, phone, mail, joinS
...
@@ -122,7 +124,8 @@ export async function paidList({name, memberType, documentId, phone, mail, joinS
itemData
.
paymentMethod
=
"-"
;
itemData
.
paymentMethod
=
"-"
;
itemData
.
paymentNum
=
"-"
;
itemData
.
paymentNum
=
"-"
;
}
}
let
userInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
info
.
userId
},
[
"memberState"
,
"name"
,
"memberLevel"
]);
let
userInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
info
.
userId
},
[
"userId"
,
"memberState"
,
"name"
,
"memberLevel"
]);
if
(
!
userInfo
||
!
userInfo
.
userId
)
continue
;
itemData
.
memberLevel
=
changeEnumValue
(
MEMBERLEVEL
,
userInfo
.
memberLevel
);
itemData
.
memberLevel
=
changeEnumValue
(
MEMBERLEVEL
,
userInfo
.
memberLevel
);
itemData
.
name
=
userInfo
.
name
;
itemData
.
name
=
userInfo
.
name
;
...
@@ -211,7 +214,7 @@ export async function confirmReceiptOut({id, isReceive, returnsReasons}) {
...
@@ -211,7 +214,7 @@ export async function confirmReceiptOut({id, isReceive, returnsReasons}) {
operationTime
:
new
Date
().
valueOf
(),
operationTime
:
new
Date
().
valueOf
(),
operationBehavior
:
ORDEREXAMINE
.
驳回
,
operationBehavior
:
ORDEREXAMINE
.
驳回
,
isReceiveMoney
:
isReceive
==
ISRECEIVE
.
未收到款项
_xg
其他
,
isReceiveMoney
:
isReceive
==
ISRECEIVE
.
未收到款项
_xg
其他
,
remarks
:
`
${
changeEnumValue
(
ISRECEIVE
,
isReceive
)}
`
remarks
:
`
${
returnsReasons
}
`
,
};
};
await
addOneData
(
TABLEENUM
.
订单审批历史表
,
addLogInfo
);
await
addOneData
(
TABLEENUM
.
订单审批历史表
,
addLogInfo
);
...
...
src/biz/member/finance/invoice.ts
View file @
ff5cae23
...
@@ -33,11 +33,21 @@ import { successResult } from "../../../tools/system";
...
@@ -33,11 +33,21 @@ import { successResult } from "../../../tools/system";
* @param weChartPR 微信订单号
* @param weChartPR 微信订单号
* @param pageNumber 当前页
* @param pageNumber 当前页
*/
*/
export
async
function
billStateList
({
name
,
memberType
,
documentId
,
phone
,
mail
,
joinStartTime
,
joinEndTime
,
memberLevel
,
paymentType
,
isPay
,
weChartPR
,
pageNumber
})
{
export
async
function
billStateList
({
name
,
memberType
,
documentId
,
phone
,
mail
,
joinStartTime
,
joinEndTime
,
memberLevel
,
payState
,
paymentType
,
invoiceState
,
weChartPR
,
pageNumber
})
{
eccEnumValue
(
"发票列表"
,
"是否支付"
,
ISPAYENUM
,
isPay
);
if
(
payState
!=
1
&&
payState
!=
2
)
throw
new
BizError
(
ERRORENUM
.
参数错误
);
let
findParam
:
any
=
{
let
findParam
:
any
=
{};
invoiceStatus
:
INVOICESTATUS
.
未开发票
if
(
invoiceState
)
{
};
if
(
invoiceState
==
1
)
{
//已申请
findParam
.
invoiceStatus
=
INVOICESTATUS
.
未开发票
}
else
{
//未申请
findParam
[
"$or"
]
=
[{
invoiceStatus
:
INVOICESTATUS
.
不具备开票条件
},
{
invoiceStatus
:
INVOICESTATUS
.
退回
}];
}
}
if
(
payState
==
1
)
{
findParam
.
state
=
ORDERSTATE
.
已支付
;
}
else
{
findParam
.
state
=
ORDERSTATE
.
未支付
;
}
/**用户表查询条件 */
/**用户表查询条件 */
let
checkUserIdList
=
[]
let
checkUserIdList
=
[]
...
@@ -92,7 +102,6 @@ export async function billStateList({name, memberType, documentId, phone, mail,
...
@@ -92,7 +102,6 @@ export async function billStateList({name, memberType, documentId, phone, mail,
eccEnumValue
(
"发票列表"
,
"支付类型"
,
PAYMENTTYPE
,
paymentType
);
eccEnumValue
(
"发票列表"
,
"支付类型"
,
PAYMENTTYPE
,
paymentType
);
findParam
.
paymentMethod
=
paymentType
;
findParam
.
paymentMethod
=
paymentType
;
}
}
if
(
isPay
)
findParam
.
state
=
isPay
;
if
(
weChartPR
)
findParam
.
paymentNum
=
{
"$regex"
:
`
${
weChartPR
}
`
};
if
(
weChartPR
)
findParam
.
paymentNum
=
{
"$regex"
:
`
${
weChartPR
}
`
};
let
selectFile
=
[
"id"
,
"unitName"
,
"orderCycleStart"
,
"orderCycleEnd"
,
"money"
,
"paymentMethod"
,
"memberCategory"
,
"state"
,
"paymentNum"
,
"userId"
,
"desc"
,
"invoiceMail"
,
"weChartCreatePayMs"
];
let
selectFile
=
[
"id"
,
"unitName"
,
"orderCycleStart"
,
"orderCycleEnd"
,
"money"
,
"paymentMethod"
,
"memberCategory"
,
"state"
,
"paymentNum"
,
"userId"
,
"desc"
,
"invoiceMail"
,
"weChartCreatePayMs"
];
...
@@ -112,7 +121,8 @@ export async function billStateList({name, memberType, documentId, phone, mail,
...
@@ -112,7 +121,8 @@ export async function billStateList({name, memberType, documentId, phone, mail,
itemData
.
paymentMethod
=
changeEnumValue
(
PAYMENTTYPE
,
itemData
.
paymentMethod
);
itemData
.
paymentMethod
=
changeEnumValue
(
PAYMENTTYPE
,
itemData
.
paymentMethod
);
itemData
.
isPay
=
changeEnumValue
(
ORDERSTATE
,
itemData
.
state
);
itemData
.
isPay
=
changeEnumValue
(
ORDERSTATE
,
itemData
.
state
);
let
userInfomation
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
itemData
.
userId
},
[
"userId"
,
"memberState"
,
"name"
]);
let
userInfomation
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
itemData
.
userId
},
[
"userId"
,
"memberState"
,
"name"
]);
itemData
.
memberState
=
changeEnumValue
(
MEMBERSTATE
,
userInfomation
.
memberState
);
if
(
!
userInfomation
||
!
userInfomation
.
userId
)
continue
;
itemData
.
payState
=
info
.
state
==
ORDERSTATE
.
已支付
?
"已支付"
:
"未支付"
;
// 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
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY"
)}
`
;
itemData
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY"
)}
`
;
itemData
.
weChartCreatePayMs
=
moment
(
info
.
weChartCreatePayMs
||
info
.
payTime
).
format
(
"YYYY-MM-DD"
);
itemData
.
weChartCreatePayMs
=
moment
(
info
.
weChartCreatePayMs
||
info
.
payTime
).
format
(
"YYYY-MM-DD"
);
...
...
src/biz/member/order.ts
View file @
ff5cae23
...
@@ -644,9 +644,9 @@ export async function approveLog({id}) {
...
@@ -644,9 +644,9 @@ export async function approveLog({id}) {
let
addInfo
:
any
=
{
let
addInfo
:
any
=
{
operationTime
:
moment
(
operationTime
).
format
(
"YYYY-MM-DD HH:mm:SS"
),
operationTime
:
moment
(
operationTime
).
format
(
"YYYY-MM-DD HH:mm:SS"
),
operationBehavior
:
changeEnumValue
(
ORDEREXAMINE
,
info
.
operationBehavior
),
operationBehavior
:
changeEnumValue
(
ORDEREXAMINE
,
operationBehavior
),
desc
:
remarks
,
desc
:
isReceiveMoney
?
changeEnumValue
(
ISRECEIVE
,
ISRECEIVE
.
未收到款项
_xg
其他
)
:
changeEnumValue
(
ISRECEIVE
,
ISRECEIVE
.
提供账户
_zkh
需退款
_ykh
)
,
other
:
""
other
:
remarks
};
};
dataList
.
push
(
addInfo
);
dataList
.
push
(
addInfo
);
...
...
src/data/models/model.ts
View file @
ff5cae23
...
@@ -628,6 +628,7 @@ const ModelArray = [
...
@@ -628,6 +628,7 @@ const ModelArray = [
isReceiveMoney
:{
type
:
'Boolean'
,
default
:
false
},
//是否收到款项
isReceiveMoney
:{
type
:
'Boolean'
,
default
:
false
},
//是否收到款项
remarks
:{
type
:
'String'
},
//备注
remarks
:{
type
:
'String'
},
//备注
refundImgUrl
:
"String"
//退款确认发票地址
refundImgUrl
:
"String"
//退款确认发票地址
}
}
},
},
{
{
...
...
src/routers/order/router.ts
View file @
ff5cae23
...
@@ -71,7 +71,8 @@ export const Config = {
...
@@ -71,7 +71,8 @@ export const Config = {
{
key
:
"joinEndTime"
,
type
:
"Number"
,
desc
:
"入会结束时间"
,
isNull
:
true
},
{
key
:
"joinEndTime"
,
type
:
"Number"
,
desc
:
"入会结束时间"
,
isNull
:
true
},
{
key
:
"memberLevel"
,
type
:
"[Number]"
,
desc
:
"个人级别职务"
,
isNull
:
true
},
{
key
:
"memberLevel"
,
type
:
"[Number]"
,
desc
:
"个人级别职务"
,
isNull
:
true
},
{
key
:
"paymentType"
,
type
:
"Number"
,
desc
:
"支付方式"
,
isNull
:
true
},
{
key
:
"paymentType"
,
type
:
"Number"
,
desc
:
"支付方式"
,
isNull
:
true
},
{
key
:
"isPay"
,
type
:
"Number"
,
desc
:
"是否支付"
,
isNull
:
true
},
{
key
:
"payState"
,
type
:
"Number"
,
desc
:
"支付状态 1是已支付 2是未支付"
},
{
key
:
"invoiceState"
,
type
:
"Number"
,
desc
:
"发票状态 0是全部 1是已申请 2是未申请"
,
isNull
:
true
},
{
key
:
"weChartPR"
,
type
:
"String"
,
desc
:
"微信支付单号"
,
isNull
:
true
},
{
key
:
"weChartPR"
,
type
:
"String"
,
desc
:
"微信支付单号"
,
isNull
:
true
},
{
key
:
"pageNumber"
,
type
:
"Number"
,
desc
:
"分页-当前页面"
}
{
key
:
"pageNumber"
,
type
:
"Number"
,
desc
:
"分页-当前页面"
}
],
],
...
...
src/util/verificationEnum.ts
View file @
ff5cae23
...
@@ -47,6 +47,8 @@ export function changeEnumValue(enumConf, value:any) {
...
@@ -47,6 +47,8 @@ export function changeEnumValue(enumConf, value:any) {
if
(
/_ju/
.
test
(
str
))
str
=
str
.
replace
(
/_ju/
,
"。"
);
if
(
/_ju/
.
test
(
str
))
str
=
str
.
replace
(
/_ju/
,
"。"
);
if
(
/_hgh/
.
test
(
str
))
str
=
str
.
replace
(
/_hgh/
,
"-"
);
if
(
/_hgh/
.
test
(
str
))
str
=
str
.
replace
(
/_hgh/
,
"-"
);
if
(
/_kbh/
.
test
(
str
))
str
=
str
.
replace
(
/_kbh/
,
""
);
if
(
/_kbh/
.
test
(
str
))
str
=
str
.
replace
(
/_kbh/
,
""
);
if
(
/_xg/
.
test
(
str
))
str
=
str
.
replace
(
/_xg/
,
""
);
return
str
return
str
}
}
let
str
=
""
;
let
str
=
""
;
...
@@ -61,6 +63,7 @@ export function changeEnumValue(enumConf, value:any) {
...
@@ -61,6 +63,7 @@ export function changeEnumValue(enumConf, value:any) {
if
(
/_hgh/
.
test
(
str
))
str
=
str
.
replace
(
/_hgh/
,
"-"
);
if
(
/_hgh/
.
test
(
str
))
str
=
str
.
replace
(
/_hgh/
,
"-"
);
if
(
/_kbh/
.
test
(
str
))
str
=
str
.
replace
(
/_kbh/
,
""
);
if
(
/_kbh/
.
test
(
str
))
str
=
str
.
replace
(
/_kbh/
,
""
);
if
(
/_xg/
.
test
(
str
))
str
=
str
.
replace
(
/_xg/
,
"/"
);
if
(
/_xg/
.
test
(
str
))
str
=
str
.
replace
(
/_xg/
,
"/"
);
if
(
/_xg/
.
test
(
str
))
str
=
str
.
replace
(
/_xg/
,
""
);
str
+=
subStr
;
str
+=
subStr
;
if
(
index
==
value
.
length
-
1
)
str
+=
""
;
if
(
index
==
value
.
length
-
1
)
str
+=
""
;
else
str
+=
","
else
str
+=
","
...
...
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