Commit 54d35eda by LJM

add

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