Commit 846a4944 authored by jingnan's avatar jingnan 👀

看板开发代码暂存

parent 7483bf91
......@@ -84,11 +84,11 @@ export function stationPlan(params) {
}
/**
* 现场问题督办echart
* @param {*} planId
* @param {*} params
* @returns
*/
export function stationSpotProblemEchart(planId) {
return post(`/SpotProblem/look/plan/spotProblem?planId=${planId}`)
export function stationSpotProblemEchart(params) {
return post(`/SpotProblem/board/plan/spotProblem/matrix?positionNo=${params.positionNo}&sorties=${params.sorties}`)
}
/**
* 现场问题督办table
......@@ -100,19 +100,19 @@ export function stationSpotProblemTable(params) {
}
/**
* 物料配套及缺件情况 echart
* @param {*} planId
* @param {*} params
* @returns
*/
export function stationFitRates(planId) {
return post(`/StorageRequestItem/look/plan/fitRates?planId=${planId}`)
export function stationFitRates(params) {
return post(`/ExtSupportingItem/board/plan/fitRates?positionNo=${params.positionNo}&sorties=${params.sorties}`)
}
/**
* 物料配套及缺件情况 table
* @param {*} planId
* @param {*} params
* @returns
*/
export function stationMaterialLacke(planId) {
return post(`/WrMaterialLack/look/plan/materialLack?planId=${planId}`)
export function stationMaterialLacke(params) {
return post(`/WrMaterialLack/board/plan/materialLack?positionNo=${params.positionNo}&sorties=${params.sorties}`)
}
/**
*站位缺件汇总 获取站位
......
......@@ -2601,7 +2601,11 @@ export default {
*/
initParts() {
const optionParts = this.optionParts
stationFitRates(this.planId)
const params = {
positionNo: this.info.serialNumber,
sorties: this.$route.query.sorties
}
stationFitRates(params)
.then((res) => {
if (res.message.includes('成功')) {
console.log('物料配套及缺件情况echart', res)
......@@ -2627,14 +2631,16 @@ export default {
*/
initSupervise() {
const superviseOption = this.superviseOption
stationSpotProblemEchart(this.planId)
const params = {
positionNo: this.info.serialNumber,
sorties: this.$route.query.sorties
}
stationSpotProblemEchart(params)
.then((res) => {
if (res.message.includes('成功')) {
console.log('现场问题督办echart', res)
superviseOption.legend.data = res.items.map((p) => p.name)
res.items.forEach((p, index) => {
superviseOption.series[0].data[index].name = p.name
superviseOption.series[0].data[index].value = p.count
Object.entries(res.items).forEach(([key, value]) => {
const targetIndex = superviseOption.series[0].data.findIndex(el => (el.name === key))
superviseOption.series[0].data[targetIndex].value = value
})
}
})
......@@ -2644,7 +2650,6 @@ export default {
const chartDom = document.getElementById('superviseEchart')
const myChart = echarts.init(chartDom)
myChart.on('click', function(params) {
console.log(2625, params)
that.routerSiteProblemManagementSummary(params.name)
})
myChart.setOption(superviseOption)
......@@ -2712,7 +2717,11 @@ export default {
* 物料配套及缺件情况table
*/
initMissparts() {
stationMaterialLacke(this.planId)
const params = {
positionNo: this.info.serialNumber,
sorties: this.$route.query.sorties
}
stationMaterialLacke(params)
.then((res) => {
if (res.message.includes('成功')) {
console.log('物料配套及缺件情况table', res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment