增加查询默认时间段

This commit is contained in:
bb_pan 2025-07-18 16:09:21 +08:00
parent 442666ce71
commit a0aafa6b96
16 changed files with 98 additions and 46 deletions

View File

@ -150,7 +150,10 @@ import { debounce } from 'lodash-es'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
const swipeRef = ref()
//
const signOptions = ref([
@ -160,8 +163,8 @@ const signOptions = ref([
]);
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '', //
endTime: dateArray.value[1] || '', //
keyWord: '', //
appTaskStatus: 0,
isSign: 0, //

View File

@ -15,6 +15,7 @@
<uni-col :span="24">
<view>
<uni-datetime-picker
v-model="dateArray"
type="daterange"
@maskClick="maskClick"
@change="onChangeDate"
@ -97,10 +98,14 @@ import { debounce } from 'lodash-es'
const active = ref(1)
const tableList = ref([])
const total = ref(0) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
])
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
taskStage: 2, //
isFinish: '0', //

View File

@ -91,11 +91,14 @@ import { debounce } from 'lodash-es'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
taskStage: 3, //
isFinish: '0', //

View File

@ -98,12 +98,15 @@ import { getInfoBindByCode, appWarehouseApi } from '@/services/standard.js'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
const scanQrCodeRefBox = ref(null)
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
taskStage: 4, //
isFinish: '0', //

View File

@ -107,12 +107,15 @@ import { getPartArrivedListApi } from '@/services/partLease.js'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
taskStage: 3, //
isFinish: '0', //

View File

@ -15,6 +15,7 @@
<uni-col :span="24">
<view>
<uni-datetime-picker
v-model="dateArray"
type="daterange"
@maskClick="maskClick"
@change="onChangeDate"
@ -89,10 +90,14 @@ import { debounce } from 'lodash-es'
const active = ref(1)
const tableList = ref([])
const total = ref(0) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
])
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
taskStage: 2, //
pageNum: 1,

View File

@ -126,11 +126,14 @@ import { onBackPress } from '@dcloudio/uni-app'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0],
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '', //
endTime: dateArray.value[1] || '', //
keyWord: '', //
statusList: [3], //
pageNum: 1,

View File

@ -135,11 +135,14 @@ import { onBackPress } from '@dcloudio/uni-app'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0],
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '', //
endTime: dateArray.value[1] || '', //
keyWord: '', //
statusList: [0,1], //
pageNum: 1,

View File

@ -107,11 +107,14 @@ import { debounce } from 'lodash-es'
const total = ref(0) // <EFBFBD><EFBFBD>
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
appTaskStatus: 0, //
pageNum: 1,

View File

@ -86,11 +86,14 @@
const total = ref(0)
const active = ref(1)
const tableList = ref([])
const dateArray = ref([])
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
])
const queryParams = ref({
startTime: '',
endTime: '',
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '',
taskStatus: 0,
pageNum: 1,

View File

@ -106,11 +106,14 @@ import { debounce } from 'lodash-es'
const total = ref(0) // <EFBFBD><EFBFBD>
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
appTaskStatus: 0, //
pageNum: 1,

View File

@ -111,11 +111,14 @@ import { debounce } from 'lodash-es'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
pageNum: 1,
pageSize: 5,

View File

@ -159,11 +159,14 @@ const loading = ref(false)
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0],
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '', //
endTime: dateArray.value[1] || '', //
keyWord: '', //
pageNum: 1,
pageSize: 5,

View File

@ -141,11 +141,14 @@ import { debounce } from 'lodash-es'
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0],
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '', //
endTime: dateArray.value[1] || '', //
keyWord: '', //
pageNum: 1,
pageSize: 5,

View File

@ -93,12 +93,15 @@ import { getQrCodeBoxListApi,appReceiveApi,appTransferRejectApi } from '@/servic
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
status: 3,
pageNum: 1,

View File

@ -125,15 +125,18 @@ import { getQrCodeBoxListApi,getTransferKeepsListApi,appTransferApi } from '@/se
const total = ref(0) //
const active = ref(1) // tap
const tableList = ref([]) //
const dateArray = ref([]) //
const dateArray = ref([
new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
new Date().toISOString().split('T')[0]
]) //
const keeperPopup = ref(null);
const transferItem = ref({});
const keeperList = ref([])
const transferUser = ref("")
//
const queryParams = ref({
startTime: '', //
endTime: '', //
startTime: dateArray.value[0] || '',
endTime: dateArray.value[1] || '',
keyWord: '', //
status: [2,5],
pageNum: 1,