8/25 dev bug
This commit is contained in:
@@ -138,10 +138,7 @@ import { listBill, manualGenerateApi } from '@/api/system/SdbBill';
|
||||
import { BillVO, BillQuery, BillForm } from '@/api/system/SdbBill/type';
|
||||
import { listChargeItem } from '@/api/system/SdbChargeItem';
|
||||
import { checkPermi } from '@/utils/permission';
|
||||
// import House from '@/components/Holder/house.vue';
|
||||
import { ref } from 'vue';
|
||||
// import UserHolder from '@/components/Holder/user.vue';
|
||||
// import CarUser from '@/components/Holder/CarUser.vue';
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
const { com_questionnaire_scope } = toRefs<any>(proxy?.useDict('com_questionnaire_scope'));
|
||||
@@ -241,7 +238,7 @@ const handleUpdate = (row?: BillVO) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 详情
|
||||
function handleMain(row: BillVO) {
|
||||
router.push({
|
||||
path: '/sdb/sdbbillMain',
|
||||
@@ -283,6 +280,7 @@ const BillForm = ref<{
|
||||
// function handleSelect(val: string[]) {
|
||||
// BillForm.value.houseId = val;
|
||||
// }
|
||||
// 生成账单
|
||||
function handleChange(row: BillVO) {
|
||||
clearChangeBillForm();
|
||||
BillVisible.value = true;
|
||||
@@ -300,6 +298,7 @@ function handleChange(row: BillVO) {
|
||||
BillForm.value['year'] = [];
|
||||
}
|
||||
}
|
||||
// 生成账单
|
||||
function handleChangeApi() {
|
||||
manualGenerateApi(BillForm.value).then((res) => {
|
||||
ElMessage.success(res.msg);
|
||||
@@ -307,6 +306,7 @@ function handleChangeApi() {
|
||||
BillVisible.value = false;
|
||||
});
|
||||
}
|
||||
// 清空表单
|
||||
function clearChangeBillForm() {
|
||||
BillForm.value = {
|
||||
periodCalcType: undefined,
|
||||
@@ -317,16 +317,10 @@ function clearChangeBillForm() {
|
||||
houseId: []
|
||||
};
|
||||
}
|
||||
|
||||
// 禁用月份
|
||||
function handleDisableMonth(date: Date) {
|
||||
if (!BillForm.value.startDate || !BillForm.value.endDate) return false;
|
||||
return date.getTime() < new Date(BillForm.value.startDate).getTime() || date.getTime() > new Date(BillForm.value.endDate).getTime();
|
||||
}
|
||||
|
||||
const myQuarter = ref('2026-2');
|
||||
|
||||
function onQuarterChange(val: string) {
|
||||
console.log(val);
|
||||
return date.getTime() > new Date(BillForm.value.endDate).getTime();
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user