From 2ea75ee5efcb211d20b4cdb72bd241213c51fa2b Mon Sep 17 00:00:00 2001 From: Zy <1448159279@qq.com> Date: Thu, 27 Aug 2026 17:32:23 +0800 Subject: [PATCH] =?UTF-8?q?8/25=20dev=20=E6=9D=83=E9=99=90,sse,=E8=B4=A6?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/ChargeType/type.ts | 2 +- src/api/system/InspectionPlan/index.ts | 2 +- src/api/system/Questionnaire/index.ts | 30 ++ src/api/system/Questionnaire/type.ts | 1 + src/api/system/report/dailyFeeReport/type.ts | 8 +- src/components/Holder/user.vue | 2 +- src/utils/sse.ts | 9 +- src/views/system/Activity/index.vue | 6 + src/views/system/Complaint/complainMain.vue | 7 +- src/views/system/Decoration/index.vue | 2 +- src/views/system/MonthCard/addMonthCard.vue | 8 +- src/views/system/NoticePc/index.vue | 2 +- .../Questionnaire/QuestionnaireView.vue | 193 +++++++++- src/views/system/Sdb/PayRecord/index.vue | 6 +- src/views/system/Sdb/SdbBill/add.vue | 124 +++++-- src/views/system/Sdb/SdbBill/index.vue | 44 ++- .../system/Sdb/SdbElectricityDevice/index.vue | 13 +- src/views/system/Sdb/SdbWaterDevice/index.vue | 11 +- src/views/system/carArea/addCarArea.vue | 2 +- src/views/system/carArea/index.vue | 2 +- src/views/system/cars/index.vue | 6 +- src/views/system/equipment/Archive/index.vue | 12 +- src/views/system/equipment/Category/index.vue | 8 +- src/views/system/equipment/Repair/add.vue | 3 +- src/views/system/equipment/Repair/index.vue | 12 +- src/views/system/house/HouseDetails.vue | 1 - src/views/system/houseRental/houseMain.vue | 19 +- src/views/system/inspection/Item/index2.vue | 6 +- .../system/inspection/Overview/index.vue | 36 +- src/views/system/inspection/Plan/index.vue | 10 +- src/views/system/inspection/Point/index.vue | 10 +- src/views/system/inspection/Record/index.vue | 2 +- .../inspection/Route/addInspectionRoute.vue | 2 +- src/views/system/inspection/Route/index2.vue | 10 +- src/views/system/inspection/Task/addTask.vue | 2 +- src/views/system/inspection/Task/index.vue | 10 +- src/views/system/parking/addParking.vue | 3 +- src/views/system/parking/index.vue | 10 +- src/views/system/parking/parkMain.vue | 17 +- src/views/system/parking/parkReview.vue | 23 +- src/views/system/report/arrears.vue | 24 +- .../system/report/businessDailyReport.vue | 2 + src/views/system/report/dailyFeeReport.vue | 350 ++++++++++++++++-- src/views/system/report/detailed.vue | 19 +- src/views/system/report/monthFeeReport.vue | 14 +- .../report/paidInExpensesReceivable.vue | 13 +- src/views/system/report/prepaidBalance.vue | 2 +- src/views/system/storeroom/addStoreRoom.vue | 7 +- .../system/warehouse/Inventory/index.vue | 2 +- src/views/system/warehouse/IssueOut/add.vue | 4 + src/views/system/warehouse/Material/index.vue | 10 +- src/views/system/warehouse/PurchaseIn/add.vue | 8 +- src/views/system/warehouse/Supplier/index.vue | 10 +- .../system/warehouse/Warehouse/index.vue | 10 +- src/views/workbench/index2.vue | 12 +- 55 files changed, 870 insertions(+), 293 deletions(-) diff --git a/src/api/system/ChargeType/type.ts b/src/api/system/ChargeType/type.ts index 6999c32..86bc417 100644 --- a/src/api/system/ChargeType/type.ts +++ b/src/api/system/ChargeType/type.ts @@ -2,7 +2,7 @@ export interface ChargeTypeVO { /** * 收费类型表id */ - id: string | number; + id: string; /** * 收费类型名称 diff --git a/src/api/system/InspectionPlan/index.ts b/src/api/system/InspectionPlan/index.ts index 4399838..7d7fed3 100644 --- a/src/api/system/InspectionPlan/index.ts +++ b/src/api/system/InspectionPlan/index.ts @@ -70,6 +70,6 @@ export const changePlanStatus = (id: string, status: string) => { return request({ url: '/inspection/plan/changeStatus', method: 'put', - data: { id, status } + params: { id, status } }); }; diff --git a/src/api/system/Questionnaire/index.ts b/src/api/system/Questionnaire/index.ts index 1ef09e4..f87bde7 100644 --- a/src/api/system/Questionnaire/index.ts +++ b/src/api/system/Questionnaire/index.ts @@ -67,3 +67,33 @@ export const delQuestionnaire = (ids: string | string[], vailid: boolean = true) } }); }; +/** + * 查询问卷调查回答列表 + */ +export const getQuestionnaireAnswer = ( + { + pageSize, + pageNum, + questionnaireId + } +) => { + return request({ + url: '/questionnaireAnswer/list', + method: 'GET', + params: { + pageSize, + pageNum, + questionnaireId, + answerStatus: '1' + } + }); +}; +/** + * 查询问卷调查回答详情 + */ +export const getQuestionnaireAnswerMain = (id: string) => { + return request({ + url: '/questionnaireAnswer/' + id, + method: 'GET' + }); +}; diff --git a/src/api/system/Questionnaire/type.ts b/src/api/system/Questionnaire/type.ts index 35a897a..d2e9c2f 100644 --- a/src/api/system/Questionnaire/type.ts +++ b/src/api/system/Questionnaire/type.ts @@ -154,6 +154,7 @@ export interface QuestionComponentItem { type: string; title: string; required: boolean; + options: QuestionComponentOption[]; } diff --git a/src/api/system/report/dailyFeeReport/type.ts b/src/api/system/report/dailyFeeReport/type.ts index 1d75308..bb4fa23 100644 --- a/src/api/system/report/dailyFeeReport/type.ts +++ b/src/api/system/report/dailyFeeReport/type.ts @@ -37,12 +37,8 @@ export type ChargeTypeAmounts = { export type FilterResponse = { code: number; data: { - 'field': string; - 'label': string; - 'type': string; - 'placeholder': string; - 'chargeTypeName': null; - 'subField': null; + 'chargeTypeId': string; + 'chargeTypeName': string; }[]; msg: string; }; diff --git a/src/components/Holder/user.vue b/src/components/Holder/user.vue index 2216efe..5348302 100644 --- a/src/components/Holder/user.vue +++ b/src/components/Holder/user.vue @@ -356,7 +356,7 @@ defineExpose({ // 重置查询条件,避免残留上次的筛选条件 queryParams.value = { pageNum: 1, - pageSize: 10, + pageSize: 5, buildingId: null, residentName: null, houseNo: null, diff --git a/src/utils/sse.ts b/src/utils/sse.ts index 059c8f8..e94ced5 100644 --- a/src/utils/sse.ts +++ b/src/utils/sse.ts @@ -26,15 +26,16 @@ export const initSSE = (url: any) => { watch(data, () => { if (!data.value) return; + const notice = JSON.parse(data.value); useNoticeStore().addNotice({ - message: data.value, + message: notice.message, read: false, time: new Date().toLocaleString() }); ElNotification({ - title: '消息', - message: data.value, - type: 'success', + title: notice.title, + message: notice.message, + type: notice.type, duration: 3000 }); data.value = null; diff --git a/src/views/system/Activity/index.vue b/src/views/system/Activity/index.vue index d4eddc7..029dd39 100644 --- a/src/views/system/Activity/index.vue +++ b/src/views/system/Activity/index.vue @@ -51,6 +51,11 @@ + + + {{ scope.row.signinStartTime }}-{{ scope.row.signinEndTime }} + + @@ -66,6 +71,7 @@ + 无限制 diff --git a/src/views/system/Complaint/complainMain.vue b/src/views/system/Complaint/complainMain.vue index 3379e56..9e35d17 100644 --- a/src/views/system/Complaint/complainMain.vue +++ b/src/views/system/Complaint/complainMain.vue @@ -126,7 +126,7 @@ const formInfo = ref({ 'phone': '', 'problemImageUrl': '', /** - * 投诉状态 0 待处理 1 已处理╬╬╬╬╬╬ + * 投诉状态 0 待处理 1 已处理 */ 'status': '1', 'handleId': '', @@ -155,11 +155,12 @@ async function init() { getComplaint(userid.value).then((res) => { formInfo.value = { ...formInfo.value, - ...res.data + ...res.data, }; form.value = { ...form.value, - ...res.data + ...res.data, + status: '1' }; // 处理照片 problemImageUrlList.value = res.data.problemImageUrl ? res.data.problemImageUrl.split(',') : []; diff --git a/src/views/system/Decoration/index.vue b/src/views/system/Decoration/index.vue index 088da73..a02cd31 100644 --- a/src/views/system/Decoration/index.vue +++ b/src/views/system/Decoration/index.vue @@ -60,7 +60,7 @@ type="primary" v-if="scope.row.inspectionResult !== '1'" @click="handleInspection(scope.row, EditType.Add, '验收')" - v-has-permi="['repair:edit:decoration']" + v-has-permi="['decoration:decoration:edit']" >验收 - + --> - 详情 + 详情 编辑 删除 diff --git a/src/views/system/Questionnaire/QuestionnaireView.vue b/src/views/system/Questionnaire/QuestionnaireView.vue index 1eab073..8988861 100644 --- a/src/views/system/Questionnaire/QuestionnaireView.vue +++ b/src/views/system/Questionnaire/QuestionnaireView.vue @@ -1,18 +1,88 @@ - - - 问卷内容 - 返回 + + + + + 问卷预览 + + + 调查详情 + - + + + + + + + {{ viewData.title }} + {{ viewData.description }} + + + + + + {{ index + 1 }}. {{ q.title }} + * + + + {{ getComponentLabel(q.type) }} + + + + + + + {{ opt.label }} + + + + + + + + + + + + + + 备注: {{ viewData.remark ? viewData.remark : '暂无' }} + + + + + + + + + + + + 查看详情 + + + + + + + + + {{ viewData.title }} {{ viewData.description }} - + {{ index + 1 }}. {{ q.title }} * @@ -22,19 +92,28 @@ - - - - {{ opt.label }} - + + + + + {{ opt.label }} + + + + + + + + + + - - + - + @@ -42,15 +121,19 @@ 备注: {{ viewData.remark ? viewData.remark : '暂无' }} - - + +
{{ viewData.description }}