diff --git a/config.js b/config.js
index d577ab6..e039328 100644
--- a/config.js
+++ b/config.js
@@ -27,6 +27,7 @@ module.exports = {
realFileUrl: 'http://192.168.0.14:1909/file/',
//实名制移动端
realBmwUrl: 'http://192.168.0.14:1911/bmw',
+
// 应用信息
appInfo: {
// 应用名称
diff --git a/pages.json b/pages.json
index 2c35a2d..90ba57b 100644
--- a/pages.json
+++ b/pages.json
@@ -260,6 +260,12 @@
"style": {
"navigationStyle": "custom"
}
+ },{
+ //首页二级跳转页面 -- 人员详情
+ "path": "pages/realName/index/pages/personDetail",
+ "style": {
+ "navigationStyle": "custom"
+ }
},
{
//工作台
diff --git a/pages/realName/index/index.vue b/pages/realName/index/index.vue
index 6ac45df..26bfd5f 100644
--- a/pages/realName/index/index.vue
+++ b/pages/realName/index/index.vue
@@ -658,6 +658,12 @@ export default {
if(item.data_title=='在场人数'){
uni.navigateTo({ url: '/pages/realName/index/pages/personList' })
}
+ if(item.data_title=='日计划打卡数'){
+ uni.navigateTo({ url: '/pages/realName/index/pages/personList?isAtt=0&isPlanWorker=1' })
+ }
+ if(item.data_title=='今日打卡'){
+ uni.navigateTo({ url: '/pages/realName/index/pages/personList?isAtt=0' })
+ }
},
},
diff --git a/pages/realName/index/pages/personList.vue b/pages/realName/index/pages/personList.vue
index 26e5cc7..325f780 100644
--- a/pages/realName/index/pages/personList.vue
+++ b/pages/realName/index/pages/personList.vue
@@ -5,12 +5,15 @@
@@ -19,25 +19,60 @@
-
-
- {{ index + 1 }}
- {{ item.proName }}
-
-
-
- {{ item.subComName }}
-
- 可接受风险:{{ item.kjsfx }}
- 低风险:{{ item.dfx }}
- 中风险:{{ item.zfx }}
- 高风险:{{ item.gfx }}
+
+
+ {{ index + 1 }}
+ {{ item.proName }}
+
-
-
- 作业人数
- {{ item.personNum }}
-
+
+ {{item.subComName}}
+ {{item.voltageLevel}}
+ {{item.proType}}
+ {{item.proStatus}}
+
+
+
+ 分包
+ {{item.subNum}}
+
+
+ 班组
+ {{item.teamNum}}
+
+
+ 考勤人数
+ {{item.attPersonNum}}
+
+
+
+
+ 在场
+ {{item.einPersonNum}}
+
+
+ 固定
+ {{item.formalPersonNum}}
+
+
+ 临时
+ {{item.temporaryPersonNum}}
+
+
+
+
+ 绿灯
+ {{item.greenPersonNum}}
+
+
+ 黄灯
+ {{item.yellowPersonNum}}
+
+
+ 红灯
+ {{item.redPersonNum}}
+
+
@@ -53,7 +88,7 @@
{{ item.name }}
@@ -128,47 +163,56 @@ export default {
token: uni.getStorageSync('tjToken'),
// 查询参数
queryParams: {
- offset: 0,
- limit: 99999,
+ offset: "0",
+ limit: "999999",
params: {
- proName: '',
- subComName: ''
+ userId:uni.getStorageSync('realNameUser').userId+'',
+ proName:"",
+ subComId:"",
+ proStatus:"",
+ voltageLevel:"",
+ proType:"",
}
},
companyList: [{ name: '全部', id: '' }],
- proStatusList: [{name:'全部', id:'' },{name:'在建', id:'1' },{name:'完工', id:'2' },{name:'筹建', id:'3' },{name:'停工', id:'4' },{name:'遗憾收尾', id:'5' }],
+ proStatusList: [{name:'全部', id:'' }],
levelList: [{name:'全部', id:'' },{name:'其他', id:'1' },{name:'110kV', id:'2' },{name:'220kV', id:'3' },{name:'500kV', id:'4' },{name:'±500kV', id:'5' },{name:'1000kV以上', id:'6' }],
- proTypeList: [{name:'全部', id:'' },{name:'其他', id:'1' },{name:'变电改扩建', id:'2' },{name:'基建变电', id:'3' },{name:'基建线路', id:'4' },{name:'生产变电', id:'5' },{name:'生产线路', id:'6' }],
+ proTypeList: [{name:'全部', id:'' }],
companyInfoList: []
}
},
mounted() {
- this.getWorkPlantData()
+ this.getListData()
this.getHomePageSelectData()
},
methods: {
/* 获取作业计划列表 */
- async getWorkPlantData() {
+ async getListData() {
+ console.log('this.queryParams参数', this.queryParams)
uni.request({
- url: config.loginBaseUrl + '/bmw/homeSubPage/getAppDayPlanMsg',
- method: 'POST',
- data: JSON.stringify(this.queryParams),
- header: {
- 'Content-Type': 'application/json'
- // token: this.token
- },
- success: res => {
- console.log('res****', res)
- this.recordsTotal = res.data.recordsTotal
- this.companyInfoList = res.data.data
- },
+ url: config.loginBaseUrl + '/bmw/homeSubPage/getAppBuildPro',
+ method: 'POST',
+ data: JSON.stringify(this.queryParams),
+ header: {
+ 'Content-Type': 'application/json'
+ // token: this.token
+ },
+ success: res => {
+ console.log('res****', res)
+ this.recordsTotal = res.data.recordsTotal
+ this.companyInfoList = res.data.data
+ },
fail: err => {}
})
},
/* 获取公司数据 */
async getHomePageSelectData() {
const res = await getHomePageSelectApi()
+ console.log(res)
this.companyList = this.companyList.concat(res.subList)
+ this.proTypeList = this.proTypeList.concat(res.proType)
+ this.proStatusList = this.proStatusList.concat(res.proStatusList)
+ this.levelList = this.levelList.concat(res.levelList)
},
leftClick() {
uni.navigateTo({ url: `/pages/realName/index/index` })
@@ -178,12 +222,12 @@ export default {
this.$refs.popup.open()
},
/* 选择公司 */
- onSelectCompany(index, name) {
+ onSelectCompany(index, id) {
this.activeIndex = index
if (index === 0) {
- this.queryParams.params.subComName = ''
+ this.queryParams.params.subComId = ''
} else {
- this.queryParams.params.subComName = name
+ this.queryParams.params.subComId = id
}
},
onSelectStatus(index, name) {
@@ -197,41 +241,66 @@ export default {
onSelectLevel(index, name) {
this.activeIndex3 = index
if (index === 0) {
- this.queryParams.params.level = ''
+ this.queryParams.params.voltageLevel = ''
} else {
- this.queryParams.params.level = name
+ this.queryParams.params.voltageLevel = name
}
},
onSelectType(index, name) {
this.activeIndex4 = index
if (index === 0) {
- this.queryParams.params.type = ''
+ this.queryParams.params.proType = ''
} else {
- this.queryParams.params.type = name
+ this.queryParams.params.proType = name
}
},
/* 重置 */
onReset() {
this.activeIndex = 0
- this.queryParams.params.subComName = ''
+ this.queryParams.params.subComId = ''
this.activeIndex2 = 0
this.queryParams.params.proStatus = ''
this.activeIndex3 = 0
- this.queryParams.params.level = ''
+ this.queryParams.params.voltageLevel = ''
this.activeIndex4 = 0
- this.queryParams.params.type = ''
+ this.queryParams.params.proType = ''
this.onQuery()
},
/* 查询 */
onQuery() {
- this.getWorkPlantData().then(() => {
+ this.getListData().then(() => {
this.$refs.popup.close()
})
},
- /* 点击跳转作业计划详情 */
- onViewWorkDetails(row) {
- uni.navigateTo({ url: `/pages/realName/workPlan-details/index?query=${JSON.stringify(row)}` })
+ /* 点击跳转分包 */
+ goSubListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/subList?proId=${row.proId}` })
},
+ /* 点击跳转班组 */
+ goTeamListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/teamList?proId=${row.proId}` })
+ },
+ /* 点击跳转人员-已考勤 */
+ goAttPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}&isAtt=0` })
+ },
+ /* 点击跳转人员-在场(全部) */
+ goAllPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}` })
+ },
+ /* 点击跳转人员-固定 */
+ goWorkPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}&workerType=1` })
+ },
+ /* 点击跳转人员-临时 */
+ goTempPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}&workerType=0` })
+ },
+ /* 点击跳转人员-灯 */
+ goLightPersonListPage(row,type) {//绿2 黄1 红0
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}&lightStatus=${type}` })
+ },
+
/* 收藏与取消收藏 */
onCollection(e, row) {
e.stopPropagation()
@@ -313,6 +382,7 @@ export default {
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
+ position: relative;
}
.item-1 view:first-child {
@@ -330,6 +400,7 @@ export default {
.item-2,
.item-3 {
+ font-size: 24rpx;
justify-content: space-around;
}
}
diff --git a/pages/realName/index/pages/subList.vue b/pages/realName/index/pages/subList.vue
index 134d7a6..2dc578b 100644
--- a/pages/realName/index/pages/subList.vue
+++ b/pages/realName/index/pages/subList.vue
@@ -8,9 +8,9 @@
@@ -19,25 +19,60 @@
-
+
{{ index + 1 }}
- {{ item.proName }}
-
-
-
- {{ item.subComName }}
-
- 可接受风险:{{ item.kjsfx }}
- 低风险:{{ item.dfx }}
- 中风险:{{ item.zfx }}
- 高风险:{{ item.gfx }}
-
-
-
- 作业人数
- {{ item.personNum }}
+ {{ item.subName }}
+
+
+
+ 班组
+ {{item.teamNum}}
+
+
+ 考勤人数
+ {{item.attPersonNum}}
+
+
+
+
+ 在场
+ {{item.einPersonNum}}
+
+
+ 固定
+ {{item.formalPersonNum}}
+
+
+ 临时
+ {{item.temporaryPersonNum}}
+
+
+
+
+ 绿灯
+ {{item.greenPersonNum}}
+
+
+ 黄灯
+ {{item.yellowPersonNum}}
+
+
+ 红灯
+ {{item.redPersonNum}}
+
+
+
+
+ 所在工程
+
+
+ {{items}}
+
+
+
+
@@ -128,11 +163,14 @@ export default {
token: uni.getStorageSync('tjToken'),
// 查询参数
queryParams: {
- offset: 0,
- limit: 99999,
+ offset: "0",
+ limit: "999999",
params: {
- proName: '',
- subComName: ''
+ userId:uni.getStorageSync('realNameUser').userId+"",
+ proId:"",
+ subName:"",
+ proName:"",
+ subComName:""
}
},
companyList: [{ name: '全部', id: '' }],
@@ -143,14 +181,19 @@ export default {
}
},
mounted() {
- this.getWorkPlantData()
- this.getHomePageSelectData()
+ // this.getHomePageSelectData()
+ },
+ onLoad(option) {
+ console.log(option)
+ this.queryParams.params.proId=option.proId||"";
+ this.getListData()
},
methods: {
- /* 获取作业计划列表 */
- async getWorkPlantData() {
+ /* 获取列表 */
+ async getListData() {
+ console.log(this.queryParams)
uni.request({
- url: config.loginBaseUrl + '/bmw/homeSubPage/getAppDayPlanMsg',
+ url: config.loginBaseUrl + '/bmw/homeSubPage/getAppActiveSub',
method: 'POST',
data: JSON.stringify(this.queryParams),
header: {
@@ -224,14 +267,38 @@ export default {
},
/* 查询 */
onQuery() {
- this.getWorkPlantData().then(() => {
+ this.getListData().then(() => {
this.$refs.popup.close()
})
},
- /* 点击跳转作业计划详情 */
- onViewWorkDetails(row) {
- uni.navigateTo({ url: `/pages/realName/workPlan-details/index?query=${JSON.stringify(row)}` })
- },
+
+
+ /* 点击跳转班组 */
+ goTeamListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/teamList?subId=${row.subId}` })
+ },
+ /* 点击跳转人员-已考勤 */
+ goAttPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}&isAtt=0` })
+ },
+ /* 点击跳转人员-在场(全部) */
+ goAllPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}` })
+ },
+ /* 点击跳转人员-固定 */
+ goWorkPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}&workerType=1` })
+ },
+ /* 点击跳转人员-临时 */
+ goTempPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}&workerType=0` })
+ },
+ /* 点击跳转人员-灯 */
+ goLightPersonListPage(row,type) {//绿2 黄1 红0
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}&lightStatus=${type}` })
+ },
+
+
/* 收藏与取消收藏 */
onCollection(e, row) {
e.stopPropagation()
@@ -302,6 +369,7 @@ export default {
padding: 14rpx 0;
background-color: #fff;
margin: 20rpx auto;
+
}
.item-1,
@@ -313,6 +381,7 @@ export default {
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
+ position: relative;
}
.item-1 view:first-child {
@@ -330,6 +399,7 @@ export default {
.item-2,
.item-3 {
+ font-size: 24rpx;
justify-content: space-around;
}
}
diff --git a/pages/realName/index/pages/teamList.vue b/pages/realName/index/pages/teamList.vue
index b9c5e0f..2b9849b 100644
--- a/pages/realName/index/pages/teamList.vue
+++ b/pages/realName/index/pages/teamList.vue
@@ -8,9 +8,9 @@
@@ -19,25 +19,57 @@
-
+
{{ index + 1 }}
- {{ item.proName }}
-
-
-
- {{ item.subComName }}
-
- 可接受风险:{{ item.kjsfx }}
- 低风险:{{ item.dfx }}
- 中风险:{{ item.zfx }}
- 高风险:{{ item.gfx }}
-
+ {{ item.teamName }}
+
- 作业人数
- {{ item.personNum }}
+
+ 在场
+ {{item.einPersonNum}}
+
+
+ 固定
+ {{item.formalPersonNum}}
+
+
+ 临时
+ {{item.temporaryPersonNum}}
+
+
+
+ 绿灯
+ {{item.greenPersonNum}}
+
+
+ 黄灯
+ {{item.yellowPersonNum}}
+
+
+ 红灯
+ {{item.redPersonNum}}
+
+
+
+
+ 所在分包
+
+ {{item.subName}}
+
+
+
+
+
+ 所在工程
+
+ {{item.proName}}
+
+
+
+
@@ -53,7 +85,7 @@
{{ item.name }}
@@ -94,11 +126,16 @@ export default {
token: uni.getStorageSync('tjToken'),
// 查询参数
queryParams: {
- offset: 0,
- limit: 99999,
+ offset: "0",
+ limit: "99999",
params: {
- proName: '',
- subComName: ''
+ userId:uni.getStorageSync('realNameUser').userId+"",
+ teamName:"",
+ proId:"",
+ subId:"",
+ proName:"",
+ subName:"",
+ subComId:""
}
},
companyList: [{ name: '全部', id: '' }],
@@ -106,14 +143,19 @@ export default {
}
},
mounted() {
- this.getWorkPlantData()
this.getHomePageSelectData()
},
+ onLoad(option) {
+ console.log(option)
+ this.queryParams.params.proId=option.proId||"";
+ this.queryParams.params.subId=option.subId||"";
+ this.getListData()
+ },
methods: {
- /* 获取作业计划列表 */
- async getWorkPlantData() {
+ /* 获取列表 */
+ async getListData() {
uni.request({
- url: config.loginBaseUrl + '/bmw/homeSubPage/getAppDayPlanMsg',
+ url: config.loginBaseUrl + '/bmw/homeSubPage/getAppActiveTeam',
method: 'POST',
data: JSON.stringify(this.queryParams),
header: {
@@ -144,28 +186,40 @@ export default {
onSelectCompany(index, name) {
this.activeIndex = index
if (index === 0) {
- this.queryParams.params.subComName = ''
+ this.queryParams.params.subComId = ''
} else {
- this.queryParams.params.subComName = name
+ this.queryParams.params.subComId = name
}
},
/* 重置 */
onReset() {
this.activeIndex = 0
- this.queryParams.params.subComName = ''
+ this.queryParams.params.subComId = ''
this.onQuery()
},
/* 查询 */
onQuery() {
- this.getWorkPlantData().then(() => {
+ this.getListData().then(() => {
this.$refs.popup.close()
})
},
- /* 点击跳转作业计划详情 */
- onViewWorkDetails(row) {
- uni.navigateTo({ url: `/pages/realName/workPlan-details/index?query=${JSON.stringify(row)}` })
- },
+ /* 点击跳转人员-在场(全部) */
+ goAllPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}` })
+ },
+ /* 点击跳转人员-固定 */
+ goWorkPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&workerType=1` })
+ },
+ /* 点击跳转人员-临时 */
+ goTempPersonListPage(row) {
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&workerType=0` })
+ },
+ /* 点击跳转人员-灯 */
+ goLightPersonListPage(row,type) {//绿2 黄1 红0
+ uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&lightStatus=${type}` })
+ },
/* 收藏与取消收藏 */
onCollection(e, row) {
e.stopPropagation()
@@ -247,6 +301,7 @@ export default {
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
+ position: relative;
}
.item-1 view:first-child {
@@ -264,6 +319,7 @@ export default {
.item-2,
.item-3 {
+ font-size: 24rpx;
justify-content: space-around;
}
}