Commit 71aae4ff by LJM

css

parent 7104bc8d
...@@ -49,8 +49,10 @@ ...@@ -49,8 +49,10 @@
color: #484b59; color: #484b59;
} }
.icon-a-juxing11 { .icon-a-juxing11 {
position: relative;
font-size: 30rpx; font-size: 30rpx;
color: #c6c7cc; color: #c6c7cc;
z-index: 99;
} }
.icon-juxing3 { .icon-juxing3 {
font-size: 30rpx; font-size: 30rpx;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<view class="search-bar row bothSide verCenter"> <view class="search-bar row bothSide verCenter">
<view class="row verCenter"> <view class="row verCenter">
<text class="iconfont icon-juxing1"></text> <text class="iconfont icon-juxing1"></text>
<input type="number" class="uni-input" placeholder="请扫描或输入箱号" placeholder-style="color:#919399" v-model="searchParams.box_name" @input="handleInput(1, searchParams.box_name)" /> <input type="number" class="uni-input" placeholder="请扫描或输入箱号" style="width: 150rpx;" placeholder-style="color:#919399" v-model="searchParams.box_name" @input="handleInput(1, searchParams.box_name)" />
</view> </view>
<view class="row verCenter"> <view class="row verCenter">
<text class="iconfont icon-a-juxing11" style="margin-right: 26rpx;" @click="clearInput(1)" v-if="input_flag_box_name"></text> <text class="iconfont icon-a-juxing11" style="margin-right: 26rpx;" @click="clearInput(1)" v-if="input_flag_box_name"></text>
...@@ -525,6 +525,31 @@ export default { ...@@ -525,6 +525,31 @@ export default {
this.getData(); this.getData();
}, },
/** /**
* 获取列表数据
*/
getData() {
var URL = '';
if (this.curr == 0) {
URL = API.getRecheckTaskItems;
} else if (this.curr == 1) {
URL = API.getContainerTaskList;
}
uni.setNavigationBarTitle({
title: this.stock_out_sn + '复核'
});
this.request(URL, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => {
if (res.code === 0) {
this.list = res.data.list;
this.filter_list = createArray(this.list.length, false);
} else {
uni.showToast({
title: res.msg,
icon: 'error'
});
}
});
},
/**
*按货品复核-单个复核 *按货品复核-单个复核
*/ */
markChecked(stock_out_item_id, recheck_qty, box_name) { markChecked(stock_out_item_id, recheck_qty, box_name) {
...@@ -544,6 +569,7 @@ export default { ...@@ -544,6 +569,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.getData(); this.getData();
this.closeDrawer(1); this.closeDrawer(1);
this.filter_id = []; //清空
}, 2000); }, 2000);
} else { } else {
uni.showModal({ uni.showModal({
...@@ -558,15 +584,17 @@ export default { ...@@ -558,15 +584,17 @@ export default {
* 按容器复核-一键复核 * 按容器复核-一键复核
*/ */
multiMarkChecked() { multiMarkChecked() {
this.request(API.multiMarkChecked, 'POST', { stock_out_item_ids: this.stock_out_item_ids.join(',') }, true).then(res => { this.request(API.multiMarkChecked, 'POST', { stock_out_item_ids: this.stock_out_item_ids.join(','), box_name: this.box_name }, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
uni.showToast({ uni.showToast({
title: '复核成功', title: '一键复核成功',
icon: 'success' icon: 'success'
}); });
setTimeout(() => { setTimeout(() => {
this.getData(); this.getData();
this.closeDrawer(2); this.closeDrawer(2);
this.closeDrawer(0);
this.filter_id = []; //清空
}, 2000); }, 2000);
} else { } else {
uni.showModal({ uni.showModal({
...@@ -579,10 +607,12 @@ export default { ...@@ -579,10 +607,12 @@ export default {
}, },
showDrawer(type, data) { showDrawer(type, data) {
if (type == 1) { if (type == 1) {
//按货品复核
this.$refs.showRight.open(); this.$refs.showRight.open();
this.detail = data; this.detail = data;
this.formParams.recheck_qty = data.no_recheck_qty; this.formParams.recheck_qty = data.no_recheck_qty;
} else if (type == 2) { } else if (type == 2) {
//按容器复核
this.$refs.showRightPack.open(); this.$refs.showRightPack.open();
this.detailContainer = data; this.detailContainer = data;
this.stock_out_item_ids = data.list.map(function(item) { this.stock_out_item_ids = data.list.map(function(item) {
...@@ -597,46 +627,21 @@ export default { ...@@ -597,46 +627,21 @@ export default {
}); });
return false; return false;
} }
this.detail = data; this.stock_out_item_ids = this.filter_id;
this.stock_out_item_ids = data.list.map(function(item) {
return item.stock_out_item_id;
});
this.$refs.showRightAll.open(); this.$refs.showRightAll.open();
} }
}, },
closeDrawer(type) { closeDrawer(type) {
if (type == 1) { if (type == 1) {
//按货品复核
this.$refs.showRight.close(); this.$refs.showRight.close();
} else if (type == 2) { } else if (type == 2) {
//按容器复核
this.$refs.showRightPack.close(); this.$refs.showRightPack.close();
} else if (type == 0) { } else if (type == 0) {
//一键复核
this.$refs.showRightAll.close(); this.$refs.showRightAll.close();
} }
},
/**
* 获取列表数据
*/
getData() {
var URL = '';
if (this.curr == 0) {
URL = API.getRecheckTaskItems;
} else if (this.curr == 1) {
URL = API.getContainerTaskList;
}
uni.setNavigationBarTitle({
title: this.stock_out_sn + '复核'
});
this.request(URL, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => {
if (res.code === 0) {
this.list = res.data.list;
this.filter_list = createArray(this.list.length, false);
} else {
uni.showToast({
title: res.msg,
icon: 'error'
});
}
});
} }
} }
}; };
......
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