Browse Source

便次时间配置

intex_online20250311
王宇飞 4 weeks ago
parent
commit
79995a30cb
  1. 6
      src/utils/formatTime.ts
  2. 4
      src/views/wms/basicDataManage/supplierManage/deliTime/deliTime.data.ts

6
src/utils/formatTime.ts

@ -162,6 +162,12 @@ export const dateFormatter = (row, column, cellValue) => {
}
return formatDate(cellValue)
}
export const dateFormatterHHMMSS = (row, column, cellValue) => {
if (!cellValue) {
return
}
return formatDate(cellValue,'HH:mm:ss')
}
export const dateFormatterYM = (row, column, cellValue) => {
if (!cellValue) {

4
src/views/wms/basicDataManage/supplierManage/deliTime/deliTime.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import { dateFormatter,dateFormatterHHMMSS } from '@/utils/formatTime'
// 表单校验
export const DeliTimeRules = reactive({
@ -36,7 +36,7 @@ export const DeliTime = useCrudSchemas(reactive<CrudSchema[]>([
label: '开始时间',
field: 'begeinTime',
sort: 'custom',
formatter: dateFormatter,
formatter: dateFormatterHHMMSS,
isSearch: true,
table: {
width:120

Loading…
Cancel
Save