qa-prevention-gwj-first-app/pages/application/eight-assignments/index.vue

353 lines
12 KiB
Vue
Raw Permalink Normal View History

2023-11-07 09:43:46 +08:00
<template>
<view>
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
<block slot="backText">返回</block>
<block slot="content">动火作业</block>
</cu-custom>
2023-11-29 08:36:32 +08:00
<!-- <view class="apps-box">-->
<!-- <view class="apps-row">-->
<!-- <view class="apps-title">-->
<!-- <text class="apps-title-line"></text>-->
<!-- <text>普通动火作业</text>-->
<!-- </view>-->
<!-- <view class="apps-warp">-->
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/eight-assignments/hotwork/index">-->
<!-- <view class="imgs action">-->
<!-- <image src="../../../static/icon-apps/icon-807.png" mode=""></image>-->
<!-- <view v-if="hotCount>0" class="cu-tag badge">{{hotCount}}</view>-->
<!-- </view>-->
<!-- <view class="text-semi" style="text-align: center;">-->
<!-- <view>动火作业管理</view>-->
<!-- </view>-->
<!-- </navigator>-->
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/eight-assignments/super-hotwork/index">-->
<!-- <view class="imgs action">-->
<!-- <image src="../../../static/icon-apps/icon-807.png" mode=""></image>-->
<!-- <view v-if="hotSuperCount>0" class="cu-tag badge">{{hotSuperCount}}</view>-->
<!-- </view>-->
<!-- <view class="text-semi" style="text-align: center;">-->
<!-- <view>特级动火</view>-->
<!-- <view>审批管理</view>-->
<!-- </view>-->
<!-- </navigator>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="cu-tabbar-height"></view>-->
<!-- </view>-->
<view class="apps-box">
<view class="apps-row">
<view class="apps-title">
<text class="apps-title-line"></text>
2023-11-29 08:36:32 +08:00
<text>危化动火作业</text>
</view>
<view class="apps-warp">
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-apply/hotwork-apply-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>动火作业</view>
<view>申请</view>
</view>
</navigator>
2024-02-03 22:02:14 +08:00
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-safety/hotwork-safety-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
<view v-if="count.safetyNum" class="cu-tag badge">{{count.safetyNum}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>安全措施确认人</view>
<view>意见</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
<view v-if="count.COUNTCONFIRM" class="cu-tag badge">{{count.COUNTCONFIRM}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>作业负责人</view>
<view>意见</view>
</view>
</navigator>
2024-02-03 22:02:14 +08:00
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
<view v-if="count.belongingNum" class="cu-tag badge">{{count.belongingNum}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>项目主管部门</view>
<view>负责人意见</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
<view v-if="count.COUNTLEADER" class="cu-tag badge">{{count.COUNTLEADER}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>属地监管单位</view>
<view>意见</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
<view v-if="count.COUNTAUDIT" class="cu-tag badge">{{count.COUNTAUDIT}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>安全管理部门</view>
<view>意见</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
<view v-if="count.COUNTAPPROVE" class="cu-tag badge">{{count.COUNTAPPROVE}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>动火审批人</view>
<view>意见</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
<view v-if="count.COUNTMONITOR" class="cu-tag badge">{{count.COUNTMONITOR}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>动火前验票</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>完工验收</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-gas/hotwork-gas-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
<view v-if="count.COUNTANALYZE" class="cu-tag badge">{{count.COUNTANALYZE}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>气体分析</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-jh-1_cfd.png" mode=""></image>
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>监护人</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-aq-1_cfd.png" mode=""></image>
<view v-if="count.confessNum" class="cu-tag badge">{{count.confessNum}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>安全交底人</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-js-1_cfd.png" mode=""></image>
<view v-if="count.acceptConfessNum" class="cu-tag badge">{{count.acceptConfessNum}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>接受交底人</view>
</view>
</navigator>
</view>
</view>
<view class="cu-tabbar-height"></view>
</view>
2023-11-07 09:43:46 +08:00
</view>
</template>
<script>
import {
basePath,
corpinfoId,
loginUser,
isRest
2023-11-07 09:43:46 +08:00
} from '@/common/tool.js';
export default {
data() {
return {
hotCount : 0,
hotSuperCount :0,
isRest : '',
count : {}
2023-11-07 09:43:46 +08:00
};
},
mounted() {
this.isRest = isRest;
},
2023-11-07 09:43:46 +08:00
onShow() {
this.getData();
this.getDataCfd();
2023-11-07 09:43:46 +08:00
},
methods: {
showRest(){
uni.showModal({
title: '提示',
showCancel:false,
content: '您处于离岗状态,无需检查清单。',
confirmText: "返回", // 确认按钮文字
success: (res) => {
}
})
},
getDataCfd(){
var _this = this;
uni.showLoading({
title:"加载中..."
});//加载中动画
uni.request({
url: basePath +'/app/hotwork/cfd/countCheck',
method: 'POST',
dataType: 'json',
header: {
'Content-type':'application/x-www-form-urlencoded'
},
data: {
tm:new Date().getTime(),
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
},
success: (res) => {
uni.hideLoading();//结束加载中动画
if ("success" == res.data.result) {
_this.count = res.data.count;
}
}
})
},
2023-11-07 09:43:46 +08:00
getData(){
var _this = this;
uni.showLoading({
title:"加载中..."
});//加载中动画
uni.request({
url: basePath +'/app/hotworkapplication/getCountByMyApproval',
method: 'POST',
dataType: 'json',
header: {
'Content-type':'application/x-www-form-urlencoded'
},
data: {
CORPINFO_ID:corpinfoId,
USER_ID:loginUser.USER_ID,
tm:new Date().getTime()
},
success: (res) => {
_this.hotCount = 0
_this.hotSuperCount = 0
uni.hideLoading();//结束加载中动画
if ("success" == res.data.result) {
for (let i in res.data.varList) {
let item = res.data.varList[i];
let itemCout = item.count
let itemState = Number(item.STATE)
if(itemCout){
if(itemState>=30){
_this.hotSuperCount += item.count
}else{
_this.hotCount += item.count
}
}
}
}
}
})
}
}
}
</script>
<style>
.app-banner{
width: 100%;
height: 380upx;
}
.app-banner image{
width: 100%;
height: 100%;
}
.apps-box {}
.apps-row {
padding: 20upx 20upx 10upx 20upx;
background-color: #fff;
margin-top: 20upx;
}
.apps-row:first-child{
margin-top: 0;
}
.apps-title {
position: relative;
padding-left: 20upx;
color: #989898;
padding-bottom: 20upx;
}
.apps-title-line {
display: inline-block;
background-color: #37a6ff;
width: 10upx;
height: 23upx;
position: absolute;
left: 0upx;
top: 11upx;
}
.apps-warp {
display: flex;
flex-wrap: wrap;
}
.apps-item {
display: flex;
flex-direction: column;
align-items: center;
width: 25%;
font-size: 25upx;
margin-bottom: 20upx;
}
.apps-item .text-semi{
margin-top: 6upx;
}
.apps-item .action{
position: relative;
}
.apps-item .action .cu-tag.badge{
right: -20upx;
}
.apps-item .imgs {
width: 50upx;
height: 50upx;
}
.apps-item .imgs image {
width: 100%;
height: 100%;
}
.cu-tabbar-height {
min-height: 20upx;
height: calc(20upx + env(safe-area-inset-bottom) / 2);
}
2023-11-07 09:43:46 +08:00
</style>