| | |
| | | <div class="quality-card one"></div> |
| | | <div class="quality-cardTitle"> |
| | | <div>入库数量</div> |
| | | <div>{{qualityStatisticsObject.supplierNum}}件</div> |
| | | <div>{{supplierNum}}件</div> |
| | | </div> |
| | | </div> |
| | | <div class="quality-cardSec"> |
| | | <div class="quality-card two"></div> |
| | | <div class="quality-cardTitle"> |
| | | <div>出库数量</div> |
| | | <div>{{qualityStatisticsObject.processNum}}件</div> |
| | | <div>{{factoryNum}}件</div> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="quality-cardSec">--> |
| | |
| | | import useUserStore from '@/store/modules/user' |
| | | import { |
| | | analysisCustomerContractAmounts, getAmountHalfYear, |
| | | homeTodos, qualityProductQualifiedRate, |
| | | homeTodos, inventoryStatistics, qualityProductQualifiedRate, |
| | | qualityStatistics, |
| | | statisticsReceivablePayable |
| | | } from "@/api/viewIndex.js"; |
| | |
| | | const workListLength = ref(0) |
| | | const noListPageProcessLength = ref(0) |
| | | const listPageProcessLength = ref(0) |
| | | const supplierNum = ref(0) |
| | | const factoryNum = ref(0) |
| | | const pieTooltip = reactive({ |
| | | trigger: 'item', |
| | | formatter: function (params) { |
| | |
| | | ]) |
| | | const barSeries1 = ref([ |
| | | { |
| | | name: '原材料合格数', |
| | | name: '入库数量', |
| | | type: 'bar', |
| | | barGap: 0, |
| | | emphasis: { |
| | |
| | | data: [] |
| | | }, |
| | | { |
| | | name: '过程合格数', |
| | | name: '出库数量', |
| | | type: 'bar', |
| | | emphasis: { |
| | | focus: 'series' |
| | |
| | | colorStops: [ |
| | | { offset: 1, color: '#3378FF' }, |
| | | { offset: 0, color: '#4E8AFF' } |
| | | ] |
| | | } |
| | | }, |
| | | data: [] |
| | | }, |
| | | { |
| | | name: '出厂合格数', |
| | | type: 'bar', |
| | | emphasis: { |
| | | focus: 'series' |
| | | }, |
| | | itemStyle: { |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [ |
| | | { offset: 1, color: '#537EF5' }, |
| | | { offset: 0, color: '#9061F8' } |
| | | ] |
| | | } |
| | | }, |
| | |
| | | processQualifiedRate.value = res.data.processQualifiedRate |
| | | factoryQualifiedRate.value = res.data.factoryQualifiedRate |
| | | inventoryTurnoverRate.value = res.data.inventoryTurnoverRate |
| | | }) |
| | | } |
| | | // 产品合格率 |
| | | const inventoryStatisticsInfo = () => { |
| | | inventoryStatistics().then((res) => { |
| | | supplierNum.value = res.data.supplierNum |
| | | factoryNum.value = res.data.factoryNum |
| | | res.data.item.forEach(item => { |
| | | xAxis1.value[0].data.push(item.date) |
| | | barSeries1.value[0].data.push(item.supplierNum) |
| | | barSeries1.value[1].data.push(item.factoryNum) |
| | | }) |
| | | }) |
| | | } |
| | | // 财务统计 |
| | |
| | | |
| | | window.addEventListener('resize', handleResize) |
| | | analysisCustomer() |
| | | qualityStatisticsInfo() |
| | | // qualityStatisticsInfo() |
| | | qualityProductQualifiedRateInfo() |
| | | inventoryStatisticsInfo() |
| | | accountStatisticsInfo() |
| | | workListPageInfo() |
| | | getNum() |