Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-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
pda
pda-ui
Commits
33323042
Commit
33323042
authored
Jul 05, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产工单->打印工单
parent
b1d8b68b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
21 deletions
+27
-21
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+8
-4
productOrderDetail.vue
src/views/mes/pro/workorder/print/productOrderDetail.vue
+17
-14
productOrderSpecification.vue
...ews/mes/pro/workorder/print/productOrderSpecification.vue
+2
-3
No files found.
src/views/mes/pro/workorder/indexApply.vue
View file @
33323042
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<el-button
type=
"warning"
plain
size=
"mini"
v-print=
"printContent"
id=
"printbtn"
style=
"display: none"
<el-button
type=
"warning"
plain
size=
"mini"
v-print=
"printContent"
id=
"printbtn"
style=
"display: none"
>
打印工单
>
打印工单
</el-button>
</el-button>
<el-button
type=
"warning"
plain
size=
"mini"
ref=
"printbtn"
@
click=
"handlePrint"
<el-button
type=
"warning"
plain
size=
"mini"
ref=
"printbtn"
@
click=
"handlePrint"
:loading=
"printloading"
>
打印工单
>
打印工单
</el-button>
</el-button>
</el-col>
</el-col>
...
@@ -620,14 +620,13 @@ export default {
...
@@ -620,14 +620,13 @@ export default {
popTitle
:
''
,
// 打印页面的页眉
popTitle
:
''
,
// 打印页面的页眉
extraHead
:
'<meta http-equiv="Content-Language"content="zh-cn"/>'
,
extraHead
:
'<meta http-equiv="Content-Language"content="zh-cn"/>'
,
previewBeforeOpenCallback
()
{
previewBeforeOpenCallback
()
{
console
.
log
(
'previewBeforeOpenCallback'
)
}
,
}
,
previewOpenCallback
()
{
}
,
previewOpenCallback
()
{
}
,
beforeOpenCallback
(
vue
)
{
beforeOpenCallback
(
vue
)
{
// vue.printLoading = true;
// vue.printLoading = true;
}
,
}
,
openCallback
(
vue
)
{
openCallback
(
vue
)
{
// vue.printL
oading = false;
vue
.
printl
oading
=
false
;
}
,
}
,
closeCallback
()
{
}
,
closeCallback
()
{
}
,
clickMounted
(
vue
)
{
clickMounted
(
vue
)
{
...
@@ -735,7 +734,8 @@ export default {
...
@@ -735,7 +734,8 @@ export default {
],
],
}
,
}
,
productionSolutionTable
:
[],
productionSolutionTable
:
[],
workOrderTable
:
[]
workOrderTable
:
[],
printloading
:
false
}
;
}
;
}
,
}
,
activated
()
{
activated
()
{
...
@@ -752,6 +752,8 @@ export default {
...
@@ -752,6 +752,8 @@ export default {
this
.
daterangePurchaseDate
=
[
dayjs
().
format
(
'YYYY-MM-DD'
),
dayjs
().
add
(
7
,
'day'
).
format
(
'YYYY-MM-DD'
)]
this
.
daterangePurchaseDate
=
[
dayjs
().
format
(
'YYYY-MM-DD'
),
dayjs
().
add
(
7
,
'day'
).
format
(
'YYYY-MM-DD'
)]
}
,
}
,
handlePrint
(){
handlePrint
(){
if
(
!
this
.
ids
||
this
.
ids
.
length
===
0
)
return
this
.
$message
.
warning
(
'请选择工单'
)
this
.
printloading
=
true
;
printInfo
(
this
.
ids
).
then
(
res
=>
{
printInfo
(
this
.
ids
).
then
(
res
=>
{
if
(
!
res
.
data
||
res
.
data
.
length
===
0
)
{
if
(
!
res
.
data
||
res
.
data
.
length
===
0
)
{
return
this
.
$message
.
warning
(
'没有数据'
)
return
this
.
$message
.
warning
(
'没有数据'
)
...
@@ -763,6 +765,8 @@ export default {
...
@@ -763,6 +765,8 @@ export default {
document
.
getElementById
(
'printbtn'
).
click
()
document
.
getElementById
(
'printbtn'
).
click
()
}
)
}
)
}
}
}
).
finally
(()
=>
{
this
.
printloading
=
false
;
}
)
}
)
}
,
}
,
handleCommandClick
()
{
handleCommandClick
()
{
...
...
src/views/mes/pro/workorder/print/productOrderDetail.vue
View file @
33323042
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<vue-barcode
<vue-barcode
:value=
"pageHeader.arrangeCode"
:value=
"pageHeader.arrangeCode"
margin-right=
"5"
margin-right=
"5"
format=
"QR"
:display-value=
"pageHeader.arrangeCode"
:display-value=
"pageHeader.arrangeCode"
font=
"bold"
font=
"bold"
margin-left=
"5"
margin-left=
"5"
...
@@ -49,7 +50,7 @@
...
@@ -49,7 +50,7 @@
<div>
打印时间:
{{
date
}}
</div>
<div>
打印时间:
{{
date
}}
</div>
</div>
</div>
<div
class=
"materialLength"
>
<div
class=
"materialLength"
>
<div>
生产制程:
{{
pageHeader
.
materialLength
}}
</div>
<div>
生产制程:
{{
pageHeader
.
processDesc
}}
</div>
</div>
</div>
</div>
</div>
<table
border
class=
"form-header font-size-16"
style=
"table-layout: fixed;width: 100%;border:1px solid #000000;font-size:14px;line-height:25px;"
>
<table
border
class=
"form-header font-size-16"
style=
"table-layout: fixed;width: 100%;border:1px solid #000000;font-size:14px;line-height:25px;"
>
...
@@ -61,7 +62,7 @@
...
@@ -61,7 +62,7 @@
<td
colspan=
"2"
align=
"center"
>
生产量
</td>
<td
colspan=
"2"
align=
"center"
>
生产量
</td>
<td
colspan=
"2"
align=
"center"
>
Loss数
</td>
<td
colspan=
"2"
align=
"center"
>
Loss数
</td>
<td
colspan=
"2"
align=
"center"
>
参考数
</td>
<td
colspan=
"2"
align=
"center"
>
参考数
</td>
<td
colspan=
"2"
align=
"center"
style=
"background-color: #7e7878;-webkit-print-color-adjust: exact;"
>
派工数
</td>
<td
colspan=
"2"
align=
"center"
style=
"background-color: #7e7878
8e
;-webkit-print-color-adjust: exact;"
>
派工数
</td>
<td
colspan=
"2"
align=
"center"
>
材料总重(KG)
</td>
<td
colspan=
"2"
align=
"center"
>
材料总重(KG)
</td>
<td
colspan=
"3"
align=
"center"
>
单层厚(丝)
</td>
<td
colspan=
"3"
align=
"center"
>
单层厚(丝)
</td>
</tr>
</tr>
...
@@ -72,7 +73,7 @@
...
@@ -72,7 +73,7 @@
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
quantity
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
quantity
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
lossNum
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
lossNum
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
dispatchQuantity
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
dispatchQuantity
}}
</td>
<td
colspan=
"2"
align=
"center"
style=
"background: #7e7878;-webkit-print-color-adjust: exact;"
>
{{
workOrderInfo
.
referenceQuantity
}}
</td>
<td
colspan=
"2"
align=
"center"
style=
"background: #7e7878
8e
;-webkit-print-color-adjust: exact;"
>
{{
workOrderInfo
.
referenceQuantity
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
materialWeight
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
workOrderInfo
.
materialWeight
}}
</td>
<td
colspan=
"3"
align=
"center"
>
{{
workOrderInfo
.
singleLayerThick
}}
</td>
<td
colspan=
"3"
align=
"center"
>
{{
workOrderInfo
.
singleLayerThick
}}
</td>
</tr>
</tr>
...
@@ -93,7 +94,7 @@
...
@@ -93,7 +94,7 @@
<td
colspan=
"2"
align=
"center"
>
数量
</td>
<td
colspan=
"2"
align=
"center"
>
数量
</td>
<td
colspan=
"2"
align=
"center"
>
Loss数
</td>
<td
colspan=
"2"
align=
"center"
>
Loss数
</td>
</tr>
</tr>
<tr
v-for=
"(item,index) in soSizeList"
:key=
"index"
height=
"20"
class=
"color000"
>
<tr
v-for=
"(item,index) in soSizeList"
:key=
"
'soSizeList' +
index"
height=
"20"
class=
"color000"
>
<td
colspan=
"2"
align=
"center"
>
{{
item
[
0
]
&&
item
[
0
].
colorNo
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
item
[
0
]
&&
item
[
0
].
colorNo
}}
</td>
<td
colspan=
"2"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
[
0
]
&&
item
[
0
].
clientCmd
}}
</td>
<td
colspan=
"2"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
[
0
]
&&
item
[
0
].
clientCmd
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
item
[
0
]
&&
item
[
0
].
quantity
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
item
[
0
]
&&
item
[
0
].
quantity
}}
</td>
...
@@ -114,7 +115,7 @@
...
@@ -114,7 +115,7 @@
<td
colspan=
"17"
align=
"center"
style=
"text-align: left"
>
客户货品名称:
</td>
<td
colspan=
"17"
align=
"center"
style=
"text-align: left"
>
客户货品名称:
</td>
</tr>
</tr>
<!-- -->
<!-- -->
<tbody
v-for=
"(soDirective, index) in soDirectives"
:key=
"index"
>
<tbody
v-for=
"(soDirective, index) in soDirectives"
:key=
"
'soDirectives' +
index"
>
<tr
height=
"20"
class=
"color000"
>
<tr
height=
"20"
class=
"color000"
>
<td
colspan=
"3"
align=
"center"
>
产品材质:
</td>
<td
colspan=
"3"
align=
"center"
>
产品材质:
</td>
<td
colspan=
"21"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
soDirective
.
productSpec
}}
</td>
<td
colspan=
"21"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
soDirective
.
productSpec
}}
</td>
...
@@ -162,13 +163,13 @@
...
@@ -162,13 +163,13 @@
</tbody>
</tbody>
<tr
height=
"20"
class=
"color000"
>
<tr
height=
"20"
class=
"color000"
>
<td
colspan=
"3"
align=
"center"
>
生产制
造
</td>
<td
colspan=
"3"
align=
"center"
>
生产制
程
</td>
<td
colspan=
"9"
align=
"center"
>
描述
</td>
<td
colspan=
"9"
align=
"center"
>
描述
</td>
<td
colspan=
"3"
align=
"center"
>
数量
</td>
<td
colspan=
"3"
align=
"center"
>
数量
</td>
<td
colspan=
"3"
align=
"center"
>
审核/签字
</td>
<td
colspan=
"3"
align=
"center"
>
审核/签字
</td>
<td
colspan=
"6"
align=
"center"
>
备注
</td>
<td
colspan=
"6"
align=
"center"
>
备注
</td>
</tr>
</tr>
<tr
height=
"20"
v-for=
"(item,index) in processList"
:key=
"index"
class=
"color000"
>
<tr
height=
"20"
v-for=
"(item,index) in processList"
:key=
"
'processList' +
index"
class=
"color000"
>
<td
colspan=
"3"
align=
"center"
>
{{
item
.
processName
}}
</td>
<td
colspan=
"3"
align=
"center"
>
{{
item
.
processName
}}
</td>
<td
colspan=
"9"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
desc
}}
</td>
<td
colspan=
"9"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
desc
}}
</td>
<td
colspan=
"3"
align=
"center"
>
{{
item
.
quantity
}}
</td>
<td
colspan=
"3"
align=
"center"
>
{{
item
.
quantity
}}
</td>
...
@@ -197,7 +198,7 @@
...
@@ -197,7 +198,7 @@
<td
colspan=
"2"
align=
"center"
>
库位
</td>
<td
colspan=
"2"
align=
"center"
>
库位
</td>
<td
colspan=
"2"
align=
"center"
>
备注
</td>
<td
colspan=
"2"
align=
"center"
>
备注
</td>
</tr>
</tr>
<tr
v-for=
"(item,index) in processItemList"
:key=
"index"
height=
"20"
class=
"color000"
>
<tr
v-for=
"(item,index) in processItemList"
:key=
"
'processItemList' +
index"
height=
"20"
class=
"color000"
>
<td
colspan=
"2"
align=
"center"
>
{{
item
.
itemType
}}
</td>
<td
colspan=
"2"
align=
"center"
>
{{
item
.
itemType
}}
</td>
<td
colspan=
"2"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
itemCode
}}
</td>
<td
colspan=
"2"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
itemCode
}}
</td>
<td
colspan=
"6"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
itemName
}}
</td>
<td
colspan=
"6"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
itemName
}}
</td>
...
@@ -371,16 +372,19 @@ export default {
...
@@ -371,16 +372,19 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
workOrderTable
.
body
.
soSizeList
.
length
;
i
+=
3
){
for
(
let
i
=
0
;
i
<
this
.
workOrderTable
.
body
.
soSizeList
.
length
;
i
+=
3
){
result
.
push
(
this
.
workOrderTable
.
body
.
soSizeList
.
slice
(
i
,
i
+
3
));
result
.
push
(
this
.
workOrderTable
.
body
.
soSizeList
.
slice
(
i
,
i
+
3
));
}
}
if
(
result
.
length
===
0
)
{
result
=
[[{}]]
}
return
result
return
result
},
},
soDirectives
(){
soDirectives
(){
return
this
.
workOrderTable
.
body
.
soDirectives
return
this
.
workOrderTable
.
body
.
soDirectives
.
length
===
0
?
[{}]
:
this
.
workOrderTable
.
body
.
soDirectives
},
},
processList
(){
processList
(){
return
this
.
workOrderTable
.
body
.
processList
return
this
.
workOrderTable
.
body
.
processList
.
length
===
0
?
[{}]
:
this
.
workOrderTable
.
body
.
processList
},
},
processItemList
(){
processItemList
(){
return
this
.
workOrderTable
.
body
.
processItemList
return
this
.
workOrderTable
.
body
.
processItemList
.
length
===
0
?
[{}]
:
this
.
workOrderTable
.
body
.
processItemList
},
},
img
(){
img
(){
return
this
.
workOrderTable
.
body
.
img
return
this
.
workOrderTable
.
body
.
img
...
@@ -399,10 +403,9 @@ export default {
...
@@ -399,10 +403,9 @@ export default {
.productOrderBox
{
.productOrderBox
{
position
:
relative
;
position
:
relative
;
width
:
920px
;
width
:
920px
;
height
:
1
1
00px
;
height
:
1
3
00px
;
padding
:
0
49px
;
padding
:
0
49px
;
padding-top
:
20px
;
padding-top
:
20px
;
padding-bottom
:
80px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.pageTop
{
.pageTop
{
...
@@ -415,7 +418,7 @@ export default {
...
@@ -415,7 +418,7 @@ export default {
letter-spacing
:
2px
;
letter-spacing
:
2px
;
}
}
.GOM
{
.GOM
{
color
:
#9f9c97
;
color
:
#9f9c97
8e
;
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
font-size
:
28px
;
font-size
:
28px
;
...
...
src/views/mes/pro/workorder/print/productOrderSpecification.vue
View file @
33323042
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
<td
colspan=
"3"
align=
"center"
>
生产制程
</td>
<td
colspan=
"3"
align=
"center"
>
生产制程
</td>
<td
colspan=
"21"
align=
"center"
>
描述
</td>
<td
colspan=
"21"
align=
"center"
>
描述
</td>
</tr>
</tr>
<tr
height=
"20"
v-for=
"(item,index) in body.processes"
:key=
"index"
class=
"color000"
>
<tr
height=
"20"
v-for=
"(item,index) in body.processes"
:key=
"
'processes' +
index"
class=
"color000"
>
<td
colspan=
"3"
align=
"center"
>
{{
item
.
processName
}}
</td>
<td
colspan=
"3"
align=
"center"
>
{{
item
.
processName
}}
</td>
<td
colspan=
"21"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
desc
}}
</td>
<td
colspan=
"21"
align=
"center"
style=
"word-wrap:break-word;word-break:break-all"
>
{{
item
.
desc
}}
</td>
</tr>
</tr>
...
@@ -317,10 +317,9 @@ export default {
...
@@ -317,10 +317,9 @@ export default {
.productOrderSpecification
{
.productOrderSpecification
{
position
:
relative
;
position
:
relative
;
width
:
920px
;
width
:
920px
;
height
:
1
1
00px
;
height
:
1
3
00px
;
padding
:
0
49px
;
padding
:
0
49px
;
padding-top
:
20px
;
padding-top
:
20px
;
padding-bottom
:
80px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
...
...
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