From 292ee1a6ddb4221e9b86e458e82bbf1d7e881025 Mon Sep 17 00:00:00 2001
From: Zy <1448159279@qq.com>
Date: Thu, 10 Sep 2026 16:12:22 +0800
Subject: [PATCH] 9/10
---
.env.development | 4 +-
src/api/system/InspectionRecord/type.ts | 4 +-
src/api/system/SdbCashier/index.ts | 6 +-
src/api/system/SdbElectricityDevice/index.ts | 60 +++
src/api/system/SdbElectricityDevice/type.ts | 19 +
src/api/system/Tmaterial/type.ts | 1 +
src/api/system/report/dailyFeeReport/type.ts | 2 +-
src/api/workflow/index.ts | 12 +-
src/components/Holder/CarUser.vue | 1 -
src/components/Holder/complainUser.vue | 1 -
src/components/Holder/index.vue | 1 -
src/components/Holder/material.vue | 5 +
src/components/Holder/repairUser.vue | 2 -
src/components/QuarterSelect/index.vue | 1 -
src/layout/components/Sidebar/SidebarItem.vue | 15 +-
src/store/modules/house.ts | 1 -
src/utils/html.ts | 66 +++
src/utils/request.ts | 5 +-
src/utils/sse.ts | 69 ++-
src/utils/xlsx.ts | 52 +-
src/views/community/AddCommunity.vue | 41 +-
src/views/system/Activity/addActivity.vue | 54 ++-
src/views/system/Activity/index.vue | 2 +-
src/views/system/Complaint/complainMain.vue | 2 +-
src/views/system/Complaint/index.vue | 42 +-
src/views/system/ComplaintType/index.vue | 7 +-
src/views/system/Decoration/addDecoration.vue | 2 +-
src/views/system/HandleLog/index.vue | 7 +-
.../Questionnaire/QuestionnaireView.vue | 4 +-
src/views/system/Repair/index.vue | 44 +-
src/views/system/Sdb/ChargeItem/add.vue | 4 +-
src/views/system/Sdb/PayRecord/index.vue | 85 ++--
src/views/system/Sdb/SdbBill/index.vue | 17 +-
src/views/system/Sdb/SdbCashier/index.vue | 249 ++++++----
.../system/Sdb/SdbElectricityDevice/index.vue | 454 +++++++++++++-----
src/views/system/carArea/addCarArea.vue | 18 +-
src/views/system/cars/index.vue | 40 +-
src/views/system/house/AddHouse.vue | 13 +-
src/views/system/houseRental/index.vue | 2 +-
src/views/system/inspection/Daily/index.vue | 11 +-
src/views/system/inspection/Monthly/index.vue | 11 +-
.../inspection/Plan/addInspectionPlan.vue | 2 +-
src/views/system/inspection/Plan/index.vue | 3 +-
src/views/system/inspection/Record/index.vue | 36 +-
.../system/inspection/Statistics/index.vue | 20 +-
src/views/system/inspection/Task/addTask.vue | 78 ++-
src/views/system/inspection/Task/index.vue | 9 +-
src/views/system/inspection/Weekly/index.vue | 11 +-
src/views/system/parking/addParking.vue | 4 +
src/views/system/parking/parkMain.vue | 30 +-
src/views/system/parking/parkReview.vue | 4 +-
src/views/system/report/arrearsTrend.vue | 2 +-
src/views/system/report/chargeTrend.vue | 24 +-
src/views/system/report/dailyFeeReport.vue | 42 +-
src/views/system/report/detailed.vue | 10 +-
.../system/report/prepaidBalanceDetail.vue | 2 +-
src/views/system/resident/index.vue | 59 +--
src/views/system/role/addRole.vue | 1 -
src/views/system/role/index.vue | 82 ++--
src/views/system/statistics/Payment/index.vue | 34 +-
.../system/statistics/Personnel/index.vue | 12 +-
src/views/system/user/index.vue | 83 ++--
src/views/system/warehouse/IssueOut/add.vue | 2 +-
.../system/warehouse/Material/addMaterial.vue | 24 +-
src/views/system/warehouse/PurchaseIn/add.vue | 10 +-
.../system/warehouse/Supplier/addSupplier.vue | 22 +-
src/views/system/warehouse/Supplier/index.vue | 2 +-
src/views/workbench/components/quick.vue | 110 ++---
68 files changed, 1397 insertions(+), 757 deletions(-)
create mode 100644 src/utils/html.ts
diff --git a/.env.development b/.env.development
index cd182d8..2bd86fc 100644
--- a/.env.development
+++ b/.env.development
@@ -9,9 +9,9 @@ VITE_APP_ENV='development'
# 开发环境
VITE_APP_BASE_API='/dev-api'
# # 开发环境 接口代理地址
-#VITE_APP_PROXY_API='http://192.168.1.222:8080'
+VITE_APP_PROXY_API='http://192.168.1.222:8080'
# 开发环境 接口代理地址
-VITE_APP_PROXY_API='http://192.168.1.6:8080'
+#VITE_APP_PROXY_API='http://192.168.1.6:8080'
# 图片基础地址
VITE_IMG_URL='http://192.168.1.222:8080'
diff --git a/src/api/system/InspectionRecord/type.ts b/src/api/system/InspectionRecord/type.ts
index 08e98bc..d6de531 100644
--- a/src/api/system/InspectionRecord/type.ts
+++ b/src/api/system/InspectionRecord/type.ts
@@ -82,8 +82,8 @@ export interface RecordQuery extends PageQuery {
*/
taskName?: string;
- taskTimeBegin?: '';
- taskTimeEnd?: '';
+ taskTimeBegin?: string;
+ taskTimeEnd?: string;
}
export interface DetailsVo {
diff --git a/src/api/system/SdbCashier/index.ts b/src/api/system/SdbCashier/index.ts
index ca08c58..7fc356f 100644
--- a/src/api/system/SdbCashier/index.ts
+++ b/src/api/system/SdbCashier/index.ts
@@ -84,9 +84,11 @@ export const billPrint = (data: { 'detailsIds': string[]; 'residentId': string }
export const getAllAccount = (
data = {}
): AxiosPromise<{
- /** 总金额 */
+ /** 原始金额之和(应收+优惠) */
+ originalAmount: string;
+ /** 总 应收金额 */
'receivableAmount': string;
- /** 总实收金额 */
+ /** 总已收金额 */
'receivedAmount': string;
/** 总优惠金额 */
'discountAmount': string;
diff --git a/src/api/system/SdbElectricityDevice/index.ts b/src/api/system/SdbElectricityDevice/index.ts
index 5fd84b6..38c1225 100644
--- a/src/api/system/SdbElectricityDevice/index.ts
+++ b/src/api/system/SdbElectricityDevice/index.ts
@@ -96,3 +96,63 @@ export const ElectricityDeviceUnbind = (deviceCode: string) => {
method: 'PUT'
});
};
+/**
+ * 充值
+ */
+export const ElectricityDeviceRecharge = (data: { 'deviceCode': string; 'amount': number }) => {
+ return request({
+ url: '/electricityDevice/recharge',
+ method: 'POST',
+ data
+ });
+};
+/**
+ * 设置电表价格
+ */
+export const setElectricityDevicePrice = (data: { 'deviceCode': string; 'price': number }) => {
+ return request({
+ url: '/electricityDevice/setPrice',
+ method: 'POST',
+ data
+ });
+};
+/**
+ * 设置电表开关状态
+ */
+export const setElectricityDeviceSwitchStatus = (data: { 'deviceCode': string; 'status': number }) => {
+ return request({
+ url: '/electricityDevice/controlSwitch',
+ method: 'POST',
+ data
+ });
+};
+/**
+ * 电表数据上传
+ */
+export const updateElectricityDeviceData = (data: { 'deviceCode': string }) => {
+ return request({
+ url: '/electricityDevice/triggerReport',
+ method: 'POST',
+ data
+ });
+};
+
+/**
+ * 上传电表设备
+ */
+export const uploadElectricityDevices = (data: FormData) => {
+ return request({
+ url: '/electricityDevice/importData',
+ method: 'POST',
+ data
+ });
+};
+/**
+ * 获取模板设备
+ */
+export const getElectricityDeviceFormartValue = () => {
+ return request({
+ url: '/electricityDevice/importTemplate',
+ method: 'POST'
+ });
+};
diff --git a/src/api/system/SdbElectricityDevice/type.ts b/src/api/system/SdbElectricityDevice/type.ts
index c08eb31..e25c945 100644
--- a/src/api/system/SdbElectricityDevice/type.ts
+++ b/src/api/system/SdbElectricityDevice/type.ts
@@ -25,11 +25,30 @@ export interface ElectricityDeviceVO {
*
*/
url: string;
+ /**
+ * 电价
+ */
+ price: number | null;
/**
*
*/
openid: string;
+
+ electricityRecord?: {
+ 'id': string;
+ 'deviceCode': string;
+ 'totalEnergy': string;
+ 'readTime': string;
+ 'balance': string;
+ 'status': number;
+ 'event': string;
+ 'rangeTime': string;
+ 'rangeFee': number;
+ 'price': number | null;
+ 'type': number | null;
+ 'updateTime': string | null;
+ };
}
export interface ElectricityDeviceForm extends BaseEntity {
diff --git a/src/api/system/Tmaterial/type.ts b/src/api/system/Tmaterial/type.ts
index 1f5c33a..ca29f5d 100644
--- a/src/api/system/Tmaterial/type.ts
+++ b/src/api/system/Tmaterial/type.ts
@@ -18,6 +18,7 @@ export interface MaterialVO {
* 规格型号*
*/
model: string;
+ villageId: string;
/**
* 计量单位
diff --git a/src/api/system/report/dailyFeeReport/type.ts b/src/api/system/report/dailyFeeReport/type.ts
index bb4fa23..1cea109 100644
--- a/src/api/system/report/dailyFeeReport/type.ts
+++ b/src/api/system/report/dailyFeeReport/type.ts
@@ -17,7 +17,7 @@ export type Datum = {
houseName: string;
payTime: string;
propertyOffsetAmount: string;
- remark: null;
+ remark: string;
residentName: string;
transferAmount: string;
unionPayAmount: string;
diff --git a/src/api/workflow/index.ts b/src/api/workflow/index.ts
index 11253df..98190a2 100644
--- a/src/api/workflow/index.ts
+++ b/src/api/workflow/index.ts
@@ -1,4 +1,5 @@
import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
/**
* 查询小区概况
@@ -335,7 +336,16 @@ type LifeIndices = {
* 查询 快捷入口
* @returns {*}
*/
-export const getQuicklyshortcut = (query?: {}) => {
+export const getQuicklyshortcut = (query?: {}): AxiosPromise<
+ {
+ id: string;
+ menuId: string;
+ menuName: string;
+ menuPath: string;
+ menuIcon: string;
+ sortOrder: number;
+ }[]
+> => {
return request({
url: '/workSpace/shortcut/list',
method: 'GET',
diff --git a/src/components/Holder/CarUser.vue b/src/components/Holder/CarUser.vue
index 22917d2..970a000 100644
--- a/src/components/Holder/CarUser.vue
+++ b/src/components/Holder/CarUser.vue
@@ -273,7 +273,6 @@ defineExpose({
parkingId: id
}) as BillUserlist
);
- console.log(multipleSelection.value);
} else {
multipleSelection.value = [];
}
diff --git a/src/components/Holder/complainUser.vue b/src/components/Holder/complainUser.vue
index 07f0b90..a1740ca 100644
--- a/src/components/Holder/complainUser.vue
+++ b/src/components/Holder/complainUser.vue
@@ -222,7 +222,6 @@ function handleSelectionChange(selection: tableType[]) {
const uniqueMap = new Map();
finalSelection.forEach((item) => uniqueMap.set(item.id, item));
multipleSelection.value = Array.from(uniqueMap.values());
- console.log(multipleSelection.value.map((item) => item.id));
} else {
// --- 单选逻辑 ---
if (selection.length > 0) {
diff --git a/src/components/Holder/index.vue b/src/components/Holder/index.vue
index 20f69b6..0dc08df 100644
--- a/src/components/Holder/index.vue
+++ b/src/components/Holder/index.vue
@@ -301,7 +301,6 @@ defineExpose({
...queryParams.value,
...params
};
- console.log(queryParams.value);
getList();
dialog.value.dialogVisible = true;
}
diff --git a/src/components/Holder/material.vue b/src/components/Holder/material.vue
index 99c21a0..22e6dc1 100644
--- a/src/components/Holder/material.vue
+++ b/src/components/Holder/material.vue
@@ -32,6 +32,7 @@