李红攀:V2.6.969,请购单BUG修复

This commit is contained in:
2026-06-18 15:58:24 +08:00
parent e404898a78
commit 4c09ffdf00
7 changed files with 239 additions and 183 deletions

View File

@@ -146,11 +146,12 @@ function formatPrice(price?: number) {
}
/** 格式化日期 */
function formatDate(dateStr?: string) {
if (!dateStr) return '-'
return dateStr.substring(0, 10)
function formatDate(date?: string) {
if (!date) return '-'
return new Date(date).toLocaleDateString('zh-CN')
}
/** 返回上一页 */
function handleBack() {
navigateBackPlus('/pages-erp/stock-in/index')

View File

@@ -234,11 +234,12 @@ function formatPrice(price?: number) {
}
/** 格式化日期 */
function formatDate(dateStr?: string) {
if (!dateStr) return '-'
return dateStr.substring(0, 10)
function formatDate(date?: string) {
if (!date) return '-'
return new Date(date).toLocaleDateString('zh-CN')
}
/** 返回上一页 */
function handleBack() {
navigateBackPlus()