检查报告管理自查

pg_adapter
dshclm 8 months ago
parent f4579ac6ee
commit 9beac3699b

@ -38,18 +38,30 @@
disabled>
</el-date-picker>
</el-form-item>
<el-form-item label="检查类型:" prop="chackType">
<el-radio-group v-model="postForm.checkType">
<el-radio
v-for="item in checkTypeList"
:key="item.dictValue"
:label="item.dictValue"
disabled
>
{{item.dictLabel}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-card>
<div class="filter-container" style="margin-top: 25px;height: 390px">
<div class="filter-container" style="margin-top: 25px;height: 300px">
<!-- <el-button class="filter-item" type="primary" icon="el-icon-plus" size="small" plain @click="handleAdd">-->
<!-- 添加-->
<!-- </el-button>-->
<el-table
:data="postForm.checkTypeDTOS"
:border="true"
style="width: 100%;margin-top: 25px;height: 90%;overflow: auto"
style="width: 100%;margin-top: 25px;height: 100%;overflow: auto"
>
<el-table-column
label="报告类型"
label="检查项"
width="300"
align="center"
>
@ -65,7 +77,7 @@
</template>
</el-table-column>
<el-table-column
label="报告内容"
label="检查内容"
>
<template v-slot="scope">
<el-input disabled v-model="scope.row.typeContent" type="textarea" />
@ -118,9 +130,11 @@
adduser: [[${tdCheckReportDTO.adduser}]],
depart: [[${tdCheckReportDTO.depart}]],
checkStartTime: '',
checkType: '',
},
reportCheckList: [],
startsList:[],
checkTypeList:[],
rules: {
adduser: [
{ required: true, message: '报告人员不能为空!' }
@ -144,12 +158,8 @@
},
},
mounted(){
if([[${tdCheckReportDTO}]].checkTypeDTOS){
this.postForm = [[${tdCheckReportDTO}]]
}else{
this.postForm = [[${tdCheckReportDTO}]]
this.postForm.checkTypeDTOS = []
}
this.postForm.checkType = '0'
$.ajax({
url:'/system/dict/data/list',
type:'POST',
@ -166,6 +176,14 @@
this.reportCheckList = res.rows
})
})
$.ajax({
url:'/system/dict/data/list',
type:'POST',
data:{dictType: 'sys_check_type'},
success:((res)=>{
this.checkTypeList = res.rows
})
})
var date = new Date();
this.postForm.checkStartTime = this.formatDateToCustomString(date);
this.postForm.createTime = this.formatISO8601ToDateTime([[${tdCheckReportDTO}]].createTime);

Loading…
Cancel
Save