This commit is contained in:
18631081161 2025-12-24 14:23:03 +08:00
parent b25822aa61
commit 784e373c7e
2 changed files with 20 additions and 3 deletions

View File

@ -910,8 +910,15 @@ function handleCreatePaymentOrder(row) {
paymentForm.serviceContent = row.service?.titleZh || row.hotService?.name_zh || row.serviceType || '' paymentForm.serviceContent = row.service?.titleZh || row.hotService?.name_zh || row.serviceType || ''
paymentForm.amountPeso = null paymentForm.amountPeso = null
paymentForm.amountRmb = null paymentForm.amountRmb = null
// //
paymentForm.paymentTime = new Date().toISOString().slice(0, 19).replace('T', ' ') const now = new Date()
const year = now.getFullYear()
const month = String(now.getMonth() + 1).padStart(2, '0')
const day = String(now.getDate()).padStart(2, '0')
const hours = String(now.getHours()).padStart(2, '0')
const minutes = String(now.getMinutes()).padStart(2, '0')
const seconds = String(now.getSeconds()).padStart(2, '0')
paymentForm.paymentTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
paymentForm.notes = '' paymentForm.notes = ''
paymentDialogVisible.value = true paymentDialogVisible.value = true
} }

View File

@ -316,12 +316,22 @@ function handleSizeChange(size) {
} }
function showCreateDialog() { function showCreateDialog() {
//
const now = new Date()
const year = now.getFullYear()
const month = String(now.getMonth() + 1).padStart(2, '0')
const day = String(now.getDate()).padStart(2, '0')
const hours = String(now.getHours()).padStart(2, '0')
const minutes = String(now.getMinutes()).padStart(2, '0')
const seconds = String(now.getSeconds()).padStart(2, '0')
const currentTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
Object.assign(createForm, { Object.assign(createForm, {
userId: '', userId: '',
amountPeso: null, amountPeso: null,
amountRmb: null, amountRmb: null,
serviceContent: '', serviceContent: '',
paymentTime: '', paymentTime: currentTime,
appointmentId: '', appointmentId: '',
notes: '', notes: '',
}) })