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
8fd0e150
Commit
8fd0e150
authored
Mar 27, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 快捷生产功能完成
parent
0a3ddae3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
148 additions
and
37 deletions
+148
-37
components.d.ts
+0
-1
src/types/api/fastProduction.ts
+1
-0
src/views/order/factoryOrderNew/component/CardLayout.vue
+1
-1
src/views/order/factoryOrderNew/index.vue
+34
-5
src/views/order/podCN/FastProduction.vue
+112
-30
No files found.
components.d.ts
View file @
8fd0e150
...
@@ -54,7 +54,6 @@ declare module 'vue' {
...
@@ -54,7 +54,6 @@ declare module 'vue' {
ElTag
:
typeof
import
(
'element-plus/es'
)[
'ElTag'
]
ElTag
:
typeof
import
(
'element-plus/es'
)[
'ElTag'
]
ElTimeline
:
typeof
import
(
'element-plus/es'
)[
'ElTimeline'
]
ElTimeline
:
typeof
import
(
'element-plus/es'
)[
'ElTimeline'
]
ElTimelineItem
:
typeof
import
(
'element-plus/es'
)[
'ElTimelineItem'
]
ElTimelineItem
:
typeof
import
(
'element-plus/es'
)[
'ElTimelineItem'
]
ElTimePicker
:
typeof
import
(
'element-plus/es'
)[
'ElTimePicker'
]
ElTooltip
:
typeof
import
(
'element-plus/es'
)[
'ElTooltip'
]
ElTooltip
:
typeof
import
(
'element-plus/es'
)[
'ElTooltip'
]
ElTree
:
typeof
import
(
'element-plus/es'
)[
'ElTree'
]
ElTree
:
typeof
import
(
'element-plus/es'
)[
'ElTree'
]
ElUpload
:
typeof
import
(
'element-plus/es'
)[
'ElUpload'
]
ElUpload
:
typeof
import
(
'element-plus/es'
)[
'ElUpload'
]
...
...
src/types/api/fastProduction.ts
0 → 100644
View file @
8fd0e150
src/views/order/factoryOrderNew/component/CardLayout.vue
View file @
8fd0e150
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<span
<span
class=
"operation-number"
class=
"operation-number"
:title=
"`操作单号:$
{item.operationNo}`"
:title=
"`操作单号:$
{item.operationNo}`"
@click.stop="
String(item.operationNo
)"
@click.stop="
copyText(item.operationNo ?? ''
)"
>
>
{{
item
.
operationNo
}}
{{
item
.
operationNo
}}
</span>
</span>
...
...
src/views/order/factoryOrderNew/index.vue
View file @
8fd0e150
...
@@ -821,6 +821,12 @@
...
@@ -821,6 +821,12 @@
v
-
model
:
detail
-
visible
=
"detailVisible"
v
-
model
:
detail
-
visible
=
"detailVisible"
:
detail
-
data
=
"detailData"
:
detail
-
data
=
"detailData"
:
fast
-
key
=
"fastKey"
:
fast
-
key
=
"fastKey"
:
default
-
auto
-
sure
=
"true"
:
show
-
operation
-
no
-
row
=
"true"
not
-
found
-
message
=
"操作单不存在"
pending
-
order
-
label
=
"操作单号"
please
-
scan
-
tip
=
"请扫码操作单号"
search
-
input
-
audio
-
tip
=
"请录入操作单号"
history
-
storage
-
key
=
"historyFactoryOrderNewData"
history
-
storage
-
key
=
"historyFactoryOrderNewData"
tracking
-
placeholder
=
"扫描枪输入操作单号,录入下一单本单自动生产完成,最后一单扫两次完成生产"
tracking
-
placeholder
=
"扫描枪输入操作单号,录入下一单本单自动生产完成,最后一单扫两次完成生产"
:
query
-
api
=
"getOperationByNo"
:
query
-
api
=
"getOperationByNo"
...
@@ -1683,7 +1689,9 @@ const openResultInfoDialog = (
...
@@ -1683,7 +1689,9 @@ const openResultInfoDialog = (
nextTick
(()
=>
{
nextTick
(()
=>
{
const
isSuccess
=
data
.
every
((
item
)
=>
item
.
status
)
const
isSuccess
=
data
.
every
((
item
)
=>
item
.
status
)
if
(
!
isSuccess
)
{
if
(
!
isSuccess
)
{
resultInfo
.
value
=
data
.
filter
((
item
)
=>
!
item
.
status
).
map
((
item
)
=>
({
resultInfo
.
value
=
data
.
filter
((
item
)
=>
!
item
.
status
)
.
map
((
item
)
=>
({
id
:
item
.
id
,
id
:
item
.
id
,
status
:
item
.
status
??
false
,
status
:
item
.
status
??
false
,
factoryOrderNumber
:
item
.
factoryOrderNumber
??
''
,
factoryOrderNumber
:
item
.
factoryOrderNumber
??
''
,
...
@@ -1768,7 +1776,9 @@ const handleLogisticsCommand = async (command: string) => {
...
@@ -1768,7 +1776,9 @@ const handleLogisticsCommand = async (command: string) => {
if
(
Array
.
isArray
(
res
.
data
))
{
if
(
Array
.
isArray
(
res
.
data
))
{
const
isSuccess
=
res
.
data
.
every
((
item
)
=>
item
.
status
)
const
isSuccess
=
res
.
data
.
every
((
item
)
=>
item
.
status
)
if
(
!
isSuccess
)
{
if
(
!
isSuccess
)
{
resultInfo
.
value
=
res
.
data
.
filter
((
item
)
=>
!
item
.
status
).
map
((
item
)
=>
({
resultInfo
.
value
=
res
.
data
.
filter
((
item
)
=>
!
item
.
status
)
.
map
((
item
)
=>
({
id
:
item
.
id
,
id
:
item
.
id
,
status
:
item
.
status
??
false
,
status
:
item
.
status
??
false
,
factoryOrderNumber
:
item
.
factoryOrderNumber
??
''
,
factoryOrderNumber
:
item
.
factoryOrderNumber
??
''
,
...
@@ -2185,9 +2195,28 @@ const handleReplenishFail = () => {
...
@@ -2185,9 +2195,28 @@ const handleReplenishFail = () => {
const
getOperationByNo
=
(
operationNo
:
string
)
=>
const
getOperationByNo
=
(
operationNo
:
string
)
=>
getByOperationNoLogApi
(
operationNo
)
as
Promise
<
{
data
?:
unknown
}
>
getByOperationNoLogApi
(
operationNo
)
as
Promise
<
{
data
?:
unknown
}
>
const
completeOperationById
=
(
ids
:
number
[])
=>
completeDeliveryApi
(
ids
)
const
completeOperationById
=
(
ids
:
number
[])
=>
completeDeliveryApi
(
ids
)
const
downloadOperationById
=
(
ids
:
number
[])
=>
downloadOperationMaterialApi
(
ids
)
const
downloadOperationById
=
(
ids
:
number
[])
=>
const
handleFastProductionSuccess
=
()
=>
{
downloadOperationMaterialApi
(
ids
)
refreshCurrentView
({
isRefreshTree
:
true
}
)
const
handleFastProductionSuccess
=
(
data
:
{
factoryOrderNumber
?:
number
id
:
number
message
?:
string
status
?:
boolean
}
[],
)
=>
{
const
isSuccess
=
data
.
every
((
item
)
=>
item
.
status
)
if
(
!
isSuccess
)
{
resultInfo
.
value
=
data
.
filter
((
item
)
=>
!
item
.
status
)
.
map
((
item
)
=>
({
id
:
item
.
id
,
status
:
item
.
status
??
false
,
factoryOrderNumber
:
item
.
factoryOrderNumber
?
String
(
item
.
factoryOrderNumber
)
:
''
,
message
:
item
.
message
??
''
,
}
))
resultRefs
.
value
?.
showDialog
()
}
}
}
const
fastClose
=
()
=>
{
const
fastClose
=
()
=>
{
detailVisible
.
value
=
false
detailVisible
.
value
=
false
...
...
src/views/order/podCN/FastProduction.vue
View file @
8fd0e150
This diff is collapsed.
Click to expand it.
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