| | |
| | | import { webSocketUrl,BaseUrl } from '@/api/request.js' |
| | | // 请求相关 |
| | | import { |
| | | reqGet, |
| | | reqGet |
| | | } from '@/api/index.js' |
| | | Vue.use(Vuex) |
| | | |
| | |
| | | const userRoleTabbar = { |
| | | first: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/customer-page/customer-my/faYunstatistics/faYunstatistics', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '../../static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '/static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | text: '统计' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | second: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/customer-page/customer-my/faYunstatistics/faYunstatistics', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '../../static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '/static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | text: '统计' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | three: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | fourth: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '进场' |
| | | },{ |
| | | pagePath: 'pages/doorkeeper-page/doorkeeper-index/exit-index', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '出场' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | }, |
| | | |
| | | ], |
| | | five:[{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/loadUnload-page/historyOrder/index', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '历史收发单' |
| | | }, |
| | | { |
| | | pagePath: 'pages/loadUnload-page/orderPlanList/index', |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | text: '日计划' |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '../../static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '/static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | text: '日计划' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | six:[{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | }] |
| | | } |
| | |
| | | // 打印出入门证 一次就可以有打印入门证, 两次可以有入门证 出门证 0次一张都没有 |
| | | ablePrintInduction: false, //入门证 |
| | | ablePrintOut: false, //出门证 |
| | | driverTourImgList: ['https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj1.png', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj2.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj3.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj4.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj5.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj6.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj7.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj8.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj9.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj10.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj11.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj12.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj13.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj14.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj15.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj16.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj17.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj18.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj19.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj20.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj21.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj22.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj23.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj24.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj25.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj26.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj27.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj28.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj29.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj30.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj31.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj32.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj33.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj33-1.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj34.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj35.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj36.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj37.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj38.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj39.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj40.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj41.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj42.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj43.jpg', |
| | | 'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj44.jpg', |
| | | driverTourImgList: ['https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj1.png', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj2.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj3.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj4.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj5.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj6.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj7.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj8.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj9.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj10.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj11.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj12.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj13.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj14.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj15.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj16.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj17.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj18.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj19.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj20.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj21.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj22.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj23.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj24.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj25.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj26.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj27.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj28.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj29.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj30.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj31.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj32.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj33.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj33-1.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj34.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj35.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj36.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj37.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj38.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj39.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj40.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj41.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj42.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj43.jpg', |
| | | 'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj44.jpg', |
| | | ], |
| | | wsgVisiable: false, //磅房忙碌弹窗控制 |
| | | wsgContent: '', |
| | |
| | | confirmWeighContent: '', |
| | | // 称重稳定态 0/稳定 1/非稳定 非稳定态不能点称重 |
| | | globalWarning: false, |
| | | filedId:'', //煤场id |
| | | bunkerList:'', //煤仓list |
| | | filedId:'', //场地id |
| | | bunkerList:'', //仓库list |
| | | samplingPersonList:'', //采样员list |
| | | pvcIdList:['1818242458023153665'], |
| | | }, |
| | | mutations: { |
| | | setUserInfo(state, identity) { |
| | |
| | | console.log(state.globalisLogin, '全局登录状态改变了') |
| | | }, |
| | | setWebsocketData(state, data) { |
| | | console.log(data,'data-----') |
| | | state.websocketData = data |
| | | }, |
| | | // 改变重连状态 |
| | |
| | | changeWarning(state, payload) { |
| | | state.globalWarning = payload |
| | | }, |
| | | // 煤场filedId的获取 |
| | | // 场地filedId的获取 |
| | | getFiledId(state, payload) { |
| | | console.log(payload,'filedId=====') |
| | | state.filedId = payload |
| | | uni.setStorageSync('filedId', state.filedId) |
| | | }, |
| | | getBunkerList(state, payload) { |
| | | console.log('我执行了getBunkerList====',payload) |
| | | state.bunkerList = payload |
| | | uni.setStorageSync('bunkerList', state.bunkerList) |
| | | } |
| | | }, |
| | | getSamplingPersonList(state, payload) { |
| | | console.log('我执行了samplingPersonList====',payload) |
| | | state.samplingPersonList = payload |
| | | uni.setStorageSync('samplingPersonList', state.samplingPersonList) |
| | | }, |
| | | }, |
| | | actions: { |
| | | websocketInit({ state, dispatch, commit }) { |
| | | // #ifdef H5 |
| | | let wsUrl = `access_token=${uni.getStorageSync('token')}` |
| | | let wsUrl = `${webSocketUrl}?UUID=${uni.getStorageSync('token')}` |
| | | // #endif |
| | | // #ifndef H5 |
| | | let wsUrl = `${webSocketUrl}?access_token=${uni.getStorageSync('token')}` |
| | |
| | | }) |
| | | |
| | | }, |
| | | getFiledIdCoalBunker({ state, commit }) { //煤仓列表(采样地点) |
| | | getSamplingPerson({ state, commit }) { //采样人 |
| | | let params = { |
| | | current: 1, |
| | | size: 999, |
| | | type: 7 |
| | | } |
| | | reqGet('pageCarAndHuoDai',params).then(res => { |
| | | console.log(res,'pageCarAndHuoDai======') |
| | | if(res.code == 0) { |
| | | let temp = res.data.records |
| | | commit('getSamplingPersonList',temp) |
| | | } |
| | | }) |
| | | }, |
| | | getFiledIdCoalBunker({ state, commit }) { //仓库列表(采样地点) |
| | | let filedId = uni.getStorageSync('filedId') |
| | | console.log(filedId,'最终的filedId=============') |
| | | reqGet('getFiledIdCoalBunker', {filedId: filedId}).then(res => { |
| | | console.log(res,'res----煤仓') |
| | | console.log(res,'res----仓库') |
| | | commit('getBunkerList',res.data) |
| | | }) |
| | | }, |
| | | }, |
| | | getters:{ |
| | | websocketData:(state) => state.websocketData, |
| | | samplingPersonList: (state) => state.samplingPersonList |
| | | |
| | | } |
| | | }) |
| | | |