|
|
@ -122,13 +122,21 @@ |
|
|
|
<el-table-column label="审核状态" align="center" prop="status" :formatter="statusFormat" min-width="120"/> |
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
<!-- <el-button |
|
|
|
v-if="scope.row.status==0" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-edit" |
|
|
|
@click="handleUpdate(scope.row)" |
|
|
|
v-hasPermi="['build:buildProgressWarning:edit']" |
|
|
|
>修改</el-button> --> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.status==0" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-edit" |
|
|
|
@click="handleExmanie(scope.row)" |
|
|
|
v-hasPermi="['build:buildProgressWarning:edit']" |
|
|
|
>审核</el-button> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.status==1" |
|
|
@ -180,35 +188,38 @@ |
|
|
|
<el-form-item label="进度要求" prop="scheduleReq"> |
|
|
|
<el-input type="textarea" :rows="5" v-model="form.scheduleReq" placeholder="请输入进度要求" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核人" prop="applyPerson"> |
|
|
|
<el-input v-model="form.applyPerson" placeholder="请输入审核人" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核日期" prop="applyDate"> |
|
|
|
<el-date-picker clearable size="small" style="width: 100%" |
|
|
|
v-model="form.applyDate" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择审核日期"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核意见" prop="applyOpinion"> |
|
|
|
<el-input type="textarea" :rows="5" v-model="form.applyOpinion" placeholder="请输入审核意见" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item v-if="form.id" label="审核状态" prop="status"> |
|
|
|
<el-select |
|
|
|
v-model="form.status" |
|
|
|
placeholder="请选择审核状态" |
|
|
|
clearable |
|
|
|
style="width: 100%;" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in examineStatusOptions" |
|
|
|
:key="dict.dictValue" |
|
|
|
:label="dict.dictLabel" |
|
|
|
:value="dict.dictValue" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<template v-if="operateProcess==='exmaine' || operateProcess==='view'"> |
|
|
|
<el-form-item label="审核人" prop="applyPerson"> |
|
|
|
<el-input v-model="form.applyPerson" placeholder="请输入审核人" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核日期" prop="applyDate"> |
|
|
|
<el-date-picker clearable size="small" style="width: 100%" |
|
|
|
v-model="form.applyDate" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择审核日期"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核意见" prop="applyOpinion"> |
|
|
|
<el-input type="textarea" :rows="5" v-model="form.applyOpinion" placeholder="请输入审核意见" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item v-if="form.id" label="审核状态" prop="status"> |
|
|
|
<el-select |
|
|
|
v-model="form.status" |
|
|
|
placeholder="请选择审核状态" |
|
|
|
clearable |
|
|
|
style="width: 100%;" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in examineStatusOptions" |
|
|
|
:key="dict.dictValue" |
|
|
|
:label="dict.dictLabel" |
|
|
|
:value="dict.dictValue" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
|
|
|
|
<el-form-item label="附件" prop="attachment"> |
|
|
|
<el-upload |
|
|
|
class="upload-demo" |
|
|
@ -235,7 +246,7 @@ |
|
|
|
</el-upload> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div v-if="operateProcess!='view'" slot="footer" class="dialog-footer"> |
|
|
|
<div v-if="operateProcess!='view'&&form.status!='1'" slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
|
<el-button @click="cancel">取 消</el-button> |
|
|
|
</div> |
|
|
@ -510,6 +521,17 @@ export default { |
|
|
|
this.title = "修改建设进度预警"; |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** 审核按钮操作 */ |
|
|
|
handleExmanie(row) { |
|
|
|
this.operateProcess = 'exmaine' |
|
|
|
this.reset(); |
|
|
|
const id = row.id || this.ids |
|
|
|
getBuildProgressWarning(id).then(response => { |
|
|
|
this.form = response.data; |
|
|
|
this.open = true; |
|
|
|
this.title = "审核建设进度信息"; |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleView(row) { |
|
|
|
this.operateProcess = 'view' |
|
|
|
this.reset() |
|
|
@ -517,7 +539,7 @@ export default { |
|
|
|
getBuildProgressWarning(id).then(response => { |
|
|
|
this.form = response.data |
|
|
|
this.open = true |
|
|
|
this.title = "修改建设进度预警" |
|
|
|
this.title = "查看建设进度信息" |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** 提交按钮 */ |
|
|
|