Commit 40911097 by LJM

优化

parent 41fc4af2
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<view class="btn row rowCenter verCenter">上架</view> <view class="btn row rowCenter verCenter">上架</view>
</navigator> </navigator>
</view> </view>
<view class="row rowCenter verCenter" v-if="!hasMoreData && page > 1" style="color: #919399;font-size: 16px;padding: 10px 0;flex: 0 0 100%;">--已经到底了--</view> <view class="row rowCenter verCenter" v-if="!hasMoreData && page > 1" style="color: #999;font-size: 22rpx;padding: 10px 0;flex: 0 0 100%;font-weight: normal;">--&nbsp;已经到底了&nbsp;--</view>
</view> </view>
<!-- 无数据展示 --> <!-- 无数据展示 -->
<view class="no-date column rowCenter verCenter" v-else> <view class="no-date column rowCenter verCenter" v-else>
......
...@@ -131,11 +131,13 @@ ...@@ -131,11 +131,13 @@
<view class="detail-btn row rowCenter verCenter" @click="showDrawer(item)">详情</view> <view class="detail-btn row rowCenter verCenter" @click="showDrawer(item)">详情</view>
</view> </view>
</view> </view>
<view class="row rowCenter verCenter" v-if="!hasMoreData && page > 1" style="color: #999;font-size: 22rpx;padding: 10px 0;flex: 0 0 100%;font-weight: normal;">--&nbsp;已经到底了&nbsp;--</view>
</view> </view>
<view class="no-date column rowCenter verCenter" v-else> <view class="no-date column rowCenter verCenter" v-else>
<text class="iconfont icon-a-juxing21"></text> <text class="iconfont icon-a-juxing21"></text>
<text class="text">查不到当前数据</text> <text class="text">查不到当前数据</text>
</view> </view>
<!-- 底部bar -->
<view class="fix-btn row verCenter" v-if="list.length > 0"> <view class="fix-btn row verCenter" v-if="list.length > 0">
<view class="btn1 row rowCenter verCenter" style="width: 127rpx;" @click="allChnage()"> <view class="btn1 row rowCenter verCenter" style="width: 127rpx;" @click="allChnage()">
<text class="check-box-icon" :class="{ curr: filter_list.length > 0 && filter_list.length == filter_id.length }"></text> <text class="check-box-icon" :class="{ curr: filter_list.length > 0 && filter_list.length == filter_id.length }"></text>
...@@ -182,8 +184,8 @@ ...@@ -182,8 +184,8 @@
<text>货品信息</text> <text>货品信息</text>
</template> </template>
</view> </view>
<template v-if="curr == 0">
<!-- 非深圳自营 --> <!-- 非深圳自营 -->
<template v-if="curr == 0">
<view class="field-item row"> <view class="field-item row">
<view class="item row verCenter"> <view class="item row verCenter">
<text class="label">货品编码:</text> <text class="label">货品编码:</text>
...@@ -298,8 +300,8 @@ ...@@ -298,8 +300,8 @@
</view> </view>
</view> </view>
</template> </template>
<template v-else>
<!-- 深圳自营 --> <!-- 深圳自营 -->
<template v-else>
<view class="field-item row"> <view class="field-item row">
<view class="item row verCenter" style="flex: 0 0 100%;" v-if="detail.sku_id"> <view class="item row verCenter" style="flex: 0 0 100%;" v-if="detail.sku_id">
<text class="label">自营货品ID:</text> <text class="label">自营货品ID:</text>
...@@ -365,7 +367,9 @@ ...@@ -365,7 +367,9 @@
</view> </view>
</uni-drawer> </uni-drawer>
<!-- 修改容器 --> <!-- 修改容器 -->
<uni-popup ref="inputDialog" type="dialog"><uni-popup-dialog before-close="true" ref="inputClose" mode="input" :title="'当前容器:' + detail.container_sn" placeholder="请输入目的容器" @close="closeChange" @confirm="dialogInputConfirm"></uni-popup-dialog></uni-popup> <uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog before-close="true" ref="inputClose" mode="input" :title="'当前容器:' + detail.container_sn" placeholder="请输入目的容器" @close="closeChange" @confirm="dialogInputConfirm"></uni-popup-dialog>
</uni-popup>
</view> </view>
</template> </template>
...@@ -378,7 +382,7 @@ ...@@ -378,7 +382,7 @@
data() { data() {
return { return {
page: 1, page: 1,
limit: 50, limit: 50, //分页限制数量
input_flag: false, input_flag: false,
index: 0, index: 0,
curr: 0, curr: 0,
...@@ -389,7 +393,6 @@ ...@@ -389,7 +393,6 @@
filter_list: [], //筛选已选中的列表 filter_list: [], //筛选已选中的列表
filter_id: [], //入库单列表的入库登记 filter_id: [], //入库单列表的入库登记
detail: {}, //详情的数据 detail: {}, //详情的数据
image_list: [], //图片列表
hasMoreData: true, //是否分页加载 hasMoreData: true, //是否分页加载
image_list: [], //图片列表 image_list: [], //图片列表
maxNum: 10, //最大上传图片数量 maxNum: 10, //最大上传图片数量
...@@ -405,7 +408,7 @@ ...@@ -405,7 +408,7 @@
}, },
changeStockTallyImagesParams: { changeStockTallyImagesParams: {
tally_id: '', tally_id: '',
image_ids: '' image_ids: '' //修改理货照片集合
} }
}; };
}, },
...@@ -468,6 +471,7 @@ ...@@ -468,6 +471,7 @@
*/ */
radioChange(e, type) { radioChange(e, type) {
let value = e.detail.value; let value = e.detail.value;
this.filter_id = []; //清空统计数据
this.resetChange(); this.resetChange();
if (type == 1) { if (type == 1) {
this.searchParams.stock_tally_with_stock_in_stock_in_type_in = value; this.searchParams.stock_tally_with_stock_in_stock_in_type_in = value;
...@@ -504,12 +508,20 @@ ...@@ -504,12 +508,20 @@
console.log('picker发送选择改变,携带值为', e.detail.value); console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value; this.index = e.detail.value;
}, },
/**
* 容器编辑弹窗
* @param {Object} detail
*/
inputDialogToggle(detail) { inputDialogToggle(detail) {
this.$refs.inputDialog.open(); this.$refs.inputDialog.open();
}, },
closeChange() { closeChange() {
this.$refs.inputDialog.close(); this.$refs.inputDialog.close();
}, },
/**
* 修改容器提交
* @param {Object} e
*/
dialogInputConfirm(e) { dialogInputConfirm(e) {
if (!e) { if (!e) {
uni.showToast({ uni.showToast({
...@@ -741,8 +753,8 @@ ...@@ -741,8 +753,8 @@
}); });
setTimeout(() => { setTimeout(() => {
this.resetChange(); this.resetChange();
this.getData();
this.filter_id = []; this.filter_id = [];
this.getData();
}, 2000) }, 2000)
}, 5000); }, 5000);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment