|
@@ -214,7 +214,7 @@
|
|
|
outputChart: null,
|
|
outputChart: null,
|
|
|
borderData: [
|
|
borderData: [
|
|
|
{
|
|
{
|
|
|
- titleName: '工单数量',
|
|
|
|
|
|
|
+ titleName: '生产总数',
|
|
|
titleUnit: '',
|
|
titleUnit: '',
|
|
|
value: '0',
|
|
value: '0',
|
|
|
},
|
|
},
|
|
@@ -237,7 +237,7 @@
|
|
|
{
|
|
{
|
|
|
titleName: '合格率',
|
|
titleName: '合格率',
|
|
|
titleUnit: '',
|
|
titleUnit: '',
|
|
|
- value: '0%',
|
|
|
|
|
|
|
+ value: '100%',
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
monthlySalesVolumeOption: {
|
|
monthlySalesVolumeOption: {
|
|
@@ -429,14 +429,14 @@
|
|
|
async getAllAmount() {
|
|
async getAllAmount() {
|
|
|
let rest = await count({factoriesId: 0});
|
|
let rest = await count({factoriesId: 0});
|
|
|
this.borderData.forEach(async (item) => {
|
|
this.borderData.forEach(async (item) => {
|
|
|
- if (item.titleName === '工单数量') {
|
|
|
|
|
- item.value = rest.inProductCount;
|
|
|
|
|
|
|
+ if (item.titleName === '生产总数') {
|
|
|
|
|
+ item.value = rest.formingNum || 0;
|
|
|
} else if (item.titleName === '待生产数量') {
|
|
} else if (item.titleName === '待生产数量') {
|
|
|
- item.value = rest.planCount;
|
|
|
|
|
|
|
+ item.value = rest.pendingProductionCount || 0;
|
|
|
} else if (item.titleName === '已完成数量') {
|
|
} else if (item.titleName === '已完成数量') {
|
|
|
- item.value = rest.formedWeight;
|
|
|
|
|
|
|
+ item.value = rest.formedNum || 0;
|
|
|
} else if (item.titleName === '合格率') {
|
|
} else if (item.titleName === '合格率') {
|
|
|
- item.value = rest.qualifiedRate + '%';
|
|
|
|
|
|
|
+ item.value = rest.qualifiedRate + '%' || '100%';
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
console.log(rest, 'rest');
|
|
console.log(rest, 'rest');
|