清理测试信息

dev
wangpeng 2024-03-25 19:17:10 +08:00
parent 5c298c2e41
commit 59ebc64921
7 changed files with 116 additions and 105 deletions

View File

@ -116,7 +116,7 @@
</navigator>
</view>
</view>
<view class="apps-row">
<!-- <view class="apps-row">
<view class="apps-title">
<text class="apps-title-line"></text>
<text>监测预警</text>
@ -129,7 +129,7 @@
<view class="text-semi">AI报警</view>
</navigator>
</view>
</view>
</view>-->
<!-- 视频管理-->
<!-- <view class="apps-row">-->
<!-- <view class="apps-title">-->

View File

@ -18,9 +18,9 @@
<view v-if="!loginCorpId && pd.APPLY_STATUS === ''" class="cu-item arrow">
<navigator class="content" hover-class="none" url="/pages/basics/basic-info/entry" open-type="redirect">
<text class="text-semi">入职申请</text>
</navigator>·
</navigator>
</view>
<view v-if="!loginCorpId && pd.APPLY_STATUS === '0' && (pd.APPLY_TYPE ==='2' || pd.APPLY_TYPE ==='4')" class="cu-item arrow">
<view v-if="pd.APPLY_STATUS === '0' && (pd.APPLY_TYPE ==='2' || pd.APPLY_TYPE ==='4')" class="cu-item arrow">
<navigator class="content" hover-class="none" url="/pages/basics/basic-info/confirm" open-type="redirect">
<text class="text-semi">信息确认</text>
</navigator>

View File

@ -72,7 +72,7 @@
<text>人员信息</text>
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/basics/work-plan/work-plan">
<navigator v-if="loginCorpId" class="home-apps-item" hover-class="none" url="/pages/basics/work-plan/work-plan">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-rili.png" mode=""></image>
</view>
@ -81,7 +81,7 @@
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none"
<navigator v-if="loginCorpId" class="home-apps-item" hover-class="none"
url="/pages/basics/risk-distribution/risk-distribution">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-risk.png" mode=""></image>
@ -90,7 +90,7 @@
<text>风险分布</text>
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/basics/study-files/study-files">
<navigator v-if="loginCorpId" class="home-apps-item" hover-class="none" url="/pages/basics/study-files/study-files">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-fl.png" mode=""></image>
</view>
@ -99,8 +99,8 @@
</view>
</navigator>
</view>
<view class="home-apps-list">
<navigator class="home-apps-item" hover-class="none" url="/pages/application/eight-assignments"
<view v-if="loginCorpId" class="home-apps-list">
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/eight-assignments"
v-show="premission.eightWork">
<view class="home-apps-item-img" style="position: relative;">
<image src="../../static/icon-apps/home-gw.png" mode=""></image>
@ -109,8 +109,8 @@
<view class="text">
<text>高危作业</text>
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/key-project-management/index/index">
</navigator>-->
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/key-project-management/index/index">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image>
</view>
@ -118,7 +118,7 @@
<text>重点工程管理</text>
</view>
<view v-if="keyProjectManagement" class="cu-tag badge">{{ keyProjectManagement }}</view>
</navigator>
</navigator>-->
<navigator class="home-apps-item" hover-class="none" url="/pages/application/commitment">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-cns.png" mode=""></image>
@ -127,37 +127,6 @@
<text>安全承诺</text>
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/home"
v-show="premission.education">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-study.png" mode=""></image>
</view>
<view class="text">
<text>学习园地</text>
</view>
</navigator>
</view>
<view class="home-apps-list">
<navigator class="home-apps-item" hover-class="none" url="/pages/application/safety-environmental-inspection/home">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-base.png" mode=""></image>
</view>
<view class="text">
<text>安全环保检查</text>
</view>
<view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"
v-show="premission.speEquip">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-speEquip.jpg" mode=""></image>
</view>
<view class="text">
<text>设备巡检</text>
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none"
url="/pages/application/safetymeeting/home">
<view class="home-apps-item-img">
@ -176,6 +145,37 @@
<text>行车三检</text>
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/home"
v-show="premission.education">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-study.png" mode=""></image>
</view>
<view class="text">
<text>学习园地</text>
</view>
</navigator>
</view>
<view v-if="loginCorpId" class="home-apps-list">
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/safety-environmental-inspection/home">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-base.png" mode=""></image>
</view>
<view class="text">
<text>安全环保检查</text>
</view>
<view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>
</navigator>-->
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"
v-show="premission.speEquip">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-speEquip.jpg" mode=""></image>
</view>
<view class="text">
<text>设备巡检</text>
</view>
</navigator>-->
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/face/index">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-study.png" mode=""></image>
@ -187,7 +187,7 @@
</view>
</view>
<view class="home-work">
<view v-if="loginCorpId" class="home-work">
<view class="home-work-title">
<view class="title">
<view class="q_title"></view>
@ -356,7 +356,7 @@
</view>
<view class="home-hidden">
<view v-if="loginCorpId" class="home-hidden">
<view class="home-work-title">
<view class="title">
<view class="q_title"></view>
@ -457,7 +457,7 @@
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
<view class="home-date">
<view v-if="loginCorpId" class="home-date">
<view class="home-work-title">
<view class="title">
<view class="q_title"></view>
@ -648,7 +648,8 @@ import {
rollData: [],
eight_work_count: 0,
updataPd: {},
modalName: ''
modalName: '',
loginCorpId: ''
};
},
mounted() {
@ -657,11 +658,14 @@ import {
let now = new Date();
var today = formatDate(now, 'yyyy-MM-dd');
this.loginCorpId = loginUser.CORPINFO_ID
console.log("loginUser.CORPINFO_ID" + loginUser.CORPINFO_ID)
console.log("loginCorpId" + this.loginCorpId)
if (loginUser.CORPINFO_ID) {
this.getSafetyEnvironmentalInspectionCount();
this.getIsRest();
this.getData();
this.getSurveyData();
// this.getSurveyData();
this.getListData();
//
this.getHiddenRoll();

View File

@ -11,14 +11,14 @@
</view>
<view :class="PageCur=='basics'?'text-blue':'text-gray'">首页</view>
</view>
<view class="action" @click="NavChange" data-cur="application">
<view v-if="loginCorpId" class="action" @click="NavChange" data-cur="application">
<view class='cuIcon-cu-image'>
<image :src="'/static/tabbar/application' + [PageCur == 'application'?'_cur':''] + '.png'"></image>
<view v-if="hidCount>0" class="cu-tag badge">{{hidCount}}</view>
</view>
<view :class="PageCur=='application'?'text-blue':'text-gray'">应用</view>
</view>
<view class="action" @click="NavChange" data-cur="works">
<view v-if="loginCorpId" class="action" @click="NavChange" data-cur="works">
<view class='cuIcon-cu-image'>
<image :src="'/static/tabbar/works' + [PageCur == 'works'?'_cur':''] + '.png'"></image>
<view v-if="mesCount>0" class="cu-tag badge">{{mesCount}}</view>
@ -77,7 +77,8 @@
hidCount:0,
dys:0,
dzg:0,
isShowTabBar:false
isShowTabBar:false,
loginCorpId: ''
}
},
onBackPress() {
@ -138,6 +139,7 @@
this.getPromiseUnsigned()
},
onLoad() {
this.loginCorpId = loginUser.CORPINFO_ID
this.plusReady();
// this.checkPlatform();
// this.checkUpdate("android");

View File

@ -51,39 +51,41 @@ import {
},
methods: {
//
confirmAccount(e) {
async confirmAccount(e) {
if (this.validateData()) {
this.checkIdCardData()
// const org_birthday = this.formData.USER_ID_CARD.substring(6, 14);
// const org_gender = this.formData.USER_ID_CARD.substring(16, 17);
// const birthday =
// org_birthday.substring(0, 4) +
// "-" +
// org_birthday.substring(4, 6) +
// "-" +
// org_birthday.substring(6, 8);
// const birthdays = new Date(birthday.replace(/-/g, "/"));
// const Month = birthdays.getMonth() + 1;
// let MonthDate;
// const DayDate = birthdays.getDate();
// let Day;
// if (Month < 10) MonthDate = "0" + Month;
// else MonthDate = Month;
// if (DayDate < 10) Day = "0" + DayDate;
// else Day = DayDate;
// this.formData.SEX = org_gender % 2 === 1 ? "1" : "0";
// this.formData.DATE_OF_BIRTH = birthdays.getFullYear() + "-" + MonthDate + "-" + Day;
// this.formData.DRIVER_LICENSE_NO = this.formData.USER_ID_CARD
// this.formData.QUALIFICATION_CERTIFICATE_NO = this.formData.USER_ID_CARD
// // uni.navigateTo({
// // url: '/pages/login/register/baseInfo?'
// // +'NAME='+encodeURIComponent(JSON.stringify(this.formData.NAME.replace('%','%25')))
// // +'&USER_ID_CARD='+ encodeURIComponent(JSON.stringify(this.formData.USER_ID_CARD))
// // +'&PHONE='+ encodeURIComponent(JSON.stringify(this.formData.PHONE))
// // +'&DATE_OF_BIRTH='+ encodeURIComponent(JSON.stringify(this.formData.DATE_OF_BIRTH))
// // +'&SEX='+ encodeURIComponent(JSON.stringify(this.formData.SEX))
// // });
// this.$emit("confirm", '');
const flag = await this.checkIdCardData()
if (flag) {
const org_birthday = this.formData.USER_ID_CARD.substring(6, 14);
const org_gender = this.formData.USER_ID_CARD.substring(16, 17);
const birthday =
org_birthday.substring(0, 4) +
"-" +
org_birthday.substring(4, 6) +
"-" +
org_birthday.substring(6, 8);
const birthdays = new Date(birthday.replace(/-/g, "/"));
const Month = birthdays.getMonth() + 1;
let MonthDate;
const DayDate = birthdays.getDate();
let Day;
if (Month < 10) MonthDate = "0" + Month;
else MonthDate = Month;
if (DayDate < 10) Day = "0" + DayDate;
else Day = DayDate;
this.formData.SEX = org_gender % 2 === 1 ? "1" : "0";
this.formData.DATE_OF_BIRTH = birthdays.getFullYear() + "-" + MonthDate + "-" + Day;
this.formData.DRIVER_LICENSE_NO = this.formData.USER_ID_CARD
this.formData.QUALIFICATION_CERTIFICATE_NO = this.formData.USER_ID_CARD
// uni.navigateTo({
// url: '/pages/login/register/baseInfo?'
// +'NAME='+encodeURIComponent(JSON.stringify(this.formData.NAME.replace('%','%25')))
// +'&USER_ID_CARD='+ encodeURIComponent(JSON.stringify(this.formData.USER_ID_CARD))
// +'&PHONE='+ encodeURIComponent(JSON.stringify(this.formData.PHONE))
// +'&DATE_OF_BIRTH='+ encodeURIComponent(JSON.stringify(this.formData.DATE_OF_BIRTH))
// +'&SEX='+ encodeURIComponent(JSON.stringify(this.formData.SEX))
// });
this.$emit("confirm", '');
}
}
},
goback(){

View File

@ -77,11 +77,11 @@
form: {
USER_ID: '',
//
NAME: '',
NAME: '',
//
USER_ID_CARD: '130324198402060224',
USER_ID_CARD: '',
//
PHONE: '13091370001',
PHONE: '',
//
DATE_OF_BIRTH: '',
//
@ -103,12 +103,12 @@
ID_CARD_FRONT: '',
ID_CARD_BACK: '',
//
ID_CARD_VALIDITY_START: '2019-03-13',
ID_CARD_VALIDITY_END: '2039-03-13',
ID_CARD_VALIDITY_START: '',
ID_CARD_VALIDITY_END: '',
//
ID_CARD_ADDRESS: '住址',
ID_CARD_ADDRESS: '',
//
ID_CARD_ORGAN: '身份证签发机关',
ID_CARD_ORGAN: '',
//
NATION: '',
NATIONNAME: '',
@ -120,15 +120,15 @@
//
DRIVING_MODEL: [],
//
DRIVING_NATIONALITY: '中国',
DRIVING_NATIONALITY: '',
//
DRIVER_LICENSE_ISSUE_DATE: '2010-03-13',
DRIVER_LICENSE_ISSUE_DATE: '',
//
DRIVER_LICENSE_VALIDITY_START: '2015-03-13',
DRIVER_LICENSE_VALIDITY_START: '',
//
DRIVER_LICENSE_VALIDITY_END: '2025-03-13',
DRIVER_LICENSE_VALIDITY_END: '',
//
DRIVER_LICENSE_ORGAN: '驾驶证签发机关',
DRIVER_LICENSE_ORGAN: '',
//
QUALIFICATION_CERTIFICATE: '',
@ -137,15 +137,15 @@
//
QUALIFICATION_CERTIFICATE_CATEGORY: [],
//
QUALIFICATION_CERTIFICATE_NATIONALITY: '中国',
QUALIFICATION_CERTIFICATE_NATIONALITY: '',
//
QUALIFICATION_CERTIFICATE_ISSUE_DATE: '2011-03-13',
QUALIFICATION_CERTIFICATE_ISSUE_DATE: '',
//
QUALIFICATION_CERTIFICATE_VALIDITY_START: '2023-03-13',
QUALIFICATION_CERTIFICATE_VALIDITY_START: '',
//
QUALIFICATION_CERTIFICATE_VALIDITY_END: '2029-03-13',
QUALIFICATION_CERTIFICATE_VALIDITY_END: '',
//
QUALIFICATION_CERTIFICATE_ORGAN: '从业资格证签发机关',
QUALIFICATION_CERTIFICATE_ORGAN: '',
//
APPLY_CORP: '',

View File

@ -14,8 +14,8 @@
</view>
</view>
<view class="cu-list menu margin-top">
<view class="cu-item arrow">
<navigator class="content" v-if="isRest=='1'" hover-class="none" url="../" @click="showRest()">
<view v-if="loginCorpId" class="cu-item arrow">
<navigator v-if="isRest==='1'" class="content" hover-class="none" url="../" @click="showRest()">
<text class="text-semi">离岗</text>
</navigator>
<navigator class="content" v-else hover-class="none" url="/pages/my/offduty/index">
@ -69,16 +69,19 @@
export default {
data() {
return {
loginCorpId: '',
loginUser :'',
userPhoto :'/static/avatar.png',
isRest :''
};
},
mounted() {
this.getData();
this.loginUser = loginUser;
this.loginCorpId = loginUser.CORPINFO_ID
console.log('loginCorpId =>' + this.loginCorpId)
this.isRest = isRest;
if(this.loginUser.USERNAME){
if(this.loginCorpId && this.loginUser.USERNAME){
this.getData();
this.getUserInfo();
}