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