This commit is contained in:
lSun 2024-12-25 13:25:31 +08:00
parent 4cac837af5
commit 987d9a5be6
22 changed files with 2758 additions and 2466 deletions

View File

@ -4,7 +4,8 @@ import config from '@/config'
import { getToken } from '@/utils/auth.js' import { getToken } from '@/utils/auth.js'
// import store from '@/store'; // import store from '@/store';
const baseUrl = config.loginBaseUrl // const baseUrl = config.loginBaseUrl
const baseUrl = config.lpLoginUrl
console.log('baseUrl-请求', baseUrl) console.log('baseUrl-请求', baseUrl)
const http = new Request({ const http = new Request({

View File

@ -39,56 +39,62 @@
// } // }
// 测试环境 // 测试环境
module.exports = { module.exports = {
// baseUrl:'/prod-api', // baseUrl:'/prod-api',
// http://192.168.0.14:19999 // http://192.168.0.14:19999
loginBaseUrl: 'http://112.29.103.165:1616', // loginBaseUrl: 'http://112.29.103.165:1616',
// loginBaseUrl: 'http://192.168.0.14:27018', // // loginBaseUrl: 'http://192.168.0.14:27018',
// loginBaseUrl:'http://192.168.0.14:19999', // // loginBaseUrl:'http://192.168.0.14:19999',
// baseUrl:'http://192.168.0.14:2900', // // baseUrl:'http://192.168.0.14:2900',
baseUrl: 'http://192.168.0.14:19999', // baseUrl: 'http://192.168.0.14:19999',
// loginUrl: 'http://112.29.103.165:1616', // // loginUrl: 'http://112.29.103.165:1616',
login: 'http://192.168.0.14:19200', // login: 'http://192.168.0.14:19200',
// 图片展示基础地址 // // 图片展示基础地址
fileUrl: 'http://192.168.0.14:19999/exam-file/', // fileUrl: 'http://192.168.0.14:19999/exam-file/',
// 上传文件地址 // // 上传文件地址
uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64', // uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64',
bmwUrl: 'http://192.168.0.14:19999/exam-bmw', // bmwUrl: 'http://192.168.0.14:19999/exam-bmw',
// 体检-基础路径 // // 体检-基础路径
tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager', // tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager',
// tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager', // // tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager',
tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/', // tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/',
//兰坪实名制移动端--登录
lpLoginUrl:'http://192.168.0.15:9200/', //兰坪实名制移动端--移动
lpAppUrl: 'http://192.168.0.50:1913/app',
//兰坪实名制移动端--登录
lpLoginUrl: 'http://192.168.0.50:9200/',
//兰坪实名制移动端--后台
lpBmwUrl: 'http://192.168.0.50:1912',
//实名制移动端-登录接口
realLoginUrl: 'http://192.168.0.14:1616/auth/',
realBaseUrl: 'http://192.168.0.14:1910/',
//实名制移动端-移动
realAppUrl: 'http://192.168.0.14:1913/app',
//实名制移动端-安培
realExamUrl: 'http://192.168.0.14:1616/system',
//实名制移动端-文件
realFileUrl: 'http://192.168.0.14:1909/file/',
//实名制移动端
realBmwUrl: 'http://192.168.0.14:1616/bmw',
//实名制移动端 -- 新
realNewBmwUrl: 'http://192.168.0.14:1616',
loginUrl: 'http://192.168.0.14:27018',
//实名制移动端 -- 新
realNewYnUrl: 'http://192.168.0.14:1918',
realIdCardUrl: 'http://192.168.0.14:26699',
//作业计划 -- 新 // //实名制移动端-登录接口
workPlanNewYnUrl: 'http://192.168.0.14:19191', // realLoginUrl: 'http://192.168.0.14:1616/auth/',
// realBaseUrl: 'http://192.168.0.14:1910/',
// //实名制移动端-移动
// realAppUrl: 'http://192.168.0.14:1913/app',
// //实名制移动端-安培
// realExamUrl: 'http://192.168.0.14:1616/system',
// //实名制移动端-文件
// realFileUrl: 'http://192.168.0.14:1909/file/',
// //实名制移动端
// realBmwUrl: 'http://192.168.0.14:1616/bmw',
// //实名制移动端 -- 新
// realNewBmwUrl: 'http://192.168.0.14:1616',
// loginUrl: 'http://192.168.0.14:27018',
// //实名制移动端 -- 新
// realNewYnUrl: 'http://192.168.0.14:1918',
// realIdCardUrl: 'http://192.168.0.14:26699',
// 应用信息 // //作业计划 -- 新
appInfo: { // workPlanNewYnUrl: 'http://192.168.0.14:19191',
// 应用名称
name: '作业管控智慧平台', // 应用信息
// 应用版本 appInfo: {
version: '1.1.0' // 应用名称
} name: '作业管控智慧平台',
// 应用版本
version: '1.1.0'
}
} }

View File

@ -136,7 +136,7 @@
} }
}, },
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"quickapp" : {}, "quickapp" : {},
@ -168,19 +168,19 @@
} }
}, },
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true, "usingComponents" : true,
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"mp-baidu" : { "mp-baidu" : {
"usingComponents" : true, "usingComponents" : true,
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
}, },
"dynamicLib" : { "dynamicLib" : {
"editorLib" : { "editorLib" : {
@ -191,13 +191,13 @@
"mp-toutiao" : { "mp-toutiao" : {
"usingComponents" : true, "usingComponents" : true,
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"mp-jd" : { "mp-jd" : {
"usingComponents" : true, "usingComponents" : true,
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"h5" : { "h5" : {
@ -217,37 +217,47 @@
"timeout" : 20000 "timeout" : 20000
}, },
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"vueVersion" : "2", "vueVersion" : "2",
"mp-kuaishou" : { "mp-kuaishou" : {
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"mp-lark" : { "mp-lark" : {
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"mp-qq" : { "mp-qq" : {
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"quickapp-webview-huawei" : { "quickapp-webview-huawei" : {
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"quickapp-webview-union" : { "quickapp-webview-union" : {
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"uniStatistics" : { "uniStatistics" : {
"version" : "2", "version" : "2",
"enable" : true "enable" : false
},
"app-harmony" : {
"uniStatistics" : {
"enable" : false
}
},
"mp-harmony" : {
"uniStatistics" : {
"enable" : false
}
} }
} }

View File

@ -611,6 +611,14 @@
} }
}, },
{
//-
"path": "pages/realName/workbench/safeguarding/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
//退-退 //退-退
"path": "pages/realName/workbench/outPerson/outList", "path": "pages/realName/workbench/outPerson/outList",

View File

@ -240,7 +240,6 @@ export default {
} }
} }
return { return {
// globalConfig: getApp().globalData.config,
selectTab: 1, selectTab: 1,
loginForm: { loginForm: {
phone: '14769014289', // 18955734761 18700000001 17681010134 15955147005 15656751631 phone: '14769014289', // 18955734761 18700000001 17681010134 15955147005 15656751631

File diff suppressed because it is too large Load Diff

View File

@ -497,7 +497,7 @@ export default {
console.log(this.queryParams) console.log(this.queryParams)
this.isLoading = true this.isLoading = true
uni.request({ uni.request({
url: config.realBmwUrl + '/homeSubPage/getAppWorkerMsg', url: config.lpBmwUrl + '/bmw/homeSubPage/getAppWorkerMsg',
method: 'POST', method: 'POST',
data: JSON.stringify(this.queryParams), data: JSON.stringify(this.queryParams),
header: { header: {

View File

@ -317,7 +317,7 @@ export default {
console.log('this.queryParams参数', this.queryParams) console.log('this.queryParams参数', this.queryParams)
this.isLoading = true this.isLoading = true
uni.request({ uni.request({
url: config.realBmwUrl + '/homeSubPage/getAppBuildPro', url: config.lpBmwUrl + '/bmw/homeSubPage/getAppBuildPro',
method: 'POST', method: 'POST',
data: JSON.stringify(this.queryParams), data: JSON.stringify(this.queryParams),
header: { header: {

View File

@ -296,7 +296,7 @@ export default {
console.log(this.queryParams) console.log(this.queryParams)
this.isLoading=true this.isLoading=true
uni.request({ uni.request({
url: config.realBmwUrl + '/homeSubPage/getAppActiveSub', url: config.lpBmwUrl + '/bmw/homeSubPage/getAppActiveSub',
method: 'POST', method: 'POST',
data: JSON.stringify(this.queryParams), data: JSON.stringify(this.queryParams),
header: { header: {

View File

@ -205,7 +205,7 @@ export default {
console.log('this.queryParams参数', this.queryParams) console.log('this.queryParams参数', this.queryParams)
this.isLoading=true this.isLoading=true
uni.request({ uni.request({
url: config.realBmwUrl + '/homeSubPage/getAppActiveTeam', url: config.lpBmwUrl + '/bmw/homeSubPage/getAppActiveTeam',
method: 'POST', method: 'POST',
data: JSON.stringify(this.queryParams), data: JSON.stringify(this.queryParams),
header: { header: {

View File

@ -204,7 +204,7 @@ export default {
subId:-1 subId:-1
} }
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getPro', url: config.lpAppUrl + '/offLine/getPro',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -230,7 +230,7 @@ export default {
proId:-1 proId:-1
} }
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getSubcontractor', url: config.lpAppUrl + '/offLine/getSubcontractor',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -272,7 +272,7 @@ export default {
console.log(param) console.log(param)
this.listData=[] this.listData=[]
uni.request({ uni.request({
url: config.realAppUrl+'/contract/contractSignQueryList', url: config.lpAppUrl+'/contract/contractSignQueryList',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -379,7 +379,7 @@ export default {
} }
console.log(param) console.log(param)
await uni.request({ await uni.request({
url: config.realAppUrl+'/contract/updateSign', url: config.lpAppUrl+'/contract/updateSign',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {

View File

@ -1,459 +1,527 @@
<template> <template>
<view class="page"> <view class="page">
<u-navbar title="工作台" placeholder bgColor="#00337A" @leftClick="leftClick" leftIconColor="#fff" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"> <u-navbar title="工作台" placeholder bgColor="#00337A" @leftClick="leftClick" leftIconColor="#fff"
<view class="u-nav-slot" slot="left"> :titleStyle="{ color: '#FFF', fontSize: '32rpx' }">
<u-icon name="grid" size="24" color="#FFF" v-if="type.indexOf('4')>-1"></u-icon> <view class="u-nav-slot" slot="left">
</view> <u-icon name="grid" size="24" color="#FFF" v-if="type.indexOf('4')>-1"></u-icon>
</u-navbar> </view>
<view style="width: 100%;height: 84vh;"> </u-navbar>
<scroll-view scroll-y="true"> <view style="width: 100%;height: 84vh;">
<view class="view-box"> <scroll-view scroll-y="true">
<view class="view-item" v-for="(item,index) in menuList" :key="index" @click="goModule(item.name)"> <view class="view-box">
<view><image class="img1" :src="`/static/realName/${item.css}.png`" style="width: 70rpx;height: 70rpx;" alt=""></view> <view class="view-item" v-for="(item,index) in menuList" :key="index" @click="goModule(item.name)">
<view style="font-size: 26rpx;">{{item.name}}</view> <view>
</view> <image class="img1" :src="`/static/realName/${item.css}.png`"
style="width: 70rpx;height: 70rpx;" alt="">
</view>
<view style="font-size: 26rpx;">{{item.name}}</view>
</view>
<!-- 监督端 --> <!-- 监督端 -->
<!-- 作业计划与实名制管控情况 --> <!-- 作业计划与实名制管控情况 -->
<!-- <view class="view-item" @click="goPlan" v-if="type.indexOf('4')>-1"> <!-- <view class="view-item" @click="goPlan" v-if="type.indexOf('4')>-1">
<view><image class="img1" src="@/static/realName/attendance_statistics.png" style="width: 80rpx;height: 80rpx;" alt=""></view> <view><image class="img1" src="@/static/realName/attendance_statistics.png" style="width: 80rpx;height: 80rpx;" alt=""></view>
<view style="font-size: 28rpx;">作业计划与实...</view> <view style="font-size: 28rpx;">作业计划与实...</view>
</view> --> </view> -->
<!-- 人员信息录入 --> <!-- 人员信息录入 -->
<!-- <view class="view-item" @click="goPersonEnter" v-if="type.indexOf('4')>-1"> <!-- <view class="view-item" @click="goPersonEnter" v-if="type.indexOf('4')>-1">
<view><image class="img1" src="@/static/realName/base_person.png" style="width: 70rpx;height: 70rpx;" alt=""></view> <view><image class="img1" src="@/static/realName/base_person.png" style="width: 70rpx;height: 70rpx;" alt=""></view>
<view style="font-size: 26rpx;">人员信息录入</view> <view style="font-size: 26rpx;">人员信息录入</view>
</view> --> </view> -->
<!-- 人员资质库更新 --> <!-- 人员资质库更新 -->
<!-- <view class="view-item" @click="goUpdateFace" v-if="type.indexOf('4')>-1">--> <!-- <view class="view-item" @click="goUpdateFace" v-if="type.indexOf('4')>-1">-->
<!-- <view><image class="img1" src="@/static/realName/update_face.png" style="width: 80rpx;height: 80rpx;" alt=""></view>--> <!-- <view><image class="img1" src="@/static/realName/update_face.png" style="width: 80rpx;height: 80rpx;" alt=""></view>-->
<!-- <view style="font-size: 28rpx;">人员资质库更新</view>--> <!-- <view style="font-size: 28rpx;">人员资质库更新</view>-->
<!-- </view>--> <!-- </view>-->
<!-- 人员资质检查 --> <!-- 人员资质检查 -->
<!-- <view class="view-item" @click="goQualifications" v-if="type.indexOf('4')>-1">--> <!-- <view class="view-item" @click="goQualifications" v-if="type.indexOf('4')>-1">-->
<!-- <view><image class="img1" src="@/static/realName/qualifications.png" style="width: 80rpx;height: 80rpx;" alt=""></view>--> <!-- <view><image class="img1" src="@/static/realName/qualifications.png" style="width: 80rpx;height: 80rpx;" alt=""></view>-->
<!-- <view style="font-size: 28rpx;">人员资质检查</view>--> <!-- <view style="font-size: 28rpx;">人员资质检查</view>-->
<!-- </view>--> <!-- </view>-->
<!-- 人员暂退 --> <!-- 人员暂退 -->
<view class="view-item" @click="goOutPerson" v-if="type.indexOf('4')>-1"> <view class="view-item" @click="goOutPerson" v-if="type.indexOf('4')>-1">
<view><image class="img1" src="@/static/realName/out_person.png" style="width: 80rpx;height: 80rpx;" alt=""></view> <view>
<view style="font-size: 28rpx;">我的组织</view> <image class="img1" src="@/static/realName/out_person.png"
</view> style="width: 80rpx;height: 80rpx;" alt="">
</view>
<view style="font-size: 28rpx;">我的组织</view>
</view>
<view class="view-item" @click="getDailyPlanManagement" v-if="type.indexOf('4')>-1"> <view class="view-item" @click="goDailyPlanManagement" v-if="type.indexOf('4')>-1">
<view><image class="img1" src="@/static/realName/attendance.png" style="width: 80rpx;height: 80rpx;" alt=""></view> <view>
<view style="font-size: 28rpx;">作业计划管理</view> <image class="img1" src="@/static/realName/attendance.png"
</view> style="width: 80rpx;height: 80rpx;" alt="">
</view>
<view style="font-size: 28rpx;">作业计划管理</view>
</view>
<!-- 施工端 --> <view class="view-item" @click="goSafeguarding" v-if="type.indexOf('4')>-1">
<!-- <view class="view-item" @click="goDayPlan" v-if="type.indexOf('3')>-1">--> <view>
<!-- <view><image class="img1" src="@/static/realName/day_plan.png" style="width: 70rpx;height: 70rpx;" alt=""></view>--> <image class="img1" src="@/static/realName/safeguarding.png"
<!-- <view style="font-size: 26rpx;">准入信息查询</view>--> style="width: 80rpx;height: 80rpx;" alt="">
<!-- </view>--> </view>
<!-- <view class="view-item" @click="goExam" v-if="type.indexOf('3')>-1">--> <view style="font-size: 28rpx;">欠薪维权申诉</view>
<!-- <view><image class="img1" src="@/static/realName/exam.png" style="width: 70rpx;height: 70rpx;" alt=""></view>--> </view>
<!-- <view style="font-size: 26rpx;">安全教育培训</view>-->
<!-- </view>-->
</view> <!-- 人员信息录入 -->
</scroll-view> <view class="view-item" @click="goPersonEnter" v-if="type.indexOf('4')>-1">
</view> <view>
<image class="img1" src="@/static/realName/base_person.png"
style="width: 70rpx;height: 70rpx;" alt="">
</view>
<view style="font-size: 26rpx;">人员信息录入</view>
</view>
<!-- 电子合同签署 -->
<view class="view-item" @click="goElectronicContractSign" v-if="type.indexOf('4')>-1" >
<view>
<image class="img1" src="@/static/realName/exam.png" style="width: 70rpx;height: 70rpx;" alt=""></image>
</view>
<view style="font-size: 26rpx;">电子合同签署</view>
</view>
<!-- 施工端 -->
<!-- <view class="view-item" @click="goDayPlan" v-if="type.indexOf('3')>-1">-->
<!-- <view><image class="img1" src="@/static/realName/day_plan.png" style="width: 70rpx;height: 70rpx;" alt=""></view>-->
<!-- <view style="font-size: 26rpx;">准入信息查询</view>-->
<!-- </view>-->
<!-- <view class="view-item" @click="goExam" v-if="type.indexOf('3')>-1">-->
<!-- <view><image class="img1" src="@/static/realName/exam.png" style="width: 70rpx;height: 70rpx;" alt=""></view>-->
<!-- <view style="font-size: 26rpx;">安全教育培训</view>-->
<!-- </view>-->
</view>
</scroll-view>
</view>
<!-- 弹窗 --> <!-- 弹窗 -->
<u-popup :show="showPopup" mode="center" @close="closePopup"> <u-popup :show="showPopup" mode="center" @close="closePopup">
<view style="width:500rpx;height: auto%;position: relative;background-color: #fff;"> <view style="width:500rpx;height: auto%;position: relative;background-color: #fff;">
<view style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;"> <view
<view style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;">选择工程</view> style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;">
<u-icon style="width: 10%;" name="close" color="#000" size="24" @click="closePopup"></u-icon> <view style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;">
</view> 选择工程</view>
<scroll-view style="width: 100%;height: 50vh;background-color: #fff;" scroll-y="true"> <u-icon style="width: 10%;" name="close" color="#000" size="24" @click="closePopup"></u-icon>
<view v-for="(item,index) in proList" :key="index" style="padding: 20rpx;" v-if="item.isActive==1" @click="chosenPro(item)">{{item.abbreviation}}</view> </view>
</scroll-view> <scroll-view style="width: 100%;height: 50vh;background-color: #fff;" scroll-y="true">
</view> <view v-for="(item,index) in proList" :key="index" style="padding: 20rpx;" v-if="item.isActive==1"
</u-popup> @click="chosenPro(item)">{{item.abbreviation}}</view>
</scroll-view>
</view>
</u-popup>
<!-- 弹窗 --> <!-- 弹窗 -->
<u-popup :show="showAccessPopup" mode="center" @close="closeAccessPopup"> <u-popup :show="showAccessPopup" mode="center" @close="closeAccessPopup">
<view style="width:600rpx;height: auto%;position: relative;background-color: #fff;"> <view style="width:600rpx;height: auto%;position: relative;background-color: #fff;">
<view style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;"> <view
<view style="width: 10%;height: 70rpx;"></view> style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;">
<view style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;text-align: center;font-size: 30rpx;">个人信息查询</view> <view style="width: 10%;height: 70rpx;"></view>
<u-icon style="width: 10%;" name="close" color="#000" size="22" @click="closeAccessPopup"></u-icon> <view
</view> style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;text-align: center;font-size: 30rpx;">
<scroll-view style="width: 100%;height: 32vh;background-color: #fff;" scroll-y="true"> 个人信息查询</view>
<view class="card-item" v-if="accessData.isFace==1"> <u-icon style="width: 10%;" name="close" color="#000" size="22" @click="closeAccessPopup"></u-icon>
<view class="label">人脸照片</view> </view>
<view class="btn">已采集</view> <scroll-view style="width: 100%;height: 32vh;background-color: #fff;" scroll-y="true">
</view> <view class="card-item" v-if="accessData.isFace==1">
<view class="card-item-red" v-else> <view class="label">人脸照片</view>
<view class="label">人脸照片</view> <view class="btn">已采集</view>
<view class="btn">未采集</view> </view>
</view> <view class="card-item-red" v-else>
<view class="label">人脸照片</view>
<view class="btn">未采集</view>
</view>
<view class="card-item" v-if="accessData.isSign==1"> <view class="card-item" v-if="accessData.isSign==1">
<view class="label">电子签名</view> <view class="label">电子签名</view>
<view class="btn">已采集</view> <view class="btn">已采集</view>
</view> </view>
<view class="card-item-red" v-else> <view class="card-item-red" v-else>
<view class="label">电子签名</view> <view class="label">电子签名</view>
<view class="btn">未采集</view> <view class="btn">未采集</view>
</view> </view>
<view class="card-item" v-if="accessData.isContract==1"> <view class="card-item" v-if="accessData.isContract==1">
<view class="label">合同见证/电子合同</view> <view class="label">合同见证/电子合同</view>
<view class="btn">已上传</view> <view class="btn">已上传</view>
</view> </view>
<view class="card-item-red" v-else> <view class="card-item-red" v-else>
<view class="label">合同见证/电子合同</view> <view class="label">合同见证/电子合同</view>
<view class="btn">未上传</view> <view class="btn">未上传</view>
</view> </view>
<view class="card-item" v-if="accessData.isWages==1"> <view class="card-item" v-if="accessData.isWages==1">
<view class="label">工资卡见证</view> <view class="label">工资卡见证</view>
<view class="btn">已上传</view> <view class="btn">已上传</view>
</view> </view>
<view class="card-item-red" v-else> <view class="card-item-red" v-else>
<view class="label">工资卡见证</view> <view class="label">工资卡见证</view>
<view class="btn">未上传</view> <view class="btn">未上传</view>
</view> </view>
<view class="card-item" v-if="accessData.isWorkScene==1"> <view class="card-item" v-if="accessData.isWorkScene==1">
<view class="label">班组作业点</view> <view class="label">班组作业点</view>
<view class="btn">已配置</view> <view class="btn">已配置</view>
</view> </view>
<view class="card-item-red" v-else> <view class="card-item-red" v-else>
<view class="label">班组作业点</view> <view class="label">班组作业点</view>
<view class="btn">未配置</view> <view class="btn">未配置</view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
</u-popup> </u-popup>
<m-tabbar fixed fill :current="1" :tabbar="tabbar"></m-tabbar> <m-tabbar fixed fill :current="1" :tabbar="tabbar"></m-tabbar>
</view> </view>
</template> </template>
<script> <script>
import TabbarConfig from '../util/tabbar.js' import TabbarConfig from '../util/tabbar.js'
import config from '@/config' import config from '@/config'
export default { export default {
data() { data() {
return { return {
tabbar: TabbarConfig, tabbar: TabbarConfig,
type:uni.getStorageSync('realNameUser').type, type: uni.getStorageSync('realNameUser').type,
subId:uni.getStorageSync('realNameUser').subId, subId: uni.getStorageSync('realNameUser').subId,
idNumber:uni.getStorageSync('realNameUser').idNumber, idNumber: uni.getStorageSync('realNameUser').idNumber,
teamId:uni.getStorageSync('realNameUser').teamId, teamId: uni.getStorageSync('realNameUser').teamId,
showPopup:false, showPopup: false,
showAccessPopup:false, showAccessPopup: false,
accessData:{}, accessData: {},
proList:[], proList: [],
menuList:[], menuList: [],
permissionList:uni.getStorageSync('realNamePermissions') permissionList: uni.getStorageSync('realNamePermissions')
// userName: uni.getStorageSync('userName'), // userName: uni.getStorageSync('userName'),
// className: uni.getStorageSync('className'), // className: uni.getStorageSync('className'),
// facePath: config.fileUrl + uni.getStorageSync('facePath'), // facePath: config.fileUrl + uni.getStorageSync('facePath'),
// token: uni.getStorageSync('access_token') // token: uni.getStorageSync('access_token')
} }
}, },
onLoad() { onLoad() {
this.getPermission() this.getPermission()
if(this.type.indexOf("4")>-1){// if (this.type.indexOf("4") > -1) { //
this.getPro() this.getPro()
} }
}, },
onShow() { onShow() {
if(this.type.indexOf("4")>-1){ // if (this.type.indexOf("4") > -1) { //
let hasChosenPro=uni.getStorageSync('hasChosenPro') let hasChosenPro = uni.getStorageSync('hasChosenPro')
if(!hasChosenPro){ if (!hasChosenPro) {
this.showPopup=true this.showPopup = true
} }
} }
if(this.type.indexOf("3")>-1){ // if (this.type.indexOf("3") > -1) { //
let hasViewAccess=uni.getStorageSync('hasViewAccess') let hasViewAccess = uni.getStorageSync('hasViewAccess')
if(!hasViewAccess){ if (!hasViewAccess) {
this.getAccessData() this.getAccessData()
this.showAccessPopup=true this.showAccessPopup = true
} }
} }
}, },
methods: { methods: {
getPermission(){ getPermission() {
this.permissionList.forEach((item,index)=>{ this.permissionList.forEach((item, index) => {
// console.log(item) // console.log(item)
if(item.type==3){ if (item.type == 3) {
this.menuList.push(item) this.menuList.push(item)
} }
}) })
console.log(this.menuList) console.log(this.menuList)
}, },
goModule(name){ goModule(name) {
if(name=='合同见证'){ if (name == '合同见证') {
uni.navigateTo({ uni.navigateTo({
url: `/pages/realName/workbench/contractWitness/index` url: `/pages/realName/workbench/contractWitness/index`
}) })
}else if(name=='电子合同'){ } else if (name == '电子合同') {
uni.navigateTo({ uni.navigateTo({
url: `/pages/realName/workbench/electronicContract/contractTip` url: `/pages/realName/workbench/electronicContract/contractTip`
}) })
}else if(name=='电子合同签署'){ } else if (name == '电子合同签署') {
uni.navigateTo({ uni.navigateTo({
url: `/pages/realName/workbench/electronicContractSign/index`
})
} else if (name == '电子合同审核') {
uni.navigateTo({
url: `/pages/realName/workbench/electronicContractExam/index`
})
} else if (name == '人员库') {
uni.navigateTo({
url: `/pages/realName/workbench/peopleLibrary/index`
})
} else if (name == '欠薪维权申诉') {
uni.navigateTo({
url: `/pages/realName/workbench/safeguarding/index`
})
} else if (name == '工资卡见证') {
uni.navigateTo({
url: `/pages/realName/workbench/wageWitness/index`
})
} else if (name == '工资查看') {
uni.navigateTo({
url: `/pages/realName/workbench/wageRecord/index`
})
} else if (name == '出场申请') {
uni.navigateTo({
url: `/pages/realName/workbench/appearApply/index`
})
} else if (name == '出场审核') {
uni.navigateTo({
url: `/pages/realName/workbench/appearExam/index`
})
} else if (name == '人员转场') {
uni.navigateTo({
url: `/pages/realName/workbench/cutToPlace/index`
})
}
},
//
//
goPlan() {
uni.navigateTo({ //
url: `/pages/realName/workbench/workPlan/index`
})
},
//
goPersonEnter() {
uni.navigateTo({ //
url: `/pages/realName/workbench/personEnter/index`
})
},
//
goUpdateFace() {
uni.showToast({
title: "人员资质库更新中...",
icon: 'none',
duration: 2000
})
},
//
goQualifications() {
uni.navigateTo({ //
url: `/pages/realName/workbench/qualifications/index`
})
},
goOutPerson() {
uni.navigateTo({ //
url: `/pages/realName/workbench/outPerson/index`
})
},
goDailyPlanManagement() {
uni.navigateTo({ //
url: `/pages/realName/workbench/dailyPlanManagement/index`
})
},
goSafeguarding() {
uni.navigateTo({ //
url: `/pages/realName/workbench/safeguarding/index`
})
},
goElectronicContractSign() {
uni.navigateTo({ //
url: `/pages/realName/workbench/electronicContractSign/index` url: `/pages/realName/workbench/electronicContractSign/index`
}) })
}else if(name=='电子合同审核'){ },
uni.navigateTo({
url: `/pages/realName/workbench/electronicContractExam/index`
})
}else if(name=='人员库'){
uni.navigateTo({
url: `/pages/realName/workbench/peopleLibrary/index`
})
}else if(name=='欠薪维权申诉'){
uni.navigateTo({
url: `/pages/realName/workbench/safeguarding/index`
})
}else if(name=='工资卡见证'){
uni.navigateTo({
url: `/pages/realName/workbench/wageWitness/index`
})
}else if(name=='工资查看'){
uni.navigateTo({
url: `/pages/realName/workbench/wageRecord/index`
})
}else if(name=='出场申请'){
uni.navigateTo({
url: `/pages/realName/workbench/appearApply/index`
})
}else if(name=='出场审核'){
uni.navigateTo({
url: `/pages/realName/workbench/appearExam/index`
})
}else if(name=='人员转场'){
uni.navigateTo({
url: `/pages/realName/workbench/cutToPlace/index`
})
}
},
//
//
goPlan(){
uni.navigateTo({//
url: `/pages/realName/workbench/workPlan/index`
})
},
//
goPersonEnter(){
uni.navigateTo({//
url: `/pages/realName/workbench/personEnter/index`
})
},
//
goUpdateFace(){
uni.showToast({
title: "人员资质库更新中...",
icon: 'none',
duration:2000
})
},
//
goQualifications(){
uni.navigateTo({//
url: `/pages/realName/workbench/qualifications/index`
})
},
goOutPerson(){
uni.navigateTo({//
url: `/pages/realName/workbench/outPerson/index`
})
},
getDailyPlanManagement(){
uni.navigateTo({//
url: `/pages/realName/workbench/dailyPlanManagement/index`
})
},
// //
goDayPlan(){// goDayPlan() { //
uni.navigateTo({ uni.navigateTo({
url: `/pages/realName/workbench/dayPlan/index` url: `/pages/realName/workbench/dayPlan/index`
}) })
}, },
goExam(){// goExam() { //
uni.navigateTo({ uni.navigateTo({
url: `/pages/realName/workbench/exam/index` url: `/pages/realName/workbench/exam/index`
}) })
}, },
// - // -
getAccessData(){ getAccessData() {
let param={ let param = {
idNumber:this.idNumber, idNumber: this.idNumber,
teamId:this.teamId teamId: this.teamId
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl + '/BasePerson/selectPersonAccess', url: config.realAppUrl + '/BasePerson/selectPersonAccess',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
Authorization: uni.getStorageSync('realNameToken') Authorization: uni.getStorageSync('realNameToken')
}, },
success: res => { success: res => {
console.log(res) console.log(res)
res = res.data; res = res.data;
if(res.code==200){ if (res.code == 200) {
this.accessData = res.data; this.accessData = res.data;
} }
}, },
fail: err => { fail: err => {
console.log(err) console.log(err)
} }
}) })
}, },
// //
getPro(){ getPro() {
let param={ let param = {
id:-1, id: -1,
// subId:this.subId // subId:this.subId
subId:'161' subId: '161'
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getPro', url: config.realAppUrl + '/offLine/getPro',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
Authorization: uni.getStorageSync('realNameToken') Authorization: uni.getStorageSync('realNameToken')
}, },
success: res => { success: res => {
console.log(res) console.log(res)
res = res.data; res = res.data;
if(res.code==200){ if (res.code == 200) {
this.proList = res.data; this.proList = res.data;
} }
}, },
fail: err => { fail: err => {
console.log(err) console.log(err)
} }
}) })
}, },
// //
leftClick() { leftClick() {
if(this.type.indexOf("4")>-1){ if (this.type.indexOf("4") > -1) {
this.showPopup=true; this.showPopup = true;
} }
}, },
// //
chosenPro(item){ chosenPro(item) {
let obj = uni.getStorageSync('realNameUser') let obj = uni.getStorageSync('realNameUser')
obj.proId=item.id obj.proId = item.id
uni.setStorageSync('realNameUser', obj) uni.setStorageSync('realNameUser', obj)
uni.setStorageSync('hasChosenPro', "1") uni.setStorageSync('hasChosenPro', "1")
this.showPopup=false; this.showPopup = false;
}, },
closePopup() { closePopup() {
this.showPopup=false; this.showPopup = false;
}, },
closeAccessPopup() { closeAccessPopup() {
uni.setStorageSync('hasViewAccess', "1") uni.setStorageSync('hasViewAccess', "1")
this.showAccessPopup=false; this.showAccessPopup = false;
}, },
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.page { .page {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
// box-sizing: border-box; // box-sizing: border-box;
// padding: 15vh 8vw; // padding: 15vh 8vw;
.view-box{ .view-box {
width: 100%;height: auto;display: flex;flex-wrap: wrap;flex-direction: row; width: 100%;
margin-bottom: 100rpx; height: auto;
} display: flex;
.view-item{ flex-wrap: wrap;
width: 33%;height: 200rpx;display: flex;flex-direction:column;align-items: center;justify-content: center; flex-direction: row;
} margin-bottom: 100rpx;
// .view-item{ }
// width: 94%;
// margin: 0rpx auto; .view-item {
// padding:20rpx; width: 33%;
// // display: flex; height: 200rpx;
// border-bottom: 1rpx solid #EFEFEF; display: flex;
// font-size: 26rpx; flex-direction: column;
// .label{ align-items: center;
// width: 300rpx; justify-content: center;
// color: #666; }
// margin-bottom: 20rpx;
// } // .view-item{
// } // width: 94%;
.card-item{ // margin: 0rpx auto;
width: 90%; // padding:20rpx;
margin: 20rpx auto; // // display: flex;
padding:16rpx; // border-bottom: 1rpx solid #EFEFEF;
display: flex; // font-size: 26rpx;
justify-content: space-between; // .label{
align-items: center; // width: 300rpx;
font-size: 26rpx; // color: #666;
background: #E2F0CD; // margin-bottom: 20rpx;
border-radius: 10rpx; // }
.label{ // }
width: 300rpx; .card-item {
color: #74B01A; width: 90%;
font-weight: 600; margin: 20rpx auto;
// margin-bottom: 20rpx; padding: 16rpx;
} display: flex;
.btn{ justify-content: space-between;
width: 140rpx; align-items: center;
height: 40rpx; font-size: 26rpx;
line-height: 40rpx; background: #E2F0CD;
color: #FFF; border-radius: 10rpx;
background: #6FB504;
text-align: center; .label {
border-radius: 10rpx; width: 300rpx;
} color: #74B01A;
} font-weight: 600;
.card-item-red{ // margin-bottom: 20rpx;
width: 90%; }
margin: 20rpx auto;
padding:16rpx; .btn {
display: flex; width: 140rpx;
justify-content: space-between; height: 40rpx;
align-items: center; line-height: 40rpx;
font-size: 26rpx; color: #FFF;
background: #FFEBEC; background: #6FB504;
border-radius: 10rpx; text-align: center;
.label{ border-radius: 10rpx;
width: 300rpx; }
color: #DA3E26; }
font-weight: 600;
// margin-bottom: 20rpx; .card-item-red {
} width: 90%;
.btn{ margin: 20rpx auto;
width: 140rpx; padding: 16rpx;
height: 40rpx; display: flex;
line-height: 40rpx; justify-content: space-between;
color: #FFF; align-items: center;
background: #FF2F2F; font-size: 26rpx;
text-align: center; background: #FFEBEC;
border-radius: 10rpx; border-radius: 10rpx;
}
} .label {
} width: 300rpx;
color: #DA3E26;
font-weight: 600;
// margin-bottom: 20rpx;
}
.btn {
width: 140rpx;
height: 40rpx;
line-height: 40rpx;
color: #FFF;
background: #FF2F2F;
text-align: center;
border-radius: 10rpx;
}
}
}
</style> </style>

View File

@ -32,6 +32,7 @@
</view> </view>
</scroll-view> </scroll-view>
<scroll-view class="content" scroll-y="true"> <scroll-view class="content" scroll-y="true">
<view v-show="hIndex == 1"> <view v-show="hIndex == 1">
<u--form class="addForm" :model="entryIdNumberBean" ref="vForm"> <u--form class="addForm" :model="entryIdNumberBean" ref="vForm">
@ -866,7 +867,7 @@ export default {
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getPro', url: config.lpAppUrl + '/offLine/getPro',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -922,7 +923,7 @@ export default {
// //
getpostList(){ getpostList(){
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getWorkType', url: config.lpAppUrl + '/offLine/getWorkType',
method: 'post', method: 'post',
data: {}, data: {},
header: { header: {
@ -1425,7 +1426,7 @@ export default {
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl+'/entry/addEntryPerson', url: config.lpAppUrl+'/entry/addEntryPerson',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {

View File

@ -871,7 +871,7 @@ export default {
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getPro', url: config.lpAppUrl + '/offLine/getPro',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -927,7 +927,7 @@ export default {
// //
getpostList(){ getpostList(){
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getWorkType', url: config.lpAppUrl + '/offLine/getWorkType',
method: 'post', method: 'post',
data: {}, data: {},
header: { header: {
@ -1037,7 +1037,7 @@ export default {
// //
getPersonById(){ getPersonById(){
uni.request({ uni.request({
url: config.realAppUrl+'/entry/'+this.idNumber, url: config.lpAppUrl+'/entry/'+this.idNumber,
method: 'get', method: 'get',
data: {}, data: {},
header: { header: {
@ -1450,7 +1450,7 @@ export default {
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl+'/entry/updateEntryPerson', url: config.lpAppUrl+'/entry/updateEntryPerson',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {

View File

@ -928,7 +928,7 @@ export default {
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getPro', url: config.lpAppUrl + '/offLine/getPro',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -985,7 +985,7 @@ export default {
// //
getpostList(){ getpostList(){
uni.request({ uni.request({
url: config.realAppUrl + '/offLine/getWorkType', url: config.lpAppUrl + '/offLine/getWorkType',
method: 'post', method: 'post',
data: {}, data: {},
header: { header: {
@ -1095,7 +1095,7 @@ export default {
// //
getPersonById(){ getPersonById(){
uni.request({ uni.request({
url: config.realAppUrl+'/entry/'+this.idNumber, url: config.lpAppUrl+'/entry/'+this.idNumber,
method: 'get', method: 'get',
data: {}, data: {},
header: { header: {
@ -1509,7 +1509,7 @@ export default {
} }
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl+'/entry/updateEntryPerson', url: config.lpAppUrl+'/entry/updateEntryPerson',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {

View File

@ -75,7 +75,7 @@ export default {
} }
this.isLoading=true this.isLoading=true
uni.request({ uni.request({
url: config.realAppUrl+'/BasePerson/downloadWorkPersonQualifications', url: config.lpAppUrl+'/BasePerson/downloadWorkPersonQualifications',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {

View File

@ -119,7 +119,7 @@ export default {
id:this.id, id:this.id,
} }
uni.request({ uni.request({
url: config.realAppUrl+'/safeguardingInfo/getSafeguardingInfoById', url: config.lpAppUrl+'/safeguardingInfo/getSafeguardingInfoById',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -148,7 +148,7 @@ export default {
id:this.id, id:this.id,
} }
uni.request({ uni.request({
url: config.realAppUrl+'/safeguardingInfo/getSafeguardingPhotoById', url: config.lpAppUrl+'/safeguardingInfo/getSafeguardingPhotoById',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,9 @@ import errorCode from '@/utils/errorCode'
import { toast, showConfirm, tansParams } from '@/utils/common' import { toast, showConfirm, tansParams } from '@/utils/common'
let timeout = 60000 let timeout = 60000
const baseUrl = config.loginBaseUrl // const baseUrl = config.loginBaseUrl
// const baseUrl = config.loginUrl // const baseUrl = config.loginUrl
const baseUrl = config.lpLoginUrl
console.log('baseUrl-请求', baseUrl) console.log('baseUrl-请求', baseUrl)
const request = config => { const request = config => {

View File

@ -5,7 +5,8 @@ import errorCode from '@/utils/errorCode'
import { toast, showConfirm, tansParams } from '@/utils/common' import { toast, showConfirm, tansParams } from '@/utils/common'
let timeout = 60000 let timeout = 60000
const baseUrl = config.realNewBmwUrl // const baseUrl = config.realNewBmwUrl
const baseUrl = config.lpBmwUrl
console.log('baseUrl-请求', baseUrl) console.log('baseUrl-请求', baseUrl)
const request = config => { const request = config => {
@ -43,8 +44,8 @@ const request = config => {
// console.log(response) // console.log(response)
let [error, res] = response let [error, res] = response
if (error) { if (error) {
toast('后端接口连接异常') toast('request_new后端接口连接异常')
reject('后端接口连接异常') reject('request_new后端接口连接异常')
return return
} }
const code = res.data.code || 200 const code = res.data.code || 200

View File

@ -4,11 +4,11 @@ import { getToken, setToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode' import errorCode from '@/utils/errorCode'
import { toast, showConfirm, tansParams } from '@/utils/common' import { toast, showConfirm, tansParams } from '@/utils/common'
const token = uni.getStorageSync('wkToken') || null const token = uni.getStorageSync('realNameToken') || null
let timeout = 60000 let timeout = 60000
const baseUrl = config.workPlanNewYnUrl const baseUrl = config.workPlanNewYnUrl
console.log('token', token) // console.log('token', token)
let isRequesting = false // 请求锁,防止重复请求 let isRequesting = false // 请求锁,防止重复请求

View File

@ -4,11 +4,11 @@ import { getToken, setToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode' import errorCode from '@/utils/errorCode'
import { toast, showConfirm, tansParams } from '@/utils/common' import { toast, showConfirm, tansParams } from '@/utils/common'
const token = uni.getStorageSync('wkToken') || null const token = uni.getStorageSync('realNameToken') || null
let timeout = 60000 let timeout = 60000
const baseUrl = config.realNewYnUrl const baseUrl = config.realNewYnUrl
console.log('token', token) // console.log('token', token)
const request = config => { const request = config => {
// 是否需要设置 token // 是否需要设置 token