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 },
|
||||
|
||||
@@ -14,11 +14,14 @@
|
||||
<el-table-column align="center" label="交易时间" prop="createTime" width="180" />
|
||||
<el-table-column align="center" label="操作" prop="createTime" width="100">
|
||||
<template #default="{ row }">
|
||||
<div class="flex items-center justify-center">
|
||||
<div v-if="row.walletTypeUniqueCode == '3'" class="flex items-center justify-center">
|
||||
<el-button icon="CloseBold" text type="primary" @click="refund(row)">
|
||||
退款
|
||||
</el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@@ -100,14 +100,21 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemWalletRecharge">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import * as walletTransactionApi from "/@/api/wallet/wallet-transaction"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
|
||||
const defaultCreateTimeList = [
|
||||
dayjs().subtract(3, "month").startOf("day").format("YYYY-MM-DD"),
|
||||
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD"),
|
||||
]
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
isPage: false,
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList
|
||||
},
|
||||
pageList: walletTransactionApi.pageCzTotal,
|
||||
})
|
||||
|
||||
|
||||
@@ -121,6 +121,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemWalletRecharge">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { pageCz, czTotal, delObjs } from "/@/api/wallet/wallet-transaction"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
@@ -148,8 +149,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"),
|
||||
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD"),
|
||||
]
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList
|
||||
},
|
||||
pageList: pageCz,
|
||||
})
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemWalletRecharge">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
import { pageJz, jzTotal } from "/@/api/wallet/wallet-transaction"
|
||||
@@ -127,9 +128,14 @@ const showSearch = ref(true)
|
||||
const selectObjs = ref([]) as any
|
||||
const multiple = ref(true)
|
||||
const draggableDepTreeRef = ref()
|
||||
|
||||
const defaultCreateTimeList = [
|
||||
dayjs().subtract(3, "month").startOf("day").format("YYYY-MM-DD"),
|
||||
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD"),
|
||||
]
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList
|
||||
},
|
||||
pageList: pageJz,
|
||||
})
|
||||
|
||||
|
||||
@@ -130,6 +130,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemWalletRuleTransaction">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import * as walletRuleTransactionApi from "/@/api/wallet/wallet-rule-transaction"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
@@ -150,8 +151,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"),
|
||||
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD"),
|
||||
]
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList
|
||||
},
|
||||
pageList: walletRuleTransactionApi.pageJoin,
|
||||
})
|
||||
|
||||
|
||||
@@ -108,6 +108,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemWalletRecharge">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { pageTh, thTotal } from "/@/api/wallet/wallet-transaction"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
@@ -135,8 +136,14 @@ const draggableDepTreeRef = ref()
|
||||
|
||||
const { push } = useRouter()
|
||||
|
||||
const defaultCreateTimeList = [
|
||||
dayjs().subtract(3, "month").startOf("day").format("YYYY-MM-DD"),
|
||||
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD"),
|
||||
]
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList
|
||||
},
|
||||
pageList: pageTh,
|
||||
})
|
||||
|
||||
|
||||
@@ -110,6 +110,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemWalletRecharge">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { pageTk, tkTotal } from "/@/api/wallet/wallet-transaction"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
@@ -139,8 +140,14 @@ const draggableDepTreeRef = ref()
|
||||
|
||||
const { push } = useRouter()
|
||||
|
||||
const defaultCreateTimeList = [
|
||||
dayjs().subtract(3, "month").startOf("day").format("YYYY-MM-DD"),
|
||||
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD"),
|
||||
]
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList
|
||||
},
|
||||
pageList: pageTk,
|
||||
})
|
||||
|
||||
|
||||
@@ -116,6 +116,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemWalletRecharge">
|
||||
import dayjs from "dayjs"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { pageXf, xfTotal } from "/@/api/wallet/wallet-transaction"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
@@ -146,8 +147,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"),
|
||||
dayjs().hour(23).minute(23).second(23).format("YYYY-MM-DD"),
|
||||
]
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
queryForm: {
|
||||
createTimeList: defaultCreateTimeList
|
||||
},
|
||||
pageList: pageXf,
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user