-
-
+
+
@@ -21,15 +21,15 @@
:value="option.dictValue" />
-
-
-
+
+
+
{{ $t('btn.search') }}
{{ $t('btn.reset') }}
@@ -306,7 +306,7 @@ import {
downloadTemplate // 添加下载模板API
} from '@/api/orderPurchaseManagement/orderpurchase.js'
const { proxy } = getCurrentInstance()
-
+import dayjs from 'dayjs'
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
@@ -318,7 +318,7 @@ const queryParams = reactive({
materialCode: '',
orderindicator: -2,
salesArea: '',
- specordindicator: '',
+ specordindicator: -2,
})
const columns = ref([
@@ -350,6 +350,53 @@ const columns = ref([
{ visible: false, align: 'center', type: '', prop: 'updatedTime', label: '更新时间', showOverflowTooltip: true },
])
+const shortcuts = [
+ {
+ text: '今天',
+ value: () => {
+ return [dayjs().startOf('day'), dayjs().endOf('day')];
+ },
+ },
+ {
+ text: '昨天',
+ value: () => {
+ return [dayjs().subtract(1, 'day').startOf('day'), dayjs().subtract(1, 'day').endOf('day')];
+ },
+ },
+ {
+ text: '本周',
+ value: () => {
+ const startOfWeek = dayjs().startOf('week');
+ const endOfWeek = dayjs().endOf('week');
+ return [startOfWeek, endOfWeek];
+ },
+ },
+ {
+ text: '上周',
+ value: () => {
+ const startOfLastWeek = dayjs().subtract(1, 'week').startOf('week');
+ const endOfLastWeek = dayjs().subtract(1, 'week').endOf('week');
+ return [startOfLastWeek, endOfLastWeek];
+ },
+ },
+ {
+ text: '本月',
+ value: () => {
+ const startOfLastMonth = dayjs().startOf('month');
+ const endOfLastMonth = dayjs().endOf('month');
+ return [startOfLastMonth, endOfLastMonth];
+ },
+ },
+ {
+ text: '上月',
+ value: () => {
+ const startOfLastMonth = dayjs().subtract(1, 'month').startOf('month');
+ const endOfLastMonth = dayjs().subtract(1, 'month').endOf('month');
+ return [startOfLastMonth, endOfLastMonth];
+ },
+ },
+];
+
const total = ref(0)
const dataList = ref([])
const queryRef = ref()