Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
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
ximai
mes-pad
Commits
84d0139c
Commit
84d0139c
authored
Jun 21, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退料申请随机数
parent
2f1a2708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
index.vue
pages/mes/prodReport/index.vue
+11
-0
No files found.
pages/mes/prodReport/index.vue
View file @
84d0139c
...
...
@@ -2731,8 +2731,18 @@ export default {
this
.
materialReturnSelected
.
isQualified
=
this
.
materialReturnFormData
.
isQualified
;
this
.
materialReturnFormVisible
=
false
;
},
formatDateRandom
()
{
const
date
=
new
Date
();
const
year
=
date
.
getFullYear
();
const
month
=
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
);
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
let
randomNumber
=
Math
.
floor
(
Math
.
random
()
*
10000
);
randomNumber
=
randomNumber
.
toString
().
padStart
(
4
,
'0'
);
return
`SN
${
year
}${
month
}${
day
}${
randomNumber
}
`
},
materialReturnSave
()
{
const
taskInfo
=
this
.
tableSelectData
[
0
];
const
apply_no
=
this
.
formatDateRandom
()
const
rst
=
this
.
materialReturnList
.
map
((
s
)
=>
{
let
data
=
{
itemId
:
s
.
itemId
,
...
...
@@ -2743,6 +2753,7 @@ export default {
workOrderId
:
s
.
workorderId
,
batchNo
:
s
.
batchCode
,
packNo
:
s
.
packNo
,
apply_no
:
apply_no
,
isQualified
:
s
.
isQualified
};
if
(
this
.
materialReturnFormData
.
workorderCode
)
{
...
...
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