Commit 54d35eda by LJM

add

parent 56c7996c
...@@ -30,9 +30,11 @@ ...@@ -30,9 +30,11 @@
color: #197adb; color: #197adb;
} }
.icon-jinggao2 { .icon-jinggao2 {
position: relative;
font-size: 30rpx; font-size: 30rpx;
color: #c6c7cc; color: #c6c7cc;
margin-right: 30rpx; margin-right: 30rpx;
z-index: 22;
} }
} }
.select-box { .select-box {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</view> </view>
<view class="action-bar row verCenter"> <view class="action-bar row verCenter">
<text class="iconfont icon-jinggao2" @click="clearInput(1)" v-if="box_sn"></text> <text class="iconfont icon-jinggao2" @click="clearInput(1)" v-if="box_sn"></text>
<template v-if="wsty_id"> <template v-if="box_sn && wsty_id">
<view class="btn1 row rowCenter verCenter" @click="print()" style="margin-right: 8rpx;">打印箱号</view> <view class="btn1 row rowCenter verCenter" @click="print()" style="margin-right: 8rpx;">打印箱号</view>
<view class="btn row rowCenter verCenter" @click="getBoxSn()">取箱号</view> <view class="btn row rowCenter verCenter" @click="getBoxSn()">取箱号</view>
</template> </template>
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
fixBoxStyle: '', fixBoxStyle: '',
noexebshowFalg: true, //控制是否会触发生命周期 noexebshowFalg: true, //控制是否会触发生命周期
index: 0, index: 0,
item: ['其他', 'DigiKey', 'Rochester', 'TME', 'Chip1stop', 'Mouser'], item: ['型号', 'DigiKey', 'Rochester', 'TME', 'Chip1stop', 'Mouser'],
box_sn: '', //箱号信息 box_sn: '', //箱号信息
wsty_id: '', //箱子id wsty_id: '', //箱子id
erp_order_sn: '', //入仓号 erp_order_sn: '', //入仓号
...@@ -279,31 +279,6 @@ ...@@ -279,31 +279,6 @@
this.$refs.inputDialog.close(); this.$refs.inputDialog.close();
}, },
/** /**
* 清空数据
*/
clearInput(type) {
if (type == 1) {
this.box_sn = '';
this.is_focus_1 = false;
setTimeout(() => {
this.is_focus_1 = true;
}, 200);
} else if (type == 2) {
this.erp_order_sn = '';
this.is_focus_2 = false;
setTimeout(() => {
this.is_focus_2 = true;
}, 200);
} else if (type == 3) {
this.goods_type = '';
this.keyword = '';
this.is_focus_3 = false;
setTimeout(() => {
this.is_focus_3 = true;
}, 200);
}
},
/**
* 找出false对应的下标 * 找出false对应的下标
* @param {Object} arr * @param {Object} arr
* @param {Object} target * @param {Object} target
...@@ -351,6 +326,10 @@ ...@@ -351,6 +326,10 @@
} else if (type == 2) { } else if (type == 2) {
if (value) { if (value) {
this.identifyQrCodeNumAndSn(); this.identifyQrCodeNumAndSn();
} else {
this.goods_type = '';
this.keyword = '';
this.getTallyData();
} }
} else if (type == 3) { } else if (type == 3) {
this.origin_list = []; //数组清空 this.origin_list = []; //数组清空
...@@ -567,6 +546,7 @@ ...@@ -567,6 +546,7 @@
this.step = 2; //标记点击了哪个按钮 this.step = 2; //标记点击了哪个按钮
if (this.index == 0) { if (this.index == 0) {
//区分其他 //区分其他
this.keyword = '';
this.getTallyData(); this.getTallyData();
} else { } else {
let codeTypeByIndex = { let codeTypeByIndex = {
...@@ -699,6 +679,11 @@ ...@@ -699,6 +679,11 @@
this.image_list[index] = item.goods_check_pic.split(','); this.image_list[index] = item.goods_check_pic.split(',');
} }
}); });
} else {
uni.showToast({
title: '查询不到该箱号信息',
icon: 'none'
});
} }
} else { } else {
uni.showToast({ uni.showToast({
...@@ -920,6 +905,32 @@ ...@@ -920,6 +905,32 @@
}); });
}, },
/** /**
* 清空数据
*/
clearInput(type) {
if (type == 1) {
this.box_sn = '';
this.is_focus_1 = false;
setTimeout(() => {
this.is_focus_1 = true;
}, 200);
} else if (type == 2) {
this.erp_order_sn = '';
this.is_focus_2 = false;
setTimeout(() => {
this.is_focus_2 = true;
}, 200);
} else if (type == 3) {
this.goods_type = '';
this.keyword = '';
this.is_focus_3 = false;
this.getTallyData();
setTimeout(() => {
this.is_focus_3 = true;
}, 200);
}
},
/**
* 再次获取焦点 * 再次获取焦点
*/ */
clearInputAndFocus() { clearInputAndFocus() {
......
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