Commit 855eddbe by 前端

BUG修复

1 parent 3e940f4e
...@@ -190,3 +190,9 @@ export function carUploadRecordDelete(data) { ...@@ -190,3 +190,9 @@ export function carUploadRecordDelete(data) {
data.method = `${path2}carUploadRecord.delete` data.method = `${path2}carUploadRecord.delete`
return request(data, "post") return request(data, "post")
} }
/** 上传的接车单、交车单下载次数增加 */
export function downloadNumAdd(data) {
data.method = `${path2}carUploadRecord.downloadNum.add`
return request(data, "post")
}
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<span class="label" <span class="label"
:title="pickUpOrder.fileName"> :title="pickUpOrder.fileName">
<el-button type="text" <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>
<span class="handle" <span class="handle"
@click="handleCarFilePreview(pickUpOrder.fileUrl)">预览 @click="handleCarFilePreview(pickUpOrder.fileUrl)">预览
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
<span class="label" <span class="label"
:title="deliveryNote.fileName"> :title="deliveryNote.fileName">
<el-button type="text" <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>
<span class="handle" <span class="handle"
@click="handleCarFilePreview(deliveryNote.fileUrl)">预览 @click="handleCarFilePreview(deliveryNote.fileUrl)">预览
...@@ -506,7 +506,7 @@ import technicianDialog from "./components/technicianDialog" ...@@ -506,7 +506,7 @@ import technicianDialog from "./components/technicianDialog"
import { deepClone, downLoadFile } from "@/common/util" import { deepClone, downLoadFile } from "@/common/util"
import { payType, BaseData, invoiceTypeOpt, invalidFlagOpt } from "@/common/constants.js" import { payType, BaseData, invoiceTypeOpt, invalidFlagOpt } from "@/common/constants.js"
import dayjs from "dayjs" 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 newSignRefundDialog from "./components/newSignRefundDialog"
import alyOss from '@/common/oss.js' import alyOss from '@/common/oss.js'
export default { export default {
...@@ -977,7 +977,7 @@ export default { ...@@ -977,7 +977,7 @@ export default {
}) })
}, },
handleCarFileUpload(obj) { handleCarFileUpload(obj, type) {
this.$confirm('是否确定下载文件?', '提示', { this.$confirm('是否确定下载文件?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -985,6 +985,7 @@ export default { ...@@ -985,6 +985,7 @@ export default {
closeOnClickModal: false closeOnClickModal: false
}).then(() => { }).then(() => {
this.downloadPDF(obj) this.downloadPDF(obj)
this.downloadNumAdd(type)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
...@@ -994,6 +995,13 @@ export default { ...@@ -994,6 +995,13 @@ export default {
window.open(url) window.open(url)
}, },
// 上传的接车单、交车单下载次数增加
downloadNumAdd(type) {
downloadNumAdd({ orderCode: this.detail.orderCode, fileType: type }).then((res) => {
console.log('res', res)
})
},
handleCarFileDelete(id) { handleCarFileDelete(id) {
this.$confirm('请确认是否要执行当前操作?', '提示', { this.$confirm('请确认是否要执行当前操作?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!