lilei 2 年之前
父节点
当前提交
9286f30880

二进制
public/templ/库存导入模板.xlsx


二进制
public/templ/散件产品导入模板.xlsx


二进制
public/templ/散件入库产品导入模板.xlsx


二进制
public/templ/货位导入模板.xlsx


二进制
public/templ/采购退货申请单产品明细模板.xlsx


二进制
public/templ/销售单产品明细导入模板.xlsx


+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1675413390762
+  "version": 1675414863830
 }

+ 1 - 1
src/views/bulkManagement/bulkImport/list.vue

@@ -140,7 +140,7 @@ export default {
         savePathType: 'local'
       },
       uploadData: null,
-      filePath: 'https://jianguan-images.oss-cn-beijing.aliyuncs.com/template/ShangHuProductImports.xlsx'
+      filePath: location.protocol + '//' +location.host + '/templ/散件产品导入模板.xlsx'
     }
   },
   methods: {

+ 7 - 12
src/views/bulkManagement/bulkWarehousingOrder/importGuideModal.vue

@@ -17,8 +17,12 @@
           <ul>
             <li>1) 导入的Excel文件中必须包含名为“产品编码”、“成本价”、“数量”、“仓库”、“仓位”的列,且名称必须相同,其它列可自定义,不影响数据导入</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>
-          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
         </div>
         <div class="explain-item">
           <div class="explain-tit">
@@ -87,7 +91,8 @@ export default {
       uploadParams: {
         savePathType: 'local',
         sparePartsPurchaseSn: this.params.sparePartsPurchaseSn
-      }
+      },
+      filePath: location.protocol + '//' +location.host + '/templ/散件入库产品导入模板.xlsx'
     }
   },
   methods: {
@@ -125,16 +130,6 @@ export default {
       this.openImportModal = 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: {
     //  父页面传过来的弹框状态

+ 1 - 1
src/views/inventoryManagement/inventoryImport/list.vue

@@ -125,7 +125,7 @@ export default {
         savePathType: 'local'
       },
       uploadData: null,
-      filePath: 'https://jianguan-images.oss-cn-beijing.aliyuncs.com/template/StockImports.xlsx'
+      filePath: location.protocol + '//' +location.host + '/templ/库存导入模板.xlsx'
     }
   },
   computed: {

+ 1 - 1
src/views/inventoryManagement/inventoryWarning/importGuideModal.vue

@@ -16,7 +16,7 @@
           </div>
           <ul>
             <li>1)导入的Excel文件中必须包含名称为“产品编码”、"在途数(个)”、“最大库存数(个)”、“最小库存数(个)”的列,且名称必须相同,其他列可自定义,不影响数据导入</li>
-            <li><a-icon type="download" /><a :href="templUrl">下载导入模板</a></li>
+            <li><a :href="templUrl"><a-icon type="download" />下载导入模板</a></li>
           </ul>
         </div>
         <div class="explain-item">

+ 1 - 1
src/views/numsGoodsShelves/shelfSet/importHuoweiModal.vue

@@ -92,7 +92,7 @@ export default {
     return {
       isShow: this.openModal, //  是否打开弹框
       openImportModal: false, //  导入
-      filePath: 'https://jianguan-images.oss-cn-beijing.aliyuncs.com/template/importProductToShelfTpl.xlsx', // 文件地址
+      filePath: location.protocol + '//' +location.host + '/templ/货位导入模板.xlsx',
       attachAction: process.env.VUE_APP_API_BASE_URL + '/upload',
       paramsData: null,
       uploadParams: {

+ 7 - 12
src/views/purchasingManagement/purchaseReturnApplyForm/importGuideModal.vue

@@ -17,8 +17,12 @@
           <ul>
             <li>1) 导入的Excel文件中必须包含名为“产品编码”、“申请退货数量”、“退货原因”的列,且名称必须相同,其它列可自定义,不影响数据导入</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>
-          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
         </div>
         <div class="explain-item">
           <div class="explain-tit">
@@ -86,7 +90,8 @@ export default {
       paramsData: null,
       uploadParams: {
         savePathType: 'local'
-      }
+      },
+      filePath: location.protocol + '//' +location.host + '/templ/采购退货申请单产品明细模板.xlsx'
     }
   },
   methods: {
@@ -125,16 +130,6 @@ export default {
       this.openImportModal = 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/purchaseReturnApplyImport.xlsx'
-      link.setAttribute('download', '采购退货申请单产品明细模板' + '.xlsx')
-      document.body.appendChild(link)
-      link.click()
-      document.body.removeChild(link)
-    }
   },
   watch: {
     //  父页面传过来的弹框状态

+ 7 - 12
src/views/salesManagement/salesQuery/importGuideModal.vue

@@ -17,8 +17,12 @@
           <ul>
             <li>1) 导入的Excel文件中必须包含名为“产品编码”、“仓库”、“仓位”、“售价”、“数量”的列,且名称必须相同,其它列可自定义,不影响数据导入</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>
-          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
         </div>
         <div class="explain-item">
           <div class="explain-tit">
@@ -87,7 +91,8 @@ export default {
       uploadParams: {
         savePathType: 'local',
         salesBillSn: this.params.salesBillSn
-      }
+      },
+      filePath: location.protocol + '//' +location.host + '/templ/销售单产品明细导入模板.xlsx'
     }
   },
   methods: {
@@ -125,16 +130,6 @@ export default {
       this.openImportModal = 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/SalesDetailImport.xlsx'
-      link.setAttribute('download', '销售产品明细模板' + '.xlsx')
-      document.body.appendChild(link)
-      link.click()
-      document.body.removeChild(link)
-    }
   },
   watch: {
     //  父页面传过来的弹框状态