This commit is contained in:
2024-04-24 14:56:11 +08:00
parent 07bf68feaa
commit 303445c19b
6 changed files with 31 additions and 15 deletions

View File

@@ -28,8 +28,8 @@
</view>
<!-- 底部按钮 -->
<view class="button-box">
<u-button style="width: 40%" type="error" @click="clear">清空</u-button>
<u-button style="width: 40%" type="primary" @click="handlerSubmit">拼箱</u-button>
<u-button style="width: 40%" type="error" @click="clear" :disabled="loading" :loading="loading">清空</u-button>
<u-button style="width: 40%" type="primary" @click="handlerSubmit" :disabled="loading" :loading="loading">拼箱</u-button>
</view>
<!-- 数量选择 -->
<u-modal :show="modalShow" showCancelButton title="请输入次箱拼入数量" @confirm="modalConfirm" @cancel="modalCancel">
@@ -216,6 +216,10 @@ export default {
}
},
modalConfirm() {
this.loading = true;
setTimeout(()=>{
this.loading = false;
},30000)
let data = {
packageList: this.newMaterialList,
createBy: 'admin',
@@ -230,6 +234,7 @@ export default {
confirmText: '确认'
});
this.modalShow = false;
this.loading = false;
this.clear();
} else {
uni.showToast({
@@ -237,6 +242,7 @@ export default {
title: '拼箱失败!'
});
this.modalShow = false;
this.loading = false;
}
});
},