|
@@ -17,6 +17,19 @@
|
|
|
|
|
|
<u-sticky bgColor="#F5F6F7" :offsetTop="offsetTop">
|
|
<u-sticky bgColor="#F5F6F7" :offsetTop="offsetTop">
|
|
<!-- 基本信息 吸顶 -->
|
|
<!-- 基本信息 吸顶 -->
|
|
|
|
+ <view class="search-box">
|
|
|
|
+ <u-search
|
|
|
|
+ placeholder="输入货物名称/库位/条码/内部编码"
|
|
|
|
+ shape="square"
|
|
|
|
+ :showAction="false"
|
|
|
|
+ @search="onRefresh"
|
|
|
|
+ @clear="onRefresh"
|
|
|
|
+ v-model="queryFilterValues.number"
|
|
|
|
+ ></u-search>
|
|
|
|
+ <view class="scan-icon flex_box flex_row_center" @click="scanCode">
|
|
|
|
+ <image src="@/static/image/scan-icon-2.png" mode=""></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="info-card">
|
|
<view class="info-card">
|
|
<view class="info-item page-title">
|
|
<view class="info-item page-title">
|
|
{{ inventoryInfo.taskName }}
|
|
{{ inventoryInfo.taskName }}
|
|
@@ -87,7 +100,7 @@
|
|
<view class="goods-content">
|
|
<view class="goods-content">
|
|
<image
|
|
<image
|
|
class="goods-image"
|
|
class="goods-image"
|
|
- :src="item.image"
|
|
|
|
|
|
+ :src="item.imgNameArr[0] || ''"
|
|
mode="aspectFill"
|
|
mode="aspectFill"
|
|
></image>
|
|
></image>
|
|
<view class="goods-info">
|
|
<view class="goods-info">
|
|
@@ -267,6 +280,7 @@ export default {
|
|
userIdList: [], // 盘点负责人id
|
|
userIdList: [], // 盘点负责人id
|
|
categoryIdList: [], // 类目
|
|
categoryIdList: [], // 类目
|
|
positionList: [], // 库位
|
|
positionList: [], // 库位
|
|
|
|
+ number:''
|
|
},
|
|
},
|
|
actionPop: {
|
|
actionPop: {
|
|
// 盘点数量弹框状态
|
|
// 盘点数量弹框状态
|
|
@@ -304,6 +318,18 @@ export default {
|
|
this.taskId = opt.id;
|
|
this.taskId = opt.id;
|
|
this.loadData(opt.id);
|
|
this.loadData(opt.id);
|
|
},
|
|
},
|
|
|
|
+ onShow() {
|
|
|
|
+ uni.$on("scanFinish", (data) => {
|
|
|
|
+ this.queryFilterValues.number = data;
|
|
|
|
+ this.onRefresh();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ onHide() {
|
|
|
|
+ uni.$off("scanFinish");
|
|
|
|
+ },
|
|
|
|
+ onUnload() {
|
|
|
|
+ uni.$off("scanFinish");
|
|
|
|
+ },
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
// 下拉刷新
|
|
// 下拉刷新
|
|
this.onRefresh();
|
|
this.onRefresh();
|
|
@@ -341,6 +367,13 @@ export default {
|
|
};
|
|
};
|
|
const res = await taskStocktakingItemList(params);
|
|
const res = await taskStocktakingItemList(params);
|
|
const { total, rows } = res.data;
|
|
const { total, rows } = res.data;
|
|
|
|
+ rows.forEach(item=>{
|
|
|
|
+ if(item.imgName && item.imgName.length >0) {
|
|
|
|
+ item.imgNameArr = item.imgName.split(",")
|
|
|
|
+ }else {
|
|
|
|
+ item.imgNameArr = []
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.goodsList = [...this.goodsList, ...rows];
|
|
this.goodsList = [...this.goodsList, ...rows];
|
|
if (pageNum * pageSize < Number(total)) {
|
|
if (pageNum * pageSize < Number(total)) {
|
|
this.pageNum++;
|
|
this.pageNum++;
|
|
@@ -348,7 +381,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.loadStatus = "nomore";
|
|
this.loadStatus = "nomore";
|
|
}
|
|
}
|
|
- console.log("taskStocktakingItemList======", res);
|
|
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
},
|
|
},
|
|
// 任务详情
|
|
// 任务详情
|
|
@@ -432,6 +464,9 @@ export default {
|
|
this.filterPopupVisible = false;
|
|
this.filterPopupVisible = false;
|
|
this.onRefresh();
|
|
this.onRefresh();
|
|
},
|
|
},
|
|
|
|
+ scanCode() {
|
|
|
|
+ this.$scan.scanCode();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -445,7 +480,34 @@ export default {
|
|
.nav-right {
|
|
.nav-right {
|
|
padding: 0 24rpx;
|
|
padding: 0 24rpx;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ .search-box {
|
|
|
|
+ background-color: rgba(191, 200, 219, 0.2);
|
|
|
|
+ margin: 0 32rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ border-radius: 8rpx;
|
|
|
|
+
|
|
|
|
+ ::v-deep .u-search__content {
|
|
|
|
+ background-color: transparent !important;
|
|
|
|
+
|
|
|
|
+ .u-search__content__input {
|
|
|
|
+ background-color: transparent !important;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .scan-icon {
|
|
|
|
+ width: 100rpx;
|
|
|
|
+ height: 100%;
|
|
|
|
+
|
|
|
|
+ image {
|
|
|
|
+ width: 40rpx;
|
|
|
|
+ height: 40rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
.info-card {
|
|
.info-card {
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
padding: 16rpx 32rpx;
|
|
padding: 16rpx 32rpx;
|