|
@@ -4,8 +4,12 @@
|
|
|
<a-row :gutter="48" slot="extra">
|
|
|
<a-col :md="48" :sm="48">
|
|
|
<span class="table-page-search-submitButtons" style="float: right">
|
|
|
- <a-button v-if="$auth('repair-application-forms-approve') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" style="margin-left: 8px" type="primary" @click="handleApprove()">接受</a-button>
|
|
|
- <a-button v-if="$auth('repair-application-forms-reback') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" style="margin-left: 8px" type="danger" @click="handleReturn()">拒绝</a-button>
|
|
|
+ <a-popconfirm v-if="$auth('repair-application-forms-approve') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" title="是否要接受?" @confirm="handleApprove">
|
|
|
+ <a-button :loading="confirmLoading" style="margin-left: 8px" type="primary">接受</a-button>
|
|
|
+ </a-popconfirm>
|
|
|
+ <a-popconfirm v-if="$auth('repair-application-forms-reback') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" title="是否要拒绝?" @confirm="handleReturn">
|
|
|
+ <a-button style="margin-left: 8px" type="primary">拒绝</a-button>
|
|
|
+ </a-popconfirm>
|
|
|
<a-button style="margin-left: 8px" @click="handleCancel">返回</a-button>
|
|
|
</span>
|
|
|
</a-col>
|
|
@@ -497,9 +501,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleApprove () {
|
|
|
+ this.confirmLoading = true
|
|
|
approve(this.model).then(() => {
|
|
|
this.$message.info('操作成功')
|
|
|
- this.handleOk()
|
|
|
+ this.confirmLoading = false
|
|
|
+ this.handleCancel()
|
|
|
})
|
|
|
},
|
|
|
handleReturn () {
|