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
c693375e
Commit
c693375e
authored
Feb 25, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
445713a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
homePage.ts
src/biz/member/homePage.ts
+9
-2
enum.ts
src/config/enum.ts
+1
-0
router.ts
src/routers/apply/router.ts
+1
-1
No files found.
src/biz/member/homePage.ts
View file @
c693375e
...
...
@@ -9,7 +9,7 @@ import { ERRORENUM } from "../../config/errorEnum";
import
{
addManyData
,
addOneData
}
from
"../../data/add"
;
import
{
deleteManyData
}
from
"../../data/delete"
;
import
{
TABLEENUM
}
from
"../../data/models/model"
;
import
{
find
,
findOnce
,
findOnceToSort
}
from
"../../data/select"
;
import
{
find
,
findOnce
,
findOnceToSort
,
findToSort
}
from
"../../data/select"
;
import
{
updateOneData
}
from
"../../data/update"
;
import
{
generateSystemId
,
getEdition
,
successErrorResult
,
successResult
}
from
"../../tools/system"
;
import
{
BizError
}
from
"../../util/bizError"
;
...
...
@@ -612,6 +612,12 @@ export async function applyReason({applyStr, userId}) {
export
async
function
infomationChangeUpdate
({
userId
,
unitName
,
uscc
,
legalPerson
,
unitMemberType
,
uusinessLicenseUrl
,
applicationForm
,
desc
,
yuanXiaoBanXueLeiXing
,
legalPersonMail
,
legalPersonPhone
})
{
let
userInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
},
[
"memberType"
]);
if
(
userInfo
.
memberType
!=
MEMBERTYPE
.
单位会员
)
throw
new
BizError
(
ERRORENUM
.
非单位会员不可操作
);
let
applyToSort
=
await
findOnceToSort
(
TABLEENUM
.
资料变更审批历史表
,
{
userId
},
{
createTimeMs
:
-
1
});
let
infoChangeOptionType
=
INFOCHANGEAPPLYTYPE
.
待审批
;
//新增了状态:驳回提交,当上次审批状态为驳回修改时,当前提交状态为驳回提交
if
(
applyToSort
.
infoChangeOptionType
==
INFOCHANGEAPPLYTYPE
.
驳回修改
)
infoChangeOptionType
=
INFOCHANGEAPPLYTYPE
.
驳回提交
;
//添加日志
/**添加审批历史 */
let
applyInfo
:
any
=
{
...
...
@@ -628,9 +634,10 @@ export async function infomationChangeUpdate({userId, unitName, uscc, legalPerso
desc
,
legalPersonMail
,
legalPersonPhone
,
infoChangeOptionType
:
INFOCHANGEAPPLYTYPE
.
待审批
,
infoChangeOptionType
,
createTimeMs
:
new
Date
().
valueOf
()
};
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
{
infoChangeId
:
applyInfo
.
infoChangeId
,
infoChangeMs
:
new
Date
().
valueOf
(),
infoChangeOptionType
:
INFOCHANGEAPPLYTYPE
.
待审批
});
await
addOneData
(
TABLEENUM
.
资料变更审批历史表
,
applyInfo
);
...
...
src/config/enum.ts
View file @
c693375e
...
...
@@ -818,6 +818,7 @@ export enum INFOCHANGEAPPLYTYPE {
通过
=
1
,
待审批
,
驳回修改
,
驳回提交
,
//2025.02.24新增状态
}
...
...
src/routers/apply/router.ts
View file @
c693375e
...
...
@@ -70,7 +70,7 @@ export const Config = {
subUrl
:
'/applydb/infomationchange/list'
,
param
:[
{
key
:
"name"
,
type
:
"String"
,
desc
:
"关键字搜索"
,
isNull
:
true
},
{
key
:
"changeState"
,
type
:
"Number"
,
desc
:
"筛选状态 0是全部 1是通过 2是待审批 3是驳回修改"
,
isNull
:
true
},
{
key
:
"changeState"
,
type
:
"Number"
,
desc
:
"筛选状态 0是全部 1是通过 2是待审批 3是驳回修改
4是驳回提交
"
,
isNull
:
true
},
{
key
:
"pageNumber"
,
type
:
"Number"
,
desc
:
"分页"
},
{
key
:
"pageSize"
,
type
:
"Number"
,
desc
:
"一页显示大小"
},
],
...
...
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