|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-10-21 17:51:22
|
|
* @Date: 2021-10-21 17:51:22
|
|
- * @LastEditTime: 2021-11-29 09:23:04
|
|
|
|
|
|
+ * @LastEditTime: 2021-11-29 18:27:13
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: 生产经营页面
|
|
* @Description: 生产经营页面
|
|
* @FilePath: \hyyfScreen\src\views\Production\Production.vue
|
|
* @FilePath: \hyyfScreen\src\views\Production\Production.vue
|
|
@@ -123,7 +123,7 @@
|
|
<div class="sales-content">
|
|
<div class="sales-content">
|
|
<div class="sales-left">
|
|
<div class="sales-left">
|
|
<div class="up">
|
|
<div class="up">
|
|
- <label>本周销售额</label>
|
|
|
|
|
|
+ <label>本月销售额</label>
|
|
<span>{{ weekSales }}元</span>
|
|
<span>{{ weekSales }}元</span>
|
|
<div class="sales-change">
|
|
<div class="sales-change">
|
|
<div>
|
|
<div>
|
|
@@ -137,13 +137,13 @@
|
|
:class="weekSalesChange > 0 ? 'color-up' : 'color-down'"
|
|
:class="weekSalesChange > 0 ? 'color-up' : 'color-down'"
|
|
>{{ weekSalesChange }}%</span
|
|
>{{ weekSalesChange }}%</span
|
|
>
|
|
>
|
|
- 同比上周
|
|
|
|
|
|
+ 环比上月
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="down">
|
|
<div class="down">
|
|
- <label>本周销售量</label>
|
|
|
|
- <span>{{ weekSalesVolume }}元</span>
|
|
|
|
|
|
+ <label>本月销售量</label>
|
|
|
|
+ <span>{{ weekSalesVolume }}头</span>
|
|
<div class="sales-change">
|
|
<div class="sales-change">
|
|
<div>
|
|
<div>
|
|
<div
|
|
<div
|
|
@@ -160,7 +160,7 @@
|
|
"
|
|
"
|
|
>{{ weekSalesVolumeChange }}%</span
|
|
>{{ weekSalesVolumeChange }}%</span
|
|
>
|
|
>
|
|
- 同比上周
|
|
|
|
|
|
+ 环比上月
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -294,6 +294,8 @@ import {
|
|
getProductionCondition,
|
|
getProductionCondition,
|
|
getYingFu,
|
|
getYingFu,
|
|
getCostData,
|
|
getCostData,
|
|
|
|
+ getTheSales,
|
|
|
|
+ getWorkPlans,
|
|
} from "../../utils/chenApi";
|
|
} from "../../utils/chenApi";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -533,6 +535,7 @@ export default {
|
|
],
|
|
],
|
|
indicatorsItemVisible: false, // 只要指标的一张图
|
|
indicatorsItemVisible: false, // 只要指标的一张图
|
|
indicatorIndex: 0,
|
|
indicatorIndex: 0,
|
|
|
|
+ workPlans: {} // 工作看板
|
|
};
|
|
};
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -555,6 +558,8 @@ export default {
|
|
this.initProductionCondition(); // 重要指标 - 百分率
|
|
this.initProductionCondition(); // 重要指标 - 百分率
|
|
this.initYingFu(); // 应付排名
|
|
this.initYingFu(); // 应付排名
|
|
this.initCostData(); // 成本分析
|
|
this.initCostData(); // 成本分析
|
|
|
|
+ this.initTheSales(); // 销售分析
|
|
|
|
+ this.initWorkPlans(); // 工作看板
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getWorkInfo(value) {
|
|
getWorkInfo(value) {
|
|
@@ -668,6 +673,32 @@ export default {
|
|
this.costIndex = value;
|
|
this.costIndex = value;
|
|
this.costPieData = this.costHisData[value];
|
|
this.costPieData = this.costHisData[value];
|
|
},
|
|
},
|
|
|
|
+ // 销售分析
|
|
|
|
+ initTheSales() {
|
|
|
|
+ getTheSales({
|
|
|
|
+ type: 2,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code === 10000) {
|
|
|
|
+ this.weekSales = res.data.money;
|
|
|
|
+ this.weekSalesChange = res.data.moneyPercent;
|
|
|
|
+ this.weekSalesVolume = res.data.quantity;
|
|
|
|
+ this.weekSalesVolumeChange = res.data.quantityPercent;
|
|
|
|
+ this.salesChartData = {
|
|
|
|
+ moneyList: res.data.moneyList,
|
|
|
|
+ quantityList: res.data.quantityList,
|
|
|
|
+ timeList: res.data.timeList,
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 工作看板
|
|
|
|
+ initWorkPlans() {
|
|
|
|
+ getWorkPlans({}).then(({code, data}) => {
|
|
|
|
+ if (code === 10000) {
|
|
|
|
+ this.workPlans = data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|