|
@@ -155,7 +155,7 @@
|
|
|
|
|
|
|
|
<template slot="footer">
|
|
<template slot="footer">
|
|
|
<el-button size="mini" @click="handleClose">取 消</el-button>
|
|
<el-button size="mini" @click="handleClose">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="save()">确 定</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="primary" :loading="loadingBtn" @click="save()">确 定</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<pickingList isType="pick" ref="pickingListRef" @allSelection="allSelection"></pickingList>
|
|
<pickingList isType="pick" ref="pickingListRef" @allSelection="allSelection"></pickingList>
|
|
@@ -192,7 +192,8 @@ export default {
|
|
|
|
|
|
|
|
typeName,
|
|
typeName,
|
|
|
|
|
|
|
|
- tableRules: {}
|
|
|
|
|
|
|
+ tableRules: {},
|
|
|
|
|
+ loadingBtn:false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -309,6 +310,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
handleClose() {
|
|
handleClose() {
|
|
|
|
|
+ this.loadingBtn=false
|
|
|
this.$emit('close', false);
|
|
this.$emit('close', false);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -395,13 +397,14 @@ export default {
|
|
|
...m
|
|
...m
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+ this.loadingBtn=true
|
|
|
if(this.clientEnvironmentId==21){
|
|
if(this.clientEnvironmentId==21){
|
|
|
let param={
|
|
let param={
|
|
|
workOrderId: this.workListIds[0],
|
|
workOrderId: this.workListIds[0],
|
|
|
pickingCode: this.pickCode
|
|
pickingCode: this.pickCode
|
|
|
}
|
|
}
|
|
|
znfindVoucherList(param).then((res) => {
|
|
znfindVoucherList(param).then((res) => {
|
|
|
|
|
+ this.loadingBtn=false
|
|
|
this.$message.success('领料成功');
|
|
this.$message.success('领料成功');
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -411,6 +414,7 @@ export default {
|
|
|
pickCode: this.pickCode
|
|
pickCode: this.pickCode
|
|
|
};
|
|
};
|
|
|
batchSave(param).then((res) => {
|
|
batchSave(param).then((res) => {
|
|
|
|
|
+ this.loadingBtn=false
|
|
|
this.$message.success('领料成功');
|
|
this.$message.success('领料成功');
|
|
|
this.$emit('close', true);
|
|
this.$emit('close', true);
|
|
|
});
|
|
});
|