@@ -39,47 +107,129 @@ import echarts from "echarts"
export default {
components: {},
data() {
- return {}
+ return {
+ col:'',
+ line:''
+ }
},
methods: {
init() {
- let col = echarts.init(document.getElementById('col-chart'))
- col.setOption({
+ this.col = echarts.init(document.getElementById('col-chart'))
+ this.col.setOption({
title: {
- text: '营业与收入'
+ text: ''
+ },
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ },
+ position:'bottom'
+ },
+ legend: {},
+ grid: {
+ left: '3%',
+ right: '4%',
+ bottom: '3%',
+ containLabel: true
+ },
+ yAxis: {
+ type: 'value',
+ boundaryGap: [0, 0.01]
},
- tooltip: {},
xAxis: {
- data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
+ type: 'category',
+ data: ['第一周', '第二周', '第三周', '第四周']
},
- yAxis: {},
- series: [{
- name: '销量',
- type: 'bar',
- data: [5, 20, 36, 10, 10, 20]
- }]
+ series: [
+ {
+ name: '服务金额',
+ type: 'bar',
+ data: [18203, 23489, 29034, 104970],
+ itemStyle: {
+ normal: {
+ color: 'rgb(42,182,252)'
+ },
+ },
+ },
+ {
+ name: '收款',
+ type: 'bar',
+ data: [19325, 23438, 31000, 121594],
+ itemStyle: {
+ normal: {
+ color: 'rgb(34,228,255)'
+ },
+ },
+ }
+ ]
})
- let line = echarts.init(document.getElementById('line-chart'))
- line.setOption({
+ this.line = echarts.init(document.getElementById('line-chart'))
+ this.line.setOption({
title: {
- text: '客户与订单'
+ text: ''
+ },
+ tooltip: {
+ trigger: 'axis'
+ },
+ legend: {
+ data: ['活跃客户', '服务订单']
+ },
+ grid: {
+ left: '3%',
+ right: '6%',
+ bottom: '3%',
+ containLabel: true
+ },
+ toolbox: {
+
},
- tooltip: {},
xAxis: {
- data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
+ type: 'category',
+ boundaryGap: false,
+ data: ['第一周', '第二周', '第三周', '第四周']
},
- yAxis: {},
- series: [{
- name: '销量',
- type: 'bar',
- data: [5, 20, 36, 10, 10, 20]
- }]
+ yAxis: {
+ type: 'value',
+ },
+ series: [
+ {
+ name: '活跃客户',
+ type: 'line',
+ stack: 'Total',
+ data: [120, 132, 101, 134],
+ itemStyle: {
+ normal: {
+ color: 'rgb(42,182,252)'
+ },
+ },
+ },
+ {
+ name: '服务订单',
+ type: 'line',
+ stack: 'Total',
+ data: [220, 182, 191, 234],
+ itemStyle: {
+ normal: {
+ color: 'rgb(34,228,255)'
+ },
+ },
+ }
+ ]
})
}
},
mounted() {
this.init()
+
+ window.onresize = () => {
+ this.col.resize()
+ this.line.resize()
+ }
+ },
+ destroyed() {
+ window.onresize = null
}
}
@@ -88,8 +238,51 @@ export default {
.statistics{
display: flex;
+ margin-top: 20px;
+ &-title{
+
+ padding-left: 6px;
+ }
+ &-content{
+ text-align: center;
+ font-size: 13px;
+ &-top{
+
+ &__num{
+ font-weight: 600;
+ }
+ &__name{
+ font-size: 10px;
+ color: rgb(140,140,140);
+ }
+ }
+ &-bottom{
+ display: flex;
+ justify-content: space-between;
+
+ &-left{
+
+ &__num{
+ font-weight: 600;
+ }
+ &__name{
+ font-size: 10px;
+ color: rgb(140,140,140);
+ }
+ }
+ &-right{
+
+ &__num{
+ font-weight: 600;
+ }
+ &__name{
+ font-size: 10px;
+ color: rgb(140,140,140);
+ }
+ }
+ }
+ }
&>div{
- height: 100px;
flex: 1;
margin-right: 20px;
@@ -100,6 +293,8 @@ export default {
}
.chart{
display: flex;
+
+ margin-top: 50px;
#col-chart {
background: #fff;
border-radius: 10px;
diff --git a/src/views/order/component/addobjects.vue b/src/views/order/component/addobjects.vue
new file mode 100644
index 0000000..9cfc9cf
--- /dev/null
+++ b/src/views/order/component/addobjects.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/objects.vue b/src/views/order/objects.vue
new file mode 100644
index 0000000..b00f1e6
--- /dev/null
+++ b/src/views/order/objects.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/schedule/component/addSchedule.vue b/src/views/schedule/component/addSchedule.vue
index 540e7e4..7972ab5 100644
--- a/src/views/schedule/component/addSchedule.vue
+++ b/src/views/schedule/component/addSchedule.vue
@@ -13,7 +13,7 @@
姓名:
-
+
@@ -23,7 +23,7 @@
性别:
-
+
@@ -33,7 +33,7 @@
身份证号:
-
+
@@ -53,7 +53,7 @@
评估等级:
-
+
@@ -64,7 +64,7 @@
上门地址:
-
+
@@ -73,29 +73,7 @@
备注:
-
-
-
-
-
-
- *产品:
-
-
-
-
-
-
-
-
-
-
- *订单:
-
-
-
-
-
+
@@ -106,6 +84,32 @@
+
+
+
+
+ {{scheduleCount(data.day).length}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -121,15 +125,15 @@
:nurses="nurses"
:skus="skus"
:date="date"
- :order-id="orderId"
- :product-id="productId"
- :customer-id="detail.id">
+ :order-id="detail.id"
+ :product-id="detail.product.id"
+ :customer-id="detail.customer.id">