feat:订单默认时间

This commit is contained in:
dzc committed 2026-03-27 17:17:46 +08:00
1 parent dbd05bb1d6
commit c613f3b92b
3 files changed
+38 -69

No files matched your search

+10 -2
View File
@@ -274,6 +274,7 @@ import { useDict } from "/@/hooks/dict"
import { displayPrice } from "/@/utils/formatMoney"
import { ElLoading, TableColumnCtx } from "element-plus"
import { VNode } from "vue"
import dayjs from "dayjs"
const { push } = useRouter()
@@ -309,8 +310,15 @@ const showSearch = ref(true)
const selectObjs = ref([]) as any
const multiple = ref(true)
const defaultCreateTimeList = [
dayjs().subtract(3, "month").startOf("day").format("YYYY-MM-DD HH:mm:ss"),
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD HH:mm:ss"),
]
const state: BasicTableProps = reactive<BasicTableProps>({
queryForm: {},
queryForm: {
createTimeList: defaultCreateTimeList,
},
pageList: hardOrder.pageJoin,
})
@@ -415,7 +423,7 @@ const getSummaries = (param: SummaryMethodProps) => {
{ column: "totalPrice", columnName: "商品总价", color: "#67C260" },
{ column: "extraPrice", columnName: "额外支付", color: "#F56E9B" },
{ column: "payPrice", columnName: "实际支付", color: "#355CF6" },
].forEach(({ column, columnName, color }: any, index: number) => {
].forEach(({ column, columnName, color }: any) => {
const values = data.map((item) => Number(item[column]))
if (!values.every((value) => Number.isNaN(value))) {
priceVNode.push(