入库-出库检查接口调整
This commit is contained in:
@@ -10,7 +10,7 @@ import * as WarehoseApi from '@/api/warehouse/warehose.js';
|
||||
export default {
|
||||
name: 'pda-scan-input',
|
||||
props: {
|
||||
hasFocus:{
|
||||
hasFocus: {
|
||||
default: true,
|
||||
type: Boolean
|
||||
},
|
||||
@@ -58,8 +58,8 @@ export default {
|
||||
emitInputChange(data, type) {
|
||||
this.$emit('getInfo', data, type);
|
||||
},
|
||||
handlerBlur(){
|
||||
if(this.hasFocus){
|
||||
handlerBlur() {
|
||||
if (this.hasFocus) {
|
||||
this.isFocus = false;
|
||||
setTimeout(() => {
|
||||
this.$nextTick(function () {
|
||||
@@ -126,6 +126,21 @@ export default {
|
||||
// type = 2 入库扫货物编码
|
||||
async handleScanGoodsCode(text) {
|
||||
let package_code = text;
|
||||
let resolutionData = {
|
||||
code: package_code
|
||||
};
|
||||
const emitRes = await WarehoseApi.resolutionPackage(resolutionData);
|
||||
if (emitRes.code !== 200 || emitRes.data === null) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '该箱号数据解析异常!',
|
||||
showCancel: false,
|
||||
confirmText: '确定'
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.emitInputChange(emitRes.data, 2);
|
||||
return;
|
||||
// 临时库处理
|
||||
// let _warehouseInfo = this.warehouseInfo;
|
||||
// if (_warehouseInfo != null && _warehouseInfo != undefined) {
|
||||
@@ -154,6 +169,7 @@ export default {
|
||||
};
|
||||
// 判断是否是箱号
|
||||
const checkRes = await WarehoseApi.isProductionPackage(locationCheckData);
|
||||
console.log(checkRes);
|
||||
if (checkRes.code !== 200) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
@@ -180,7 +196,6 @@ export default {
|
||||
});
|
||||
return;
|
||||
} else if (checkRes.data === 1) {
|
||||
|
||||
// 判断是否为满箱
|
||||
// const isFullRes = await WarehoseApi.isFullPackage(locationCheckData);
|
||||
// if (isFullRes.code !== 200 || !isFullRes.data) {
|
||||
@@ -192,9 +207,9 @@ export default {
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// let resolutionData = {
|
||||
// code: package_code
|
||||
// };
|
||||
let resolutionData = {
|
||||
code: package_code
|
||||
};
|
||||
const emitRes = await WarehoseApi.resolutionPackage(resolutionData);
|
||||
if (emitRes.code !== 200 || emitRes.data === null) {
|
||||
uni.showModal({
|
||||
|
||||
Reference in New Issue
Block a user