添加入库出库接口等待
This commit is contained in:
@@ -142,7 +142,16 @@
|
||||
this.searchType = 2;
|
||||
this.warehouseInfo = data?.warehoseInfo;
|
||||
this.newMaterialList = [];
|
||||
this.loading = false;
|
||||
} else if (type === 2) {
|
||||
if(this.loading){
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '请等待加载完成!',
|
||||
showCancel: false,
|
||||
confirmText: '确定'
|
||||
});
|
||||
}
|
||||
// 此时扫描的是箱号
|
||||
// 当前录入的箱号是否在同一批次录入过
|
||||
// 曾经是否扫过
|
||||
@@ -155,6 +164,7 @@
|
||||
showCancel: false,
|
||||
confirmText: '确定'
|
||||
});
|
||||
this.loading = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -173,10 +183,14 @@
|
||||
//严格模式
|
||||
isStrict: this.isStrict
|
||||
};
|
||||
this.loading = true;
|
||||
setTimeout(()=>{
|
||||
this.loading = false;
|
||||
},10000)
|
||||
WarehoseApi.checkWarehousing(checkData).then((res) => {
|
||||
if (res.code === 200 && res.data) {
|
||||
console.log(data);
|
||||
this.newMaterialList.push(data);
|
||||
this.loading = false;
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
@@ -184,6 +198,7 @@
|
||||
showCancel: false,
|
||||
confirmText: '确定'
|
||||
});
|
||||
this.loading = false;
|
||||
}
|
||||
});
|
||||
// const checkData = {
|
||||
|
||||
Reference in New Issue
Block a user