Bläddra i källkod

散件导入、库存导入

chenrui 1 år sedan
förälder
incheckning
21fa151dd2
2 ändrade filer med 5 tillägg och 25 borttagningar
  1. 2 22
      src/api/stockImport.js
  2. 3 3
      src/views/bulkManagement/bulkImport/list.vue

+ 2 - 22
src/api/stockImport.js

@@ -36,26 +36,6 @@ export const stockImportExportError = (params) => {
     responseType: 'blob'
   })
 }
-// 散件导入列表
-export const sparePartsPurList = (params) => {
-  const url = `/sparePartsPur/reportPage/${params.pageNo}/${params.pageSize}`
-  delete params.pageNo
-  delete params.pageSize
-  return axios({
-    url: url,
-    data: params,
-    method: 'post'
-  })
-}
-// 散件导入 统计
-export const sparePartsPurCount = (params) => {
-  const url = `/sparePartsPur/reportCount`
-  return axios({
-    url: url,
-    data: params,
-    method: 'post'
-  })
-}
 
 //  库存导入  错误导出
 export const stockImportKCExportError = (params) => {
@@ -66,7 +46,7 @@ export const stockImportKCExportError = (params) => {
     responseType: 'blob'
   })
 }
-// 库存导入列表
+// 库存导入、散件导入列表
 export const stockImportAllList = (params) => {
   const url = `/stockImport/reportPage/${params.pageNo}/${params.pageSize}`
   delete params.pageNo
@@ -77,7 +57,7 @@ export const stockImportAllList = (params) => {
     method: 'post'
   })
 }
-// 库存导入统计
+// 库存导入、散件导入统计
 export const stockImportCount = (params) => {
   const url = `/stockImport/reportCount`
   return axios({

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

@@ -87,7 +87,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import detailList from '@/views/inventoryManagement/inventoryImport/detailList.vue'
 import getDate from '@/libs/getDate.js'
 import importGuideModal from './importGuideModal.vue'
-import { sparePartsPurList, sparePartsPurCount } from '@/api/stockImport'
+import { stockImportAllList, stockImportCount } from '@/api/stockImport'
 export default {
   components: { STable, VSelect, rangeDate, importGuideModal, detailList },
   mixins: [commonMixin],
@@ -121,7 +121,7 @@ export default {
         const params = Object.assign(parameter, this.queryParam)
         this.spinning = true
         delete params.time
-        return sparePartsPurList(params).then(res => {
+        return stockImportAllList(params).then(res => {
           let data
           if (res.status == 200) {
             data = res.data
@@ -168,7 +168,7 @@ export default {
     },
     // 合计
     getCount (params) {
-      sparePartsPurCount(params).then(res => {
+      stockImportCount(params).then(res => {
         if (res.status == 200) {
           this.totalData = res.data
         } else {