检查报告管理自查

pg_adapter
dshclm 8 months ago
parent f4579ac6ee
commit 9beac3699b

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

Loading…
Cancel
Save