Преглед изворни кода

仓库管理,基础设置模块导出功能对接

sunlupeng пре 7 месеци
родитељ
комит
51bdfbfcb9

+ 2 - 2
src/views/basicSetting/express.vue

@@ -12,7 +12,7 @@ rookieCode<template>
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleQuery">查找</el-button>
       <el-button class="filter-item" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" icon="el-icon-plus" @click="handleCreate">添加</el-button>
-      <!-- <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownload">导出</el-button>
     </div>
 
     <!-- 查询结果 -->
@@ -255,7 +255,7 @@ export default {
         })
     },
     handleDownload() {
-      window.location.href = process.env.BASE_API + '/product/export';
+      window.location.href = process.env.BASE_API + '/logistics-company/export';
     },
     changeState(id, status) {
             setState({ id: id, status: status }).then(response => {

+ 2 - 2
src/views/basicSetting/store.vue

@@ -12,7 +12,7 @@ contactsId<template>
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleQuery">查找</el-button>
       <el-button class="filter-item" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" icon="el-icon-plus" @click="handleCreate">添加</el-button>
-      <!-- <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownload">导出</el-button>
     </div>
 
     <!-- 查询结果 -->
@@ -258,7 +258,7 @@ export default {
         })
     },
     handleDownload() {
-      window.location.href = process.env.BASE_API + '/product/export';
+      window.location.href = process.env.BASE_API + '/store-info/export';
     },
   }
 }

+ 2 - 2
src/views/basicSetting/supplier.vue

@@ -23,7 +23,7 @@
                 @click="handleQuery">查找</el-button>
                 <el-button class="filter-item" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
             <el-button class="filter-item" type="primary" @click="handleAdd" icon="el-icon-plus">添加</el-button>
-            <!-- <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownLoad">导出</el-button> -->
+            <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownLoad">导出</el-button>
         </div>
 
         <!-- 查询结果 -->
@@ -326,7 +326,7 @@ export default {
     },
     methods: {
         handleDownLoad(){
-            window.location.href = process.env.BASE_API + '/product/export/category?supplierName=' + this.listQuery.supplierName + '&supplierNum=' + this.listQuery.supplierNum;
+            window.location.href = process.env.BASE_API + '/supplier-info/export';
         },
         getListDept() {
             listDept().then(response => {

+ 2 - 2
src/views/basicSetting/warehouse.vue

@@ -12,7 +12,7 @@ adminId<template>
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleQuery">查找</el-button>
       <el-button class="filter-item" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" icon="el-icon-plus" @click="handleCreate">添加</el-button>
-      <!-- <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download" @click="handleDownload">导出</el-button>
     </div>
 
     <!-- 查询结果 -->
@@ -255,7 +255,7 @@ export default {
         })
     },
     handleDownload() {
-      window.location.href = process.env.BASE_API + '/product/export';
+      window.location.href = process.env.BASE_API + '/warehouse-info/export';
     },
   }
 }

+ 3 - 10
src/views/stock/assembly/assembly.vue

@@ -25,8 +25,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量组装</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -88,7 +88,6 @@ export default {
   directives: { waves },
   data() {
     return {
-      downloadLoading: false,
       warehouseList: [],
       userSelsctList:[],
       typeList: [
@@ -153,13 +152,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-assembly/export';
     },
     handleCreate() {
       this.$router.push({

+ 3 - 10
src/views/stock/breakage/breakage.vue

@@ -19,8 +19,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量报损</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -73,7 +73,6 @@ export default {
   directives: { waves },
   data() {
     return {
-      downloadLoading: false,
       warehouseList: [],
       userSelsctList:[],
       list: [
@@ -124,13 +123,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-breakage/export';
     },
     handleCreate() {
       this.$router.push({

+ 3 - 10
src/views/stock/disassembly/disassembly.vue

@@ -25,8 +25,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量拆卸</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -88,7 +88,6 @@ export default {
   directives: { waves },
   data() {
     return {
-      downloadLoading: false,
       warehouseList: [],
       userSelsctList:[],
       typeList: [
@@ -153,13 +152,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-disassembly/export';
     },
     handleCreate() {
       this.$router.push({

+ 3 - 10
src/views/stock/requisition/requisition.vue

@@ -31,8 +31,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量调拨</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -94,7 +94,6 @@ export default {
   directives: { waves },
   data() {
     return {
-      downloadLoading: false,
       warehouseList: [],
       userSelsctList:[],
       typeList: [
@@ -161,13 +160,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-requisition/export';
     },
     handleCreate() {
       this.$router.push({

+ 3 - 10
src/views/stock/retrieval/retrieval.vue

@@ -26,8 +26,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量发货</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -93,7 +93,6 @@ export default {
     return {
       // 树选项
       deptOptions: [],
-      downloadLoading: false,
       storeList: [],
       warehouseList: [],
       typeList: [
@@ -177,13 +176,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-out/export';
     },
     handleCreate() {
       this.$router.push({

+ 3 - 10
src/views/stock/stockCount/stockCount.vue

@@ -19,8 +19,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量盘点</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -71,7 +71,6 @@ export default {
   directives: { waves },
   data() {
     return {
-      downloadLoading: false,
       warehouseList: [],
       userSelsctList:[],
       list: [],
@@ -120,13 +119,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-breakage/export';
     },
     handleCreate() {
       this.$router.push({

+ 3 - 10
src/views/stock/swap/swap.vue

@@ -23,8 +23,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量换货</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -84,7 +84,6 @@ export default {
   directives: { waves },
   data() {
     return {
-      downloadLoading: false,
       warehouseList: [],
       userSelsctList:[],
       typeList: [
@@ -147,13 +146,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-swap/export';
     },
     handleCreate() {
       this.$router.push({

+ 3 - 10
src/views/stock/warehousing/warehousing.vue

@@ -19,8 +19,8 @@
       <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
       <el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       <el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
-      <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
-        @click="handleDownload">导出</el-button> -->
+      <el-button class="filter-item" v-waves icon="el-icon-download"
+        @click="handleDownload">导出</el-button>
       <!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量入库</el-button> -->
       <el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
     </div>
@@ -79,7 +79,6 @@ export default {
   directives: { waves },
   data() {
     return {
-      downloadLoading: false,
       warehouseList: [],
       typeList: [
         {
@@ -132,13 +131,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      this.downloadLoading = true
-      import('@/vendor/Export2Excel').then(excel => {
-        const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
-        const filterVal = ['id', 'username', 'nickname', 'avatar']
-        excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
-        this.downloadLoading = false
-      })
+      window.location.href = process.env.BASE_API + '/warehouse-entry/export';
     },
     handleCreate() {
       this.$router.push({