mirror of
http://183.237.82.114:10086/kilo/leaser_front.git
synced 2026-10-23 18:35:08 +00:00
fix: 设置-财务设置-费项管理
This commit is contained in:
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();
|
||||
|
|
|
|||
|
|
@ -184,7 +184,10 @@
|
|||
watch(
|
||||
() => props.isSubmitted,
|
||||
(newVal) => {
|
||||
if (newVal) getFeeListData();
|
||||
if (newVal) {
|
||||
setCurrent(1);
|
||||
getFeeListData();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue