1
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
<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">
|
||||
@@ -191,6 +191,10 @@
|
||||
}
|
||||
},
|
||||
modalConfirm() {
|
||||
this.loading = true;
|
||||
setTimeout(()=>{
|
||||
this.loading = false;
|
||||
},30000)
|
||||
let data = {
|
||||
package: this.newMaterialList[0],
|
||||
createBy: "admin",
|
||||
@@ -205,12 +209,15 @@
|
||||
confirmText: '确认'
|
||||
});
|
||||
this.modalShow = false;
|
||||
this.loading = false;
|
||||
this.clear();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '拆箱失败!'
|
||||
});
|
||||
this.modalShow = false;
|
||||
this.loading = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user