uu
This commit is contained in:
parent
900957280a
commit
14e63a4959
@ -170,6 +170,7 @@
|
||||
}, 300)
|
||||
},
|
||||
handleToolsRangChange(val) {
|
||||
this.rangeVal = val
|
||||
if(val == -1) {
|
||||
this.handleSwitchCladar()
|
||||
} else {
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 空数据页 -->
|
||||
<view v-if="resObject.list.length == 0">
|
||||
<view v-if="!showLoadMore && resObject.list.length == 0">
|
||||
<tpx-empty :size="size"></tpx-empty>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@ -43,6 +43,11 @@
|
||||
}
|
||||
},
|
||||
props: {
|
||||
createReload: {
|
||||
default () {
|
||||
return true
|
||||
}
|
||||
},
|
||||
autoReload: {
|
||||
default () {
|
||||
return true
|
||||
@ -93,7 +98,9 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getDataList(true)
|
||||
if(this.createReload) {
|
||||
this.getDataList(true)
|
||||
}
|
||||
},
|
||||
onHide() {
|
||||
|
||||
|
||||
@ -4,20 +4,20 @@
|
||||
<template v-slot:body>
|
||||
<view class="pos-abt-all">
|
||||
<tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
|
||||
ref="listRef"
|
||||
ref="listRef" :autoReload="false" :createReload="false"
|
||||
>
|
||||
<view class="blcok-white-noradius" style="margin-top: 0;">
|
||||
<u-row justify="between">
|
||||
<view style="width: 140rpx;" class="font-weight">运单号</view>
|
||||
<view style="flex:1;">
|
||||
<tpx-scan-input v-model:value="searchParam.billCode" placeholder="请输入或扫码"
|
||||
@change="handleScanValChange" iconPos="right"></tpx-scan-input>
|
||||
@scanChange="handleScanValChange" iconPos="right"></tpx-scan-input>
|
||||
</view>
|
||||
</u-row>
|
||||
<u-row justify="between" custom-style="margin-top:20rpx;">
|
||||
<view style="width: 140rpx;" class="font-weight">下单时间</view>
|
||||
<view style="flex:1;">
|
||||
<tpx-date-input v-model:value="searchParam._date" placeholder="请选择时间"></tpx-date-input>
|
||||
<tpx-date-input ref="dateRef" v-model:value="searchParam._date" placeholder="请选择时间"></tpx-date-input>
|
||||
</view>
|
||||
</u-row>
|
||||
<u-row custom-style="margin-top:20rpx;" justify="end">
|
||||
@ -177,6 +177,10 @@
|
||||
onLoad() {
|
||||
this.initData();
|
||||
},
|
||||
onReady(){
|
||||
// 默认选择今天
|
||||
this.$refs.dateRef.handleToolsRangChange('1')
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
@ -194,10 +198,14 @@
|
||||
},
|
||||
initData() {
|
||||
},
|
||||
triggerListReload(){
|
||||
this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
|
||||
},
|
||||
handleScanValChange: debounce(function(val){
|
||||
this.triggerListReload()
|
||||
}),
|
||||
handleSearch(){
|
||||
|
||||
this.triggerListReload()
|
||||
},
|
||||
async handleSubmit() {
|
||||
const imgUrls = await this.getPrintImages()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user