Commit dd28df7b authored by jingnan's avatar jingnan 👀

看板开发代码暂存

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