fix: 智聪记账管理,部分功能新增复制功能,时间默认当前日期。

This commit is contained in:
tianyongbao
2025-04-28 12:23:51 +08:00
parent dae356e907
commit cc4d6befe8
18 changed files with 176 additions and 16 deletions

View File

@@ -398,6 +398,7 @@ const handleView = (row) => {
/** 新增按钮操作 */
function handleAdd() {
reset()
form.value.dosingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
if (personList.value.length > 0) {
form.value.personId = personList.value[0].id
queryHealthRecordParams.personId = personList.value[0].id
@@ -440,6 +441,7 @@ function handleCopy(row) {
getMarRecord(_id).then((response) => {
form.value = response.data
form.value.id = null
form.value.dosingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
open.value = true
title.value = '复制用药记录'
})