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
9fc9c637
Commit
9fc9c637
authored
Jun 13, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/dev'
# Conflicts: # components.d.ts
parents
3ad49302
7f9a1976
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
+33
-2
components.d.ts
+1
-1
src/api/axios.ts
+1
-1
src/api/podUsOrder.ts
+10
-0
src/views/order/podUs/index.vue
+21
-0
No files found.
components.d.ts
View file @
9fc9c637
...
...
@@ -66,7 +66,7 @@ declare module 'vue' {
ShipmentOrderDetail
:
typeof
import
(
'./src/components/ShipmentOrderDetail.vue'
)[
'default'
]
SplitDiv
:
typeof
import
(
'./src/components/splitDiv/splitDiv.vue'
)[
'default'
]
'Switch '
:
typeof
import
(
'./src/components/Form/Switch .vue'
)[
'default'
]
TableRight
ClickMenu
:
typeof
import
(
'./src/components/TableRightClick
Menu.vue'
)[
'default'
]
TableRight
Menu
:
typeof
import
(
'./src/components/TableRight
Menu.vue'
)[
'default'
]
TableView
:
typeof
import
(
'./src/components/TableView.vue'
)[
'default'
]
UploadExcel
:
typeof
import
(
'./src/components/UploadExcel.vue'
)[
'default'
]
UploadImage
:
typeof
import
(
'./src/components/UploadImage.vue'
)[
'default'
]
...
...
src/api/axios.ts
View file @
9fc9c637
...
...
@@ -4,7 +4,7 @@ import { showError } from '@/utils/ui.ts'
const
axios
=
Axios
.
create
({
baseURL
:
import
.
meta
.
env
.
VITE_API_BASE
,
timeout
:
30000
,
timeout
:
30000
0
,
//凯哥让改的超时时间
})
const
TOKEN_KEY
=
'token'
...
...
src/api/podUsOrder.ts
View file @
9fc9c637
...
...
@@ -306,6 +306,16 @@ export function createLogisticsOrderApi(params: {
params
,
)
}
// 更改物流
export
function
composingDesignImages
(
data
:
number
[])
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podJomallOrderUs/composingDesignImages'
,
data
,{
responseType
:
'blob'
,
// 设置响应类型为 Blob(处理二进制流)
}
)
}
// 转至待拣胚
export
function
updateLogisticsToPickingApi
(
params
:
{
ids
:
string
})
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
...
...
src/views/order/podUs/index.vue
View file @
9fc9c637
...
...
@@ -230,6 +230,9 @@
</div>
</div>
<div
class=
"operation-box mb-10"
>
<span
v-if=
"status === 'PICKING'"
class=
"item"
>
<ElButton
:loading=
"downloadLoading"
type=
"primary"
@
click=
"downloadTif"
>
排版
</ElButton>
</span>
<span
v-if=
"status === 'TO_BE_CONFIRMED'"
class=
"item"
>
<ElButton
type=
"success"
@
click=
"confirmOrder"
>
确认
</ElButton>
</span>
...
...
@@ -1218,6 +1221,7 @@ import {
getTrackingNumberApi
,
getfaceSimplexFileApi
,
cancelLogisticsOrderApi
,
composingDesignImages
,
changeLogisticsApi
,
createLogisticsOrderApi
,
updateLogisticsToPickingApi
,
...
...
@@ -1270,6 +1274,7 @@ declare global {
const
tabsNav
=
ref
<
Tab
[]
>
()
const
resultRefs
=
ref
<
InstanceType
<
typeof
ResultInfo
>
|
null
>
(
null
)
const
confirmDialogShow
=
ref
(
false
)
const
downloadLoading
=
ref
(
false
)
const
isChangeWay
=
ref
(
false
)
const
confirmData
=
ref
([])
const
logisticsWayData
=
ref
([])
...
...
@@ -1598,6 +1603,22 @@ const confirmOrder = async () => {
productionClientValue
.
value
=
''
productionClientVisible
.
value
=
true
}
const
downloadTif
=
async
()
=>
{
if
(
!
selection
.
value
.
length
)
{
return
ElMessage
.
warning
(
'请选择数据'
)
}
downloadLoading
.
value
=
true
try
{
const
res
=
await
composingDesignImages
(
selection
.
value
.
map
(
el
=>
el
.
id
))
window
.
open
(
filePath
+
res
.
message
,
'_blank'
)
downloadLoading
.
value
=
false
}
catch
(
e
){
downloadLoading
.
value
=
false
}
}
const
loadProductionClient
=
async
()
=>
{
try
{
const
res
=
await
getProductionClientApi
()
...
...
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