领料分析
This commit is contained in:
parent
330447577a
commit
eb1c5d8d76
|
|
@ -8,6 +8,7 @@ const URL_PROJECT_LIST = '/screen/material/agreementInfo/getProjectList'
|
||||||
const URL_SCRAP_ANALYSIS = '/screen/base/largeScreen/home/getScrapAnalysisByMonth/details'
|
const URL_SCRAP_ANALYSIS = '/screen/base/largeScreen/home/getScrapAnalysisByMonth/details'
|
||||||
const URL_TOTAL_OWNERSHIP = '/screen/base/largeScreen/home/getTotalOwnership/details'
|
const URL_TOTAL_OWNERSHIP = '/screen/base/largeScreen/home/getTotalOwnership/details'
|
||||||
const URL_ACCEPTANCE_STORAGE = '/screen/base/largeScreen/home/getAcceptanceStorage/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)
|
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 getAcceptanceStorage = data => POST(URL_ACCEPTANCE_STORAGE, data)
|
||||||
|
|
||||||
|
// 领料分析
|
||||||
|
export const getPickingAnalysis = data => POST(URL_PICKING_ANALYSIS, data)
|
||||||
|
|
@ -90,7 +90,6 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
open: false,
|
open: false,
|
||||||
material: false, // 领料
|
|
||||||
formData: {
|
formData: {
|
||||||
materialReqNo: '',
|
materialReqNo: '',
|
||||||
materialReqUnitValue: '',
|
materialReqUnitValue: '',
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Pagination from '../Pagination/index.vue'
|
import Pagination from '../Pagination/index.vue'
|
||||||
import { getDetails, getUnitList, getProjectList } from '../../api/dialog'
|
import { getPickingAnalysis, getUnitList, getProjectList } from '../../api/dialog'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'getMaterialsDialog',
|
name: 'getMaterialsDialog',
|
||||||
|
|
@ -81,7 +81,6 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
open: false,
|
open: false,
|
||||||
material: false, // 领料
|
|
||||||
formData: {
|
formData: {
|
||||||
materialReqNo: '',
|
materialReqNo: '',
|
||||||
materialReqUnitValue: '',
|
materialReqUnitValue: '',
|
||||||
|
|
@ -100,17 +99,17 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '领料单号',
|
label: '领料单号',
|
||||||
prop: 'materialTime',
|
prop: 'materialCode',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '领料申请单位',
|
label: '领料申请单位',
|
||||||
prop: 'typeName',
|
prop: 'unitName',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '领料申请工程',
|
label: '领料申请工程',
|
||||||
prop: 'typeModelName',
|
prop: 'projectName',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -120,12 +119,12 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '申请时间',
|
label: '申请时间',
|
||||||
prop: 'userName',
|
prop: 'materialTime',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '申请状态',
|
label: '申请状态',
|
||||||
prop: 'materialCode',
|
prop: 'statusName',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -161,7 +160,7 @@ export default {
|
||||||
unitId: this.formData.materialReqUnitValue,
|
unitId: this.formData.materialReqUnitValue,
|
||||||
projectId: this.formData.materialReqProjectValue,
|
projectId: this.formData.materialReqProjectValue,
|
||||||
}
|
}
|
||||||
getDetails(params).then(({data}) => {
|
getPickingAnalysis(params).then(({data}) => {
|
||||||
this.tableData = data.rows
|
this.tableData = data.rows
|
||||||
this.total = data.total
|
this.total = data.total
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,6 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
open: false,
|
open: false,
|
||||||
material: false, // 领料
|
|
||||||
formData: {
|
formData: {
|
||||||
materialReqNo: '',
|
materialReqNo: '',
|
||||||
materialReqUnitValue: '',
|
materialReqUnitValue: '',
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<h5 class="access-rate-box-title">当月领料分析</h5>
|
<h5 class="access-rate-box-title">当月领料分析</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart-container">
|
<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 class="bg"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -427,12 +427,10 @@ export default {
|
||||||
if (option && typeof option === "object") {
|
if (option && typeof option === "object") {
|
||||||
myChart.setOption(option);
|
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>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,6 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
open: false,
|
open: false,
|
||||||
material: false, // 领料
|
|
||||||
formData: {
|
formData: {
|
||||||
scrapCode: '',
|
scrapCode: '',
|
||||||
scrapSource: '',
|
scrapSource: '',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue