查询货物优化

This commit is contained in:
赵正易 2024-09-05 08:40:02 +08:00
parent cba5a24216
commit a084f1856c
2 changed files with 7 additions and 6 deletions

View File

@ -2,8 +2,8 @@
"name" : "干巷仓库APP",
"appid" : "__UNI__A67E78B",
"description" : "",
"versionName" : "2.2.8",
"versionCode" : 228,
"versionName" : "2.2.9",
"versionCode" : 229,
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,

View File

@ -2,7 +2,7 @@
<view class="common-nav-container">
<u-search placeholder="请填写零件号或批次号" borderColor="#c8c9cc" v-model.trim="formData.query" bgColor="#f4f4f5"
shape="square" searchIconSize="48" @search="getList()" @custom="getList()" @change="queryChange"></u-search>
<u-list @scrolltolower="scrolltolower" height="590px">
<u-list @scrolltolower="scrolltolower" height="580px" :pagingEnabled="true">
<u-list-item v-for="(item, index) in dataList" :key="index">
<u-cell :title="'批次号:'+item.shortPackageCode" :label="'零件号:'+item.partnumber"
:value="'箱数:'+item.packageNumber + '\n零件数:'+item.partnumberNumber" isLink @click="handlercClickItem"
@ -10,7 +10,8 @@
</u-cell>
</u-list-item>
</u-list>
<u-loadmore fontSize="36" iconSize="36" :status="loadingStatus" />
<!-- <view @click="getList(true)"></view> -->
<u-loadmore @loadmore="getList(true)" fontSize="36" iconSize="36" :status="loadingStatus" />
<!-- <view v-for="(item, index) in dataList" :key="index">
<view class="card" @click="searchItem(item.packageCodeClient_son)">
<u-row>
@ -58,7 +59,7 @@
loading: false,
formData: {
pageNum: 1,
pageSize: 10,
pageSize: 20,
query: ''
},
PackageCodeClient: '',
@ -105,8 +106,8 @@
const query = this.formData;
watchGoodsApi.GetGoodsNowProduction_List(query).then((res) => {
if (res.code === 200) {
console.log(res.data.total,this.formData.pageNum,this.formData.pageSize);
if (isMore) {
this.dataList.push(...res.data.list)
} else {
this.dataList = res.data.list;