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
62be992a
Commit
62be992a
authored
Jul 09, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退料申请编码新增
parent
30712cee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
+21
-18
http.api.js
common/http.api.js
+6
-0
index.vue
pages/mes/prodReport/index.vue
+15
-18
No files found.
common/http.api.js
View file @
62be992a
...
...
@@ -273,6 +273,12 @@ const install = (Vue, vm) => {
params
),
//自动生成接口
genCode
:
(
ruleCode
)
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/autocode/get/'
+
ruleCode
),
//首页相关api
getIndexCardInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getIndexCardInfo'
,
params
),
...
...
pages/mes/prodReport/index.vue
View file @
62be992a
...
...
@@ -1353,6 +1353,7 @@ export default {
applyNum
:
1
,
workorderCode
:
null
},
applyNo
:
null
,
printTemplateData
:
null
,
printTemplateVisible
:
false
,
userTempVisible
:
false
,
...
...
@@ -2805,19 +2806,15 @@ 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
()
{
let
a
=
null
;
const
taskInfo
=
this
.
tableSelectData
[
0
];
const
apply_no
=
this
.
formatDateRandom
()
async
formatDateRandom
()
{
await
this
.
$u
.
api
.
genCode
(
'MATERIAL_RETURN_CODE'
).
then
((
item
)
=>
{
console
.
log
(
item
);
this
.
applyNo
=
item
;
});
},
materialReturnSave
()
{
this
.
formatDateRandom
()
const
taskInfo
=
this
.
tableSelectData
[
0
];
const
rst
=
this
.
materialReturnList
.
map
((
s
)
=>
{
let
data
=
{
itemId
:
s
.
itemId
,
...
...
@@ -2828,7 +2825,7 @@ export default {
workOrderId
:
s
.
workorderId
,
batchNo
:
s
.
batchCode
,
packNo
:
s
.
packNo
,
applyNo
:
apply_n
o
,
applyNo
:
this
.
applyN
o
,
isQualified
:
s
.
isQualified
};
a
=
a
+
s
.
applyNum
;
...
...
@@ -2856,14 +2853,14 @@ export default {
values
:{
detail
:[
{
barcode
:
apply_n
o
,
showText
:
'退料单号:'
+
apply_n
o
,
barcode
:
this
.
applyN
o
,
showText
:
'退料单号:'
+
this
.
applyN
o
,
gp
:
i
+
1
},
{
barcode
:
apply_n
o
,
showText
:
'退料单号:'
+
apply_n
o
,
barcode
:
this
.
applyN
o
,
showText
:
'退料单号:'
+
this
.
applyN
o
,
gp
:
i
+
1
}
...
...
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