Commit efc02ce3 by LJM

WMS二期--移动端【拣货】

parent 9313504e
......@@ -201,21 +201,42 @@
width: 100%;
left: 0;
z-index: 999;
.btn2 {
.btn1 {
width: 100%;
height: 75rpx;
background: #1969f9;
font-size: 23rpx;
color: #ffffff;
}
.btn3 {
width: 180rpx;
.btn2 {
width: 50%;
height: 75rpx;
background: #ffffff;
background: #1969f9;
font-size: 23rpx;
color: #ff3700;
border-left: 1px solid #f0f0f2;
font-weight: bold;
color: #ffffff;
}
.print_type {
width: 50%;
height: 75rpx;
background: #1969f9;
border-right: 1px solid #ffffff;
.t1 {
font-size: 23rpx;
color: #ffffff;
}
}
.print-type-box {
width: 50%;
height: 75rpx;
background: #1969f9;
picker {
width: 100%;
height: 100%;
}
.uni-input {
font-size: 23rpx;
color: #ffffff;
}
}
}
}
......@@ -447,4 +468,29 @@
}
}
}
.print {
margin-bottom: 27rpx;
height: 38rpx;
.t1 {
font-size: 20rpx;
color: #1969f9;
font-weight: bold;
}
.print-type-box {
margin-left: 12rpx;
picker {
.uni-input {
font-size: 17rpx;
color: #484b59;
}
.uni-arrow {
width: 14rpx;
height: 9rpx;
background: url('https://img.ichunt.com/images/ichunt/202304/10/e4c72319ad41ce1425f71cc6ec35f111.png') no-repeat center;
background-size: contain;
margin-left: 12rpx;
}
}
}
}
}
......@@ -435,7 +435,6 @@
}
.print {
margin-bottom: 27rpx;
width: 50%;
height: 38rpx;
.t1 {
font-size: 20rpx;
......@@ -443,6 +442,7 @@
font-weight: bold;
}
.print-type-box {
margin-left: 12rpx;
picker {
.uni-input {
font-size: 17rpx;
......
......@@ -48,7 +48,7 @@
<text class="label">销售员:</text>
<text class="tt">{{ item.sale_name }}</text>
</view>
<view class="btn-box row"><view class="btn row rowCenter verCenter" @click="take(item.stock_out_id, item.stock_out_sn)">领取</view></view>
<view class="btn-box row"><view class="btn row rowCenter verCenter" @click="take(item.stock_out_id, item.stock_out_sn, item.warehouse_id)">领取</view></view>
</view>
</view>
<!-- 无数据展示 -->
......@@ -110,11 +110,11 @@ export default {
/**
* 领取
*/
take(stock_out_id, stock_out_sn) {
take(stock_out_id, stock_out_sn, warehouse_id) {
this.request(API.take, 'POST', { stock_out_id: stock_out_id }, true).then(res => {
if (res.code === 0) {
uni.navigateTo({
url: '/pages/picking/sort?stock_out_id=' + stock_out_id + '&stock_out_sn=' + stock_out_sn
url: '/pages/picking/sort?stock_out_id=' + stock_out_id + '&stock_out_sn=' + stock_out_sn + '&warehouse_id=' + warehouse_id
});
} else {
uni.showModal({
......
......@@ -139,7 +139,20 @@
<text class="text">查不到当前数据</text>
</view>
<view class="fix-btn row verCenter" v-if="is_batch_active">
<template v-if="warehouse_id == 9">
<view class="print_type row rowCenter verCenter">
<text class="t1" @click="rePrintTag()">打印货品标签</text>
<view class="print-type-box row rowCenter verCenter">
<picker @change="bindPickerChange" :value="print_style_index" :range="print_style" class="row rowCenter verCenter">
<view class="uni-input">{{ print_style[print_style_index] }}</view>
</picker>
</view>
</view>
<view class="btn2 row rowCenter verCenter" @click="showDrawer(3)">批量拣货({{ filter_id.length || 0 }}</view>
</template>
<template v-else>
<view class="btn1 row rowCenter verCenter" @click="showDrawer(3)">批量拣货({{ filter_id.length || 0 }}</view>
</template>
</view>
</template>
<!-- 按容器拣货列表 -->
......@@ -312,6 +325,18 @@
</template>
<view class="default row rowCenter verCenter" @click="chooseImageChange()" v-if="image_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
</view>
<!-- 拆货打印标签-->
<view class="print row verCenter" v-if="warehouse_id == 9">
<text class="t1" @click="rePrintTag(1)">拆货打印标签</text>
<view class="print-type-box row rowCenter verCenter">
<picker @change="bindPickerChange" :value="print_style_index" :range="print_style" class="row rowCenter verCenter">
<view class="row rowCenter verCenter">
<view class="uni-input">{{ print_style[print_style_index] }}</view>
<view class="uni-arrow"></view>
</view>
</picker>
</view>
</view>
<view class="btn row verCenter bothSide"><view class="btn1 row rowCenter verCenter" @click="pick(detail.lock_id, formParams.pick_qty, detail.stock_out_item_id)">拣 货</view></view>
</view>
</uni-drawer>
......@@ -523,6 +548,9 @@ export default {
picked_num: '', //应拣数量
image_list: [], //图片列表
maxNum: 10, //最大上传图片数量
warehouse_id: '', //仓库id
print_style: ['基本样式', '不带D/C'],
print_style_index: 0,
searchParams: {
stock_out_id: '',
position_name: '',
......@@ -532,6 +560,12 @@ export default {
formParams: {
pick_qty: '',
pick_remark: ''
},
//打印货品标签参数集合
rePrintTagParams: {
stock_out_item_id: '',
print_type: 0,
recheck_num: ''
}
};
},
......@@ -545,6 +579,7 @@ export default {
onLoad(options) {
this.stock_out_sn = options.stock_out_sn || '';
this.searchParams.stock_out_id = options.stock_out_id || '';
this.warehouse_id = options.warehouse_id || '';
},
onShow() {
if (this.noexebshowFalg) {
......@@ -553,6 +588,15 @@ export default {
},
methods: {
/**
* 打印货品标签样式切换监听
* @param {Object} e
*/
bindPickerChange: function(e) {
this.print_style_index = e.detail.value;
this.rePrintTagParams.print_type = e.detail.value;
},
/**
* 批量扫描监听
* @param {Object} e
*/
......@@ -765,6 +809,7 @@ export default {
this.$set(this.filter_list, index, (this.filter_list[index] = !this.filter_list[index]));
let filter_arr = this.findIndex(this.filter_list, true);
this.filter_id = filter_arr.map(i => this.list[i].lock_id);
this.rePrintTagParams.stock_out_item_id = filter_arr.map(i => this.list[i].stock_out_item_id);
//开启了批量搜索,如果取消勾选则删除
if (this.is_batch) {
......@@ -897,6 +942,38 @@ export default {
});
},
/**
*打印货品标签
*/
rePrintTag(type) {
if (type == 1) {
this.rePrintTagParams.stock_out_item_id = this.detail.stock_out_item_id;
this.rePrintTagParams.recheck_num = this.formParams.pick_qty;
} else {
if (this.filter_id.length == 0) {
uni.showToast({
title: '请勾选数据',
icon: 'error'
});
return false;
}
this.rePrintTagParams.stock_out_item_id = this.rePrintTagParams.stock_out_item_id.join(','); //出库明细ids
}
this.request(API.RePrintTag, 'POST', this.rePrintTagParams, true).then(res => {
if (res.code === 0) {
uni.showToast({
title: '操作成功',
icon: 'success'
});
} else {
uni.showToast({
title: res.msg,
icon: 'none'
});
}
});
},
/**
* 监听拣货数量
*/
handleInputNumber: debounce(function(event, num) {
......
......@@ -333,7 +333,8 @@
<view class="default row rowCenter verCenter" @click="chooseImageChange()" v-if="image_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
</view>
<view class="bor"></view>
<view class="print row verCenter bothSide" v-if="warehouse_id == 9">
<!-- 打印货品标签-->
<view class="print row verCenter" v-if="warehouse_id == 9">
<text class="t1" @click="rePrintTag(1)">打印货品标签</text>
<view class="print-type-box row rowCenter verCenter">
<picker @change="bindPickerChange" :value="print_style_index" :range="print_style" class="row rowCenter verCenter">
......@@ -654,6 +655,7 @@ export default {
formParams: {
recheck_qty: ''
},
//打印货品标签参数集合
rePrintTagParams: {
stock_out_item_id: '',
print_type: 0,
......
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