Commit ea10fd35 by LJM

移动端--拣货--按货品拣货,拣货任务,增加库存查询按钮及弹窗。

parent a534116a
......@@ -78,6 +78,16 @@
margin-bottom: 15rpx;
flex-wrap: wrap;
border: 1px solid transparent;
.checkStock {
position: absolute;
right: 110rpx;
top: 5rpx;
font-size: 17rpx;
color: #1969f9;
border: 1px solid #f0f0f2;
width: 75rpx;
height: 40rpx;
}
.pick_type_val {
position: absolute;
right: 50rpx;
......
......@@ -61,6 +61,7 @@
<template v-if="curr == 0">
<view class="list" v-if="list.length > 0">
<view class="box row" v-for="(item, index) in list" :key="index" :class="{ curr: filter_list[index] }">
<text class="checkStock row rowCenter verCenter" @click="checkStockPop(item.stock_in_batch_sn)">查库存</text>
<text class="pick_type_val row rowCenter verCenter" v-if="item.pick_type_val">{{ item.pick_type_val }}</text>
<view class="check-box-icon" @click="filterChange(index)" v-if="is_batch_active"></view>
<view class="input-box row verCenter">
......@@ -622,11 +623,43 @@
</view>
<view class="desc">该货品需拆出部分拣货并重贴标签,建议单个拣货!</view>
<view class="button-group">
<view class="button-left" @click="close()">关闭提醒</view>
<view class="button-right" @click="showDrawer(1, pick_data[0])">单个拣货</view>
<view class="button-left" @click="close()">关闭</view>
</view>
</view>
</uni-popup>
<!-- 查库存 -->
<uni-popup ref="checkStockPop" type="dialog">
<view class="batchNotification column rowCenter verCente" style="padding: 20rpx 20rpx 0 20rpx;">
<view class="text row verCente">
<text class="t1">入库批次号:</text>
<text class="t2">{{stockInfoByBatchSn.stock_in_batch_sn}}</text>
</view>
<view class="text row verCente">
<text class="t1">货品名称:</text>
<text class="t2">{{stockInfoByBatchSn.goods_name}}</text>
</view>
<view class="text row verCente">
<text class="t1">标准品牌:</text>
<text class="t2">{{stockInfoByBatchSn.brand_name}}</text>
</view>
<view class="text row verCente">
<text class="t1">库存总数:</text>
<text class="t2">{{stockInfoByBatchSn.total_qty}}</text>
</view>
<view class="text row verCente">
<text class="t1">可用数量:</text>
<text class="t2">{{stockInfoByBatchSn.useable_qty}}</text>
</view>
<view class="text row verCente">
<text class="t1">锁库数量:</text>
<text class="t2">{{stockInfoByBatchSn.lock_qty}}</text>
</view>
<view class="button-group" style="position: static;">
<view class="button-left" @click="close()">关闭</view>
</view>
</view>
</uni-popup>
</view>
</template>
......@@ -693,7 +726,8 @@
recheck_num: '',
print_language: '', //非自营仓打印标签 1中文,2英文
from_type: 1 //固定
}
},
stockInfoByBatchSn: {}
};
},
onNavigationBarButtonTap(e) {
......@@ -995,7 +1029,8 @@
* 拆货提醒关闭
*/
close() {
this.$refs.message.close()
this.$refs.message.close();
this.$refs.checkStockPop.close();
},
/**
* 找出false对应的下标
......@@ -1449,6 +1484,23 @@
});
},
/**
* 查库存
*/
checkStockPop(stock_in_batch_sn) {
this.request(API.getStockInfoByBatchSn, 'POST', { stock_in_batch_sn: stock_in_batch_sn }, true).then(res => {
if (res.code === 0) {
this.stockInfoByBatchSn = res.data;
this.stockInfoByBatchSn.stock_in_batch_sn = stock_in_batch_sn;
this.$refs.checkStockPop.open('center')
} else {
uni.showToast({
title: res.msg,
icon: 'none'
});
}
});
},
/**
* 再次获取焦点
*/
clearInputAndFocus() {
......
// const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
// const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
// const API_BASE = 'http://wms.liexindev.net'; //WMS系统
// const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
const API_BASE = 'https://wms.ichunt.net'; //WMS系统
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = {
......@@ -396,7 +396,11 @@ const API = {
/**
* 操作已看货
* */
watchStatusAct: API_BASE + '/api/h5/stockIn/watchStatusAct'
watchStatusAct: API_BASE + '/api/h5/stockIn/watchStatusAct',
/**
* 查看库存
* */
getStockInfoByBatchSn: API_BASE + '/api/h5/stockIn/getStockInfoByBatchSn'
}
......
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