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
81740d35
Commit
81740d35
authored
Jul 05, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
podus生产中状态添加生产完成按钮
parent
695a4da0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
14 deletions
+77
-14
src/api/podUsOrder.ts
+14
-0
src/views/order/podUs/index.vue
+63
-14
No files found.
src/api/podUsOrder.ts
View file @
81740d35
...
@@ -484,3 +484,17 @@ export function batchDownloadRecomposingApi(params: { id: number }) {
...
@@ -484,3 +484,17 @@ export function batchDownloadRecomposingApi(params: { id: number }) {
},
},
)
)
}
}
// 生产完成
export
function
updateToWaitShipmentApi
(
params
:
{
usUpdateParams
:
Array
<
{
id
:
number
|
string
podJomallOrderUsId
:
number
|
string
factorySubOrderNumber
:
number
|
string
version
:
number
|
string
}
>
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
`factory/podJomallOrderUs/updateToWaitShipment`
,
params
,
)
}
src/views/order/podUs/index.vue
View file @
81740d35
...
@@ -69,14 +69,6 @@
...
@@ -69,14 +69,6 @@
style=
"width: 150px"
style=
"width: 150px"
></ElInput>
></ElInput>
</ElFormItem>
</ElFormItem>
<ElFormItem
label=
"货号"
>
<ElInput
v-model=
"searchForm.thirdStockSku"
placeholder=
"货号"
clearable
style=
"width: 150px"
/>
</ElFormItem>
<ElFormItem
label=
"款号"
>
<ElFormItem
label=
"款号"
>
<ElInput
<ElInput
v-model=
"searchForm.supplierProductNo"
v-model=
"searchForm.supplierProductNo"
...
@@ -379,11 +371,14 @@
...
@@ -379,11 +371,14 @@
申请补胚
申请补胚
</ElButton>
</ElButton>
</span>
</span>
<span
v-if=
"status === '
WAIT_SHIPMENT
'"
class=
"item"
>
<span
v-if=
"status === '
IN_PRODUCTION
'"
class=
"item"
>
<ElButton
type=
"
warning"
@
click=
"printPodOrder
"
>
<ElButton
type=
"
success"
@
click=
"productioncompleted
"
>
播种墙配货
生产完成
</ElButton>
</ElButton>
</span>
</span>
<span
v-if=
"status === 'WAIT_SHIPMENT'"
class=
"item"
>
<ElButton
type=
"warning"
@
click=
"printPodOrder"
>
POD打单
</ElButton>
</span>
<span
v-if=
"status === 'CREATE_LOGISTICS'"
class=
"item"
>
<span
v-if=
"status === 'CREATE_LOGISTICS'"
class=
"item"
>
<ElButton
type=
"warning"
@
click=
"logisticsToPicking"
>
<ElButton
type=
"warning"
@
click=
"logisticsToPicking"
>
转至待排单
转至待排单
...
@@ -1183,9 +1178,7 @@
...
@@ -1183,9 +1178,7 @@
>
>
<
template
<
template
#
top_right
#
top_right
v
-
if
=
"
v
-
if
=
"['ZPZY', 'CXZY', 'THZY'].includes(cardItem.craftCode as string)"
['ZPZY', 'CXZY', 'THZY'].includes(cardItem?.craftCode || '')
"
>
>
<
img
<
img
:
src
=
"`/images/pic/${cardItem.craftCode
}
.png`"
:
src
=
"`/images/pic/${cardItem.craftCode
}
.png`"
...
@@ -1751,6 +1744,7 @@ import {
...
@@ -1751,6 +1744,7 @@ import {
CaretBottom
,
CaretBottom
,
CaretTop
,
CaretTop
,
// Edit,
// Edit,
Close
,
WarningFilled
,
WarningFilled
,
}
from
'@element-plus/icons-vue'
}
from
'@element-plus/icons-vue'
import
{
import
{
...
@@ -1799,6 +1793,7 @@ import {
...
@@ -1799,6 +1793,7 @@ import {
batchDownloadDownloadApi
,
batchDownloadDownloadApi
,
batchDownloadDeleteApi
,
batchDownloadDeleteApi
,
batchDownloadRecomposingApi
,
batchDownloadRecomposingApi
,
updateToWaitShipmentApi
,
}
from
'@/api/podUsOrder'
}
from
'@/api/podUsOrder'
import
{
BaseRespData
}
from
'@/types/api'
import
{
BaseRespData
}
from
'@/types/api'
...
@@ -3798,6 +3793,60 @@ const applyForReplenishment = async (row: ProductList | undefined) => {
...
@@ -3798,6 +3793,60 @@ const applyForReplenishment = async (row: ProductList | undefined) => {
}
}
}
)
}
)
}
}
/**
* @description: 生产完成按钮
*/
async
function
productioncompleted
()
{
if
(
cardSelection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请至少选择一条数据'
)
}
const
bool
=
cardSelection
.
value
.
some
((
el
)
=>
el
.
isReplenishment
)
if
(
bool
)
{
return
ElMessage
.
warning
({
message
:
'选择数据中有<span style="color: #fff;background-color: #f56c6c; border-radius: 4px;padding:0 5px">补胚中</span>的数据,无法生产完成'
,
dangerouslyUseHTMLString
:
true
,
}
)
}
try
{
await
ElMessageBox
.
confirm
(
'是否确认生产完成?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
}
catch
{
return
}
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
const
paramsArr
=
cardSelection
.
value
.
map
((
el
)
=>
{
return
{
id
:
el
.
id
??
''
,
podJomallOrderUsId
:
el
.
podJomallOrderUsId
??
''
,
factorySubOrderNumber
:
el
.
factorySubOrderNumber
??
''
,
version
:
el
.
version
??
''
,
}
}
)
try
{
const
res
=
await
updateToWaitShipmentApi
({
usUpdateParams
:
paramsArr
}
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
search
()
loadTabData
()
cardSelection
.
value
=
[]
}
catch
(
e
)
{
console
.
error
(
e
)
}
finally
{
loading
.
close
()
}
}
const
replenishmentSuccess
=
async
()
=>
{
const
replenishmentSuccess
=
async
()
=>
{
if
(
cardSelection
.
value
.
length
===
0
)
{
if
(
cardSelection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请至少选择一条数据'
)
return
ElMessage
.
warning
(
'请至少选择一条数据'
)
...
...
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