|
@@ -73,7 +73,7 @@
|
|
|
<div class="box-echarts">
|
|
<div class="box-echarts">
|
|
|
<div class="box-echarts-top">
|
|
<div class="box-echarts-top">
|
|
|
<span class="box-top-name">月度产量统计</span>
|
|
<span class="box-top-name">月度产量统计</span>
|
|
|
- <span class="box-top-unit">(KG)</span>
|
|
|
|
|
|
|
+ <!-- <span class="box-top-unit">(KG)</span> -->
|
|
|
</div>
|
|
</div>
|
|
|
<div class="monthly_output">
|
|
<div class="monthly_output">
|
|
|
<div v-if="isFlag" id="monthly_output" ref="monthly_output"></div>
|
|
<div v-if="isFlag" id="monthly_output" ref="monthly_output"></div>
|
|
@@ -121,7 +121,8 @@
|
|
|
getSignAmountAPI,
|
|
getSignAmountAPI,
|
|
|
getMonthlySalesStatisticAPI,
|
|
getMonthlySalesStatisticAPI,
|
|
|
getMonthlyProduceStatisticAPI,
|
|
getMonthlyProduceStatisticAPI,
|
|
|
- getSalesFinishListAPI
|
|
|
|
|
|
|
+ getSalesFinishListAPI,
|
|
|
|
|
+ getProductInStoreQuantity
|
|
|
} from '@/api/bpm/visPage';
|
|
} from '@/api/bpm/visPage';
|
|
|
import { LAYOUT_PATH } from '@/config/setting';
|
|
import { LAYOUT_PATH } from '@/config/setting';
|
|
|
import { isFullscreen, toggleFullscreen } from 'ele-admin';
|
|
import { isFullscreen, toggleFullscreen } from 'ele-admin';
|
|
@@ -135,6 +136,9 @@
|
|
|
computed: {
|
|
computed: {
|
|
|
contentWidth() {
|
|
contentWidth() {
|
|
|
return this.$store.state.theme.contentWidth;
|
|
return this.$store.state.theme.contentWidth;
|
|
|
|
|
+ },
|
|
|
|
|
+ clientEnvironmentId() {
|
|
|
|
|
+ return this.$store.state.user.info.clientEnvironmentId;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -271,10 +275,14 @@
|
|
|
fun: () => getSalesAmountAPI()
|
|
fun: () => getSalesAmountAPI()
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- titleName: '增重重量',
|
|
|
|
|
- titleUnit: '(KG)',
|
|
|
|
|
|
|
+ titleName:
|
|
|
|
|
+ this.clientEnvironmentId == 3 ? '增重重量' : '成品入库数量',
|
|
|
|
|
+ titleUnit: '(PCS)',
|
|
|
value: '0',
|
|
value: '0',
|
|
|
- fun: () => getIncreaseWeightAPI()
|
|
|
|
|
|
|
+ fun: () =>
|
|
|
|
|
+ this.clientEnvironmentId == 3
|
|
|
|
|
+ ? getIncreaseWeightAPI()
|
|
|
|
|
+ : getProductInStoreQuantity()
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
titleName: '成品入库重量',
|
|
titleName: '成品入库重量',
|
|
@@ -534,8 +542,8 @@
|
|
|
let data = await getMonthlyProduceStatisticAPI();
|
|
let data = await getMonthlyProduceStatisticAPI();
|
|
|
let series = [
|
|
let series = [
|
|
|
{
|
|
{
|
|
|
- field: 'increaseWeight',
|
|
|
|
|
- name: '增重重量',
|
|
|
|
|
|
|
+ field: this.clientEnvironmentId == 3 ?'increaseWeight':'produceQuantity',
|
|
|
|
|
+ name: this.clientEnvironmentId == 3 ? '增重重量' : '成品入库数量',
|
|
|
data: [],
|
|
data: [],
|
|
|
type: 'bar',
|
|
type: 'bar',
|
|
|
itemStyle: {
|
|
itemStyle: {
|
|
@@ -562,11 +570,11 @@
|
|
|
//
|
|
//
|
|
|
async getSalesFinishList() {
|
|
async getSalesFinishList() {
|
|
|
/*customerMark 客户代号 string
|
|
/*customerMark 客户代号 string
|
|
|
-deliveryStatus 交付状态 1未交付2提前3按时4延期 integer(int32)
|
|
|
|
|
-produceStatus 生产状态 1未生产2已生产3已完成 integer(int32)
|
|
|
|
|
-purchaseStatus 采购状态 1未采购2已采购3已入库 integer(int32)
|
|
|
|
|
-saleOrderCode 销售订单号 string
|
|
|
|
|
-scheduleStatus 排产状态 1待排产2已排产 integer(int32)*/
|
|
|
|
|
|
|
+ deliveryStatus 交付状态 1未交付2提前3按时4延期 integer(int32)
|
|
|
|
|
+ produceStatus 生产状态 1未生产2已生产3已完成 integer(int32)
|
|
|
|
|
+ purchaseStatus 采购状态 1未采购2已采购3已入库 integer(int32)
|
|
|
|
|
+ saleOrderCode 销售订单号 string
|
|
|
|
|
+ scheduleStatus 排产状态 1待排产2已排产 integer(int32)*/
|
|
|
let HeaderFiled = [
|
|
let HeaderFiled = [
|
|
|
'customerMark',
|
|
'customerMark',
|
|
|
'saleOrderCode',
|
|
'saleOrderCode',
|