|
@@ -141,7 +141,7 @@ export default {
|
|
url,
|
|
url,
|
|
responseType: 'blob'
|
|
responseType: 'blob'
|
|
}
|
|
}
|
|
- this.$confirm('您确定导出发放清单', '提示', {
|
|
|
|
|
|
+ this.$confirm('您确定导出订货清单', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -164,7 +164,7 @@ export default {
|
|
let link = document.createElement("a")
|
|
let link = document.createElement("a")
|
|
let nowTime = new Date()
|
|
let nowTime = new Date()
|
|
let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
|
|
let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
|
|
- let fname = this.$route.query.id + '-' + ymd + '发放清单' //下载文件的名字
|
|
|
|
|
|
+ let fname = this.$route.query.id + '-' + ymd + '订货清单' //下载文件的名字
|
|
link.href = objectUrl
|
|
link.href = objectUrl
|
|
link.setAttribute("download", fname)
|
|
link.setAttribute("download", fname)
|
|
document.body.appendChild(link)
|
|
document.body.appendChild(link)
|
|
@@ -172,7 +172,6 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
load.endLoading();
|
|
load.endLoading();
|
|
-
|
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
this.$message.error('导出数据失败,请联系管理员');
|
|
this.$message.error('导出数据失败,请联系管理员');
|
|
load.endLoading();
|
|
load.endLoading();
|