fix: 智聪记账管理,部分功能新增复制功能,时间默认当前日期。
This commit is contained in:
@@ -124,6 +124,7 @@
|
||||
<script setup name="Activity">
|
||||
import { listActivity, getActivity, delActivity, addActivity, updateActivity } from '@/api/health/activity'
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import dayjs from 'dayjs'
|
||||
import { require } from '@/utils/require'
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { activity_type, activity_exercise } = proxy.useDict('activity_type', 'activity_exercise')
|
||||
@@ -260,6 +261,8 @@ const handleView = (row) => {
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset()
|
||||
form.value.startTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||
form.value.endTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||
open.value = true
|
||||
title.value = '添加活动记录'
|
||||
}
|
||||
|
||||
@@ -815,6 +815,7 @@ const handleView = (row) => {
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset()
|
||||
form.value.visitingTime = 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
|
||||
|
||||
@@ -235,6 +235,7 @@ const handleView = (row) => {
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset()
|
||||
form.value.measureTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||
open.value = true
|
||||
title.value = '添加身高体重记录'
|
||||
}
|
||||
|
||||
@@ -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 = '复制用药记录'
|
||||
})
|
||||
|
||||
@@ -201,6 +201,7 @@ function handleCopy(row) {
|
||||
getProcessRecord(_id).then((response) => {
|
||||
form.value = response.data
|
||||
form.value.id = null
|
||||
form.value.recordingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||
open.value = true
|
||||
title.value = '复制档案过程记录'
|
||||
})
|
||||
@@ -288,6 +289,7 @@ const handleView = (row) => {
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset()
|
||||
form.value.recordingTime = 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
|
||||
|
||||
@@ -216,6 +216,7 @@ function handleCopy(row) {
|
||||
getTemperatureRecord(_id).then((response) => {
|
||||
form.value = response.data
|
||||
form.value.id = null
|
||||
form.value.measureTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||
open.value = true
|
||||
title.value = '复制体温记录'
|
||||
})
|
||||
@@ -303,6 +304,7 @@ const handleView = (row) => {
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset()
|
||||
form.value.measureTime = 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
|
||||
|
||||
Reference in New Issue
Block a user