From 6ec6c1cf6138b2be05d8cfd8051be2968419dc34 Mon Sep 17 00:00:00 2001 From: xuyuncong <3422692813@qq.com> Date: Fri, 17 Oct 2025 09:38:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/repair/stockOperate/stockOperate.js | 9 + src/views/company/businessChannel/index.vue | 4 +- .../businessStatistics/StatisticsDialog.vue | 109 +++++++- .../inspection/businessStatistics/index.vue | 257 +++++++++++++++++- .../stockOperate/Components/SoIndex.vue | 31 ++- .../tickets/Components/TicketManagerItem.vue | 42 ++- 6 files changed, 438 insertions(+), 14 deletions(-) diff --git a/src/api/repair/stockOperate/stockOperate.js b/src/api/repair/stockOperate/stockOperate.js index 19fe8ee..bc5240e 100644 --- a/src/api/repair/stockOperate/stockOperate.js +++ b/src/api/repair/stockOperate/stockOperate.js @@ -20,6 +20,15 @@ export function getRepairSoPage(params){ }) } +// 统计 +export function purchase(params){ + return request({ + url: preUrl + "/purchase-amount", + method: "get", + params + }) +} + // 作废 export function voidSo(data){ return request({ diff --git a/src/views/company/businessChannel/index.vue b/src/views/company/businessChannel/index.vue index 5c9d8a2..e1be696 100644 --- a/src/views/company/businessChannel/index.vue +++ b/src/views/company/businessChannel/index.vue @@ -167,13 +167,13 @@ - + /> --> diff --git a/src/views/inspection/businessStatistics/StatisticsDialog.vue b/src/views/inspection/businessStatistics/StatisticsDialog.vue index a5d4bb0..44bd7fa 100644 --- a/src/views/inspection/businessStatistics/StatisticsDialog.vue +++ b/src/views/inspection/businessStatistics/StatisticsDialog.vue @@ -24,6 +24,111 @@
+ +
+ + + +
@@ -98,12 +203,14 @@ import * as statisticsApi from './api/statistics' import CommonTimeSelect from '@/components/CommonTimeSelect' import WorkOrderList from '@/views/partner/components/WorkOrderList.vue' + import PrintButton from '@/components/PrintButton' export default { name: 'StatisticsDialog', components: { CommonTimeSelect, - WorkOrderList + WorkOrderList, + PrintButton }, props: { visible: { diff --git a/src/views/inspection/businessStatistics/index.vue b/src/views/inspection/businessStatistics/index.vue index ff6cd01..c060dca 100644 --- a/src/views/inspection/businessStatistics/index.vue +++ b/src/views/inspection/businessStatistics/index.vue @@ -7,7 +7,43 @@
-
检测数量统计
+
+
检测数量统计
+ + + +
@@ -41,7 +77,35 @@ -
营业额统计
+
+
营业额统计
+ + + +
@@ -67,7 +131,36 @@ -
业务渠道统计
+
+
业务渠道统计
+ + + +
@@ -97,7 +190,27 @@ -
资料统计
+
+
资料统计
+ + + +
@@ -117,7 +230,34 @@
检测车型统计
- 更多 > +
+ + + + 更多 > +
@@ -135,7 +275,34 @@
检测类型统计
- 更多 > +
+ + + + 更多 > +
@@ -153,6 +320,33 @@
待收款
+ + +
@@ -191,6 +385,16 @@ append-to-body v-if="workOrderListVisible" > +
+ + + +
--> - + + +
+ 采购总金额: + ¥{{ purchaseAmount.toFixed(2) }} +
+
@@ -277,7 +283,7 @@ import SupplierChoose from "@/views/repair/Components/SupplierChoose.vue"; import CorpChoose from "@/views/repair/Components/CorpChoose.vue"; import StaffChoose from "@/views/repair/Components/StaffChoose.vue"; import {DICT_TYPE} from "@/utils/dict"; -import {getRepairSoPage, voidSo, getRepairSoById, inWare, exportData} from "@/api/repair/stockOperate/stockOperate"; +import {getRepairSoPage, voidSo, getRepairSoById, inWare, exportData, purchase} from "@/api/repair/stockOperate/stockOperate"; import SoShow from "@/views/repair/stockOperate/Components/SoSow.vue"; import {getRepairSoiByIds, getMapBySoIdAndQuery} from "@/api/repair/stockOperate/stockOperateItem"; import {createUniqueCodeByHead} from "@/utils/createUniqueCode"; @@ -356,6 +362,7 @@ export default { list: [], loading: false, total: 0, + purchaseAmount: 0, dialogVisible: false, inItems: [], inItemsQuery: null, @@ -523,6 +530,8 @@ export default { const res = await getRepairSoPage(this.queryParams) this.list = res.data.records this.total = res.data.total + const purchaseRes = await purchase(this.queryParams) + this.purchaseAmount = purchaseRes.data } finally { this.loading = false } @@ -784,4 +793,22 @@ export default { cursor: text; } } + +.amount-card { + margin-bottom: 20px; + .amount-info { + display: flex; + align-items: center; + .amount-label { + font-size: 14px; + color: #606266; + margin-right: 8px; + } + .amount-value { + font-size: 18px; + font-weight: bold; + color: #f56c6c; + } + } +} diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index f2a87a9..3c2189e 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -209,6 +209,31 @@ prop="handleMobile" width="180" /> + + + + + + + +