|
|
|
@ -90,7 +90,11 @@ |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template v-if="isAuth('106002:issued')"> |
|
|
|
<a type="text" size="small" v-if="scope.row.status==='草稿'" @click="comfirmApply(scope.row)">下达</a> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status==='草稿'" |
|
|
|
:disabled="!!issueLoadingSet[scope.row.applyNo]" |
|
|
|
@click="comfirmApply(scope.row)"> |
|
|
|
<i v-if="issueLoadingSet[scope.row.applyNo]" class="el-icon-loading"></i>下达 |
|
|
|
</el-link> |
|
|
|
</template> |
|
|
|
<template v-if="isAuth('106002:update')"> |
|
|
|
<a type="text" size="small" v-if="scope.row.status==='草稿'" @click="editModalU(scope.row)">修改</a> |
|
|
|
@ -2076,6 +2080,7 @@ export default { |
|
|
|
approvalList: [], |
|
|
|
rejectOpinion: '', |
|
|
|
submitLoading: false, |
|
|
|
issueLoadingSet: {}, |
|
|
|
submitModalFlag: false, |
|
|
|
processField: '', |
|
|
|
sp: this.$store.state.user.name, |
|
|
|
@ -2616,6 +2621,7 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.$set(this.issueLoadingSet, row.applyNo, true) |
|
|
|
let tempData = { |
|
|
|
site: row.site, |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
@ -2625,8 +2631,6 @@ export default { |
|
|
|
comfirmProjectToolApply(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.search() |
|
|
|
// row.statusCode = '10' |
|
|
|
// row.status = '下达' |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
@ -2639,6 +2643,8 @@ export default { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).finally(() => { |
|
|
|
this.$set(this.issueLoadingSet, row.applyNo, false) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|