loading调整
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
"name" : "干巷仓库APP",
|
||||
"appid" : "__UNI__A67E78B",
|
||||
"description" : "",
|
||||
"versionName" : "2.2.1",
|
||||
"versionCode" : 221,
|
||||
"versionName" : "2.2.3",
|
||||
"versionCode" : 223,
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
|
||||
@@ -225,6 +225,7 @@ export default {
|
||||
createBy: 'admin',
|
||||
secondNum: this.secondNum || 0
|
||||
};
|
||||
uni.$u.throttle(()=>{
|
||||
GoodsActionApi.doConsolidationGoods(data).then((res) => {
|
||||
if (res.code === 200) {
|
||||
uni.showModal({
|
||||
@@ -245,6 +246,7 @@ export default {
|
||||
this.loading = false;
|
||||
}
|
||||
});
|
||||
},5000)
|
||||
},
|
||||
modalCancel() {
|
||||
this.modalShow = false;
|
||||
|
||||
@@ -291,7 +291,7 @@
|
||||
uni.$u.throttle(() => {
|
||||
WarehoseApi.handlerIntoProductWarehouse(data).then((res) => {
|
||||
if (res.code === 200) {
|
||||
if (!res.data) {
|
||||
if (res.data === 0 || !res.data) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '入库失败:' + res.msg,
|
||||
@@ -303,12 +303,14 @@
|
||||
}
|
||||
uni.showToast({
|
||||
icon: 'success',
|
||||
title: '入库成功!'
|
||||
title: '入库成功!' + res.msg
|
||||
});
|
||||
this.loading = false;
|
||||
this.oldMaterialList = JSON.parse(JSON.stringify(this.clearData
|
||||
this.oldMaterialList = JSON.parse(JSON.stringify(this
|
||||
.clearData
|
||||
.oldMaterialList));
|
||||
this.newMaterialList = JSON.parse(JSON.stringify(this.clearData
|
||||
this.newMaterialList = JSON.parse(JSON.stringify(this
|
||||
.clearData
|
||||
.newMaterialList));
|
||||
// this.clear();
|
||||
} else {
|
||||
@@ -321,6 +323,8 @@
|
||||
});
|
||||
}, 5000)
|
||||
|
||||
} else {
|
||||
this.loading = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -408,6 +408,7 @@
|
||||
}
|
||||
uni.$u.throttle(() => {
|
||||
WarehoseApi.doMaterialOut(data).then((res) => {
|
||||
|
||||
if (res.code !== 200) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
||||
@@ -200,6 +200,7 @@
|
||||
createBy: "admin",
|
||||
firstNum: this.firstNum || 0
|
||||
};
|
||||
uni.$u.throttle(()=>{
|
||||
GoodsActionApi.doUnpackingGoods(data).then((res) => {
|
||||
if (res.code === 200) {
|
||||
uni.showModal({
|
||||
@@ -220,6 +221,8 @@
|
||||
this.loading = false;
|
||||
}
|
||||
});
|
||||
},5000)
|
||||
|
||||
},
|
||||
modalCancel(){
|
||||
this.modalShow = false;
|
||||
|
||||
Reference in New Issue
Block a user