Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
mes
mes-ui
Commits
f7bd2670
Commit
f7bd2670
authored
Apr 15, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保密发料单升降序
parent
940df986
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
117 additions
and
5 deletions
+117
-5
index.vue
src/views/mes/pro/secretSend/index.vue
+117
-5
No files found.
src/views/mes/pro/secretSend/index.vue
View file @
f7bd2670
...
...
@@ -78,16 +78,55 @@
<el-table
v-loading=
"loading"
:data=
"informationList"
:summary-method=
"getSummaries"
show-summary
@
selection-change=
"handleSelectionChange"
:max-height=
"maxHeight"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"组合单号"
align=
"center"
prop=
"combinationCode"
/>
<el-table-column
label=
"生产工单"
align=
"center"
prop=
"workorderCode"
/>
<el-table-column
label=
"状态"
align=
"center"
prop=
"status"
>
<el-table-column
align=
"center"
prop=
"workorderCode"
width=
"180"
>
<template
slot=
"header"
slot-scope=
"scope"
>
<div
class=
"t-cell"
>
生产工单
<span
class=
"t-caret-warpper"
>
<i
class=
"t-sort-caret ascend"
:class=
"[ascOrderKeyList.includes('workorderCode') ? 'ascending' : '' ]"
@
click=
"handleSortChange('workorderCode', 'asc')"
></i>
<i
class=
"t-sort-caret descend"
:class=
"[descOrderKeyList.includes('workorderCode') ? 'descending' : '' ]"
@
click=
"handleSortChange('workorderCode', 'desc')"
></i>
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"status"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.se_issue_table_status"
:value=
"scope.row.status"
/>
</
template
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<div
class=
"t-cell"
>
状态
<span
class=
"t-caret-warpper"
>
<i
class=
"t-sort-caret ascend"
:class=
"[ascOrderKeyList.includes('status') ? 'ascending' : '' ]"
@
click=
"handleSortChange('status', 'asc')"
></i>
<i
class=
"t-sort-caret descend"
:class=
"[descOrderKeyList.includes('status') ? 'descending' : '' ]"
@
click=
"handleSortChange('status', 'desc')"
></i>
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"sapItemCode"
width=
"180"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<div
class=
"t-cell"
>
物料编码
<span
class=
"t-caret-warpper"
>
<i
class=
"t-sort-caret ascend"
:class=
"[ascOrderKeyList.includes('sapItemCode') ? 'ascending' : '' ]"
@
click=
"handleSortChange('sapItemCode', 'asc')"
></i>
<i
class=
"t-sort-caret descend"
:class=
"[descOrderKeyList.includes('sapItemCode') ? 'descending' : '' ]"
@
click=
"handleSortChange('sapItemCode', 'desc')"
></i>
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"物料编码"
align=
"center"
prop=
"sapItemCode"
/>
<el-table-column
label=
"物料名称"
align=
"center"
prop=
"itemName"
min-width=
"200"
/>
<el-table-column
label=
"数量"
align=
"center"
prop=
"quantity"
/>
<el-table-column
label=
"工艺编码"
align=
"center"
prop=
"seRouteCode"
/>
<el-table-column
align=
"center"
prop=
"seRouteCode"
width=
"180"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<div
class=
"t-cell"
>
工艺编码
<span
class=
"t-caret-warpper"
>
<i
class=
"t-sort-caret ascend"
:class=
"[ascOrderKeyList.includes('seRouteCode') ? 'ascending' : '' ]"
@
click=
"handleSortChange('seRouteCode', 'asc')"
></i>
<i
class=
"t-sort-caret descend"
:class=
"[descOrderKeyList.includes('seRouteCode') ? 'descending' : '' ]"
@
click=
"handleSortChange('seRouteCode', 'desc')"
></i>
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"工艺描述"
align=
"center"
prop=
"seRouteDesc"
/>
<el-table-column
label=
"油墨重量(KG)"
align=
"center"
prop=
"printinginkCoefficient"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -99,10 +138,19 @@
<span>
{{
scope
.
row
.
particleCoefficient
?
(
scope
.
row
.
quantity
*
scope
.
row
.
particleCoefficient
>
0
?
(
scope
.
row
.
quantity
*
scope
.
row
.
particleCoefficient
).
toFixed
(
3
)
:
0
)
:
0
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"需求日期"
align=
"center"
prop=
"requestDate"
width=
"180"
>
<el-table-column
align=
"center"
prop=
"requestDate"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
requestDate
,
"{y
}
-{m
}
-{d
}
"
)
}}
<
/span
>
<
/template
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
div
class
=
"t-cell"
>
需求日期
<
span
class
=
"t-caret-warpper"
>
<
i
class
=
"t-sort-caret ascend"
:
class
=
"[ascOrderKeyList.includes('requestDate') ? 'ascending' : '' ]"
@
click
=
"handleSortChange('requestDate', 'asc')"
><
/i
>
<
i
class
=
"t-sort-caret descend"
:
class
=
"[descOrderKeyList.includes('requestDate') ? 'descending' : '' ]"
@
click
=
"handleSortChange('requestDate', 'desc')"
><
/i
>
<
/span
>
<
/div
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
fixed
=
"right"
width
=
"120"
>
<
template
slot
-
scope
=
"scope"
>
...
...
@@ -240,6 +288,8 @@ export default {
}
,
// 表单参数
form
:
{
}
,
ascOrderKeyList
:
[],
descOrderKeyList
:
[],
// 表单校验
rules
:
{
taskCode
:
[
...
...
@@ -258,6 +308,23 @@ export default {
this
.
getList
();
}
,
methods
:
{
handleSortChange
(
code
,
type
)
{
const
ascIndex
=
this
.
ascOrderKeyList
.
indexOf
(
code
);
const
descIndex
=
this
.
descOrderKeyList
.
indexOf
(
code
);
if
(
ascIndex
!=
-
1
)
{
this
.
ascOrderKeyList
.
splice
(
ascIndex
,
1
);
}
if
(
type
==
"asc"
&&
ascIndex
==
-
1
)
{
this
.
ascOrderKeyList
.
push
(
code
);
}
if
(
descIndex
!=
-
1
)
{
this
.
descOrderKeyList
.
splice
(
descIndex
,
1
);
}
if
(
type
==
"desc"
&&
descIndex
==
-
1
)
{
this
.
descOrderKeyList
.
push
(
code
);
}
this
.
getList
();
}
,
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
...
...
@@ -281,6 +348,8 @@ export default {
this
.
loading
=
true
;
const
params
=
{
...
this
.
queryParams
,
ascOrderKeyList
:
this
.
ascOrderKeyList
,
descOrderKeyList
:
this
.
descOrderKeyList
,
itemNameList
:
this
.
queryParams
.
itemNameList
?
this
.
queryParams
.
itemNameList
.
split
(
/
[\n
,;,、;。
]
/
).
filter
(
item
=>
item
)
:
null
,
sapItemCodeList
:
this
.
queryParams
.
sapItemCodeList
?
this
.
queryParams
.
sapItemCodeList
.
split
(
/
[\n
,;,、;。
]
/
).
filter
(
item
=>
item
)
:
null
}
...
...
@@ -469,3 +538,46 @@ export default {
}
}
<
/script
>
<
style
lang
=
"scss"
scoped
>
.
t
-
cell
{
display
:
inline
-
block
;
box
-
sizing
:
border
-
box
;
position
:
relative
;
vertical
-
align
:
middle
;
padding
-
left
:
10
px
;
padding
-
right
:
10
px
;
width
:
100
%
;
.
t
-
caret
-
warpper
{
display
:
inline
-
flex
;
flex
-
direction
:
column
;
align
-
items
:
center
;
height
:
34
px
;
width
:
24
px
;
vertical
-
align
:
middle
;
cursor
:
pointer
;
overflow
:
initial
;
position
:
relative
;
.
t
-
sort
-
caret
{
width
:
0
;
height
:
0
;
border
:
5
px
solid
transparent
;
position
:
absolute
;
left
:
7
px
;
}
.
ascend
{
border
-
bottom
-
color
:
#
c0c4cc
;
top
:
5
px
;
}
.
ascending
{
border
-
bottom
-
color
:
#
409
eff
;
}
.
descend
{
border
-
top
-
color
:
#
c0c4cc
;
bottom
:
7
px
;
}
.
descending
{
border
-
top
-
color
:
#
409
eff
;
}
}
}
<
/style>
\ No newline at end of file
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