Commit bd8e8de3 authored by jingnan's avatar jingnan 👀

看板跳转功能开发

parent 2a8fc794
...@@ -1908,8 +1908,9 @@ ...@@ -1908,8 +1908,9 @@
/> />
<SiteProblemManagementSummaryDialog <SiteProblemManagementSummaryDialog
ref="SiteProblemManagementSummaryDialog" ref="SiteProblemManagementSummaryDialog"
:site-problem-management-summary-params="siteProblemManagementSummaryParams"
/> />
<ActionitemsDialog ref="ActionitemsDialog" /> <ActionitemsDialog ref="ActionitemsDialog" :action-items-params="actionItemsParams" />
</div> </div>
</template> </template>
...@@ -2484,7 +2485,7 @@ export default { ...@@ -2484,7 +2485,7 @@ export default {
storageExpireWarningParams: {}, storageExpireWarningParams: {},
summaryOfStationMissingPartsParams: {}, summaryOfStationMissingPartsParams: {},
siteProblemManagementSummaryParams: {}, siteProblemManagementSummaryParams: {},
actionitemsParams: {}, actionItemsParams: {},
sqcdpParams: {} sqcdpParams: {}
} }
}, },
...@@ -2779,6 +2780,7 @@ export default { ...@@ -2779,6 +2780,7 @@ export default {
* 现场督办 * 现场督办
*/ */
initSupervise() { initSupervise() {
this.resetSuperviseOptionData()
const superviseOption = this.superviseOption const superviseOption = this.superviseOption
const params = { const params = {
aircraftType: this.$route.query.model, aircraftType: this.$route.query.model,
...@@ -2799,10 +2801,6 @@ export default { ...@@ -2799,10 +2801,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) {
if (params) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
that.routerSiteProblemManagementSummary(params.name) that.routerSiteProblemManagementSummary(params.name)
}) })
myChart.setOption(superviseOption) myChart.setOption(superviseOption)
...@@ -2812,6 +2810,7 @@ export default { ...@@ -2812,6 +2810,7 @@ export default {
* 行动项 * 行动项
*/ */
initActionitems() { initActionitems() {
this.resetSuperviseOptionData()
const superviseOption = this.superviseOption const superviseOption = this.superviseOption
const params = { const params = {
aircraftType: this.$route.query.model, aircraftType: this.$route.query.model,
...@@ -2832,15 +2831,17 @@ export default { ...@@ -2832,15 +2831,17 @@ 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) {
if (params) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
that.routerActionitems(params.name) that.routerActionitems(params.name)
}) })
myChart.setOption(superviseOption) myChart.setOption(superviseOption)
}) })
}, },
resetSuperviseOptionData() {
this.superviseOption.series[0].data.map(item => {
item.value = 0
return item
})
},
selectSuperviseTabs(key) { selectSuperviseTabs(key) {
// 销毁echart // 销毁echart
const chartDom = document.getElementById('superviseEchart') const chartDom = document.getElementById('superviseEchart')
...@@ -2862,6 +2863,7 @@ export default { ...@@ -2862,6 +2863,7 @@ export default {
query: { query: {
title: '站位看板', title: '站位看板',
planId: item.id, planId: item.id,
serialNumber: item.serialNumber,
model: this.$route.query.model, model: this.$route.query.model,
sorties: this.$route.query.sorties, sorties: this.$route.query.sorties,
data: JSON.stringify(item) data: JSON.stringify(item)
...@@ -2940,7 +2942,7 @@ export default { ...@@ -2940,7 +2942,7 @@ export default {
query: { query: {
name: name, name: name,
sorties: this.info.aircraftSorties.defCode, sorties: this.info.aircraftSorties.defCode,
serialNumber: this.$route.query.serialNumber, // serialNumber: this.$route.query.serialNumber,
data: data data: data
} }
} }
...@@ -2953,8 +2955,11 @@ export default { ...@@ -2953,8 +2955,11 @@ export default {
this.siteProblemManagementSummaryParams = { this.siteProblemManagementSummaryParams = {
name: 'siteProblemManagementSummary', name: 'siteProblemManagementSummary',
query: { query: {
// serialNumber: this.$route.query.serialNumber,
name: name, name: name,
planId: null, rootPage: 'AssembleKanban',
planId: this.$route.query.planId,
model: this.$route.query.model,
sorties: this.$route.query.sorties sorties: this.$route.query.sorties
} }
} }
...@@ -2964,11 +2969,11 @@ export default { ...@@ -2964,11 +2969,11 @@ export default {
* 行动项 * 行动项
*/ */
routerActionitems(name) { routerActionitems(name) {
this.actionitemsParams = { this.actionItemsParams = {
name: 'actionitemsParams', name: 'actionItemsParams',
query: { query: {
name: name, name: name,
planId: this.info.airModel.resName, model: this.$route.query.model,
sorties: this.$route.query.sorties sorties: this.$route.query.sorties
} }
} }
......
...@@ -10,20 +10,28 @@ ...@@ -10,20 +10,28 @@
@close="close" @close="close"
@opened="opened" @opened="opened"
> >
<!-- <Actionitems /> -->Actionitems <dee-as-com
ref="table"
class="list-table"
:lay-config="cmpOptions"
/>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
// import Actionitems from '@/views/mes/actionItemManagement/actionItemManagementSearch/index'
export default { export default {
name: 'ActionitemsDialog', name: 'ActionitemsDialog',
components: { components: {
// Actionitems
}, },
props: { }, props: {
actionItemsParams: {
type: Object,
default: () => {}
}
},
data() { data() {
return { return {
visible: false visible: false,
cmpOptions: { typeName: 'ActionItem', layKey: 'ActionItemTable_onlyReadCopy' }
} }
}, },
computed: { computed: {
...@@ -31,11 +39,36 @@ export default { ...@@ -31,11 +39,36 @@ export default {
created() {}, created() {},
methods: { methods: {
opened() { opened() {
this.$children[0].$children[0].getAirModelList() const queryData = this.actionItemsParams.query
const extraParams = [
{
'fieldName': 'state',
'operator': 'EQ',
'value': 'TF_WWC'
},
{
'fieldName': 'airModel',
'operator': 'EQ',
'value': queryData.model
},
{
'fieldName': 'serialNo',
'operator': 'EQ',
'value': queryData.sorties
},
{
'fieldName': 'categoryCode',
'operator': 'EQ',
'value': queryData.name
}
]
setTimeout(() => {
this.$refs.table.$refs.asCom.getData(extraParams)
}, 500)
}, },
close() { close() {
this.visible = false this.visible = false
this.$parent.actionitemsParams = {}
} }
} }
} }
......
...@@ -38,28 +38,39 @@ export default { ...@@ -38,28 +38,39 @@ export default {
created() {}, created() {},
methods: { methods: {
opened() { opened() {
const queryData = this.jobPlanExecutionQueryParams.query
const extraParams = [ const extraParams = [
{
'fieldName': 'joExecutePlan.planState',
'operator': 'IN',
'value': this.jobPlanExecutionQueryParams.query.planStateCode
},
{ {
'fieldName': 'planeType', 'fieldName': 'planeType',
'operator': 'EQ', 'operator': 'EQ',
'value': this.jobPlanExecutionQueryParams.query.model 'value': queryData.model
}, },
{ {
'fieldName': 'sorties', 'fieldName': 'sorties',
'operator': 'EQ', 'operator': 'EQ',
'value': this.jobPlanExecutionQueryParams.query.sorties 'value': queryData.sorties
}, },
{ {
'fieldName': 'positionNumber', 'fieldName': 'positionNumber',
'operator': 'LIKE', 'operator': 'LIKE',
'value': this.jobPlanExecutionQueryParams.query.serialNumber 'value': queryData.serialNumber
} }
] ]
if (queryData.rootPage === 'ProductionKanban') {
extraParams.push({
'fieldName': 'joExecutePlan.planState',
'operator': 'IN',
'value': queryData.planStateCode
})
} else {
extraParams.push({
'fieldName': 'joExecutePlan.scheduledEnd',
'operator': 'BTWN',
'value': queryData.date && queryData.date.value,
'value1': queryData.date && queryData.date.value1
})
}
setTimeout(() => { setTimeout(() => {
this.$refs.table.$refs.asCom.getData(extraParams) this.$refs.table.$refs.asCom.getData(extraParams)
}, 500) }, 500)
......
...@@ -40,29 +40,31 @@ export default { ...@@ -40,29 +40,31 @@ export default {
created() {}, created() {},
methods: { methods: {
opened() { opened() {
const extraParams = const queryData = this.siteProblemManagementSummaryParams.query
[ const extraParams = [
{
'fieldName': 'standPosition',
'operator': 'EQ',
'value': this.siteProblemManagementSummaryParams.query.serialNumber
},
{ {
'fieldName': 'sptype', 'fieldName': 'sptype',
'operator': 'LIKE', 'operator': 'LIKE',
'value': this.siteProblemManagementSummaryParams.query.name 'value': queryData.name
}, },
{ {
'fieldName': 'airModel', 'fieldName': 'airModel',
'operator': 'EQ', 'operator': 'EQ',
'value': this.siteProblemManagementSummaryParams.query.model 'value': queryData.model
}, },
{ {
'fieldName': 'sorties', 'fieldName': 'sorties',
'operator': 'EQ', 'operator': 'EQ',
'value': this.siteProblemManagementSummaryParams.query.sorties 'value': queryData.sorties
} }
] ]
if (queryData.rootPage === 'ExperimentKanban') {
extraParams.push({
'fieldName': 'standPosition',
'operator': 'EQ',
'value': queryData.serialNumber
})
}
setTimeout(() => { setTimeout(() => {
this.$refs.table.$refs.asCom.getData(extraParams) this.$refs.table.$refs.asCom.getData(extraParams)
}, 500) }, 500)
......
...@@ -1977,7 +1977,7 @@ ...@@ -1977,7 +1977,7 @@
@click="isFullClick" @click="isFullClick"
> >
</div> </div>
<JobPlanExecutionQueryDialog ref="JobPlanExecutionQueryDialog" /> <JobPlanExecutionQueryDialog ref="JobPlanExecutionQueryDialog" :job-plan-execution-query-params="JobPlanExecutionQueryParams" />
<SQCDPDialog ref="SQCDPDialog" :sqcdp-params="sqcdpParams" /> <SQCDPDialog ref="SQCDPDialog" :sqcdp-params="sqcdpParams" />
<SummaryOfStationMissingPartsDialog ref="SummaryOfStationMissingPartsDialog" /> <SummaryOfStationMissingPartsDialog ref="SummaryOfStationMissingPartsDialog" />
<SiteProblemManagementSummaryDialog ref="SiteProblemManagementSummaryDialog" :site-problem-management-summary-params="siteProblemManagementSummaryParams" /> <SiteProblemManagementSummaryDialog ref="SiteProblemManagementSummaryDialog" :site-problem-management-summary-params="siteProblemManagementSummaryParams" />
...@@ -2564,10 +2564,6 @@ export default { ...@@ -2564,10 +2564,6 @@ export default {
const chartDom = document.getElementById('experimentKanbanEchart') const chartDom = document.getElementById('experimentKanbanEchart')
const myChart = echarts.init(chartDom) const myChart = echarts.init(chartDom)
myChart.on('click', function(params) { myChart.on('click', function(params) {
if (params) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
that.routerJobPlanExecutionSummary(params) that.routerJobPlanExecutionSummary(params)
}) })
myChart.setOption(optionTrend) myChart.setOption(optionTrend)
...@@ -2780,11 +2776,10 @@ export default { ...@@ -2780,11 +2776,10 @@ export default {
name: 'jobPlanExecutionSummary', name: 'jobPlanExecutionSummary',
query: { query: {
serialNumber: this.$route.query.serialNumber, serialNumber: this.$route.query.serialNumber,
// planId: this.$route.query.planId, rootPage: 'ExperimentKanban',
model: this.$route.query.model, model: this.$route.query.model,
sorties: this.$route.query.sorties, sorties: this.$route.query.sorties,
date: params.name, date: { value: params.name + ' 00:00:00', value1: params.name + ' 23:59:59' }
isOk: params.seriesName === '计划完工' ? 'Y' : 'N'
} }
} }
this.$refs.JobPlanExecutionQueryDialog.visible = true this.$refs.JobPlanExecutionQueryDialog.visible = true
...@@ -2798,6 +2793,7 @@ export default { ...@@ -2798,6 +2793,7 @@ export default {
query: { query: {
serialNumber: this.$route.query.serialNumber, serialNumber: this.$route.query.serialNumber,
name: name, name: name,
rootPage: 'ExperimentKanban',
planId: this.$route.query.planId, planId: this.$route.query.planId,
model: this.$route.query.model, model: this.$route.query.model,
sorties: this.$route.query.sorties sorties: this.$route.query.sorties
......
...@@ -346,6 +346,7 @@ export default { ...@@ -346,6 +346,7 @@ export default {
const params = { const params = {
name: 'jobPlanExecutionSummary', name: 'jobPlanExecutionSummary',
query: { query: {
rootPage: 'ProductionKanban',
serialNumber: this.stationRow.serialNumber, serialNumber: this.stationRow.serialNumber,
model: this.sortiesRow.aircraftType.defName, model: this.sortiesRow.aircraftType.defName,
sorties: this.sortiesRow.aircraftSorties.defCode, sorties: this.sortiesRow.aircraftSorties.defCode,
......
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