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
c17f3599
Commit
c17f3599
authored
Dec 21, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2e672d31
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
18 deletions
+26
-18
examine.ts
src/biz/member/examine.ts
+6
-1
order.ts
src/biz/member/order.ts
+0
-0
errorEnum.ts
src/config/errorEnum.ts
+3
-1
model.ts
src/data/models/model.ts
+1
-1
router.ts
src/routers/member/router.ts
+2
-2
router.ts
src/routers/order/router.ts
+14
-13
No files found.
src/biz/member/examine.ts
View file @
c17f3599
...
@@ -188,7 +188,12 @@ export async function adopt({id, session}) {
...
@@ -188,7 +188,12 @@ export async function adopt({id, session}) {
}
}
//创建初始订单
//创建初始订单
await
createOrder
(
id
,
userInfo
.
loginId
,
userInfo
.
phone
,
unitName
,
joinTime
+
1000
,
MEMBERLEVEL
.
普通会员
,
userInfo
.
memberType
,
subType
,
true
);
//创建初始订单应该使用
//创建今年的订单
let
thisYear
=
new
Date
().
getFullYear
();
let
orderStartMonthStr
=
moment
(
joinTime
).
format
(
"MM-DD HH:mm:SS"
);
let
orderStartMs
=
new
Date
(
`
${
thisYear
}
-
${
orderStartMonthStr
}
`
).
valueOf
();
await
createOrder
(
id
,
userInfo
.
loginId
,
userInfo
.
phone
,
unitName
,
orderStartMs
,
MEMBERLEVEL
.
普通会员
,
userInfo
.
memberType
,
subType
,
true
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
:
id
},
updateInfo
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
:
id
},
updateInfo
);
...
...
src/biz/member/order.ts
View file @
c17f3599
This diff is collapsed.
Click to expand it.
src/config/errorEnum.ts
View file @
c17f3599
...
@@ -75,7 +75,9 @@ export enum ERRORENUM {
...
@@ -75,7 +75,9 @@ export enum ERRORENUM {
账号不存在
,
账号不存在
,
密码修改错误
,
密码修改错误
,
非单位会员不可操作
,
非单位会员不可操作
,
不存在审批历史
不存在审批历史
,
发票已发送至邮请注意查看
,
请先付款后进行发票操作
}
}
export
enum
ERRORCODEENUM
{
export
enum
ERRORCODEENUM
{
...
...
src/data/models/model.ts
View file @
c17f3599
...
@@ -519,7 +519,7 @@ const ModelArray = [
...
@@ -519,7 +519,7 @@ const ModelArray = [
refundSuccessful
:{
type
:
"Boolean"
,
default
:
false
},
//退款确认
refundSuccessful
:{
type
:
"Boolean"
,
default
:
false
},
//退款确认
refundImgUrl
:
"String"
,
refundImgUrl
:
"String"
,
//新加的状态
//新加的状态
isSueInvoicesInAdvance
:{
type
:
"Boolean"
,
default
:
false
},
//提前开票
isSueInvoicesInAdvance
:{
type
:
"Boolean"
,
default
:
false
},
//提前开票
弃用
}
}
},
},
{
{
...
...
src/routers/member/router.ts
View file @
c17f3599
...
@@ -343,7 +343,7 @@ export const Config = {
...
@@ -343,7 +343,7 @@ export const Config = {
subUrl
:
'/changepwd'
,
subUrl
:
'/changepwd'
,
notMiddleware
:
true
,
notMiddleware
:
true
,
param
:[
param
:[
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"userId"
,
notMustHave
:
true
},
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"userId"
,
isNull
:
true
},
{
key
:
"phone"
,
type
:
"String"
,
desc
:
"绑定手机号"
},
{
key
:
"phone"
,
type
:
"String"
,
desc
:
"绑定手机号"
},
{
key
:
"pwd"
,
type
:
"String"
,
desc
:
"密码"
},
{
key
:
"pwd"
,
type
:
"String"
,
desc
:
"密码"
},
{
key
:
"confirmation"
,
type
:
"String"
,
desc
:
"二次确认密码"
},
{
key
:
"confirmation"
,
type
:
"String"
,
desc
:
"二次确认密码"
},
...
@@ -355,7 +355,7 @@ export const Config = {
...
@@ -355,7 +355,7 @@ export const Config = {
subUrl
:
'/getchangepwdcode'
,
subUrl
:
'/getchangepwdcode'
,
notMiddleware
:
true
,
notMiddleware
:
true
,
param
:[
param
:[
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"userId"
,
notMustHave
:
true
},
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"userId"
,
isNull
:
true
},
{
key
:
"phone"
,
type
:
"String"
,
desc
:
"绑定手机号"
}
{
key
:
"phone"
,
type
:
"String"
,
desc
:
"绑定手机号"
}
],
],
bindBiz
:
userBiz
.
memberChangePwdSendCode
bindBiz
:
userBiz
.
memberChangePwdSendCode
...
...
src/routers/order/router.ts
View file @
c17f3599
...
@@ -202,6 +202,7 @@ export const Config = {
...
@@ -202,6 +202,7 @@ export const Config = {
apiName
:
"退款列表"
,
apiName
:
"退款列表"
,
subUrl
:
'/order/refundlist'
,
subUrl
:
'/order/refundlist'
,
param
:[
param
:[
{
key
:
"name"
,
type
:
"String"
,
desc
:
"名称"
,
isNull
:
true
},
{
key
:
"pageNumber"
,
type
:
"Number"
,
desc
:
"当前页"
},
{
key
:
"pageNumber"
,
type
:
"Number"
,
desc
:
"当前页"
},
],
],
bindBiz
:
orderBiz
.
refundList
bindBiz
:
orderBiz
.
refundList
...
@@ -260,19 +261,19 @@ export const Config = {
...
@@ -260,19 +261,19 @@ export const Config = {
],
],
bindBiz
:
orderBiz
.
reconfirm
bindBiz
:
orderBiz
.
reconfirm
},
},
// {
// apiName:"申请发票", 弃用统一成下面的
// subUrl:'/order/applicationinvoice',
// param:[
// {key:"id", type:"String", desc:"会员缴费列表返回id"},
// {key:"memberType", type:"Number", desc:"会员类型"},
// {key:"newUscc", type:"String", desc:"新的社会信用代码", isNull:true},
// {key:"newUnitName", type:"String", desc:"新的发票抬头", isNull:true}
// ],
// bindBiz:orderBiz.applicationInvoice
// },
{
{
apiName
:
"申请发票"
,
apiName
:
"开发票"
,
subUrl
:
'/order/applicationinvoice'
,
param
:[
{
key
:
"id"
,
type
:
"String"
,
desc
:
"会员缴费列表返回id"
},
{
key
:
"memberType"
,
type
:
"Number"
,
desc
:
"会员类型"
},
{
key
:
"newUscc"
,
type
:
"String"
,
desc
:
"新的社会信用代码"
,
isNull
:
true
},
{
key
:
"newUnitName"
,
type
:
"String"
,
desc
:
"新的发票抬头"
,
isNull
:
true
}
],
bindBiz
:
orderBiz
.
applicationInvoice
},
{
apiName
:
"提前开发票"
,
subUrl
:
'/order/inadvance'
,
subUrl
:
'/order/inadvance'
,
param
:[
param
:[
{
key
:
"id"
,
type
:
"String"
,
desc
:
"会员缴费列表返回id"
},
{
key
:
"id"
,
type
:
"String"
,
desc
:
"会员缴费列表返回id"
},
...
@@ -282,7 +283,7 @@ export const Config = {
...
@@ -282,7 +283,7 @@ export const Config = {
bindBiz
:
orderBiz
.
applicationInadvanceInvoice
bindBiz
:
orderBiz
.
applicationInadvanceInvoice
},
},
{
{
apiName
:
"
提前
开发票回显"
,
apiName
:
"开发票回显"
,
subUrl
:
'/order/inadvanceinfo'
,
subUrl
:
'/order/inadvanceinfo'
,
param
:[
param
:[
{
key
:
"id"
,
type
:
"String"
,
desc
:
"会员缴费列表返回id"
}
{
key
:
"id"
,
type
:
"String"
,
desc
:
"会员缴费列表返回id"
}
...
...
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