|
@@ -17,7 +17,6 @@
|
|
|
<div v-if="auditTab === 'pending'" class="filter-bar">
|
|
<div v-if="auditTab === 'pending'" class="filter-bar">
|
|
|
<BaseSelect text="集团" :selectedText="filterGroup" :options="groupOptions" @selected="filterGroup = $event" />
|
|
<BaseSelect text="集团" :selectedText="filterGroup" :options="groupOptions" @selected="filterGroup = $event" />
|
|
|
<BaseSelect text="填报期" :selectedText="filterPeriod" :options="periodOptions" @selected="filterPeriod = $event" />
|
|
<BaseSelect text="填报期" :selectedText="filterPeriod" :options="periodOptions" @selected="filterPeriod = $event" />
|
|
|
- <BaseButton text="查询" @click="handleQuery" />
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else-if="auditTab === 'passed'" class="filter-bar">
|
|
<div v-else-if="auditTab === 'passed'" class="filter-bar">
|
|
|
<BaseSelect text="集团" :selectedText="filterGroup" :options="groupOptions" @selected="filterGroup = $event" />
|
|
<BaseSelect text="集团" :selectedText="filterGroup" :options="groupOptions" @selected="filterGroup = $event" />
|
|
@@ -29,13 +28,11 @@
|
|
|
:options="auditMonthOptions"
|
|
:options="auditMonthOptions"
|
|
|
@selected="filterAuditMonth = $event"
|
|
@selected="filterAuditMonth = $event"
|
|
|
/>
|
|
/>
|
|
|
- <BaseButton text="查询" @click="handleQuery" />
|
|
|
|
|
<BaseButton text="导出已通过清单" variant="outline" @click="handleExportPassed" />
|
|
<BaseButton text="导出已通过清单" variant="outline" @click="handleExportPassed" />
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else class="filter-bar">
|
|
<div v-else class="filter-bar">
|
|
|
<BaseSelect text="集团" :selectedText="filterGroup" :options="groupOptions" @selected="filterGroup = $event" />
|
|
<BaseSelect text="集团" :selectedText="filterGroup" :options="groupOptions" @selected="filterGroup = $event" />
|
|
|
<BaseSelect text="填报期" :selectedText="filterPeriod" :options="periodOptions" @selected="filterPeriod = $event" />
|
|
<BaseSelect text="填报期" :selectedText="filterPeriod" :options="periodOptions" @selected="filterPeriod = $event" />
|
|
|
- <BaseButton text="查询" @click="handleQuery" />
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div v-if="auditTab === 'pending'" class="panel-toolbar">
|
|
<div v-if="auditTab === 'pending'" class="panel-toolbar">
|
|
@@ -171,9 +168,6 @@ const auditTab = ref('pending');
|
|
|
const filterGroup = ref('全部');
|
|
const filterGroup = ref('全部');
|
|
|
const filterPeriod = ref('全部');
|
|
const filterPeriod = ref('全部');
|
|
|
const filterAuditMonth = ref('全部');
|
|
const filterAuditMonth = ref('全部');
|
|
|
-const appliedGroup = ref('全部');
|
|
|
|
|
-const appliedPeriod = ref('全部');
|
|
|
|
|
-const appliedAuditMonth = ref('全部');
|
|
|
|
|
|
|
|
|
|
const selectedIds = ref([]);
|
|
const selectedIds = ref([]);
|
|
|
const viewedIds = ref([]);
|
|
const viewedIds = ref([]);
|
|
@@ -286,14 +280,14 @@ const pendingSourceRows = computed(() =>
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
const matchFilter = (row) => {
|
|
const matchFilter = (row) => {
|
|
|
- if (appliedGroup.value !== '全部' && normalizeGroupName(row.qingpuGroup) !== appliedGroup.value) return false;
|
|
|
|
|
- if (appliedPeriod.value !== '全部' && row.period !== appliedPeriod.value) return false;
|
|
|
|
|
|
|
+ if (filterGroup.value !== '全部' && normalizeGroupName(row.qingpuGroup) !== filterGroup.value) return false;
|
|
|
|
|
+ if (filterPeriod.value !== '全部' && row.period !== filterPeriod.value) return false;
|
|
|
return true;
|
|
return true;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const matchPassedFilter = (row) => {
|
|
const matchPassedFilter = (row) => {
|
|
|
if (!matchFilter(row)) return false;
|
|
if (!matchFilter(row)) return false;
|
|
|
- if (appliedAuditMonth.value !== '全部' && row.auditMonth !== appliedAuditMonth.value) return false;
|
|
|
|
|
|
|
+ if (filterAuditMonth.value !== '全部' && row.auditMonth !== filterAuditMonth.value) return false;
|
|
|
return true;
|
|
return true;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -400,14 +394,6 @@ const loadTabData = () => {
|
|
|
return enterpriseStore.fetchByState(REPORT_STATE.PENDING);
|
|
return enterpriseStore.fetchByState(REPORT_STATE.PENDING);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const handleQuery = () => {
|
|
|
|
|
- appliedGroup.value = filterGroup.value;
|
|
|
|
|
- appliedPeriod.value = filterPeriod.value;
|
|
|
|
|
- if (auditTab.value === 'passed') {
|
|
|
|
|
- appliedAuditMonth.value = filterAuditMonth.value;
|
|
|
|
|
- }
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
const handleView = (row) => {
|
|
const handleView = (row) => {
|
|
|
auditRecord.value = row;
|
|
auditRecord.value = row;
|
|
|
markViewed(row.id);
|
|
markViewed(row.id);
|
|
@@ -567,9 +553,7 @@ const applyRouteSubNav = () => {
|
|
|
: '全部';
|
|
: '全部';
|
|
|
const nextPeriod = period ? String(period) : '全部';
|
|
const nextPeriod = period ? String(period) : '全部';
|
|
|
filterGroup.value = nextGroup;
|
|
filterGroup.value = nextGroup;
|
|
|
- appliedGroup.value = nextGroup;
|
|
|
|
|
filterPeriod.value = nextPeriod;
|
|
filterPeriod.value = nextPeriod;
|
|
|
- appliedPeriod.value = nextPeriod;
|
|
|
|
|
loadTabData();
|
|
loadTabData();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -588,11 +572,8 @@ watch(auditTab, () => {
|
|
|
if (!hasRouteFilter) {
|
|
if (!hasRouteFilter) {
|
|
|
filterGroup.value = '全部';
|
|
filterGroup.value = '全部';
|
|
|
filterPeriod.value = '全部';
|
|
filterPeriod.value = '全部';
|
|
|
- appliedGroup.value = '全部';
|
|
|
|
|
- appliedPeriod.value = '全部';
|
|
|
|
|
}
|
|
}
|
|
|
filterAuditMonth.value = '全部';
|
|
filterAuditMonth.value = '全部';
|
|
|
- appliedAuditMonth.value = '全部';
|
|
|
|
|
loadTabData();
|
|
loadTabData();
|
|
|
}, { immediate: true });
|
|
}, { immediate: true });
|
|
|
</script>
|
|
</script>
|