8/13, 日报
This commit is contained in:
@@ -70,8 +70,6 @@ import pagination from '@/components/Pagination/index.vue';
|
||||
import pageHeader from '@/components/Pageheader/index.vue';
|
||||
import { getCommunitylistAPI } from '@/api/system/community';
|
||||
import { validator } from '@/utils/Reg';
|
||||
import { getPaidInExpensesReceivableList } from '@/api/system/report/paidInExpensesReceivable';
|
||||
import { Detail } from '@/api/system/report/paidInExpensesReceivable/type';
|
||||
import { listChargeType } from '@/api/system/ChargeType';
|
||||
import { ColumnConfig, exportToExcel } from '@/utils/xlsx';
|
||||
import { getPrepaidBalanceList } from '@/api/system/report/prepaidBalance';
|
||||
@@ -79,7 +77,7 @@ import { listHouseUseType } from '@/api/system/houseUse';
|
||||
import { Row } from '@/api/system/report/prepaidBalance/type';
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
|
||||
// ╬╬╬2╬╬
|
||||
const ArrearsDetailList = ref<Row[]>([]);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
@@ -93,19 +91,7 @@ const data = reactive({
|
||||
villageId: '',
|
||||
houseUseTypeId: '',
|
||||
chargeTypeId: ''
|
||||
},
|
||||
rule: [
|
||||
{
|
||||
validator: (_: any, value: string, callback: (arg0?: Error) => any) => {
|
||||
if (value === '' || value === undefined || value === null) {
|
||||
return callback();
|
||||
}
|
||||
if (!validator(value, 'fullFilterReg')) {
|
||||
return callback(new Error('请输入正确的房号'));
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams } = toRefs(data);
|
||||
@@ -187,14 +173,8 @@ const handleExport = () => {
|
||||
setTimeout(() => {
|
||||
try {
|
||||
const columns: ColumnConfig[] = [
|
||||
{
|
||||
label: '小区名称',
|
||||
prop: 'villageName'
|
||||
},
|
||||
{
|
||||
label: '房屋类型',
|
||||
prop: 'houseTypeName'
|
||||
},
|
||||
{ label: '小区名称', prop: 'villageName' },
|
||||
{ label: '房屋类型', prop: 'houseTypeName' },
|
||||
{
|
||||
label: '收费项目',
|
||||
prop: 'chargeItemAmounts',
|
||||
@@ -212,7 +192,7 @@ const handleExport = () => {
|
||||
prop: 'totalAmount'
|
||||
}
|
||||
];
|
||||
exportToExcel(ArrearsDetailList.value, columns, `应收物业费详情_${new Date().getTime()}`);
|
||||
exportToExcel(ArrearsDetailList.value, columns, `预收费用余额汇总_${new Date().getTime()}`);
|
||||
} catch (error) {
|
||||
proxy?.$modal.msgError('导出失败,请重试');
|
||||
console.error('导出错误:', error);
|
||||
|
||||
Reference in New Issue
Block a user