Merge remote-tracking branch 'origin/pet' into dev

hyx_2024-9-29_tongbu
water_xu 2024-09-05 18:39:14 +08:00
commit 412f777fe4
4 changed files with 255 additions and 15 deletions

View File

@ -82,6 +82,19 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" v-if="searchForm.userIs == '1'">
<el-form-item label="本人考评时间">
<el-date-picker
v-model="searchForm.userIsDate"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
style="width: 100%;"/>
</el-form-item>
</el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label-width="10px"> <el-form-item label-width="10px">
<el-button v-waves type="primary" icon="el-icon-search" @click="getList"> <el-button v-waves type="primary" icon="el-icon-search" @click="getList">
@ -154,6 +167,13 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="userIsTime" label="本人考评时间" v-if="searchForm.userIsDate != undefined && searchForm.userIsDate != '' && searchForm.userIsDate[0]">
<template slot-scope="{row}">
<template>
<span>{{ row.userIsTime }}</span>
</template>
</template>
</el-table-column>
<el-table-column label="操作" width="400px"> <el-table-column label="操作" width="400px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="info" icon="el-icon-view" @click="fnViewHidden(row.HIDDEN_ID)"></el-button> <el-button type="info" icon="el-icon-view" @click="fnViewHidden(row.HIDDEN_ID)"></el-button>
@ -185,6 +205,8 @@
<tr :key="item.CONFIG_USER_ID"> <tr :key="item.CONFIG_USER_ID">
<td class="tbg">考评人员</td> <td class="tbg">考评人员</td>
<td>{{ item.USER_NAME }}</td> <td>{{ item.USER_NAME }}</td>
<td class="tbg">考评时间</td>
<td>{{ item.CREATTIME ? item.CREATTIME : "暂未考评" }}</td>
<td class="tbg">是否符合</td> <td class="tbg">是否符合</td>
<td> <td>
<span v-if="item.RESULT === 1"></span> <span v-if="item.RESULT === 1"></span>
@ -265,7 +287,8 @@ export default {
DEPARTMENT_ID: null, DEPARTMENT_ID: null,
STATE: '', STATE: '',
hiddendescr: '', hiddendescr: '',
userIs: '' userIs: '',
userIsDate : []
}, },
evaluationDialog: { evaluationDialog: {
visible: false, visible: false,
@ -323,6 +346,7 @@ export default {
this.searchForm.STATE = '' this.searchForm.STATE = ''
this.searchForm.hiddendescr = '' this.searchForm.hiddendescr = ''
this.searchForm.userIs = '' this.searchForm.userIs = ''
this.searchForm.userIsDate = ''
this.getList() this.getList()
}, },
// //
@ -334,6 +358,8 @@ export default {
...this.searchForm, ...this.searchForm,
START_TIME: this.searchForm.dates && this.searchForm.dates[0], START_TIME: this.searchForm.dates && this.searchForm.dates[0],
END_TIME: this.searchForm.dates && this.searchForm.dates[1], END_TIME: this.searchForm.dates && this.searchForm.dates[1],
USER_IS_START_TIME: this.searchForm.userIsDate && this.searchForm.userIsDate[0],
USER_IS_END_TIME: this.searchForm.userIsDate && this.searchForm.userIsDate[1],
CORPINFO_ID: this.$parent.CORPINFO_ID, CORPINFO_ID: this.$parent.CORPINFO_ID,
EVALUATIONCONFIG_ID: this.$parent.EVALUATIONCONFIG_ID, EVALUATIONCONFIG_ID: this.$parent.EVALUATIONCONFIG_ID,
TYPE: this.$parent.TYPE TYPE: this.$parent.TYPE

View File

@ -154,11 +154,13 @@
<span>({{ row.VIDEO_ONLINE_COUNT }})</span> <span>({{ row.VIDEO_ONLINE_COUNT }})</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="400"> <el-table-column label="操作" align="center" width="500">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.OUTSOURCED_ID)"></el-button> <el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.OUTSOURCED_ID)"></el-button>
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-1" type="success" icon="el-icon-view" size="mini" @click="handleState(row.OUTSOURCED_ID)"></el-button> <el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-1" type="success" icon="el-icon-view" size="mini" @click="handleState(row.OUTSOURCED_ID)"></el-button>
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-2" type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)"></el-button> <el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-2" type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)"></el-button>
<el-button v-if="1 == row.STATE" type="danger" icon="el-icon-delete" size="mini" @click="handlePreForceDelete(row)"></el-button>
<el-button v-if="2 == row.STATE" type="success" icon="el-icon-view" size="mini" @click="handlePreForceDelete(row)"></el-button>
<el-button v-show="edit" v-if="0 === row.IS_CORP_TYPE" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.OUTSOURCED_ID)"></el-button> <el-button v-show="edit" v-if="0 === row.IS_CORP_TYPE" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.OUTSOURCED_ID)"></el-button>
<el-button v-show="del" v-if="0 === row.IS_CORP_TYPE" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.OUTSOURCED_ID)"></el-button> <el-button v-show="del" v-if="0 === row.IS_CORP_TYPE" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.OUTSOURCED_ID)"></el-button>
</template> </template>
@ -183,6 +185,152 @@
<el-button v-print="'#printTest'" type="primary"> </el-button> <el-button v-print="'#printTest'" type="primary"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="dialogPreDeleteShow" title="强制结束" width="80%" class="top-dialog">
<p>待确认的安全环保检查</p>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="inspectList"
:row-key="getRowKeyInsp"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="INSPECTION_PLACE" label="检查场所" show-overflow-tooltip />
<el-table-column prop="INSPECTION_TYPE_NAME" label="检查类型" show-overflow-tooltip />
<el-table-column prop="INSPECTION_USERS" label="检查人" show-overflow-tooltip />
<el-table-column prop="PERSON_NAME" label="被检查人" show-overflow-tooltip />
<el-table-column label="检查时间" show-overflow-tooltip>
<template slot-scope="{row}">
{{ row.INSPECTION_TIME_START }}-{{ row.INSPECTION_TIME_END }}
</template>
</el-table-column>
<el-table-column prop="HIDDEN_COUNT" label="检查隐患数" />
</el-table>
<p>待整改隐患</p>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="zgList"
:row-key="getRowKeyCf"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="HIDDENDESCR" label="隐患描述" show-overflow-tooltip />
<el-table-column label="隐患发现人" show-overflow-tooltip>
<template slot-scope="{row}">
{{ row.CREATOR_NAME || row.CREATOR_NAMES }}
</template>
</el-table-column>
<el-table-column prop="CREATTIME" label="隐患发现时间" show-overflow-tooltip />
<el-table-column prop="RECTIFICATIONOR_NAME" label="隐患整改人" show-overflow-tooltip />
<el-table-column prop="CREATOR_NAME" label="隐患验收人" show-overflow-tooltip />
<el-table-column label="是否处罚">
<template slot-scope="{row}">
{{ row.ISPUNISH === "1" ? "是" : row.ISPUNISH === "2" ?"否":"处罚人未处理" }}
</template>
</el-table-column>
</el-table>
<p>待验收隐患</p>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="ysList"
:row-key="getRowKeyCf"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="HIDDENDESCR" label="隐患描述" show-overflow-tooltip />
<el-table-column prop="CREATTIME" label="隐患发现时间" show-overflow-tooltip />
<el-table-column prop="RECTIFICATIONOR_NAME" label="隐患整改人" show-overflow-tooltip />
<el-table-column prop="RECTIFICATIONTIME" label="整改时间" show-overflow-tooltip />
<el-table-column prop="CREATOR_NAME" label="隐患验收人" show-overflow-tooltip />
<el-table-column label="是否处罚">
<template slot-scope="{row}">
{{ row.ISPUNISH === "1" ? "是" : row.ISPUNISH === "2" ?"否":"处罚人未处理" }}
</template>
</el-table-column>
</el-table>
<p>待处罚</p>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="cfList"
:row-key="getRowKeyCf"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="CREATOR_NAME" label="下发人" show-overflow-tooltip />
<el-table-column label="是否处罚">
<template slot-scope="{row}">
{{ row.ISPUNISH === "1" ? "是" : row.ISPUNISH === "2" ?"否":"处罚人未处理" }}
</template>
</el-table-column>
</el-table>
<p>待反馈处罚</p>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="fkList"
:row-key="getRowKeyCf"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="REASON" label="处罚原因" show-overflow-tooltip />
<el-table-column prop="CREATOR_NAME" label="下发人" show-overflow-tooltip />
<el-table-column prop="UNITS_NAME" label="被处罚单位" show-overflow-tooltip />
<el-table-column prop="PERSON_NAME" label="被处罚人" show-overflow-tooltip />
<el-table-column label="处罚处理状态" show-overflow-tooltip>
<template slot-scope="{row}">
{{ row.HANDLED === "0" ? "待处理" : "已处理" }}
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button v-if="selectOSTATE == 1" @click="forceJie" type="danger" icon="el-icon-delete"></el-button>
<el-button @click="dialogPreDeleteShow = false"> </el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
@ -221,6 +369,7 @@ export default {
STATE: '', STATE: '',
varList: [], varList: [],
dialogFormShow: false, dialogFormShow: false,
dialogPreDeleteShow: false,
pd: [], pd: [],
unitsList: [], unitsList: [],
corpList: [], corpList: [],
@ -228,6 +377,14 @@ export default {
groupCorpList: [], groupCorpList: [],
treeDataInspectDept: [], treeDataInspectDept: [],
treeDeptOptions: [], treeDeptOptions: [],
inspectList:[],//
zgList:[],//
ysList:[],//
cfList:[],//
fkList:[],//
aiList:[],// AI
selectOID: '',
selectOSTATE:'',
defaultProps: { defaultProps: {
value: 'id', value: 'id',
children: 'nodes', children: 'nodes',
@ -280,6 +437,12 @@ export default {
getRowKey(row) { getRowKey(row) {
return row.OUTSOURCED_ID return row.OUTSOURCED_ID
}, },
getRowKeyInsp(row) {
return row.KEYPROJECTCHECK_ID
},
getRowKeyCf(row) {
return row.HIDDEN_ID
},
// //
getQuery() { getQuery() {
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
@ -459,6 +622,57 @@ export default {
}).catch(() => { }).catch(() => {
}) })
}, },
handlePreForceDelete(row){
this.dialogPreDeleteShow = true
requestFN(
'/outsourced/preForceDelete',
{ OUTSOURCED_ID: row.OUTSOURCED_ID }
).then((data) => {
this.inspectList = data.inspectList //
this.zgList = data.zgList //
this.ysList = data.ysList //
this.cfList = data.cfList //
this.fkList = data.fkList //
this.aiList = data.aiList // AI
this.selectOID = row.OUTSOURCED_ID
this.selectOSTATE = row.STATE
}).catch((e) => {
})
},
//
forceJie(){
if (!this.selectOID) {
this.$message('请勿重复点击', {
confirmButtonText: '确定',
type: 'warning'
})
}
// ---
this.$confirm('确定要结束该重点工程吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
requestFN(
'/outsourced/forceJie',
{OUTSOURCED_ID: this.selectOID}
).then((data) => {
this.dialogPreDeleteShow = false
this.selectOID = ''
this.selectOSTATE = ''
this.getList()
this.$forceUpdate()
}).catch((e) => {
this.selectOID = ''
this.selectOSTATE = ''
})
}).catch(() => {
})
// ---
},
getUnitsList() { getUnitsList() {
requestFN( requestFN(
'/units/listAll', '/units/listAll',

View File

@ -308,12 +308,12 @@ export default {
{required: true, message: '角色不能为空', trigger: 'blur'} {required: true, message: '角色不能为空', trigger: 'blur'}
], ],
USERNAME: [ USERNAME: [
{required: true, message: '用户名不能为空', trigger: 'blur'}, {required: true, message: '用户名不能为空', trigger: 'blur'}
{ // ,{
pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/, // pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/,
message: '用户名需使用手机号码格式' // message: '使'
}, // },
{validator: hasUser, trigger: 'blur'} // {validator: hasUser, trigger: 'blur'}
], ],
NAME: [ NAME: [
{required: true, message: '姓名不能为空', trigger: 'blur'}, {required: true, message: '姓名不能为空', trigger: 'blur'},

View File

@ -276,12 +276,12 @@ export default {
{ required: true, message: '角色不能为空', trigger: 'blur' } { required: true, message: '角色不能为空', trigger: 'blur' }
], ],
USERNAME: [ USERNAME: [
{ required: true, message: '用户名不能为空', trigger: 'blur' }, { required: true, message: '用户名不能为空', trigger: 'blur' }
{ // ,{
pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/, // pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/,
message: '用户名需使用手机号码格式' // message: '使'
}, // },
{ validator: hasUser, trigger: 'blur' } // { validator: hasUser, trigger: 'blur' }
], ],
NAME: [ NAME: [
{ required: true, message: '姓名不能为空', trigger: 'blur' }, { required: true, message: '姓名不能为空', trigger: 'blur' },
@ -465,7 +465,7 @@ export default {
CARD_TYPE_NAME: '身份证', CARD_TYPE_NAME: '身份证',
NATION: row.NATION_NAME || '', NATION: row.NATION_NAME || '',
SEX: row.SEX === '0' ? '男' : '女', SEX: row.SEX === '0' ? '男' : '女',
USER_TYPE: '1', USER_TYPE: '0',
ISDELETE: row.ISDELETE != null ? row.ISDELETE : "0" ISDELETE: row.ISDELETE != null ? row.ISDELETE : "0"
} }
).then((data) => { ).then((data) => {