Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
1b912fe7
Commit
1b912fe7
authored
Apr 11, 2024
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 导出生产单
parent
1162a0de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
10 deletions
+27
-10
src/views/order/ProductInfo.vue
+2
-1
src/views/order/index.vue
+25
-9
No files found.
src/views/order/ProductInfo.vue
View file @
1b912fe7
...
...
@@ -111,7 +111,8 @@
<div
v-if=
"
(status === 3 || status === 4 || status === 2) &&
item.shipmentNum === 0
(item.shipmentNum === 0 ||
item.num !== (item.shipmentNum || 0) - (item.notPassNum || 0))
"
class=
"order-list-expand_item_info_title"
>
...
...
src/views/order/index.vue
View file @
1b912fe7
...
...
@@ -91,6 +91,11 @@
>
打印生产单
<
/ElButto
n
>
<
/span
>
<
span
v
-
if
=
"statusCode === 2"
class
=
"item"
>
<
ElButton
type
=
"success"
dark
@
click
=
"exportManuscript"
>
导出生产单
<
/ElButto
n
>
<
/span
>
<
span
class
=
"item"
>
<
ElButton
type
=
"warning"
@
click
=
"addInternalTag"
>
添加内部标签
<
/ElButto
n
...
...
@@ -122,7 +127,7 @@
class
=
"order-list-expand"
:
style
=
"{ width: `${thOrderDetailWidth + 50
}
px`
}
"
>
<
ProductInfo
:
row
=
"row"
:
status
=
"statusCode"
/>
<
ProductInfo
:
row
=
"row"
:
status
=
"statusCode"
/>
<
template
v
-
if
=
"row.productList.length > 2"
>
<
div
class
=
"order-list-expand_more"
>
<
span
@
click
=
"openAll(row)"
>
...
...
@@ -261,6 +266,7 @@
label
=
"订单详情"
header
-
align
=
"center"
class
-
name
=
"th-order-detail"
min
-
width
=
"800"
>
<
template
#
default
=
"scope"
>
<
div
class
=
"order-detail"
>
...
...
@@ -297,20 +303,20 @@
<
/ElTableColumn
>
<
ElTableColumn
label
=
"实付款"
width
=
"
35
0"
width
=
"
28
0"
header
-
align
=
"center"
><
/ElTableColumn
>
<
ElTableColumn
label
=
"内部标签"
width
=
"
35
0"
width
=
"
28
0"
header
-
align
=
"center"
><
/ElTableColumn
>
<
ElTableColumn
label
=
"时间"
width
=
"
35
0"
width
=
"
28
0"
header
-
align
=
"center"
><
/ElTableColumn
>
<
ElTableColumn
label
=
"操作"
width
=
"
2
00"
header
-
align
=
"center"
>
<
ElTableColumn
label
=
"操作"
width
=
"
1
00"
header
-
align
=
"center"
>
<
/ElTableColumn
>
<
/ElTable
>
<
/div
>
...
...
@@ -473,6 +479,7 @@ import {
getOrderTabData
,
confirmProductionOrder
,
printOrder
,
exportOrder
,
addInternalTagApi
,
loadSendOutList
,
getLogList
,
...
...
@@ -697,6 +704,15 @@ const printManuscript = async () => {
showError
(
e
)
}
}
// 导出生产单
const
exportManuscript
=
async
()
=>
{
try
{
const
res
=
await
exportOrder
()
window
.
open
(
filePath
+
res
.
message
)
}
catch
(
e
)
{
showError
(
e
)
}
}
// 添加内部便签
const
addInternalTag
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
...
...
@@ -861,16 +877,16 @@ const onChangeCurrentRow = (item: ProductList) => {
display
:
flex
;
}
.
order
-
operate
{
width
:
2
00
px
;
width
:
1
00
px
;
}
.
order
-
time
{
width
:
35
0
px
;
width
:
28
0
px
;
border
-
right
:
1
px
solid
#
eee
;
}
.
order
-
memo
{
width
:
35
0
px
;
width
:
28
0
px
;
border
-
right
:
1
px
solid
#
eee
;
}
...
...
@@ -895,7 +911,7 @@ const onChangeCurrentRow = (item: ProductList) => {
}
.
order
-
actual
-
payment
{
width
:
35
0
px
;
width
:
28
0
px
;
border
-
right
:
1
px
solid
#
eee
;
}
...
...
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