This commit is contained in:
parent
427c955370
commit
c6a72438c3
|
@ -31,6 +31,17 @@
|
||||||
@change="resetPage"
|
@change="resetPage"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="显示" prop="is_show">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.is_show"
|
||||||
|
placeholder="请选择是否显示"
|
||||||
|
style="width: 240px"
|
||||||
|
@change="resetPage"
|
||||||
|
>
|
||||||
|
<el-option label="显示" value="1" />
|
||||||
|
<el-option label="不显示" value="0" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
<el-button @click="resetParams">重置</el-button>
|
<el-button @click="resetParams">重置</el-button>
|
||||||
|
@ -245,6 +256,7 @@ const showCopy = ref(false)
|
||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
store_name: '',
|
store_name: '',
|
||||||
class_all: '',
|
class_all: '',
|
||||||
|
is_show: '',
|
||||||
bar_code: ''
|
bar_code: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,17 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="" prop="create_time">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="startEndTime"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
unlink-panels
|
||||||
|
@change="changeStartEndTime"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
<el-button @click="resetParams">重置</el-button>
|
<el-button @click="resetParams">重置</el-button>
|
||||||
|
@ -171,6 +182,8 @@ import { timeFormat } from '@/utils/util'
|
||||||
import feedback from '@/utils/feedback'
|
import feedback from '@/utils/feedback'
|
||||||
import EditPopup from './edit.vue'
|
import EditPopup from './edit.vue'
|
||||||
import Details from './details.vue'
|
import Details from './details.vue'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const detailsRef = ref(null)
|
const detailsRef = ref(null)
|
||||||
const user_ship_data = ref([])
|
const user_ship_data = ref([])
|
||||||
|
@ -184,7 +197,9 @@ const queryParams = reactive({
|
||||||
account: '',
|
account: '',
|
||||||
mobile: '',
|
mobile: '',
|
||||||
store_id: route.query.store_id ?? '',
|
store_id: route.query.store_id ?? '',
|
||||||
user_ship: ''
|
user_ship: '',
|
||||||
|
start_time: '',
|
||||||
|
end_time: ''
|
||||||
})
|
})
|
||||||
apiUserShipLists([]).then((res) => {
|
apiUserShipLists([]).then((res) => {
|
||||||
user_ship_data.value = res.lists
|
user_ship_data.value = res.lists
|
||||||
|
@ -253,6 +268,17 @@ const remoteMethod = (e = '') => {
|
||||||
}, 300)
|
}, 300)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const startEndTime = ref([new Date(), new Date()])
|
||||||
|
const changeStartEndTime = () => {
|
||||||
|
if (startEndTime.value[0] && startEndTime.value[1]) {
|
||||||
|
queryParams.start_time = moment(startEndTime.value[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
||||||
|
queryParams.end_time = moment(startEndTime.value[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
||||||
|
} else {
|
||||||
|
queryParams.start_time = ''
|
||||||
|
queryParams.end_time = ''
|
||||||
|
}
|
||||||
|
getLists()
|
||||||
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getLists()
|
getLists()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue