fix: 智聪记账管理,部分功能新增复制功能,时间默认当前日期。
This commit is contained in:
@@ -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 = '复制用药记录'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user