diff --git a/components/time/time-date.vue b/components/time/time-date.vue
new file mode 100644
index 0000000..3aac3e5
--- /dev/null
+++ b/components/time/time-date.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+ 取消
+ 选择
+
+
+
+ {{item}}
+
+
+ {{item < 10 ? '0'+item : item}}
+
+
+ {{item < 10 ? '0'+item : item}}
+
+
+ -
+
+
+ {{item}}
+
+
+ {{item < 10 ? '0'+item : item}}
+
+
+ {{item < 10 ? '0'+item : item}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue
index 06c5ddf..68e55bb 100644
--- a/pages/tabbar/pagehome/pagehome.vue
+++ b/pages/tabbar/pagehome/pagehome.vue
@@ -169,10 +169,18 @@
其他
-
+
-
+
+
+ {{item.title}}
+
+
+
+
+
+
{{item.title}}
@@ -263,6 +271,7 @@
otherList:[
{imgsrc:'/static/public/icon-home-largeScreen.png',title:'维保统计'},
{imgsrc:'/static/public/icon-home-reportForm.png',title:'数据看板'},
+ {imgsrc:'/static/public/icon-home-status.png',title:'人员状态'},
{imgsrc:'/static/public/icon-home-product.png',title:'新产品'},
],
// 解决方案
@@ -460,8 +469,12 @@
let otherUrls = [
'/pagesA/faultStatistics/faultStatistics',
'/pagesA/faultStatistics/projectOverview',
+ '/pagesA/peopleManagement/peopleManagement',
'/pagesB/new-product/new-product',
];
+ if(this.role!=3 && index==2) {
+ otherUrls[index] = '/pagesB/new-product/new-product';
+ }
uni.navigateTo({
url:otherUrls[index]
})
diff --git a/pagesA/dataQuery/projectDetails.vue b/pagesA/dataQuery/projectDetails.vue
index b290432..653a937 100644
--- a/pagesA/dataQuery/projectDetails.vue
+++ b/pagesA/dataQuery/projectDetails.vue
@@ -160,7 +160,7 @@
if (res.code) {
this.projectObj = res.data;
this.imgNum = this.projectObj.completed_img.length;
- this.projectGK = this.projectObj.project_overview_min;//项目概况
+ this.projectGK = this.projectObj.project_overview;//项目概况
this.project_material = this.projectObj.project_material;//项目材料
} else {
diff --git a/pagesA/faultStatistics/faultStatistics.vue b/pagesA/faultStatistics/faultStatistics.vue
index 29a8571..9ceae81 100644
--- a/pagesA/faultStatistics/faultStatistics.vue
+++ b/pagesA/faultStatistics/faultStatistics.vue
@@ -34,7 +34,7 @@
维保类型
-
+
@@ -58,18 +58,21 @@
-
+
+
+
@@ -316,7 +329,6 @@
}
.charts-box {
- margin: auto;
margin-top: 50rpx;
width: 100%;
height: 330rpx;
diff --git a/pagesA/faultStatistics/projectOverview.vue b/pagesA/faultStatistics/projectOverview.vue
index 52fada3..8ed05dd 100644
--- a/pagesA/faultStatistics/projectOverview.vue
+++ b/pagesA/faultStatistics/projectOverview.vue
@@ -1,6 +1,6 @@
-
+
@@ -8,11 +8,11 @@
累计总项目量
- 0
- 2
- 9
- 8
- 5
+ {{projectCount[4] || 0}}
+ {{projectCount[3] || 0}}
+ {{projectCount[2] || 0}}
+ {{projectCount[1] || 0}}
+ {{projectCount[0] || 0}}
@@ -20,15 +20,15 @@
新增项目量
- 0单
+ {{today.project_count}}单
新增工单量
- 0单
+ {{today.order_count}}单
项目维保率
- 0单
+ {{today.project_rate}}
@@ -37,15 +37,15 @@
新增项目量
- 0单
+ {{week.project_count}}单
新增工单量
- 0单
+ {{week.order_count}}单
项目维保率
- 0单
+ {{week.project_rate}}
@@ -54,15 +54,15 @@
新增项目量
- 0单
+ {{month.project_count}}单
新增工单量
- 0单
+ {{month.order_count}}单
项目维保率
- 0单
+ {{month.project_rate}}
@@ -73,7 +73,7 @@
年度项目数据明细
-
+
@@ -83,42 +83,18 @@
本月服务量
-
- 维保工单:
- 3
-
-
- 巡检服务单:
- 65465
-
-
- 移屏服务单:
- 32132
-
-
- 拆屏工单:
- 32132
+
+ {{item.title}}:
+ {{item.num}}
累计服务量
-
- 维保工单:
- 3
-
-
- 巡检服务单:
- 65465
-
-
- 移屏服务单:
- 32132
-
-
- 拆屏工单:
- 32132
+
+ {{item.title}}:
+ {{item.num}}
@@ -128,7 +104,7 @@
年度服务数据汇总
-
+
@@ -140,25 +116,10 @@
工单
日期
-
- 1.五岭新天地二期停车场xxxxxxxxxxxxx
- 6
- 22/2/24
-
-
- 1.五岭新天地二期停车场xxxxxxxxxxxxx
- 6
- 22/2/24
-
-
- 1.五岭新天地二期停车场xxxxxxxxxxxxx
- 6
- 22/2/24
-
-
- 1.五岭新天地二期停车场xxxxxxxxxxxxx
- 6
- 22/2/24
+
+ {{index+1}}、{{item.project_name}}
+ {{item.order_count}}
+ {{item.joint_end_time.slice(2)}}
@@ -177,32 +138,10 @@
},
data() {
return {
- chartDataA: {
- categories: ["1月","2月","3月","4月","5月","6月"],
- series: [
- {
- name: "",
- index: 1,
- data: [40,30,55,110,24,58],
- type: "column",
- "color": "#308de1"
- },
- {
- "name": "",
- "data": [40,30,55,110,24,58],
- "type": "line",
- "color": "#308de1"
- },
- {
- "name": "",
- "index": 2,
- "data": [40,30,55,110,24,58],
- "type": "point",
- "color": "#308de1"
- }
-
- ]
- },
+ projectCount:[],//累计总项目量
+ today:'',//今日数据
+ week:'',//本周数据
+ month:'',//本月数据
chartData: {
categories: ["1月","2月","3月","4月","5月","6月"],
series: [
@@ -211,23 +150,130 @@
index: 1,
data: [40,30,55,110,24,58],
type: "column",
- "color": "#fe4141"
+ color: "#fe4141"
},
{
- "name": "",
- "data": [40,30,55,110,24,58],
- "type": "line",
- "color": "#fe4141"
+ name: "",
+ data: [40,30,55,110,24,58],
+ type: "line",
+ color: "#fe4141"
},
{
- "name": "",
- "index": 2,
- "data": [40,30,55,110,24,58],
- "type": "point",
- "color": "#fe4141"
+ name: "",
+ index: 2,
+ data: [40,30,55,110,24,58],
+ type: "point",
+ color: "#fe4141"
}
]
},
+ opts: {
+ padding: [15,15,0,15],
+ legend: {},
+ fontColor:'#FF0000',
+ yAxis: {
+ disabled: false,
+ disableGrid: false,
+ splitNumber: 5,
+ gridType: "solid",
+ dashLength: 4,
+ gridColor: "#CCCCCC",
+ padding: 10,
+ showTitle: true,
+ data: [
+ {
+ min: 0,
+ max: 5000,
+ },
+ {
+ min: 0,
+ max: 5000,
+ },
+ {
+ min: 0,
+ max: 5000,
+ }
+ ]
+ },
+ extra: {
+ mix: {
+ column: {
+ linearType:"custom",
+ width: 20,
+ linearOpacity:0.6,
+ customColor:["#FF0000","#fc7575"],
+ },
+ }
+ },
+ },
+ serviceData:{month:[],allArr:[]},//服务数据
+ chartDataA: {
+ categories: ["1月","2月","3月","4月","5月","6月"],
+ series: [
+ {
+ name: "",
+ index: 1,
+ data: [40,30,55,110,24,58],
+ type: "column",
+ color: "#308de1"
+ },
+ {
+ name: "",
+ data: [40,30,55,110,24,58],
+ type: "line",
+ color: "#308de1"
+ },
+ {
+ name: "",
+ index: 2,
+ data: [40,30,55,110,24,58],
+ type: "point",
+ color: "#308de1"
+ }
+
+ ]
+ },
+ opts2: {
+ padding: [15,15,0,15],
+ legend: {},
+ fontColor:'#308de1',
+ yAxis: {
+ disabled: false,
+ disableGrid: false,
+ splitNumber: 5,
+ gridType: "solid",
+ dashLength: 4,
+ gridColor: "#CCCCCC",
+ padding: 10,
+ showTitle: true,
+ data: [
+ {
+ min: 0,
+ max: 5000,
+ },
+ {
+ min: 0,
+ max: 5000,
+ },
+ {
+ min: 0,
+ max: 5000,
+ }
+ ]
+ },
+ extra: {
+ mix: {
+ column: {
+ linearType:"custom",
+ width: 20,
+ linearOpacity:0.6,
+ customColor:["#308de1","#5bc2f2"],
+ },
+ }
+ },
+ },
+ // 质保即将到期项目
+ warranty_expires:[]
}
},
onLoad() {
@@ -238,7 +284,55 @@
checkSJ() {
this.$requst.get('/universal/api.statistics/data_kanban').then(res=>{
if(res.code) {
-
+ // 累计总项目量
+ let projectCountNum = res.data.project_count.toString().split(',');
+ if(projectCountNum.length > 1) {
+ this.projectCount = projectCountNum.reverse();
+ } else {
+ this.projectCount = projectCountNum;
+ }
+ // 今日数据
+ this.today = res.data.today;
+ // 本周数据
+ this.week = res.data.week;
+ // 本月数据
+ this.month = res.data.month;
+ // 年度项目数据明细
+ let yearProject = [[],[]];
+ res.data.project_month.forEach((item,index)=>{
+ if(index < 12) {
+ yearProject[0].push(item.name+'月');
+ yearProject[1].push(item.value);
+ }
+ })
+ this.chartData.categories = yearProject[0];
+ this.chartData.series[0].data = yearProject[1];
+ this.chartData.series[1].data = yearProject[1];
+ this.chartData.series[2].data = yearProject[1];
+ let maxNum = Math.max.apply(null, yearProject[1]);
+ // 服务数据:本月服务量
+ for (let key in res.data.service.month) {
+ this.serviceData.month.push({title: key,num:res.data.service.month[key]});
+ }
+ // 服务数据:累计服务量
+ for (let key in res.data.service.all) {
+ this.serviceData.allArr.push({title: key,num:res.data.service.all[key]});
+ }
+ // 年度服务数据汇总
+ let yearService = [[],[]];
+ res.data.order_month.forEach((item,index)=>{
+ if(index < 12) {
+ yearService[0].push(item.name+'月');
+ yearService[1].push(item.value);
+ }
+ })
+ this.chartDataA.categories = yearService[0];
+ this.chartDataA.series[0].data = yearService[1];
+ this.chartDataA.series[1].data = yearService[1];
+ this.chartDataA.series[2].data = yearService[1];
+ let maxNum2 = Math.max.apply(null, yearService[1]);
+ // 质保即将到期项目
+ this.warranty_expires = res.data.warranty_expires;
}
})
}
diff --git a/pagesA/peopleManagement/peopleManagement.vue b/pagesA/peopleManagement/peopleManagement.vue
index ac4a6f7..5ea0a4b 100644
--- a/pagesA/peopleManagement/peopleManagement.vue
+++ b/pagesA/peopleManagement/peopleManagement.vue
@@ -20,7 +20,7 @@
{{item.name}}({{item.isJob ? '正在作业' : '空闲中'}})
- 已审核
+ {{['未审核','已审核'][item.is_check]}}
@@ -43,7 +43,7 @@
- 联系电话: {{$toolAll.tools.hideMPhone(item.phone,'x')}}
+ 联系电话: {{$toolAll.tools.hideMPhone(item.phone,'x')}}
注册时间: {{item.time}}
@@ -112,13 +112,14 @@
imgsrc:'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',
number:'YG20211207-001',
rate:5,
- num:2,
- allnum:2000,
+ num:item.pending_order,
+ allnum:item.processed_order,
address:item.address,
- phone:'17366921088',
+ phone:item.phone,
time:item.register_time,
state: false,
isJob: item.is_working ? true : false,
+ is_check:item.is_check
}
this.dataList.push(obj);
})
diff --git a/pagesA/project/details.vue b/pagesA/project/details.vue
index 392a610..186a0aa 100644
--- a/pagesA/project/details.vue
+++ b/pagesA/project/details.vue
@@ -34,14 +34,11 @@
项目概况
-
-
- 品
- 牌:
-
- {{projectObj.product_brand}}
+
+ {{item.name}}:
+ {{item.value}}
-
+
{
+ if(res.code) {
+
+ } else {
+ this.$toolAll.tools.showToast(res.msg);
+ }
+ })
+ },
// 提交保存
submitData(){
if(this.checkEmpty()) {
diff --git a/static/public/icon-home-status.png b/static/public/icon-home-status.png
new file mode 100644
index 0000000..995e424
Binary files /dev/null and b/static/public/icon-home-status.png differ
diff --git a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js
index 1b8b5db..3312227 100644
--- a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js
+++ b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js
@@ -94,6 +94,11 @@ const cfu = {
return series[index].name + "\n" + series[index].data + '元'
}
},
+ "customToolTip":function(val, index, series, opts){
+ if(index !== undefined){
+ return series[index].name+series[index].data+'%'
+ }
+ },
},
//这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在opts参数,会将demotype与opts中option合并后渲染图表。
"demotype": {
@@ -417,7 +422,7 @@ const cfu = {
"width": 30,
"activeBgColor": "#000000",
"activeBgOpacity": 0.08
- },
+ }
}
},
"bar": {
@@ -619,7 +624,7 @@ const cfu = {
"axisLine": true,
"axisLineColor": "#CCCCCC",
"calibration": false,
- "fontColor": "#666666",
+ "fontColor": "#d0d0d0",
"fontSize": 13,
"rotateLabel": false,
"itemCount": 5,
@@ -642,22 +647,23 @@ const cfu = {
"gridType": "solid",//dash:虚线 solid:实线
"dashLength": 4,
"gridColor": "#CCCCCC",
+ "fontColor": "#666666",
"padding": 10,
"showTitle": true,
"data": [{
"position": "top",
- "title": "折线"
+ "title": "折线",
+ "fontColor": "#d0d0d0",
},
{
"position": "top",
"title": "",
- "textAlign": "left"
+ "fontColor": "#d0d0d0",
},
{
"position": "left",
-
"title": "",
- "textAlign": "left"
+ "fontColor": "#d0d0d0",
},
]