2023-11-07 10:08:37 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="search card">
|
|
|
|
|
<u--input
|
|
|
|
|
prefixIcon="search"
|
|
|
|
|
placeholder="请输入关键字"
|
|
|
|
|
border="surround"
|
|
|
|
|
v-model="KEYWORDS"
|
|
|
|
|
clearable
|
|
|
|
|
shape="circle"
|
|
|
|
|
></u--input>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<view class="bth-mini ml-10">
|
|
|
|
|
<u-button type="success" text="确定" @click="resetList"></u-button>
|
2024-07-27 15:46:35 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
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">
|
|
|
|
|
<text>{{ item.OUTSOURCED_NAME }}</text>
|
|
|
|
|
</view>
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<view v-show="item.IS_CORP_TYPE== '1'" class="flex-between mt-10 subtitle">
|
|
|
|
|
<text>
|
|
|
|
|
主管部门:{{ item.Q_COMPETENT_DEPT_NAME }}
|
|
|
|
|
</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-show="item.IS_CORP_TYPE== '1'" class="flex-between mt-10 subtitle">
|
|
|
|
|
<text>
|
|
|
|
|
监督部门:{{ item.DEPARTMENT_NAME }}
|
|
|
|
|
</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-show="item.IS_CORP_TYPE== '0'" class="flex-between mt-10 subtitle">
|
|
|
|
|
<text>
|
|
|
|
|
主管部门:{{ item.MANAGER_DEPARTMENT_NAME }}
|
|
|
|
|
</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-show="item.IS_CORP_TYPE== '0'" class="flex-between mt-10 subtitle">
|
|
|
|
|
<text>
|
|
|
|
|
监管部门:{{ item.DEPARTMENT_NAME }}
|
|
|
|
|
</text>
|
|
|
|
|
</view>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<text>相关方单位负责人:{{ item.UNITS_PIC_NAME }}</text>
|
|
|
|
|
<text>电话:{{ item.UNITS_PHONE }}</text>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<text>安全环保检查次数:{{ item.CHECK_COUNT }}</text>
|
2024-07-27 15:46:35 +08:00
|
|
|
|
|
2024-10-10 10:14:31 +08:00
|
|
|
|
<view>
|
|
|
|
|
<u-button type="primary" text="进入" size="mini"
|
|
|
|
|
@click="fnNavigatorDetail(item.OUTSOURCED_ID)"></u-button>
|
|
|
|
|
</view>
|
2023-11-07 10:08:37 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-list-item>
|
|
|
|
|
</u-list>
|
|
|
|
|
<empty v-else></empty>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {getKeyProjectsListOutsourced} from "../../../api";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
KEYWORDS: '',
|
2024-10-10 10:14:31 +08:00
|
|
|
|
CORPINFO_ID: '',
|
2023-11-07 10:08:37 +08:00
|
|
|
|
pageSize: 10,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
totalPage: 0,
|
|
|
|
|
list: [],
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-08-02 18:11:02 +08:00
|
|
|
|
onLoad(e) {
|
|
|
|
|
this.CORPINFO_ID = e.CORPINFO_ID
|
2023-11-10 17:03:46 +08:00
|
|
|
|
},
|
2023-11-07 10:08:37 +08:00
|
|
|
|
onShow() {
|
|
|
|
|
this.resetList()
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
userInfo() {
|
|
|
|
|
return this.$store.getters.getUserInfo
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-10 10:14:31 +08:00
|
|
|
|
methods: {
|
|
|
|
|
async getData() {
|
2023-11-07 10:08:37 +08:00
|
|
|
|
let resData = await getKeyProjectsListOutsourced({
|
|
|
|
|
KEYWORDS: this.KEYWORDS,
|
|
|
|
|
showCount: this.pageSize,
|
|
|
|
|
currentPage: this.currentPage,
|
2024-10-10 10:14:31 +08:00
|
|
|
|
CORPINFO_ID: this.CORPINFO_ID,
|
|
|
|
|
UserId: this.userInfo.USER_ID,
|
|
|
|
|
STATE: '1'
|
2023-11-07 10:08:37 +08:00
|
|
|
|
});
|
2024-10-10 10:14:31 +08:00
|
|
|
|
this.list = [...this.list, ...resData.varList];
|
2023-11-07 10:08:37 +08:00
|
|
|
|
this.totalPage = resData.page.totalPage;
|
|
|
|
|
},
|
|
|
|
|
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(OUTSOURCED_ID) {
|
2023-11-07 10:08:37 +08:00
|
|
|
|
uni.$u.route({
|
|
|
|
|
url: '/pages/key-project-management/safety-environmental-inspection/detail-list',
|
|
|
|
|
params: {
|
|
|
|
|
OUTSOURCED_ID,
|
2024-10-10 10:14:31 +08:00
|
|
|
|
CORPINFO_ID: this.CORPINFO_ID
|
2023-11-07 10:08:37 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
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:46:35 +08:00
|
|
|
|
<style scoped lang="scss">
|
2024-10-10 10:14:31 +08:00
|
|
|
|
.see_btn {
|
2024-07-27 15:46:35 +08:00
|
|
|
|
width: 200rpx;
|
|
|
|
|
float: right;
|
|
|
|
|
}
|
2023-11-07 10:08:37 +08:00
|
|
|
|
|
|
|
|
|
</style>
|