收货srm提交按钮增加状态

master
guoshuang 7 months ago
parent bfdf939ccf
commit cc647c711d

@ -137,7 +137,7 @@
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确认收货</u-button>
<u-button :disabled="isdisabled" @click="onSubmit" type="primary">确认收货</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
@ -236,6 +236,7 @@ export default class receiveSRM extends BasePage {
openeditornumber = false;
temNumber = '';
editoritem: any = {};
isdisabled = false;
//
async onFormDoubleClick(item) {
@ -376,8 +377,10 @@ export default class receiveSRM extends BasePage {
userDefined5: this.userDefined5,
factoryCode: session.FactoryCode,
};
this.isdisabled = true;
//console.log('----',paramsList);
await this.model.OnSubmit(paramsList);
this.isdisabled = false;
if (this.model.submitcode == '200') {
(this.$refs.uToast as any).show({
title: model.submitmsg,

Loading…
Cancel
Save