1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user