修改分发工程师
This commit is contained in:
@@ -270,7 +270,7 @@
|
|||||||
this.edit()
|
this.edit()
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/ProjectDetails',
|
path: '/ProjectDetails',
|
||||||
query: this.$route.query.primaryKeyId
|
query: this.$route.query
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -57,6 +57,9 @@
|
|||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
|
<span slot="standard" slot-scope="text,result">
|
||||||
|
<a @click="standardClick(result)">{{text}}</a>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="page" v-if="dataSource.length > 0">
|
<div class="page" v-if="dataSource.length > 0">
|
||||||
@@ -83,17 +86,19 @@
|
|||||||
queryParam: {},
|
queryParam: {},
|
||||||
loading: false,
|
loading: false,
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
selectedRowKeys:[],
|
selectedRowKeys: [],
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'serialNumber'
|
dataIndex: 'serialNumber',
|
||||||
|
scopedSlots: { customRender: 'standard' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'title'
|
dataIndex: 'title',
|
||||||
|
scopedSlots: { customRender: 'standard' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('ProcessType'),
|
title: this.$t('ProcessType'),
|
||||||
@@ -194,6 +199,48 @@
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
standardClick(val) {
|
||||||
|
let num = val.prcType
|
||||||
|
let query = {
|
||||||
|
taskIds: val.taskId,
|
||||||
|
projectTaskInventoryId: val.projectLawsInventoryId,
|
||||||
|
projectLibraryId: val.projectLibraryId,
|
||||||
|
projectName: val.projectName,
|
||||||
|
id: val.projectLibraryId,
|
||||||
|
serialNumber: val.serialNumber,
|
||||||
|
actiProcInstId: val.prcId,
|
||||||
|
primaryKeyId: val.projectTaskInventoryDetailId,
|
||||||
|
TaskKey: val.status == 'NotDone' ? val.taskDefinitionKey : 'hhhhh'
|
||||||
|
}
|
||||||
|
switch (num) {
|
||||||
|
case '2':
|
||||||
|
query.flowType = 2
|
||||||
|
query.Sponsor = 'designInitiatorName'
|
||||||
|
query.personLiable = 'designDutyName'
|
||||||
|
query.typeOfDeliverables = 'designDeliverableType_dictText'
|
||||||
|
query.deliverableTemplate = 'designDeliverableTemplate'
|
||||||
|
break
|
||||||
|
case '3':
|
||||||
|
query.flowType = 3
|
||||||
|
query.Sponsor = 'prehomoInitiatorName'
|
||||||
|
query.personLiable = 'prehomoDutyName'
|
||||||
|
query.typeOfDeliverables = 'prehomoDeliverableType_dictText'
|
||||||
|
query.deliverableTemplate = 'prehomoDeliverableTemplate'
|
||||||
|
break
|
||||||
|
case '4':
|
||||||
|
query.flowType = 4
|
||||||
|
query.Sponsor = 'verifyInitiatorName'
|
||||||
|
query.personLiable = 'verifyDutyName'
|
||||||
|
query.typeOfDeliverables = 'verifyDeliverableType_dictText'
|
||||||
|
query.deliverableTemplate = 'verifyDeliverableTemplate'
|
||||||
|
break
|
||||||
|
}
|
||||||
|
let newUrl = this.$router.resolve({
|
||||||
|
path: '/taskListProcess',
|
||||||
|
query: query
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -157,6 +157,9 @@
|
|||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
|
<span slot="standard" slot-scope="text,result">
|
||||||
|
<a @click="standardClick(result)">{{text}}</a>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="page" v-if="dataSource.length > 0">
|
<div class="page" v-if="dataSource.length > 0">
|
||||||
@@ -195,13 +198,15 @@
|
|||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'serialNumber',
|
dataIndex: 'serialNumber',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
scopedSlots: { customRender: 'standard' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
scopedSlots: { customRender: 'standard' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('ProcessType'),
|
title: this.$t('ProcessType'),
|
||||||
@@ -330,6 +335,48 @@
|
|||||||
PersonnelSelectionChange(value, id) {
|
PersonnelSelectionChange(value, id) {
|
||||||
this.queryParam[value] = id
|
this.queryParam[value] = id
|
||||||
this.queryParam = { ...this.queryParam }
|
this.queryParam = { ...this.queryParam }
|
||||||
|
},
|
||||||
|
standardClick(val) {
|
||||||
|
let num = val.prcType
|
||||||
|
let query = {
|
||||||
|
taskIds: val.taskId,
|
||||||
|
projectTaskInventoryId: val.projectLawsInventoryId,
|
||||||
|
projectLibraryId: val.projectLibraryId,
|
||||||
|
projectName: val.projectName,
|
||||||
|
id: val.projectLibraryId,
|
||||||
|
serialNumber: val.serialNumber,
|
||||||
|
actiProcInstId: val.prcId,
|
||||||
|
primaryKeyId: val.projectTaskInventoryDetailId,
|
||||||
|
TaskKey: val.status == 'NotDone' ? val.taskDefinitionKey : 'hhhhh'
|
||||||
|
}
|
||||||
|
switch (num) {
|
||||||
|
case '2':
|
||||||
|
query.flowType = 2
|
||||||
|
query.Sponsor = 'designInitiatorName'
|
||||||
|
query.personLiable = 'designDutyName'
|
||||||
|
query.typeOfDeliverables = 'designDeliverableType_dictText'
|
||||||
|
query.deliverableTemplate = 'designDeliverableTemplate'
|
||||||
|
break
|
||||||
|
case '3':
|
||||||
|
query.flowType = 3
|
||||||
|
query.Sponsor = 'prehomoInitiatorName'
|
||||||
|
query.personLiable = 'prehomoDutyName'
|
||||||
|
query.typeOfDeliverables = 'prehomoDeliverableType_dictText'
|
||||||
|
query.deliverableTemplate = 'prehomoDeliverableTemplate'
|
||||||
|
break
|
||||||
|
case '4':
|
||||||
|
query.flowType = 4
|
||||||
|
query.Sponsor = 'verifyInitiatorName'
|
||||||
|
query.personLiable = 'verifyDutyName'
|
||||||
|
query.typeOfDeliverables = 'verifyDeliverableType_dictText'
|
||||||
|
query.deliverableTemplate = 'verifyDeliverableTemplate'
|
||||||
|
break
|
||||||
|
}
|
||||||
|
let newUrl = this.$router.resolve({
|
||||||
|
path: '/taskListProcess',
|
||||||
|
query: query
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user