-->
- {{ item.enforceContent }}
+
+
{{ item.enforceContent }}
+
历史
+
执法单位:
@@ -236,6 +246,16 @@ const getPlanTimeText = (time) => {
return map[time] || '';
};
+// 当前日期大于计划日期才标历史;当天不算历史
+const isHistoryPlan = (planDate) => {
+ if (!planDate) return false;
+ const planDay = String(planDate).substring(0, 10);
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(planDay)) return false;
+ const now = new Date();
+ const today = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}`;
+ return today > planDay;
+};
+
// 获取人员列表
const getPersonList = (item) => {
if (!item.enforceUserNames) return [];
@@ -273,8 +293,13 @@ const fetchList = () => {
const params = { pageNum: pageNum.value, pageSize };
// 携带搜索条件
if (searchText.value) params.searchValue = searchText.value;
- // 携带日期筛选条件
- if (dateSearch.value) params.planDate = dateSearch.value;
+ // 携带日期筛选:1本月/2本季/3本年;自定义月份用 dateSearch(YYYY-MM)
+ if (dateType.value != null && dateType.value !== 9) {
+ params.dateType = dateType.value;
+ }
+ if (dateSearch.value) {
+ params.dateSearch = dateSearch.value;
+ }
// 携带状态过滤
if (filterStatus.value) {
params['params[reserveStatusList]'] = filterStatus.value;
@@ -416,17 +441,37 @@ onMounted(() => {
color: #1f75c9;
}
+.plan-title-row {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-bottom: 14px;
+}
+
.plan-title {
+ flex: 1;
+ min-width: 0;
display: block;
font-size: 17px;
font-weight: 700;
line-height: 1.5;
- margin-bottom: 14px;
+ margin-bottom: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
+.history-tag {
+ flex-shrink: 0;
+ font-size: 12px;
+ color: #8c8c8c;
+ background: #f5f5f5;
+ border: 1px solid #d9d9d9;
+ border-radius: 4px;
+ padding: 2px 6px;
+ line-height: 1.2;
+}
+
.info-row {
display: flex;
align-items: flex-start;
diff --git a/zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/my/plan/cp_plan_other.vue b/zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/my/plan/cp_plan_other.vue
index 23a9e383..8f04756c 100644
--- a/zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/my/plan/cp_plan_other.vue
+++ b/zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/my/plan/cp_plan_other.vue
@@ -5,7 +5,6 @@
:search-value="searchText"
:date-type="dateType"
:date-search="dateSearch"
- :showDateFilter="false"
@search="onSearch"
@clear="onClear"
@date-change="onDateChange"
@@ -32,7 +31,10 @@
待预约
-->
- {{ item.enforceContent }}
+
+
{{ item.enforceContent }}
+
历史
+
执法单位:
@@ -114,6 +116,8 @@ const onSearch = (params) => {
const onClear = () => {
searchText.value = '';
+ dateType.value = null;
+ dateSearch.value = null;
doSearch();
};
@@ -144,6 +148,16 @@ const getPlanTimeText = (time) => {
return map[time] || '';
};
+// 当前日期大于计划日期才标历史;当天不算历史
+const isHistoryPlan = (planDate) => {
+ if (!planDate) return false;
+ const planDay = String(planDate).substring(0, 10);
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(planDay)) return false;
+ const now = new Date();
+ const today = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}`;
+ return today > planDay;
+};
+
// 获取人员列表
const getPersonList = (item) => {
if (!item.enforceUserNames) return [];
@@ -169,8 +183,13 @@ const fetchList = () => {
const params = { pageNum: pageNum.value, pageSize };
// 关键字搜索(同时匹配企业名称和执法事项)
if (searchText.value) params.searchValue = searchText.value;
- // 日期筛选
- if (dateSearch.value) params.planDate = dateSearch.value;
+ // 日期筛选:1本月/2本季/3本年;自定义月份用 dateSearch(YYYY-MM)
+ if (dateType.value != null && dateType.value !== 9) {
+ params.dateType = dateType.value;
+ }
+ if (dateSearch.value) {
+ params.dateSearch = dateSearch.value;
+ }
getOtherPlanList(
params,
(res) => {
@@ -363,17 +382,37 @@ const onConfirmReserve = () => {
color: #1f75c9;
}
+.plan-title-row {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-bottom: 14px;
+}
+
.plan-title {
+ flex: 1;
+ min-width: 0;
display: block;
font-size: 17px;
font-weight: 700;
line-height: 1.5;
- margin-bottom: 14px;
+ margin-bottom: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
+.history-tag {
+ flex-shrink: 0;
+ font-size: 12px;
+ color: #8c8c8c;
+ background: #f5f5f5;
+ border: 1px solid #d9d9d9;
+ border-radius: 4px;
+ padding: 2px 6px;
+ line-height: 1.2;
+}
+
.info-row {
display: flex;
align-items: flex-start;