2025-01-16 17:36:46 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view>
|
|
|
|
|
|
<Navbar title="延期申请审批" />
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
<!-- 搜索 -->
|
|
|
|
|
|
<div class="search">
|
|
|
|
|
|
<u-input
|
|
|
|
|
|
placeholder="请输入搜索内容"
|
|
|
|
|
|
suffixIcon="search"
|
|
|
|
|
|
suffixIconStyle="color: #909399"
|
|
|
|
|
|
shape="circle"
|
|
|
|
|
|
@blur="handleSearch"
|
|
|
|
|
|
></u-input>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div v-for="(item, index) in tableList" :key="index" class="list-cont">
|
|
|
|
|
|
<div class="list-item">隐患问题编号:{{ item.pitfallCode }}</div>
|
|
|
|
|
|
<div class="list-item">发现时间:{{ item.findTime }}</div>
|
|
|
|
|
|
<div class="list-item">隐患整改状态:{{ item.checkStatusName }}</div>
|
|
|
|
|
|
<div class="list-item">审批状态:{{ item.delayCheckStateName }}</div>
|
|
|
|
|
|
<div class="list-btn">
|
|
|
|
|
|
<div><u-button type="primary" size="mini" @click="handleSeeEdit(1, item)">查看</u-button></div>
|
|
|
|
|
|
<div>
|
2025-06-19 15:10:30 +08:00
|
|
|
|
<u-button v-if="item.intoStatus == '1'" type="primary" size="mini" @click="handleSeeEdit(2, item)">
|
2025-01-16 17:36:46 +08:00
|
|
|
|
审批
|
|
|
|
|
|
</u-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div><u-button type="warning" size="mini" @click="handleSeeEdit(3, item)">审批记录</u-button></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<u-empty mode="data" v-if="tableList.length == 0"></u-empty>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import { getReviewOfDeferredApprovalList } from '@/api/hiddenDangerViolation'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
searchValue: '',
|
|
|
|
|
|
tableList: []
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
// 搜索
|
|
|
|
|
|
handleSearch(value) {
|
|
|
|
|
|
console.log('🚀 ~ 搜索 ~ value:', value)
|
|
|
|
|
|
this.searchValue = value
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
},
|
|
|
|
|
|
// 列表
|
|
|
|
|
|
async getList() {
|
|
|
|
|
|
console.log('🚀 ~ 获取列表')
|
|
|
|
|
|
try {
|
|
|
|
|
|
const params = { keyWord: this.searchValue, pageNum: 1, pageSize: 9999 }
|
|
|
|
|
|
console.log('🚀 ~ getList ~ params:', params)
|
|
|
|
|
|
const res = await getReviewOfDeferredApprovalList(params)
|
|
|
|
|
|
console.log('🚀 ~ getList ~ res:', res)
|
|
|
|
|
|
this.tableList = res.rows
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
console.log('🚀 ~ error', error)
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 查看编辑
|
|
|
|
|
|
handleSeeEdit(type, item) {
|
|
|
|
|
|
console.log('🚀 ~ 查看编辑 ~ type:', type)
|
|
|
|
|
|
console.log('🚀 ~ 查看编辑 ~ item:', item)
|
|
|
|
|
|
let params = {}
|
|
|
|
|
|
if (type === 1) {
|
|
|
|
|
|
params = { isDetail: true, ...item, title: '查看详情' }
|
|
|
|
|
|
} else if (type === 2) {
|
|
|
|
|
|
params = { isApprove: true, ...item, title: '审批' }
|
|
|
|
|
|
} else if (type === 3) {
|
|
|
|
|
|
params = { isRecord: true, ...item, title: '审批记录' }
|
|
|
|
|
|
}
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: '/pages/hiddenDangerRectificationApproval/addHiddenDanger?params=' + JSON.stringify(params)
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.content {
|
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
|
.search {
|
|
|
|
|
|
margin: 0 20px 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.list-cont {
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
margin: 0 10px 10px;
|
|
|
|
|
|
background-color: #f5f7fa;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
.list-item {
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.list-btn {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
div {
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|