仓库-出库功能修改
This commit is contained in:
@@ -60,8 +60,10 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 底部按钮 -->
|
<!-- 底部按钮 -->
|
||||||
<view class="button-box">
|
<view class="button-box">
|
||||||
<u-button style="width: 40%" type="primary" @click="handlerDoOut">货物出库</u-button>
|
<u-button style="width: 40%" type="primary" @click="handlerDoOut" :disabled="loading"
|
||||||
<u-button style="width: 40%" type="success" @click="handlerSubmit">出库单完成</u-button>
|
:loading="loading">货物出库</u-button>
|
||||||
|
<u-button style="width: 40%" type="success" @click="handlerSubmit" :disabled="loading"
|
||||||
|
:loading="loading">出库单完成</u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -183,7 +185,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.subsectionCurrent === 1 && this.newMaterialList.length > 0) {
|
if (this.subsectionCurrent === 1 && this.newMaterialList.length > 0) {
|
||||||
if(this.newMaterialList.length > 50){
|
if (this.newMaterialList.length > 50) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '批量出库数量已达到50箱,请先出库此50箱!',
|
content: '批量出库数量已达到50箱,请先出库此50箱!',
|
||||||
@@ -251,6 +253,10 @@
|
|||||||
},
|
},
|
||||||
// 货物出库
|
// 货物出库
|
||||||
handlerDoOut() {
|
handlerDoOut() {
|
||||||
|
this.loading = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.loading = false;
|
||||||
|
}, 30000)
|
||||||
if (this.searchType === 3) {
|
if (this.searchType === 3) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -258,6 +264,7 @@
|
|||||||
showCancel: false,
|
showCancel: false,
|
||||||
confirmText: '确定'
|
confirmText: '确定'
|
||||||
});
|
});
|
||||||
|
this.loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const length = this.newMaterialList.length;
|
const length = this.newMaterialList.length;
|
||||||
@@ -268,6 +275,7 @@
|
|||||||
showCancel: false,
|
showCancel: false,
|
||||||
confirmText: '确定'
|
confirmText: '确定'
|
||||||
});
|
});
|
||||||
|
this.loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
@@ -296,6 +304,7 @@
|
|||||||
showCancel: false,
|
showCancel: false,
|
||||||
confirmText: '确认'
|
confirmText: '确认'
|
||||||
});
|
});
|
||||||
|
this.loading = false;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
newPatchCodeList.push(item.patchCode)
|
newPatchCodeList.push(item.patchCode)
|
||||||
@@ -311,6 +320,8 @@
|
|||||||
showCancel: false,
|
showCancel: false,
|
||||||
confirmText: '确认'
|
confirmText: '确认'
|
||||||
});
|
});
|
||||||
|
this.loading = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
WarehoseApi.doMaterialOut(data).then((res) => {
|
WarehoseApi.doMaterialOut(data).then((res) => {
|
||||||
if (res.code !== 200) {
|
if (res.code !== 200) {
|
||||||
@@ -320,6 +331,7 @@
|
|||||||
showCancel: false,
|
showCancel: false,
|
||||||
confirmText: '确认'
|
confirmText: '确认'
|
||||||
});
|
});
|
||||||
|
this.loading = false;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (res.data.item1 == 100) {
|
if (res.data.item1 == 100) {
|
||||||
@@ -330,6 +342,7 @@
|
|||||||
confirmText: '确认'
|
confirmText: '确认'
|
||||||
});
|
});
|
||||||
this.newMaterialList = [];
|
this.newMaterialList = [];
|
||||||
|
this.loading = false;
|
||||||
} else if (res.data.item2 == 200) {
|
} else if (res.data.item2 == 200) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -338,6 +351,7 @@
|
|||||||
confirmText: '确认'
|
confirmText: '确认'
|
||||||
});
|
});
|
||||||
this.newMaterialList = [];
|
this.newMaterialList = [];
|
||||||
|
this.loading = false;
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -346,6 +360,7 @@
|
|||||||
confirmText: '确认'
|
confirmText: '确认'
|
||||||
});
|
});
|
||||||
this.newMaterialList = [];
|
this.newMaterialList = [];
|
||||||
|
this.loading = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user