Commit 87f0980d by LJM

bug

parent 003d91be
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
stock_in_with_stock_in_items_inhouse: '', //入仓单号 stock_in_with_stock_in_items_inhouse: '', //入仓单号
tracking_no: '' //fedex tracking_no: '' //fedex
}, },
maxInputLength: 7, maxInputLength: 8,
formParams: { formParams: {
warehouse_id: '', warehouse_id: '',
logistics_company: '', logistics_company: '',
...@@ -325,11 +325,10 @@ export default { ...@@ -325,11 +325,10 @@ export default {
//入仓号 //入仓号
var str = val; var str = val;
if (str.startsWith('F')) { if (str.startsWith('F')) {
this.maxInputLength = 8; this.searchParams.stock_in_with_stock_in_items_inhouse = val;
} else { } else {
this.maxInputLength = 7; this.searchParams.stock_in_with_stock_in_items_inhouse = str.slice(0, -1);
} }
this.searchParams.stock_in_with_stock_in_items_inhouse = val;
} else if (type == 3) { } else if (type == 3) {
var last12 = val.slice(22); // 截取后12位 var last12 = val.slice(22); // 截取后12位
this.searchParams.tracking_no = last12; this.searchParams.tracking_no = last12;
......
...@@ -16,22 +16,22 @@ ...@@ -16,22 +16,22 @@
<input class="uni-input" placeholder="请扫描或输入号码" placeholder-style="color:#919399" focus v-model="searchParams.mobile_wait_tally_all_search" @input="handleInput(1, $event)" /> <input class="uni-input" placeholder="请扫描或输入号码" placeholder-style="color:#919399" focus v-model="searchParams.mobile_wait_tally_all_search" @input="handleInput(1, $event)" />
</template> </template>
<template v-else-if="index == 1"> <template v-else-if="index == 1">
<input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" focus v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" maxlength="7" /> <input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" focus v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" maxlength="8" />
</template> </template>
<template v-else-if="index == 2"> <template v-else-if="index == 2">
<input class="uni-input" placeholder="请输入FedEx" placeholder-style="color:#919399" focus v-model="searchParams.tracking_no" @input="handleInput(0, $event)" style="width: 400rpx;" /> <input class="uni-input" placeholder="请输入FedEx" placeholder-style="color:#919399" focus v-model="searchParams.tracking_no" @input="handleInput(0, $event)" style="width: 400rpx;" />
</template> </template>
<template v-else-if="index == 3"> <template v-else-if="index == 3">
<input class="uni-input" placeholder="请输入DigKey" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInput(9, $event)" style="width: 400rpx;" /> <input class="uni-input" placeholder="请输入DigKey" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
</template> </template>
<template v-else-if="index == 4"> <template v-else-if="index == 4">
<input class="uni-input" placeholder="请输入Rochester" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInput(9, $event)" style="width: 400rpx;" /> <input class="uni-input" placeholder="请输入Rochester" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
</template> </template>
<template v-else-if="index == 5"> <template v-else-if="index == 5">
<input class="uni-input" placeholder="请输入TME" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInput(9, $event)" style="width: 400rpx;" /> <input class="uni-input" placeholder="请输入TME" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
</template> </template>
<template v-else-if="index == 6"> <template v-else-if="index == 6">
<input class="uni-input" placeholder="请输入Chip1stop" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInput(9, $event)" style="width: 400rpx;" /> <input class="uni-input" placeholder="请输入Chip1stop" placeholder-style="color:#919399" focus v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
</template> </template>
</view> </view>
<text class="iconfont icon-a-juxing11" @click="clearInput(1)" v-if="input_flag"></text> <text class="iconfont icon-a-juxing11" @click="clearInput(1)" v-if="input_flag"></text>
...@@ -193,6 +193,7 @@ import debounce from 'lodash/debounce'; ...@@ -193,6 +193,7 @@ import debounce from 'lodash/debounce';
export default { export default {
data() { data() {
return { return {
timer: null, // 用于存储计时器
is_submit: true, is_submit: true,
noexebshowFalg: true, //控制是否会触发生命周期 noexebshowFalg: true, //控制是否会触发生命周期
print_flag: true, //是否打印 print_flag: true, //是否打印
...@@ -386,7 +387,14 @@ export default { ...@@ -386,7 +387,14 @@ export default {
this.searchParams.tracking_no = ''; this.searchParams.tracking_no = '';
this.searchParams.code_type = ''; this.searchParams.code_type = '';
//入仓号
var str = val;
if (str.startsWith('F')) {
this.searchParams.stock_in_with_stock_in_items_inhouse = val; this.searchParams.stock_in_with_stock_in_items_inhouse = val;
} else {
this.searchParams.stock_in_with_stock_in_items_inhouse = str.slice(0, -1);
}
this.input_flag = true; this.input_flag = true;
this.getData(); this.getData();
} else if (type == 0) { } else if (type == 0) {
...@@ -405,7 +413,20 @@ export default { ...@@ -405,7 +413,20 @@ export default {
this.searchParams.container_name = val; this.searchParams.container_name = val;
this.input_contaion = true; this.input_contaion = true;
this.getTallyContainer(); this.getTallyContainer();
} else if (type == 9) { }
} else {
if (type == 1 || type == 2) {
this.resetChange();
this.input_flag = false;
this.getData();
} else if (type == 3) {
this.input_contaion = false;
}
}
}, 800),
handleInputChange: debounce(function(event) {
var val = event.target.value;
if (val) {
this.resetChange(); this.resetChange();
this.searchParams.mobile_wait_tally_all_search = ''; this.searchParams.mobile_wait_tally_all_search = '';
this.searchParams.stock_in_with_stock_in_items_inhouse = ''; this.searchParams.stock_in_with_stock_in_items_inhouse = '';
...@@ -425,17 +446,10 @@ export default { ...@@ -425,17 +446,10 @@ export default {
} }
this.input_flag = true; this.input_flag = true;
this.identifyQrCodeNumAndSn(val, code_type); //识别二维码的数量和型号 this.identifyQrCodeNumAndSn(val, code_type); //识别二维码的数量和型号
}
} else { } else {
if (type == 1 || type == 2) {
this.resetChange();
this.input_flag = false; this.input_flag = false;
this.getData();
} else if (type == 3) {
this.input_contaion = false;
}
} }
}, 800), }, 2000),
bindPickerChange: function(e) { bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value); console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value; this.index = e.detail.value;
...@@ -444,7 +458,8 @@ export default { ...@@ -444,7 +458,8 @@ export default {
* 识别二维码的数量和型号 * 识别二维码的数量和型号
*/ */
identifyQrCodeNumAndSn(code_str, code_type) { identifyQrCodeNumAndSn(code_str, code_type) {
this.request(API.identifyQrCodeNumAndSn, 'POST', { code_str: code_str, code_type: code_type }, false).then(res => { console.log(code_str);
this.request(API.identifyQrCodeNumAndSn, 'POST', { code_str: code_str, code_type: code_type }, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.searchParams.goods_name = res.data.sn; this.searchParams.goods_name = res.data.sn;
this.getData(); this.getData();
......
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统 // const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统 // const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统 // const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统 // const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统 const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统 const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统 const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统 const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = { const API = {
......
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