明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_backend
Project
Project
Details
Activity
Releases
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
zengfanpei
letian_backend
Commits
50ecaa39
Commit
50ecaa39
authored
Dec 11, 2024
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9fb3709d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
agrMatController.js
controller/agrMatController.js
+3
-3
No files found.
controller/agrMatController.js
View file @
50ecaa39
...
@@ -89,7 +89,7 @@ async function queryMatApprList(req, res, next) {
...
@@ -89,7 +89,7 @@ async function queryMatApprList(req, res, next) {
let
pageSize
=
req
.
body
.
pageSize
||
10
;
let
pageSize
=
req
.
body
.
pageSize
||
10
;
let
skip
=
(
page
-
1
)
*
pageSize
;
let
skip
=
(
page
-
1
)
*
pageSize
;
let
count
=
await
DB
.
AgrMatApproval
.
countDocuments
(
search
)
let
count
=
await
DB
.
AgrMatApproval
.
countDocuments
(
search
)
let
list
=
await
DB
.
AgrMatApproval
.
find
(
search
).
skip
(
skip
).
limit
(
pageSize
).
lean
().
exec
();
let
list
=
await
DB
.
AgrMatApproval
.
find
(
search
).
populate
({
path
:
"creator"
}).
skip
(
skip
).
limit
(
pageSize
).
lean
().
exec
();
res
.
sendData
({
count
,
list
});
res
.
sendData
({
count
,
list
});
}
catch
(
error
)
{
}
catch
(
error
)
{
next
(
error
)
next
(
error
)
...
@@ -348,7 +348,7 @@ async function inMat(req, res, next) {
...
@@ -348,7 +348,7 @@ async function inMat(req, res, next) {
let
inApproval
=
{
let
inApproval
=
{
_id
:
inApprovalId
,
_id
:
inApprovalId
,
type
:
1
,
type
:
1
,
name
:
"入库单"
,
name
:
req
.
body
.
name
||
"入库单"
,
creator
,
creator
,
file
:
fileInfo
&&
fileInfo
.
_id
,
file
:
fileInfo
&&
fileInfo
.
_id
,
}
}
...
@@ -410,7 +410,7 @@ async function outMat(req, res, next) {
...
@@ -410,7 +410,7 @@ async function outMat(req, res, next) {
let
inApproval
=
{
let
inApproval
=
{
_id
:
inApprovalId
,
_id
:
inApprovalId
,
type
:
2
,
type
:
2
,
name
:
"出库单"
,
name
:
req
.
body
.
name
||
"出库单"
,
creator
,
creator
,
file
:
fileInfo
&&
fileInfo
.
_id
,
file
:
fileInfo
&&
fileInfo
.
_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