2023-11-07 10:08:37 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="search card">
|
|
|
|
|
<u--input
|
|
|
|
|
prefixIcon="search"
|
|
|
|
|
placeholder="请输入关键字"
|
|
|
|
|
border="surround"
|
2025-07-21 15:28:44 +08:00
|
|
|
|
v-model="companyName"
|
2023-11-07 10:08:37 +08:00
|
|
|
|
clearable
|
|
|
|
|
shape="circle"
|
|
|
|
|
></u--input>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<div class="bth-mini ml-10">
|
|
|
|
|
<u-button type="success" text="确定" @click="resetList"></u-button>
|
|
|
|
|
</div>
|
2024-07-27 15:13:42 +08:00
|
|
|
|
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
|
|
|
|
<u-list-item v-for="(item, index) in list" :key="index">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="flex-between main-title">
|
2025-07-21 15:28:44 +08:00
|
|
|
|
<text>被检查单位:{{ item.inspectedCorpName }}</text>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2025-07-21 15:28:44 +08:00
|
|
|
|
<text>检查发起人:{{ item.inspectionOriginatorUserName }}</text>
|
|
|
|
|
<text>检查类型:{{ item.inspectionTypeName }}</text>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2025-07-21 15:28:44 +08:00
|
|
|
|
<text>检查时间:自 {{ item.inspectionTimeStart }} 至 {{ item.inspectionTimeEnd }} 止</text>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
|
|
|
|
<text>
|
|
|
|
|
状态:
|
2025-07-21 15:28:44 +08:00
|
|
|
|
<template v-if="item.inspectionStatus === '0'">待检查人核实</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '1'">检查人核实中</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '2'">待被检查人确认</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '3'">待指派</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '4'">指派中</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '5'">指派完成</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '6'">检查待验收</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '7'">检查已验收</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '8'">已归档</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '-1'">检查人核实打回</template>
|
|
|
|
|
<template v-else-if="item.inspectionStatus === '-2'">被检查人申辩</template>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-end mt-10">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<view class="see_btn">
|
|
|
|
|
<u-button type="primary" text="查看" size="mini"
|
2025-07-21 15:28:44 +08:00
|
|
|
|
@click="fnNavigatorDetail(item.inspectionId,item.inspectionUserId,item.inspectionInspectorId,'view')"></u-button>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="see_btn ml-10"
|
2025-07-21 15:28:44 +08:00
|
|
|
|
v-if="!validStr(item.inspectionUserSignTime) && (item.inspectionStatus === '0' || item.inspectionStatus === '1')">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<u-button type="primary" text="核实" size="mini"
|
2025-07-21 15:28:44 +08:00
|
|
|
|
@click="fnNavigatorDetail(item.inspectionId,item.inspectionUserId,item.inspectionInspectorId,'verify')"></u-button>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
</view>
|
2024-07-27 15:13:42 +08:00
|
|
|
|
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-list-item>
|
|
|
|
|
</u-list>
|
|
|
|
|
<empty v-else></empty>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-07-15 18:16:55 +08:00
|
|
|
|
import {getSafetyenvironmentalinspectorList} from "@/api";
|
2023-11-07 10:08:37 +08:00
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-07-21 15:28:44 +08:00
|
|
|
|
companyName: '',
|
2023-11-07 10:08:37 +08:00
|
|
|
|
INSPECTION_STATUS: '',
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
totalPage: 0,
|
|
|
|
|
list: [],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
userInfo() {
|
|
|
|
|
return this.$store.getters.getUserInfo
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.resetList()
|
|
|
|
|
},
|
2024-10-10 10:14:31 +08:00
|
|
|
|
methods: {
|
|
|
|
|
validStr(str) {
|
2025-07-15 18:16:55 +08:00
|
|
|
|
if (str != null && str !== '' && typeof (str) != 'undefined' && str !== 'undefined' && str !== 0 && str !== 'null') {
|
2024-10-10 10:14:31 +08:00
|
|
|
|
return true
|
|
|
|
|
}
|
2023-11-07 10:08:37 +08:00
|
|
|
|
return false
|
|
|
|
|
},
|
2024-10-10 10:14:31 +08:00
|
|
|
|
async getData() {
|
2025-07-21 15:28:44 +08:00
|
|
|
|
let { varList,page } = await getSafetyenvironmentalinspectorList({
|
|
|
|
|
companyName: this.companyName,
|
2023-11-07 10:08:37 +08:00
|
|
|
|
showCount: this.pageSize,
|
|
|
|
|
currentPage: this.currentPage,
|
2025-07-21 15:28:44 +08:00
|
|
|
|
pageType: "inspector",
|
2023-11-07 10:08:37 +08:00
|
|
|
|
});
|
2025-07-21 15:28:44 +08:00
|
|
|
|
this.list = [...this.list, ...varList];
|
|
|
|
|
this.totalPage = page.totalPage;
|
2023-11-07 10:08:37 +08:00
|
|
|
|
},
|
|
|
|
|
resetList() {
|
2024-10-10 10:14:31 +08:00
|
|
|
|
this.pageSize = 10
|
|
|
|
|
this.currentPage = 1
|
2023-11-07 10:08:37 +08:00
|
|
|
|
this.list = []
|
|
|
|
|
this.getData()
|
|
|
|
|
},
|
2024-10-10 10:14:31 +08:00
|
|
|
|
fnNavigatorDetail(INSPECTION_ID, INSPECTION_USER_ID, INSPECTION_INSPECTOR_ID, type) {
|
2023-11-07 10:08:37 +08:00
|
|
|
|
uni.$u.route({
|
|
|
|
|
url: '/pages/safety-environmental-inspection/inspector-confirms/detail',
|
|
|
|
|
params: {
|
|
|
|
|
INSPECTION_ID,
|
|
|
|
|
INSPECTION_USER_ID,
|
|
|
|
|
INSPECTION_INSPECTOR_ID,
|
|
|
|
|
type
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
scrolltolower() {
|
|
|
|
|
this.currentPage++;
|
2024-10-10 10:14:31 +08:00
|
|
|
|
if (this.totalPage >= this.currentPage) this.getData();
|
2023-11-07 10:08:37 +08:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2024-07-27 15:13:42 +08:00
|
|
|
|
<style scoped lang="scss">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
.search {
|
2024-07-27 15:13:42 +08:00
|
|
|
|
display: flex;
|
2024-10-10 10:14:31 +08:00
|
|
|
|
|
|
|
|
|
.ml-10 {
|
2024-07-27 15:13:42 +08:00
|
|
|
|
margin-left: 10rpx;
|
|
|
|
|
}
|
2024-10-10 10:14:31 +08:00
|
|
|
|
|
|
|
|
|
.bth-mini {
|
2024-07-27 15:13:42 +08:00
|
|
|
|
width: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2024-10-10 10:14:31 +08:00
|
|
|
|
|
|
|
|
|
.see_btn {
|
|
|
|
|
//width: 200rpx;
|
|
|
|
|
margin: 0 5rpx;
|
2024-07-27 15:13:42 +08:00
|
|
|
|
}
|
2023-11-07 10:08:37 +08:00
|
|
|
|
|
|
|
|
|
</style>
|