增加查询默认时间段
This commit is contained in:
parent
442666ce71
commit
a0aafa6b96
|
|
@ -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, // 默认显示全部
|
||||
|
|
|
|||
|
|
@ -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', // 未完成
|
||||
|
|
|
|||
|
|
@ -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', // 未完成
|
||||
|
|
|
|||
|
|
@ -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', // 未完成
|
||||
|
|
|
|||
|
|
@ -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', // 未完成
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue