Commit 40911097 by LJM

优化

parent 41fc4af2
......@@ -98,7 +98,7 @@
<view class="btn row rowCenter verCenter">上架</view>
</navigator>
</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 class="no-date column rowCenter verCenter" v-else>
......
......@@ -131,11 +131,13 @@
<view class="detail-btn row rowCenter verCenter" @click="showDrawer(item)">详情</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 class="no-date column rowCenter verCenter" v-else>
<text class="iconfont icon-a-juxing21"></text>
<text class="text">查不到当前数据</text>
</view>
<!-- 底部bar -->
<view class="fix-btn row verCenter" v-if="list.length > 0">
<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>
......@@ -182,8 +184,8 @@
<text>货品信息</text>
</template>
</view>
<!-- 非深圳自营 -->
<template v-if="curr == 0">
<!-- 非深圳自营 -->
<view class="field-item row">
<view class="item row verCenter">
<text class="label">货品编码:</text>
......@@ -298,8 +300,8 @@
</view>
</view>
</template>
<!-- 深圳自营 -->
<template v-else>
<!-- 深圳自营 -->
<view class="field-item row">
<view class="item row verCenter" style="flex: 0 0 100%;" v-if="detail.sku_id">
<text class="label">自营货品ID:</text>
......@@ -365,7 +367,9 @@
</view>
</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>
</template>
......@@ -378,7 +382,7 @@
data() {
return {
page: 1,
limit: 50,
limit: 50, //分页限制数量
input_flag: false,
index: 0,
curr: 0,
......@@ -389,7 +393,6 @@
filter_list: [], //筛选已选中的列表
filter_id: [], //入库单列表的入库登记
detail: {}, //详情的数据
image_list: [], //图片列表
hasMoreData: true, //是否分页加载
image_list: [], //图片列表
maxNum: 10, //最大上传图片数量
......@@ -405,7 +408,7 @@
},
changeStockTallyImagesParams: {
tally_id: '',
image_ids: ''
image_ids: '' //修改理货照片集合
}
};
},
......@@ -468,6 +471,7 @@
*/
radioChange(e, type) {
let value = e.detail.value;
this.filter_id = []; //清空统计数据
this.resetChange();
if (type == 1) {
this.searchParams.stock_tally_with_stock_in_stock_in_type_in = value;
......@@ -504,12 +508,20 @@
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
/**
* 容器编辑弹窗
* @param {Object} detail
*/
inputDialogToggle(detail) {
this.$refs.inputDialog.open();
},
closeChange() {
this.$refs.inputDialog.close();
},
/**
* 修改容器提交
* @param {Object} e
*/
dialogInputConfirm(e) {
if (!e) {
uni.showToast({
......@@ -741,8 +753,8 @@
});
setTimeout(() => {
this.resetChange();
this.getData();
this.filter_id = [];
this.getData();
}, 2000)
}, 5000);
} 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