|
@@ -206,7 +206,7 @@
|
|
|
<a-popconfirm title="确定放弃编辑?" @confirm="handleCancel" okText="确定" cancelText="取消">
|
|
|
<a-button :style="{ marginRight: '8px' }">取消</a-button>
|
|
|
</a-popconfirm>
|
|
|
- <a-button type="primary" @click="editSave">
|
|
|
+ <a-button type="primary" @click="editSave" :disabled="confirmLoading">
|
|
|
保存
|
|
|
</a-button>
|
|
|
</div>
|
|
@@ -638,13 +638,18 @@ export default {
|
|
|
|
|
|
await this.JudgeVluabled()
|
|
|
if(this.judge == 0){
|
|
|
- editById(this.editShipDet).then(res => {
|
|
|
+ this.confirmLoading = true
|
|
|
+ editById(this.editShipDet).then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('编辑成功');
|
|
|
this.addShipDet = {};
|
|
|
this.addShipDet.syShippingDetailsItemList = [];
|
|
|
+ this.confirmLoading = false
|
|
|
this.close();
|
|
|
// this.fatherList(); // 调用父组件的查询方法
|
|
|
+ }else{
|
|
|
+ this.$message.error('res.message')
|
|
|
+ this.confirmLoading = false
|
|
|
}
|
|
|
})
|
|
|
}
|