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
842bae6b
Commit
842bae6b
authored
Mar 19, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-pad
into dev
parents
33961f3a
850a504d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
10 deletions
+32
-10
App.vue
App.vue
+6
-8
index.vue
pages/mes/prodReport/index.vue
+26
-2
No files found.
App.vue
View file @
842bae6b
...
@@ -6,21 +6,19 @@ export default {
...
@@ -6,21 +6,19 @@ export default {
plus
.
screen
.
lockOrientation
(
'landscape-primary'
);
plus
.
screen
.
lockOrientation
(
'landscape-primary'
);
// #endif
// #endif
},
},
onShow
:
function
()
{
onShow
:
function
()
{},
},
onHide
:
function
()
{}
onHide
:
function
()
{
};
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
/*每个页面公共css */
/*每个页面公共css */
@import
"@/uview-ui/index.scss"
;
@import
'@/uview-ui/index.scss'
;
/
deep
/
.uni-select__selector-scroll
{
/
deep
/
.uni-select__selector-scroll
{
max-height
:
10
0px
!
important
;
max-height
:
7
0px
!
important
;
}
}
/
deep
/
.times
.uni-date-picker__container
{
/
deep
/
.times
.uni-date-picker__container
{
height
:
275px
!
important
;
height
:
275px
!
important
;
}
}
</
style
>
</
style
>
pages/mes/prodReport/index.vue
View file @
842bae6b
...
@@ -152,7 +152,8 @@
...
@@ -152,7 +152,8 @@
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<u-form-item
label=
"生产工单"
prop=
"workorderId"
>
<u-form-item
label=
"生产工单"
prop=
"workorderId"
>
<uni-data-select
v-model=
"feedback.workorderId"
:localdata=
"feedback.workorderOption"
@
change=
"workorderSelect($event, i)"
></uni-data-select>
<uni-data-select
v-model=
"feedback.workorderId"
:localdata=
"feedback.workorderOption"
@
change=
"workorderSelect($event, i)"
></uni-data-select>
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
...
@@ -202,7 +203,7 @@
...
@@ -202,7 +203,7 @@
<u-row>
<u-row>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<u-form-item
label=
"净重(KG)"
prop=
"netWeight"
>
<u-form-item
label=
"净重(KG)"
prop=
"netWeight"
>
<u-number-box
:min=
"0"
:positive-integer=
"false"
v-model=
"feedback.netWeight"
></u-number-box>
<u-number-box
:min=
"0"
:positive-integer=
"false"
:input-width=
"190"
v-model=
"feedback.netWeight"
></u-number-box>
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
...
@@ -1319,6 +1320,29 @@ userTempVisible: false,
...
@@ -1319,6 +1320,29 @@ userTempVisible: false,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
item
.
workorderList
=
res
.
rows
;
item
.
workorderList
=
res
.
rows
;
//如果只关联一个订单,默认选中
if
(
res
.
rows
.
length
==
1
){
item
.
workorderId
=
res
.
rows
[
0
].
workorderId
;
item
.
workorderCode
=
res
.
rows
[
0
].
workorderCode
;
if
(
res
.
rows
[
0
].
sizeList2
!=
null
){
item
.
sizeList
=
res
.
rows
[
0
].
sizeList2
.
map
(
temp2
=>
{
return
{
value
:
temp2
.
workorderSoSizeItemId
,
text
:
temp2
.
standardSize
}
});
}
if
(
res
.
rows
[
0
].
saleDirectiveList
!=
null
){
item
.
directiveList
=
res
.
rows
[
0
].
saleDirectiveList
.
map
(
temp2
=>
{
return
{
value
:
temp2
.
workorderSoDirectiveId
,
text
:
temp2
.
clientCmd
}
});
}
item
.
packByDirective
=
res
.
rows
[
0
].
packByDirective
;
item
.
packBySize
=
res
.
rows
[
0
].
packBySize
;
}
item
.
workorderOption
=
res
.
rows
.
map
((
temp
)
=>
{
item
.
workorderOption
=
res
.
rows
.
map
((
temp
)
=>
{
if
(
temp
.
saleDirectiveList
!=
null
){
if
(
temp
.
saleDirectiveList
!=
null
){
item
.
directiveData
[
temp
.
workorderId
]
=
temp
.
saleDirectiveList
.
map
(
temp2
=>
{
item
.
directiveData
[
temp
.
workorderId
]
=
temp
.
saleDirectiveList
.
map
(
temp2
=>
{
...
...
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