|
|
|
@ -621,7 +621,7 @@ |
|
|
|
<el-button type="primary" @click="visible = false" class="bigButton">{{ '取消' }}</el-button> |
|
|
|
<template v-if="isAuth('106002:submit')"> |
|
|
|
<template v-if="superAdmin || (dataForm.sp && dataForm.sp.split(';').includes(sp))"> |
|
|
|
<el-button v-if="dataForm.status === '审批中'" type="primary" @click="agreeSubmit" class="bigButton">同意</el-button> |
|
|
|
<el-button v-if="dataForm.status === '审批中'" type="primary" :loading="submitLoading" :disabled="submitLoading" @click="agreeSubmit" class="bigButton">同意</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-if="isAuth('106002:rejected')"> |
|
|
|
@ -688,8 +688,8 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:30px;margin-top: 50px;text-align:center"> |
|
|
|
<el-button type="primary" @click="rejectSubmit">确定</el-button> |
|
|
|
<el-button type="primary" @click="submitModalFlag = false">取消</el-button> |
|
|
|
<el-button type="primary" :loading="submitLoading" :disabled="submitLoading" @click="rejectSubmit">确定</el-button> |
|
|
|
<el-button type="primary" :disabled="submitLoading" @click="submitModalFlag = false">取消</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
@ -2075,6 +2075,7 @@ export default { |
|
|
|
], |
|
|
|
approvalList: [], |
|
|
|
rejectOpinion: '', |
|
|
|
submitLoading: false, |
|
|
|
submitModalFlag: false, |
|
|
|
processField: '', |
|
|
|
sp: this.$store.state.user.name, |
|
|
|
@ -2895,6 +2896,7 @@ export default { |
|
|
|
this.dataForm.userName = this.$store.state.user.name |
|
|
|
this.dataForm.menuId = this.$route.meta.menuId |
|
|
|
this.dataForm.detailList = this.toolData |
|
|
|
this.submitLoading = true |
|
|
|
submitChange(this.dataForm).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.saveHeaderMessage2() |
|
|
|
@ -2921,6 +2923,8 @@ export default { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).finally(() => { |
|
|
|
this.submitLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|