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
095ad1c7
Commit
095ad1c7
authored
Jul 11, 2024
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
1a062df6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
16 deletions
+43
-16
src/views/UserPage.vue
+1
-0
src/views/order/index.vue
+42
-16
No files found.
src/views/UserPage.vue
View file @
095ad1c7
...
...
@@ -280,6 +280,7 @@ const deleteUser = async () => {
})
search
()
}
catch
(
e
)
{
search
()
// showError(e)
}
}
...
...
src/views/order/index.vue
View file @
095ad1c7
...
...
@@ -126,7 +126,7 @@
v
-
if
=
"statusCode === 2 || statusCode === 3 || statusCode === 4"
class
=
"item"
>
<
ElButton
type
=
"warning"
is
-
dark
@
click
=
"downloadManuscript"
<
ElButton
:
disabled
=
"selection.find(item=>item.manuscriptStatus !== 30)"
type
=
"warning"
is
-
dark
@
click
=
"downloadManuscript"
>
下载稿件
<
/ElButto
n
>
<
/span
>
...
...
@@ -134,8 +134,16 @@
v
-
if
=
"statusCode === 2 || statusCode === 3 || statusCode === 4"
class
=
"item"
>
<
ElButton
type
=
"success"
is
-
dark
@
click
=
"reGenerateManuscript"
>
更新稿件
<
/ElButto
n
<
ElButton
:
disabled
=
"selection.find(item=>item.manuscriptStatus !== 30)"
type
=
"success"
is
-
dark
@
click
=
"reGenerateManuscript"
>
重新打包稿件
<
/ElButto
n
>
<
/span
>
<
span
v
-
if
=
"statusCode === 2 || statusCode === 3 || statusCode === 4"
class
=
"item"
>
<
ElButton
type
=
"warning"
is
-
dark
@
click
=
"reCreateManuscript"
>
重新生成稿件
<
/ElButto
n
>
<
/span
>
<
span
v
-
if
=
"statusCode === 2 || statusCode === 3"
class
=
"item"
>
...
...
@@ -354,20 +362,12 @@
:
title
=
"scope.row.manuscriptStatusStr"
class
=
"order-detail_item"
>
<
span
class
=
"label"
>
稿件
下载
状态
:
<
/span
>
<
span
class
=
"label"
>
稿件状态
:
<
/span
>
<
span
class
=
"value"
:
title
=
"scope.row.manuscriptStatusStr"
>
{{
scope
.
row
.
manuscriptStatusStr
||
'--'
}}
<
/span
>
<
/div
>
<
div
:
title
=
"scope.row.productionFileStatus"
class
=
"order-detail_item"
>
<
span
class
=
"label"
>
稿件生成状态
:
<
/span
>
<
span
class
=
"value"
:
title
=
"scope.row.productionFileStatus"
>
{{
scope
.
row
.
productionFileStatus
||
'--'
}}
<
/span
>
<
/div
>
<
div
:
title
=
"scope.row.lanshouName"
class
=
"order-detail_item"
>
<
span
class
=
"label"
>
收货人
:
<
/span
>
<
span
class
=
"value"
>
{{
scope
.
row
.
lanshouName
}}
<
/span
>
...
...
@@ -797,7 +797,7 @@ import {
getOrderDetail
,
cancelOrderApi
,
reGenerateScriptUrlApi
,
refreshProductInfo
,
refreshProductInfo
,
reCreateScriptUrlApi
,
}
from
'@/api/order'
import
{
showError
,
showConfirm
}
from
'@/utils/ui'
import
{
useValue
}
from
'@/utils/hooks/useValue'
...
...
@@ -1007,7 +1007,7 @@ const downloadManuscript = async () => {
}
const
manuscriptUrl
=
[]
for
(
const
item
of
selection
.
value
)
{
if
(
item
.
manuscriptStatus
!==
3
)
{
if
(
item
.
manuscriptStatus
!==
3
0
)
{
return
ElMessage
({
message
:
'请选择稿件下载已完成的订单'
,
type
:
'warning'
,
...
...
@@ -1042,7 +1042,7 @@ const reGenerateManuscript = async () => {
}
const
ids
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
try
{
await
showConfirm
(
'是否重新
生成
'
,
{
await
showConfirm
(
'是否重新
打包稿件
'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
...
...
@@ -1058,6 +1058,32 @@ const reGenerateManuscript = async () => {
// showError(e)
}
}
const
reCreateManuscript
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
return
ElMessage
({
message
:
'请选择订单'
,
type
:
'warning'
,
offset
:
window
.
innerHeight
/
2
,
}
)
}
const
ids
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
try
{
await
showConfirm
(
'是否重新生成稿件 '
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
}
catch
{
return
}
try
{
const
res
=
await
reCreateScriptUrlApi
(
ids
)
ElMessage
.
success
(
res
.
message
)
search
()
}
catch
(
e
)
{
// showError(e)
}
}
// 打印生产单
const
printManuscript
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
...
...
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