|
@@ -17,8 +17,12 @@
|
|
<ul>
|
|
<ul>
|
|
<li>1) 导入的Excel文件中必须包含名为“产品编码”、“成本价”、“数量”、“仓库”、“仓位”的列,且名称必须相同,其它列可自定义,不影响数据导入</li>
|
|
<li>1) 导入的Excel文件中必须包含名为“产品编码”、“成本价”、“数量”、“仓库”、“仓位”的列,且名称必须相同,其它列可自定义,不影响数据导入</li>
|
|
<li>2) 如果导入的产品已经存在,则不会导入该行</li>
|
|
<li>2) 如果导入的产品已经存在,则不会导入该行</li>
|
|
|
|
+ <li>
|
|
|
|
+ <a :href="filePath" style="margin: 5px 0 0;display: block;">
|
|
|
|
+ <a-icon type="download" style="padding-right: 5px;" />下载导入模板
|
|
|
|
+ </a>
|
|
|
|
+ </li>
|
|
</ul>
|
|
</ul>
|
|
- <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="explain-item">
|
|
<div class="explain-item">
|
|
<div class="explain-tit">
|
|
<div class="explain-tit">
|
|
@@ -87,7 +91,8 @@ export default {
|
|
uploadParams: {
|
|
uploadParams: {
|
|
savePathType: 'local',
|
|
savePathType: 'local',
|
|
sparePartsPurchaseSn: this.params.sparePartsPurchaseSn
|
|
sparePartsPurchaseSn: this.params.sparePartsPurchaseSn
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ filePath: location.protocol + '//' +location.host + '/templ/散件入库产品导入模板.xlsx'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -125,16 +130,6 @@ export default {
|
|
this.openImportModal = false
|
|
this.openImportModal = false
|
|
this.isShow = false
|
|
this.isShow = false
|
|
},
|
|
},
|
|
- // 下载模板
|
|
|
|
- handleExport () {
|
|
|
|
- const link = document.createElement('a')
|
|
|
|
- link.style.display = 'none'
|
|
|
|
- link.href = 'https://jianguan-images.oss-cn-beijing.aliyuncs.com/template/散件入库产品导入模板.xlsx'
|
|
|
|
- link.setAttribute('download', '散件入库产品导入模板' + '.xlsx')
|
|
|
|
- document.body.appendChild(link)
|
|
|
|
- link.click()
|
|
|
|
- document.body.removeChild(link)
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
// 父页面传过来的弹框状态
|
|
// 父页面传过来的弹框状态
|