parent
9d408ab866
commit
79db9ce7dd
|
@ -460,6 +460,14 @@
|
|||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未进行安全措施确认,不能签字',
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
|
|
@ -559,6 +559,14 @@
|
|||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未进行安全措施确认,不能签字',
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
|
|
@ -495,6 +495,14 @@
|
|||
goSubmit(){
|
||||
var _this = this;
|
||||
let required = true
|
||||
if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未进行安全措施确认,不能签字',
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '请稍候'
|
||||
})
|
||||
|
|
|
@ -407,7 +407,6 @@
|
|||
// setTimeout(() => {
|
||||
// this.triggered = true;
|
||||
// }, 1000)
|
||||
|
||||
},
|
||||
// onPullDownRefresh() {
|
||||
// console.log('refresh');
|
||||
|
@ -429,7 +428,7 @@
|
|||
},
|
||||
|
||||
async downCallback(page) {
|
||||
|
||||
this.getSumCount();
|
||||
await this.getWork();
|
||||
await this.getHiddenData()
|
||||
await this.getSafetyEnvironmentalCount()
|
||||
|
@ -607,14 +606,15 @@
|
|||
// });
|
||||
},
|
||||
async getSumCount() {
|
||||
const hotWorkCount = await this.getCount('/app/hotwork/cfd/countCheck');
|
||||
const highWorkCount = await this.getCount('/app/gfHighwork/countCheck');
|
||||
const blindBoardCount = await this.getCount('/app/gfBlindBoard/countCheck');
|
||||
const hoistingCount = await this.getCount('/app/gfHoisting/countCheck');
|
||||
const confinedSpaceCount = await this.getCount('/app/gfConfinedSpace/countCheck');
|
||||
const electricityCount = await this.getCount('/app/gfElectricity/countCheck');
|
||||
const hotWorkCount = await this.getCount('/app/hotwork/cfd/countCheck');
|
||||
const highWorkCount = await this.getCount('/app/gfHighwork/countCheck');
|
||||
const blindBoardCount = await this.getCount('/app/gfBlindBoard/countCheck');
|
||||
const hoistingCount = await this.getCount('/app/gfHoisting/countCheck');
|
||||
const confinedSpaceCount = await this.getCount('/app/gfConfinedSpace/countCheck');
|
||||
const electricityCount = await this.getCount('/app/gfElectricity/countCheck');
|
||||
|
||||
this.totalUnreadCount = hotWorkCount + highWorkCount + blindBoardCount + hoistingCount + confinedSpaceCount + electricityCount;
|
||||
this.totalUnreadCount = hotWorkCount + highWorkCount + blindBoardCount + hoistingCount + confinedSpaceCount + electricityCount;
|
||||
this.$forceUpdate();
|
||||
},
|
||||
getCount(url) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<basics v-if="PageCur=='basics'" id="basics"></basics>
|
||||
<basics v-if="PageCur=='basics'" ref="basics" id="basics"></basics>
|
||||
<application v-if="PageCur=='application'"></application>
|
||||
<works v-if="PageCur=='works'" id = "works"></works>
|
||||
<my v-if="PageCur=='my'"></my>
|
||||
|
@ -112,6 +112,11 @@
|
|||
// this.checkUpdate("android");
|
||||
},
|
||||
onShow() {
|
||||
console.log(this.$refs.basics,1515)
|
||||
// 刷新数据
|
||||
if(this.$refs.basics){
|
||||
this.$refs.basics.getSumCount()
|
||||
}
|
||||
var _this = this;
|
||||
_this.$nextTick(() => { //等待组件渲染结束才调用
|
||||
if(_this.initflag) {
|
||||
|
|
Loading…
Reference in New Issue