Commit 00297c7e authored by jingnan's avatar jingnan 👀

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents 444a9c92 4965b5b2
...@@ -99,7 +99,7 @@ const actions = { ...@@ -99,7 +99,7 @@ const actions = {
// if (!state.activeModel || model.appId !== state.activeModel.id || (model.appId === 'todoTask' && state.activeModel.id !== 'todoTask')) { // if (!state.activeModel || model.appId !== state.activeModel.id || (model.appId === 'todoTask' && state.activeModel.id !== 'todoTask')) {
if (model.appId === 'todoTask' || model.appId === 'homeCenter' || model.appId === 'myMessage' || if (model.appId === 'todoTask' || model.appId === 'homeCenter' || model.appId === 'myMessage' ||
model.appId === 'myTaskReceive' || model.appId === 'myCheckTaskReceive' || model.appId === 'myTaskReceive' || model.appId === 'myCheckTaskReceive' ||
model.appId === 'myAirTaskReceive') { // 待办任务页特殊处理 model.appId === 'myAirTaskReceive' || model.appId === 'myExecutDispatch') { // 待办任务页特殊处理
commit('SET_ACTIVE_MODEL', { commit('SET_ACTIVE_MODEL', {
id: model.appId, id: model.appId,
path: { ...model.pageInfo } path: { ...model.pageInfo }
......
...@@ -124,6 +124,11 @@ export default { ...@@ -124,6 +124,11 @@ export default {
taskType: '适航任务', taskType: '适航任务',
type: 'DMIR', type: 'DMIR',
appId: 'myAirTaskReceive' appId: 'myAirTaskReceive'
},
{
taskType: '执行派工',
type: 'Dispatch',
appId: 'myExecutDispatch'
} }
] ]
} }
...@@ -140,7 +145,7 @@ export default { ...@@ -140,7 +145,7 @@ export default {
}, },
mounted: function() { mounted: function() {
this.quickAccessList.forEach((item, index) => { this.quickAccessList.forEach((item, index) => {
this.getCustomModules(index) this.getCustomModules(index, item)
}) })
}, },
methods: { methods: {
...@@ -263,19 +268,24 @@ export default { ...@@ -263,19 +268,24 @@ export default {
query: { title: '任务查询' } query: { title: '任务查询' }
}) })
}, },
getCustomModules(index) { getCustomModules(index, item) {
const params = { if (item.type === 'Dispatch') {
type: this.quickAccessList[index].type get(`/indexTask/task/ProdTask`, {}).then(res => {
this.$set(this.quickAccessList[index], 'taskCount', res.items.count)
})
} else {
const params = {
type: this.quickAccessList[index].type
}
get(`/indexTask/task/fitOut`, params).then(res => {
this.$set(this.quickAccessList[index], 'taskCount', res.items.count)
})
} }
get(`/indexTask/task/fitOut`, params).then(res => {
this.$set(this.quickAccessList[index], 'taskCount', res.items.count)
})
}, },
goInfo(item) { goInfo(item) {
this.clickTask = item this.clickTask = item
// this.$emit('getTaskDetail', item ? { id: item.id, processInstanceId: item.processInstanceId, title: item.title } : null) // this.$emit('getTaskDetail', item ? { id: item.id, processInstanceId: item.processInstanceId, title: item.title } : null)
if (item.type === 'FitOut' || item.type === 'CheckOut' || item.type === 'DMIR') { if (item.type === 'FitOut' || item.type === 'CheckOut' || item.type === 'DMIR' || item.type === 'Dispatch') {
this.goModule(item) this.goModule(item)
} else { } else {
this.$router.push({ this.$router.push({
...@@ -293,14 +303,23 @@ export default { ...@@ -293,14 +303,23 @@ export default {
} }
}, },
async goModule(module) { async goModule(module) {
this.$router.push({ if (module.type === 'Dispatch') {
path: '/dee-mes/taskReception', this.$router.push({
query: { path: '/dee-mes/instructions-dispatch',
title: module.taskType, query: {
showMenu: false, title: module.taskType
showTag: 'false' }
} })
}) } else {
this.$router.push({
path: '/dee-mes/taskReception',
query: {
title: module.taskType,
showMenu: false,
showTag: 'false'
}
})
}
this.$store.dispatch('menu/activeModel', { this.$store.dispatch('menu/activeModel', {
appId: module.appId, appId: module.appId,
pageInfo: { pageInfo: {
......
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