添加入库出库接口等待
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
<u-button type="primary" size="mini" @click="showChouseMaterial = true">选择物料号</u-button>
|
||||
</template>
|
||||
</u-input>
|
||||
<u-popup :customStyle="{padding:'20px'}" :show="showChouseMaterial" @close="chouseMaterialClose" mode="center" closeable>
|
||||
<u-popup :customStyle="{padding:'20px'}" :show="showChouseMaterial" @close="chouseMaterialClose"
|
||||
mode="center" closeable>
|
||||
<view>
|
||||
<u-list width="300px" height="240px">
|
||||
<u-list-item v-for="(item, index) in columns[0]" :key="index">
|
||||
@@ -243,6 +244,14 @@
|
||||
}
|
||||
|
||||
} else if (type === 2) {
|
||||
if (this.loading) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '请等待加载完成!',
|
||||
showCancel: false,
|
||||
confirmText: '确定'
|
||||
});
|
||||
}
|
||||
if (this.subsectionCurrent === 0 && this.newMaterialList.length > 0) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
@@ -279,10 +288,15 @@
|
||||
shipment_num: this.outInfo.shipmentNum,
|
||||
partnumber: this.material_id
|
||||
};
|
||||
this.loading = true;
|
||||
setTimeout(() => {
|
||||
this.loading = false;
|
||||
}, 10000)
|
||||
//检查是否可以出货
|
||||
WarehoseApi.checkProductionOut(checkData).then((res) => {
|
||||
if (res.code === 200 && res.data) {
|
||||
this.newMaterialList.push(data);
|
||||
this.loading = false;
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
@@ -290,6 +304,7 @@
|
||||
showCancel: false,
|
||||
confirmText: '确定'
|
||||
});
|
||||
this.loading = false;
|
||||
}
|
||||
});
|
||||
// 此时扫描的是箱号
|
||||
@@ -432,7 +447,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
this.loading = false;
|
||||
}
|
||||
}
|
||||
@@ -470,7 +485,7 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
this.loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user