Commit 795a9188 by 前端

BUG修复

1 parent 8fd4ee76
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
<!-- 上传接车/交车单 --> <!-- 上传接车/交车单 -->
<GLDialog mode="mid" <GLDialog mode="mid"
class="import-dialog" class="import-dialog"
title="接车/交车单上传" :title="dialogTitle"
:visible.sync="fileVisible" :visible.sync="fileVisible"
@onCancel="fileVisible = false" @onCancel="fileVisible = false"
@onOk="handleConfirmImport" @onOk="handleConfirmImport"
...@@ -403,6 +403,7 @@ export default { ...@@ -403,6 +403,7 @@ export default {
fileName: [{ required: true, message: '请上传文件', trigger: 'change' }] fileName: [{ required: true, message: '请上传文件', trigger: 'change' }]
}, },
carFileType: '', // 0接车单1交车单 carFileType: '', // 0接车单1交车单
dialogTitle: '', // 上传弹窗标题
pickUpOrder: null, // 接车单信息 pickUpOrder: null, // 接车单信息
deliveryNote: null // 交车单信息 deliveryNote: null // 交车单信息
} }
...@@ -526,6 +527,11 @@ export default { ...@@ -526,6 +527,11 @@ export default {
handleUpload(type) { handleUpload(type) {
this.carFileType = type this.carFileType = type
if (type == '0') {
this.dialogTitle = '上传接车单'
} else {
this.dialogTitle = '上传交车单'
}
this.fileVisible = !this.fileVisible this.fileVisible = !this.fileVisible
}, },
...@@ -584,7 +590,18 @@ export default { ...@@ -584,7 +590,18 @@ export default {
}, },
handleCarFileUpload(obj) { handleCarFileUpload(obj) {
this.downloadPDF(obj) this.$confirm('是否确定下载文件?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
})
.then(() => {
this.downloadPDF(obj)
})
.catch(err => {
console.log(err)
})
}, },
handleCarFilePreview(url) { handleCarFilePreview(url) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!