|
@@ -18,8 +18,12 @@
|
|
|
<li>1) 请先下载导入模板,模板中已标示出必填项</li>
|
|
|
<li>2) 如果物流单号相同,则视为同一个发货单</li>
|
|
|
<li>3) 同一个发货单可有多个不同类型的类型,包括易损件、电池、机油、电池机油、轮胎</li>
|
|
|
+ <li>
|
|
|
+ <a :href="filePath" style="margin: 5px 0 0;display: block;">
|
|
|
+ <a-icon type="download" style="padding-right: 5px;" />下载导入模板
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
- <a-button type="link" icon="download" style="padding: 0 0 0 23px;" :loading="exportLoading" @click="handleExport">下载导入模板</a-button>
|
|
|
</div>
|
|
|
<div class="explain-item">
|
|
|
<div class="explain-tit">
|
|
@@ -88,7 +92,8 @@ export default {
|
|
|
uploadParams: {
|
|
|
savePathType: 'local'
|
|
|
},
|
|
|
- exportLoading: false
|
|
|
+ exportLoading: false,
|
|
|
+ filePath: location.protocol + '//' + location.host + '/templ/promo/发货单信息导入模板.xlsx'
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -123,20 +128,6 @@ export default {
|
|
|
handleClose () {
|
|
|
this.openImportModal = false
|
|
|
this.isShow = false
|
|
|
- },
|
|
|
- // 下载模板
|
|
|
- handleExport () {
|
|
|
- this.exportLoading = true
|
|
|
- setTimeout(() => {
|
|
|
- this.exportLoading = false
|
|
|
- }, 1000)
|
|
|
- const link = document.createElement('a')
|
|
|
- link.style.display = 'none'
|
|
|
- link.href = 'https://jg-ocs.oss-cn-beijing.aliyuncs.com/templ/promo/sendOutOrderImport.xlsx?t=' + new Date().getTime()
|
|
|
- link.setAttribute('download', '发货单信息导入模板' + '.xlsx')
|
|
|
- document.body.appendChild(link)
|
|
|
- link.click()
|
|
|
- document.body.removeChild(link)
|
|
|
}
|
|
|
},
|
|
|
watch: {
|