zh преди 2 години
родител
ревизия
a12c062197
променени са 3 файла, в които са добавени 40 реда и са изтрити 22 реда
  1. 33 0
      src/api/logisticsBill.js
  2. 4 11
      src/views/logisticsBill/logisticsExpenses.vue
  3. 3 11
      src/views/logisticsBill/subExpenses.vue

+ 33 - 0
src/api/logisticsBill.js

@@ -0,0 +1,33 @@
+import request, { postBlob, handleImport, getBlob } from '@/utils/request'
+export function getListCostBillV2(params) {
+  return request({
+    url: `/customer/costBill/list?moduleId=${params.moduleId}`,
+    method: 'post',
+    data: params
+  })
+}
+
+export function exportListCostBillV2(data, name) {
+  return postBlob({
+    url: '/customer/costBill/list/export',
+    data,
+    name
+  })
+}
+
+export function getListSubCostBillV2(params) {
+  return request({
+    url: `/customer/costBill/listV2?moduleId=${params.moduleId}`,
+    method: 'post',
+    data: params
+  })
+}
+
+export function exportListSubCostBillV2(data, name) {
+  return postBlob({
+    url: '/customer/costBill/listV2/export',
+    data,
+    name
+  })
+}
+

+ 4 - 11
src/views/logisticsBill/logisticsExpenses.vue

@@ -15,7 +15,7 @@ import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 import add_callback_mixin from '@/components/template/add_callback_mixin.js'
 import Popu from '@/components/template/popu.vue'
-import { getDealerListV2, exportDealerListV2, importCustomerV2 } from '@/api/basic_data/dealer'
+import { getListCostBillV2, exportListCostBillV2 } from '@/api/logisticsBill'
 export default {
   components: { TemplatePage, Popu },
   mixins: [import_mixin, add_callback_mixin],
@@ -24,14 +24,7 @@ export default {
       visible: false,
       // 事件组合
       optionsEvensGroup: [
-        [
-          [
-            {
-              name: '导入',
-              render: this.importButton(importCustomerV2)
-            }
-          ]
-        ]
+
       ],
       // 表格属性
       tableAttributes: {
@@ -50,10 +43,10 @@ export default {
     // 列表请求函数
     getList(...p) {
       this.recordSelected = []
-      return getDealerListV2(...p)
+      return getListCostBillV2(...p)
     },
     // 列表导出函数
-    exportList: exportDealerListV2,
+    exportList: exportListCostBillV2,
     // 表格列解析渲染数据更改
     columnParsing(item, defaultData) {
       return defaultData

+ 3 - 11
src/views/logisticsBill/subExpenses.vue

@@ -15,7 +15,7 @@ import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 import add_callback_mixin from '@/components/template/add_callback_mixin.js'
 import Popu from '@/components/template/popu.vue'
-import { getDealerListV2, exportDealerListV2, importCustomerV2 } from '@/api/basic_data/dealer'
+import { getListSubCostBillV2, exportListSubCostBillV2 } from '@/api/logisticsBill'
 export default {
   components: { TemplatePage, Popu },
   mixins: [import_mixin, add_callback_mixin],
@@ -24,14 +24,6 @@ export default {
       visible: false,
       // 事件组合
       optionsEvensGroup: [
-        [
-          [
-            {
-              name: '导入',
-              render: this.importButton(importCustomerV2)
-            }
-          ]
-        ]
       ],
       // 表格属性
       tableAttributes: {
@@ -50,10 +42,10 @@ export default {
     // 列表请求函数
     getList(...p) {
       this.recordSelected = []
-      return getDealerListV2(...p)
+      return getListSubCostBillV2(...p)
     },
     // 列表导出函数
-    exportList: exportDealerListV2,
+    exportList: exportListSubCostBillV2,
     // 表格列解析渲染数据更改
     columnParsing(item, defaultData) {
       return defaultData