领料分析

This commit is contained in:
binbin_pan 2024-04-26 10:25:38 +08:00
parent 330447577a
commit eb1c5d8d76
6 changed files with 15 additions and 17 deletions

View File

@ -8,6 +8,7 @@ const URL_PROJECT_LIST = '/screen/material/agreementInfo/getProjectList'
const URL_SCRAP_ANALYSIS = '/screen/base/largeScreen/home/getScrapAnalysisByMonth/details'
const URL_TOTAL_OWNERSHIP = '/screen/base/largeScreen/home/getTotalOwnership/details'
const URL_ACCEPTANCE_STORAGE = '/screen/base/largeScreen/home/getAcceptanceStorage/details'
const URL_PICKING_ANALYSIS = '/screen/base/largeScreen/home/getPickingAnalysisByMonth/details'
// 设备类型
export const getTypeList = params => GET(URL_TYPE_LIST, params)
@ -32,3 +33,6 @@ export const getTotalOwnership = data => POST(URL_TOTAL_OWNERSHIP, data)
// 入库分析
export const getAcceptanceStorage = data => POST(URL_ACCEPTANCE_STORAGE, data)
// 领料分析
export const getPickingAnalysis = data => POST(URL_PICKING_ANALYSIS, data)

View File

@ -90,7 +90,6 @@ export default {
data() {
return {
open: false,
material: false, //
formData: {
materialReqNo: '',
materialReqUnitValue: '',

View File

@ -71,7 +71,7 @@
<script>
import Pagination from '../Pagination/index.vue'
import { getDetails, getUnitList, getProjectList } from '../../api/dialog'
import { getPickingAnalysis, getUnitList, getProjectList } from '../../api/dialog'
export default {
name: 'getMaterialsDialog',
@ -81,7 +81,6 @@ export default {
data() {
return {
open: false,
material: false, //
formData: {
materialReqNo: '',
materialReqUnitValue: '',
@ -100,17 +99,17 @@ export default {
},
{
label: '领料单号',
prop: 'materialTime',
prop: 'materialCode',
align: 'center'
},
{
label: '领料申请单位',
prop: 'typeName',
prop: 'unitName',
align: 'center'
},
{
label: '领料申请工程',
prop: 'typeModelName',
prop: 'projectName',
align: 'center'
},
{
@ -120,12 +119,12 @@ export default {
},
{
label: '申请时间',
prop: 'userName',
prop: 'materialTime',
align: 'center'
},
{
label: '申请状态',
prop: 'materialCode',
prop: 'statusName',
align: 'center'
}
],
@ -161,7 +160,7 @@ export default {
unitId: this.formData.materialReqUnitValue,
projectId: this.formData.materialReqProjectValue,
}
getDetails(params).then(({data}) => {
getPickingAnalysis(params).then(({data}) => {
this.tableData = data.rows
this.total = data.total
})

View File

@ -90,7 +90,6 @@ export default {
data() {
return {
open: false,
material: false, //
formData: {
materialReqNo: '',
materialReqUnitValue: '',

View File

@ -5,7 +5,7 @@
<h5 class="access-rate-box-title">当月领料分析</h5>
</div>
<div class="chart-container">
<div class="chart" ref="chart" id="pieChartMap"></div>
<div class="chart" ref="chart" id="pieChartMap" @click="handleClick"></div>
<!-- 底座背景 -->
<div class="bg"></div>
</div>
@ -427,12 +427,10 @@ export default {
if (option && typeof option === "object") {
myChart.setOption(option);
}
myChart.off('click');
myChart.on('click', (params) => {
console.log('🚀 ~ myChart.on ~ params:', params);
this.$refs.materialAnalysisDialog.setOpen({open: true, maType: this.maType})
});
},
handleClick() {
this.$refs.materialAnalysisDialog.setOpen({ open: true, maType: this.maType })
}
},
};
</script>

View File

@ -101,7 +101,6 @@ export default {
data() {
return {
open: false,
material: false, //
formData: {
scrapCode: '',
scrapSource: '',