|
@@ -18,8 +18,13 @@
|
|
|
<li>1) 导入的Excel文件中必须包含名为“产品编码”、“数量”的列,且名称必须相同</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>
|
|
|
+ <!-- <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">
|
|
@@ -91,7 +96,8 @@ export default {
|
|
|
uploadParams: {
|
|
|
savePathType: 'local'
|
|
|
},
|
|
|
- exportLoading: false
|
|
|
+ exportLoading: false,
|
|
|
+ filePath: location.protocol + '//' + location.host + '/templ/销售导入产品模板.xlsx'
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -123,20 +129,20 @@ export default {
|
|
|
handleClose () {
|
|
|
this.openImportModal = false
|
|
|
this.isShow = false
|
|
|
- },
|
|
|
- // 导出
|
|
|
- handleExport () {
|
|
|
- const _this = this
|
|
|
- const params = { grabFlag: this.params.grabFlag }
|
|
|
- this.exportLoading = true
|
|
|
- this.spinning = true
|
|
|
- setTimeout(() => {
|
|
|
- _this.exportLoading = false
|
|
|
- }, 1000)
|
|
|
- hdExportExcel(salesDownload, params, '销售导入模板', function () {
|
|
|
- _this.spinning = false
|
|
|
- })
|
|
|
}
|
|
|
+ // 导出
|
|
|
+ // handleExport () {
|
|
|
+ // const _this = this
|
|
|
+ // const params = { grabFlag: this.params.grabFlag }
|
|
|
+ // this.exportLoading = true
|
|
|
+ // this.spinning = true
|
|
|
+ // setTimeout(() => {
|
|
|
+ // _this.exportLoading = false
|
|
|
+ // }, 1000)
|
|
|
+ // hdExportExcel(salesDownload, params, '销售导入模板', function () {
|
|
|
+ // _this.spinning = false
|
|
|
+ // })
|
|
|
+ // }
|
|
|
},
|
|
|
watch: {
|
|
|
// 父页面传过来的弹框状态
|