feat:添加时间范围
This commit is contained in:
1 parent
43aaa579c1
commit
2de1be6e21
16 files changed
+116
-14
No files matched your search
@@ -116,6 +116,7 @@
|
||||
|
||||
|
||||
<script setup lang="ts" name="canteen-dept-total">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
@@ -137,8 +138,14 @@ const selectObjs = ref([]) as any
|
||||
const multiple = ref(true)
|
||||
const draggableDepTreeRef = ref() // 树组件ref引用
|
||||
|
||||
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({
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
payTimeList: defaultCreateTimeList
|
||||
},
|
||||
})
|
||||
|
||||
// table hook
|
||||
|
||||
@@ -85,10 +85,14 @@ const tabPane = ref([
|
||||
])
|
||||
const activeTab = ref("DAY")
|
||||
|
||||
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 defaultQueryForm = {
|
||||
hourType: "",
|
||||
merchantId: "",
|
||||
createTimeList: [],
|
||||
createTimeList: defaultCreateTimeList,
|
||||
createTimeYearStr: dayjs().format("YYYY"),
|
||||
}
|
||||
const state = reactive<any>({
|
||||
|
||||
@@ -153,6 +153,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import * as hardTotalApi from "/@/api/hard/hard-total"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
// 搜索变量
|
||||
const queryRef = ref()
|
||||
@@ -162,10 +163,16 @@ const selectObjs = ref([]) as any
|
||||
const multiple = ref(true)
|
||||
const draggableDepTreeRef = ref() // 树组件ref引用
|
||||
|
||||
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>({
|
||||
isPage: false,
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList,
|
||||
},
|
||||
pageList: hardTotalApi.pageListDept,
|
||||
})
|
||||
|
||||
|
||||
@@ -198,6 +198,7 @@ import { useDict } from "/@/hooks/dict"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import { TableColumnCtx } from "element-plus"
|
||||
import { VNode } from "vue"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
const { push } = useRouter()
|
||||
|
||||
@@ -221,9 +222,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: {
|
||||
isOfflineOrder: 1,
|
||||
payTimeList: defaultCreateTimeList,
|
||||
},
|
||||
pageList: hardOrder.pageJoin,
|
||||
})
|
||||
|
||||
@@ -97,6 +97,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import * as hardTotalApi from "/@/api/hard/hard-total"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
// 搜索变量
|
||||
const queryRef = ref()
|
||||
@@ -110,9 +111,15 @@ const draggableDepTreeRef = ref() // 树组件ref引用
|
||||
// 定义查询字典
|
||||
const { hard_pay_type } = useDict("hard_pay_type")
|
||||
|
||||
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>({
|
||||
isPage: false,
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
payTimeList: defaultCreateTimeList,
|
||||
},
|
||||
pageList: hardTotalApi.pagePayType,
|
||||
})
|
||||
|
||||
|
||||
@@ -186,6 +186,7 @@ import { getDicts } from "/@/api/admin/dict"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import { VNode } from "vue"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
const { push } = useRouter()
|
||||
|
||||
@@ -208,8 +209,14 @@ 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: {
|
||||
payTimeList: defaultCreateTimeList,
|
||||
},
|
||||
pageList: hardOrder.noRecogPageJoin,
|
||||
})
|
||||
|
||||
@@ -98,6 +98,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import * as hardTotalApi from "/@/api/hard/hard-total"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
// 搜索变量
|
||||
const queryRef = ref()
|
||||
@@ -111,9 +112,15 @@ const draggableDepTreeRef = ref() // 树组件ref引用
|
||||
// 定义查询字典
|
||||
const { hard_pay_type } = useDict("hard_pay_type")
|
||||
|
||||
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>({
|
||||
isPage: false,
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
payTimeList: defaultCreateTimeList,
|
||||
},
|
||||
pageList: hardTotalApi.pageListSb,
|
||||
})
|
||||
|
||||
|
||||
@@ -89,8 +89,13 @@ const tabPane = ref([
|
||||
])
|
||||
const activeTab = ref("MCH")
|
||||
|
||||
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 defaultQueryForm = {
|
||||
payTimeYearStr: dayjs().format("YYYY"),
|
||||
payTimeList: defaultCreateTimeList,
|
||||
}
|
||||
const state = reactive<any>({
|
||||
queryForm: { ...defaultQueryForm },
|
||||
|
||||
Reference in new issue
Block a user