qa-regulatory-gwj-app/pages/super-hot/safety-director/list.vue

124 lines
3.3 KiB
Vue
Raw Permalink Normal View History

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="form.keyjobnumber"
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="getList"></u-button>
</view>
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">
<text>作业证编号{{ item.JOB_NUMBER }}</text>
<text>动火等级特级动火</text>
</view>
<view class="flex-between mt-10 subtitle">
<text>申请人办理{{ item.userName }}</text>
2024-10-10 10:14:31 +08:00
<text>作业类型{{ item.JOB_TYPE_INDEX == '0' ? '内部作业' : '相关方作业' }}</text>
2023-11-07 10:08:37 +08:00
</view>
<view class="flex-between mt-10 subtitle">
<text>特级动火申请审核状态港股安委办主任安全总监签发</text>
</view>
2024-07-27 15:13:42 +08:00
<view class="flex-end mt-10 see_btn">
2024-10-10 10:14:31 +08:00
<view class="wrap">
<u-button type="primary" text="流程图" size="mini"
@click="fnNavigatorSteps(item.HOTWORKAPPLICATION_ID)"></u-button>
</view>
<view class="wrap ml-10">
<u-button type="primary" text="签批" size="mini"
@click="fnNavigatorDetail(item.HOTWORKAPPLICATION_ID, 2)"></u-button>
</view>
<view class="wrap ml-10">
<u-button type="primary" text="查看" size="mini"
@click="fnNavigatorDetail(item.HOTWORKAPPLICATION_ID, 1)"></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 {getHotWorkListByState} from "../../../api";
export default {
data() {
return {
keyword: '',
pageSize: 10,
currentPage: 1,
totalPage: 0,
list: [],
2024-10-10 10:14:31 +08:00
form: {
STATE: '37',
loginUserId: ''
2023-11-07 10:08:37 +08:00
}
}
},
computed: {
userInfo() {
return this.$store.getters.getUserInfo
}
},
onShow() {
this.getList()
},
2024-10-10 10:14:31 +08:00
methods: {
async getList() {
2023-11-07 10:08:37 +08:00
let resData = await getHotWorkListByState({
...this.form,
2024-10-10 10:14:31 +08:00
'showCount': this.pageSize,
'currentPage': this.currentPage,
'loginUserId': this.userInfo.USER_ID
2023-11-07 10:08:37 +08:00
});
this.list = resData.varList
},
2024-10-10 10:14:31 +08:00
fnNavigatorDetail(HOTWORKAPPLICATION_ID, type) {
2023-11-07 10:08:37 +08:00
uni.$u.route({
url: '/pages/super-hot/safety-director/detail?type=' + type,
params: {
HOTWORKAPPLICATION_ID,
}
})
},
2024-10-10 10:14:31 +08:00
fnNavigatorSteps(HOTWORKAPPLICATION_ID) {
2023-11-07 10:08:37 +08:00
uni.$u.route({
url: '/pages/super-hot/steps/steps',
params: {
HOTWORKAPPLICATION_ID,
}
})
},
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
.see_btn {
2024-07-27 15:13:42 +08:00
display: flex;
justify-content: flex-end;
2024-10-10 10:14:31 +08:00
.wrap {
//width: 200rpx;
2024-07-27 15:13:42 +08:00
margin: 0 10rpx;
}
}
2023-11-07 10:08:37 +08:00
</style>