|
@@ -123,14 +123,24 @@ export default {
|
|
|
this.openImportModal = false
|
|
|
this.isShow = false
|
|
|
},
|
|
|
- // 下载模板
|
|
|
+ // 下载模板
|
|
|
handleExport () {
|
|
|
- const _this = this
|
|
|
- _this.spinning = true
|
|
|
- exportExcel(downLoadTemp, { type: 'XSTHMX' }, '销售退货单产品导入模板', function () {
|
|
|
- _this.spinning = false
|
|
|
- }, true)
|
|
|
+ const link = document.createElement('a')
|
|
|
+ link.style.display = 'none'
|
|
|
+ link.href = 'https://jianguan-images.oss-cn-beijing.aliyuncs.com/template/XiaoShouTuiHuoMingXiDaoRu.xlsx'
|
|
|
+ link.setAttribute('download', '销售退货单产品导入模板' + '.xlsx')
|
|
|
+ document.body.appendChild(link)
|
|
|
+ link.click()
|
|
|
+ document.body.removeChild(link)
|
|
|
}
|
|
|
+ // 下载模板
|
|
|
+ // handleExport () {
|
|
|
+ // const _this = this
|
|
|
+ // _this.spinning = true
|
|
|
+ // exportExcel(downLoadTemp, { type: 'XSTHMX' }, '销售退货单产品导入模板', function () {
|
|
|
+ // _this.spinning = false
|
|
|
+ // }, true)
|
|
|
+ // }
|
|
|
},
|
|
|
watch: {
|
|
|
// 父页面传过来的弹框状态
|