<template>
|
<!--
|
作者:yj
|
-->
|
<div v-if="status != 2">
|
<el-dialog title="审核" :visible.sync="dialogVisible" @close="dialogFormVisible" :close-on-click-modal="false" :close-on-press-escape="false">
|
<el-form :model="form">
|
<el-form-item label="审核状态" :label-width="formLabelWidth">
|
<div>
|
<el-radio v-model="form.status" label="1">审核通过</el-radio>
|
<el-radio v-model="form.status" label="2">驳回</el-radio>
|
</div>
|
</el-form-item>
|
<div v-if="form.apply_status == 2">
|
<el-form-item label="驳回原因" :label-width="formLabelWidth"><el-input v-model="form.reject_reason" autocomplete="off"></el-input></el-form-item>
|
</div>
|
</el-form>
|
<div slot="footer" class="dialog-footer">
|
<el-button @click="dialogFormVisible">取 消</el-button>
|
<el-button type="primary" @click="editApplyStatus">确 定</el-button>
|
</div>
|
</el-dialog>
|
</div>
|
|
<div v-else>
|
<el-dialog title="驳回原因" :visible.sync="dialogVisible" @close="dialogFormVisible" :close-on-click-modal="false" :close-on-press-escape="false">
|
<p>{{ reject_reason }}</p>
|
<!-- <div slot="footer" class="dialog-footer">
|
<el-button @click="dialogFormVisible">取 消</el-button>
|
<el-button type="primary" @click="dialogFormVisible">确 定</el-button>
|
</div> -->
|
</el-dialog>
|
</div>
|
</template>
|
|
<script>
|
import PlusApi from '@/api/plus/release.js';
|
export default {
|
data() {
|
return {
|
status: '',
|
reject_reason: '',
|
/*左边长度*/
|
formLabelWidth: '120px',
|
/*是否显示*/
|
dialogVisible: false
|
};
|
},
|
props: ['open_edit', 'form'],
|
created() {
|
this.dialogVisible = this.open_edit;
|
this.status = this.form.status.value;
|
if (this.status == 30) {
|
this.reject_reason = this.form.reject_reason;
|
}
|
},
|
methods: {
|
|
/*修改*/
|
editApplyStatus() {
|
let self = this;
|
let params = this.form;
|
PlusApi.supplyProjectSubmit(params, true)
|
.then(data => {
|
self.$message({
|
message: '恭喜你,修改成功',
|
type: 'success'
|
});
|
self.dialogFormVisible(true);
|
})
|
.catch(error => {});
|
},
|
|
/*关闭弹窗*/
|
dialogFormVisible(e) {
|
if (e) {
|
this.$emit('closeDialog', {
|
type: 'success',
|
openDialog: false
|
});
|
} else {
|
this.$emit('closeDialog', {
|
type: 'error',
|
openDialog: false
|
});
|
}
|
}
|
}
|
};
|
</script>
|
|
<style></style>
|