From 7640b848e0d585bdd56422353ea89dc015d9b1f9 Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Thu, 26 May 2022 18:41:48 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/time/time-date.vue | 96 ++++++
pages/tabbar/pagehome/pagehome.vue | 17 +-
pagesA/dataQuery/projectDetails.vue | 2 +-
pagesA/faultStatistics/faultStatistics.vue | 40 ++-
pagesA/faultStatistics/projectOverview.vue | 300 ++++++++++++------
pagesA/peopleManagement/peopleManagement.vue | 11 +-
pagesA/project/details.vue | 18 +-
pagesB/service-range/service-range.vue | 16 +
static/public/icon-home-status.png | Bin 0 -> 2135 bytes
.../js_sdk/u-charts/config-ucharts.js | 18 +-
10 files changed, 377 insertions(+), 141 deletions(-)
create mode 100644 components/time/time-date.vue
create mode 100644 static/public/icon-home-status.png
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 0000000000000000000000000000000000000000..995e4242203f3e0d13bb4a53f07d276a556de453
GIT binary patch
literal 2135
zcmX|Dc~H|=7yS`1VKE7d1X&HyxS(W1$O0i@Q8qzkDO4b`g{3U{0b!LrfC36(To@EY
zM2nR+QbCM>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