|
@@ -1690,7 +1690,6 @@ import {
|
|
|
updateFee,
|
|
|
exportFee,
|
|
|
importFee,
|
|
|
- exportWarehousebillsitems,
|
|
|
importFleet,
|
|
|
addFleet,
|
|
|
listFleet,
|
|
@@ -1699,6 +1698,9 @@ import {
|
|
|
detailFleet,
|
|
|
confirmFleet,
|
|
|
listCorps,
|
|
|
+ exporItems,
|
|
|
+ contrastExport,
|
|
|
+ exportWarehousebillsitems
|
|
|
} from "@/api/finance/contrast";
|
|
|
// import { listCorps } from "@/api/basicdata/corps";
|
|
|
import { listFees } from "@/api/basicdata/fees";
|
|
@@ -3258,7 +3260,12 @@ export default {
|
|
|
},
|
|
|
//导出
|
|
|
handleExportItems() {
|
|
|
- const fIds = this.queryParams.fId;
|
|
|
+ let fIds = 0;
|
|
|
+ if (Cookies.get("sysType") == 2) {
|
|
|
+ fIds = this.queryParams.id;
|
|
|
+ } else {
|
|
|
+ fIds = this.queryParams.fId;
|
|
|
+ }
|
|
|
if (fIds !== null) {
|
|
|
this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
|
|
|
confirmButtonText: "确定",
|
|
@@ -3266,7 +3273,11 @@ export default {
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(function () {
|
|
|
- return exportWarehousebillsitems(fIds);
|
|
|
+ if (Cookies.get("sysType") == 2) {
|
|
|
+ return exporItems(fIds);
|
|
|
+ } else {
|
|
|
+ return exportWarehousebillsitems(fIds);
|
|
|
+ }
|
|
|
})
|
|
|
.then((response) => {
|
|
|
this.download(response.msg);
|
|
@@ -4658,7 +4669,11 @@ export default {
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(function () {
|
|
|
- return exportFee(queryParams);
|
|
|
+ if (Cookies.get("sysType") == 2) {
|
|
|
+ return contrastExport(queryParams);
|
|
|
+ } else {
|
|
|
+ return exportFee(queryParams);
|
|
|
+ }
|
|
|
})
|
|
|
.then((response) => {
|
|
|
this.download(response.msg);
|