Ver Fonte

散件、库存导入

chenrui há 1 ano atrás
pai
commit
497fdcc031

+ 62 - 0
src/api/stockImport.js

@@ -36,6 +36,27 @@ 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) => {
   return axios({
@@ -45,3 +66,44 @@ export const stockImportKCExportError = (params) => {
     responseType: 'blob'
   })
 }
+// 库存导入列表
+export const stockImportAllList = (params) => {
+  const url = `/stockImportDetail/reportPage/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
+// 库存导入统计
+export const stockImportCount = (params) => {
+  const url = `/stockImportDetail/reportCount`
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
+
+// 库存导入、散件导入 详情列表
+export const stockImportDetailList = (params) => {
+  const url = `/stockImportDetail/reportPage/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
+// 库存导入、散件导入 详情统计
+export const stockImportDetailCount = (params) => {
+  const url = `/stockImportDetail/reportCount`
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}

+ 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 { reportStockImportList, reportStockImportCount } from '@/api/reportData'
+import { sparePartsPurList, sparePartsPurCount } 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 reportStockImportList(params).then(res => {
+        return sparePartsPurList(params).then(res => {
           let data
           if (res.status == 200) {
             data = res.data
@@ -168,7 +168,7 @@ export default {
     },
     // 合计
     getCount (params) {
-      reportStockImportCount(params).then(res => {
+      sparePartsPurCount(params).then(res => {
         if (res.status == 200) {
           this.totalData = res.data
         } else {

+ 3 - 3
src/views/inventoryManagement/inventoryImport/detailList.vue

@@ -76,7 +76,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import ProductType from '../../common/productType.js'
 import ProductBrand from '../../common/productBrand.js'
 import supplier from '@/views/common/supplier'
-import { reportStockImportDetailList, reportStockImportDetailCount } from '@/api/reportData'
+import { stockImportDetailList, stockImportDetailCount } from '@/api/stockImport'
 export default {
   components: { STable, VSelect, rangeDate, ProductType, ProductBrand, supplier },
   mixins: [commonMixin],
@@ -119,7 +119,7 @@ export default {
           params.stockImportNo = this.detailSn
           params.importType = this.typeInfo
         }
-        return reportStockImportDetailList(params).then(res => {
+        return stockImportDetailList(params).then(res => {
           let data
           this.countInfo = res.data.count
           if (res.status == 200) {
@@ -172,7 +172,7 @@ export default {
     },
     // 合计
     getCount (params) {
-      reportStockImportDetailCount(params).then(res => {
+      stockImportDetailCount(params).then(res => {
         if (res.status == 200) {
           this.totalData = res.data
         } else {

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

@@ -87,7 +87,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import getDate from '@/libs/getDate.js'
 import importGuideModal from './importGuideModal.vue'
 import detailList from './detailList.vue'
-import { reportStockImportList, reportStockImportCount } from '@/api/reportData'
+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 reportStockImportList(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) {
-      reportStockImportCount(params).then(res => {
+      stockImportCount(params).then(res => {
         if (res.status == 200) {
           this.totalData = res.data
         } else {