fix: 设置-财务设置-费项管理

This commit is contained in:
Zzz1zz
2025-07-28 23:28:52 +08:00
parent f1016ece6c
commit 3caa3494c9
2 changed files with 4 additions and 26 deletions
@@ -90,31 +90,6 @@
},
{ immediate: true }
);
// 生成日期字符串
function getDateStr(type) {
const now = new Date();
const pad = (n) => n.toString().padStart(2, '0');
const year = now.getFullYear();
const month = pad(now.getMonth() + 1);
const day = pad(now.getDate());
const hour = pad(now.getHours());
const minute = pad(now.getMinutes());
switch (type) {
case 1:
return `${year}${month}${day}${hour}${minute}`;
case 2:
return `${year}${month}${day}${hour}`;
case 3:
return `${year}${month}${day}`;
case 4:
return `${year}${month}`;
default:
return '';
}
}
const handleOk = async () => {
try {
const valid = await formRef.value.validate();