|
@@ -63,7 +63,7 @@
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
:scroll="{ x: 1740 }"
|
|
|
- :defaultLoadData="false"
|
|
|
+ :defaultLoadData="true"
|
|
|
bordered>
|
|
|
<template slot="footer">
|
|
|
<a-row :gutter="15">
|
|
@@ -92,7 +92,7 @@ import supplier from '@/views/common/supplier.js'
|
|
|
import reportModal from '@/views/common/reportModal.vue'
|
|
|
import { getArea } from '@/api/data'
|
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
-import { reportSalesReturnList, reportSalesReturnCount, salesReturnsExport } from '@/api/reportData'
|
|
|
+import { sparePartsReturnReportList, sparePartsReturnReportStat, sparePartsReturnReportExport } from '@/api/reportData'
|
|
|
export default {
|
|
|
name: 'UrchaseReturn',
|
|
|
mixins: [commonMixin],
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
this.spinning = true
|
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
|
delete params.time
|
|
|
- return reportSalesReturnList(params).then(res => {
|
|
|
+ return sparePartsReturnReportList(params).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
|
data = res.data
|
|
@@ -176,7 +176,7 @@ export default {
|
|
|
_this.showExport = true
|
|
|
_this.exportLoading = true
|
|
|
_this.spinning = true
|
|
|
- hdExportExcel(salesReturnsExport, params, '销售退货单报表', function () {
|
|
|
+ hdExportExcel(sparePartsReturnReportExport, params, '销售退货单报表', function () {
|
|
|
_this.exportLoading = false
|
|
|
_this.spinning = false
|
|
|
})
|
|
@@ -191,7 +191,7 @@ export default {
|
|
|
},
|
|
|
// 总计
|
|
|
getCount (params) {
|
|
|
- reportSalesReturnCount(params).then(res => {
|
|
|
+ sparePartsReturnReportStat(params).then(res => {
|
|
|
if (res.status == 200 && res.data) {
|
|
|
this.totalData = res.data
|
|
|
} else {
|