Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 855eddbe
authored
Sep 05, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
BUG修复
1 parent
3e940f4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
src/api/order.js
src/views/orderManage/orderDetail.vue
src/api/order.js
View file @
855eddb
...
...
@@ -190,3 +190,9 @@ export function carUploadRecordDelete(data) {
data
.
method
=
`
${
path2
}
carUploadRecord.delete`
return
request
(
data
,
"post"
)
}
/** 上传的接车单、交车单下载次数增加 */
export
function
downloadNumAdd
(
data
)
{
data
.
method
=
`
${
path2
}
carUploadRecord.downloadNum.add`
return
request
(
data
,
"post"
)
}
src/views/orderManage/orderDetail.vue
View file @
855eddb
...
...
@@ -154,7 +154,7 @@
<span
class=
"label"
:title=
"pickUpOrder.fileName"
>
<el-button
type=
"text"
@
click=
"handleCarFileUpload(pickUpOrder)"
>
{{
pickUpOrder
.
fileName
?
(
pickUpOrder
.
fileName
.
length
>
5
?
(
pickUpOrder
.
fileName
.
slice
(
0
,
5
)
+
'...'
)
:
pickUpOrder
.
fileName
)
:
''
}}
</el-button>
@
click=
"handleCarFileUpload(pickUpOrder
,'0'
)"
>
{{
pickUpOrder
.
fileName
?
(
pickUpOrder
.
fileName
.
length
>
5
?
(
pickUpOrder
.
fileName
.
slice
(
0
,
5
)
+
'...'
)
:
pickUpOrder
.
fileName
)
:
''
}}
</el-button>
</span>
<span
class=
"handle"
@
click=
"handleCarFilePreview(pickUpOrder.fileUrl)"
>
预览
...
...
@@ -177,7 +177,7 @@
<span
class=
"label"
:title=
"deliveryNote.fileName"
>
<el-button
type=
"text"
@
click=
"handleCarFileUpload(deliveryNote)"
>
{{
deliveryNote
.
fileName
?
(
deliveryNote
.
fileName
.
length
>
5
?
(
deliveryNote
.
fileName
.
slice
(
0
,
5
)
+
'...'
)
:
deliveryNote
.
fileName
)
:
''
}}
</el-button>
@
click=
"handleCarFileUpload(deliveryNote
,'1'
)"
>
{{
deliveryNote
.
fileName
?
(
deliveryNote
.
fileName
.
length
>
5
?
(
deliveryNote
.
fileName
.
slice
(
0
,
5
)
+
'...'
)
:
deliveryNote
.
fileName
)
:
''
}}
</el-button>
</span>
<span
class=
"handle"
@
click=
"handleCarFilePreview(deliveryNote.fileUrl)"
>
预览
...
...
@@ -506,7 +506,7 @@ import technicianDialog from "./components/technicianDialog"
import
{
deepClone
,
downLoadFile
}
from
"@/common/util"
import
{
payType
,
BaseData
,
invoiceTypeOpt
,
invalidFlagOpt
}
from
"@/common/constants.js"
import
dayjs
from
"dayjs"
import
{
goodsOrderDetail
,
markAsInvoiced
,
carUploadRecordAdd
,
carUploadRecordDelete
}
from
"@api/order"
import
{
goodsOrderDetail
,
markAsInvoiced
,
carUploadRecordAdd
,
carUploadRecordDelete
,
downloadNumAdd
}
from
"@api/order"
import
newSignRefundDialog
from
"./components/newSignRefundDialog"
import
alyOss
from
'@/common/oss.js'
export
default
{
...
...
@@ -977,7 +977,7 @@ export default {
})
},
handleCarFileUpload
(
obj
)
{
handleCarFileUpload
(
obj
,
type
)
{
this
.
$confirm
(
'是否确定下载文件?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -985,6 +985,7 @@ export default {
closeOnClickModal
:
false
}).
then
(()
=>
{
this
.
downloadPDF
(
obj
)
this
.
downloadNumAdd
(
type
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
...
...
@@ -994,6 +995,13 @@ export default {
window
.
open
(
url
)
},
// 上传的接车单、交车单下载次数增加
downloadNumAdd
(
type
)
{
downloadNumAdd
({
orderCode
:
this
.
detail
.
orderCode
,
fileType
:
type
}).
then
((
res
)
=>
{
console
.
log
(
'res'
,
res
)
})
},
handleCarFileDelete
(
id
)
{
this
.
$confirm
(
'请确认是否要执行当前操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment