fix: 设置-财务设置-费项管理
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user