Commit 597bd27a by LJM

移动端-拣货控制,按货品或按容器均需先扫描库位,再扫描入库批次号/容器

parent 703580ca
......@@ -18,20 +18,20 @@
<view class="right">
<template v-if="curr == 0">
<view class="title">入库批次号:</view>
<view class="search-bar row bothSide verCenter">
<view class="search-bar row bothSide verCenter" :class="{ 'disabled-color': searchParams.position_name == '' ? true : false }">
<view class="row verCenter">
<text class="iconfont icon-juxing1"></text>
<input class="uni-input" placeholder="请扫描或输入入库批次号" placeholder-style="color:#919399" v-model="searchParams.stock_in_batch_sn" @input="handleInput(2, searchParams.stock_in_batch_sn)" maxlength="15" />
<input class="uni-input" placeholder="请扫描入库标签" :disabled="searchParams.position_name == '' ? true : false" placeholder-style="color:#919399" v-model="searchParams.stock_in_batch_sn" @input="handleInput(2, searchParams.stock_in_batch_sn)" maxlength="15" />
</view>
<text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_flag_stock_in_batch_sn"></text>
</view>
</template>
<template v-else-if="curr == 1">
<view class="title">容器:</view>
<view class="search-bar row bothSide verCenter">
<view class="search-bar row bothSide verCenter" :class="{ 'disabled-color': searchParams.position_name == '' ? true : false }">
<view class="row verCenter">
<text class="iconfont icon-juxing1"></text>
<input class="uni-input" placeholder="请扫描或输入容器" placeholder-style="color:#919399" v-model="searchParams.container_sn" @input="handleInput(3, searchParams.container_sn)" />
<input class="uni-input" placeholder="请扫描或输入容器" :disabled="searchParams.position_name == '' ? true : false" placeholder-style="color:#919399" v-model="searchParams.container_sn" @input="handleInput(3, searchParams.container_sn)" />
</view>
<text class="iconfont icon-a-juxing11" @click="clearInput(3)" v-if="input_flag_container_sn"></text>
</view>
......@@ -501,6 +501,11 @@ export default {
} else if (type == 3) {
this.input_flag_container_sn = true;
this.getData();
setTimeout(() => {
if (this.searchParams.container_sn != '' && this.list.length == 1) {
this.showDrawer(2, this.list[0]);
}
}, 1000);
}
} else {
if (type == 1) {
......@@ -518,4 +523,7 @@ export default {
<style scoped lang="scss">
@import '@/assets/css/picking/sort.scss';
.disabled-color {
background: #eaeaef !important;
}
</style>
......@@ -48,7 +48,7 @@
<view class="btn-box row">
<!-- 出库单状态为全部复核时,则显示【详情】按钮 -->
<template v-if="item.stock_out_status == 7">
<navigator class="btn2 row rowCenter verCenter" url="/pages/stockRecheck/record" hover-class="none">详情</navigator>
<navigator class="btn2 row rowCenter verCenter" :url="'/pages/stockRecheck/record?stock_out_sn=' + item.stock_out_sn" hover-class="none">详情</navigator>
</template>
<template v-else-if="item.stock_out_status == 5 || item.stock_out_status == 6">
<navigator :url="'/pages/stockRecheck/sort?stock_out_id=' + item.stock_out_id" class="btn1 row rowCenter verCenter" hover-class="none">选择</navigator>
......
......@@ -90,10 +90,14 @@ export default {
page: 1,
limit: 10000,
list: [],
stock_out_sn: '',
filter_list: [], //筛选已选中的列表
filter_id: [] //过滤处理的id
};
},
onLoad(options) {
this.stock_out_sn = options.stock_out_sn;
},
onShow() {
this.getData();
},
......@@ -138,7 +142,7 @@ export default {
* 获取列表数据
*/
getData() {
this.request(API.getAllCheckedItemList, 'POST', { page: this.page, limit: this.limit }, false).then(res => {
this.request(API.getAllCheckedItemList, 'POST', { page: this.page, limit: this.limit, stock_out_sn: this.stock_out_sn }, true).then(res => {
if (res.code === 0) {
this.list = res.data.list;
this.filter_list = createArray(this.list.length, false);
......
......@@ -240,10 +240,10 @@
</view>
</view>
<view class="bor"></view>
<view class="print row verCenter">
<!-- <view class="print row verCenter">
<text class="check-box-icon curr"></text>
<text class="tt">打印客户专属标签</text>
</view>
</view> -->
<view class="btn row verCenter bothSide">
<view class="btn0 row rowCenter verCenter" @click="closeDrawer(1)">取 消</view>
<view class="btn1 row rowCenter verCenter" style="width: 50%;" @click="markChecked(detail.stock_out_item_id, formParams.recheck_qty, searchParams.box_name)">复 核</view>
......@@ -337,11 +337,11 @@
</scroll-view>
</view>
<view class="btn row verCenter bothSide">
<view class="btn2 row rowCenter verCenter">
<!-- <view class="btn2 row rowCenter verCenter">
<text class="check-box-icon curr"></text>
<text class="text">打印客户专属标签</text>
</view>
<view class="btn1 row rowCenter verCenter" style="width: calc(100% - 248rpx);" @click="multiMarkChecked()">复 核</view>
</view> -->
<view class="btn1 row rowCenter verCenter" style="width: 100%;" @click="multiMarkChecked()">复 核</view>
</view>
</view>
</uni-drawer>
......@@ -372,10 +372,10 @@
</view>
</view>
</view>
<view class="print row verCenter">
<!-- <view class="print row verCenter">
<text class="check-box-icon curr"></text>
<text class="tt">打印客户专属标签</text>
</view>
</view> -->
<view class="btn row verCenter bothSide">
<view class="btn0 row rowCenter verCenter" @click="closeDrawer(0)">取 消</view>
<view class="btn1 row rowCenter verCenter" style="width: 50%;" @click="multiMarkChecked">一键复核</view>
......
......@@ -44,11 +44,11 @@
<view class="radio-wrap row verCenter">
<radio-group name="radio" @change="radioChange($event, 2)">
<label>
<radio value="" style="transform:scale(0.7)" checked="true" color="#1969f9" />
<radio value="" style="transform:scale(0.7)" color="#1969f9" />
<text>全部</text>
</label>
<label>
<radio value="0" style="transform:scale(0.7)" color="#1969f9" />
<radio value="0" style="transform:scale(0.7)" color="#1969f9" checked="true" />
<text>已理货</text>
</label>
<label>
......
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