对接待办中心

This commit is contained in:
sunFlower
2022-10-18 09:18:38 +08:00
parent b6f1b13782
commit 7217fd59ef
5 changed files with 52 additions and 33 deletions
@@ -156,5 +156,9 @@
</script> </script>
<style scoped> <style scoped>
.page {
text-align: right;
margin-top: 20px;
}
</style> </style>
@@ -150,5 +150,9 @@
</script> </script>
<style scoped> <style scoped>
.page {
text-align: right;
margin-top: 20px;
}
</style> </style>
@@ -156,5 +156,9 @@
</script> </script>
<style scoped> <style scoped>
.page {
text-align: right;
margin-top: 20px;
}
</style> </style>
@@ -115,8 +115,8 @@
issue: false, issue: false,
isTrue: false, isTrue: false,
taskDefinitionKey: '', taskDefinitionKey: '',
taskIds:[], taskIds: [],
projectLawsInventoryIds:[], projectLawsInventoryIds: []
} }
}, },
methods: { methods: {
@@ -126,12 +126,10 @@
this.taskDefinitionKey = this.selectedRowKeys[0].taskDefinitionKey this.taskDefinitionKey = this.selectedRowKeys[0].taskDefinitionKey
this.taskIds = [] this.taskIds = []
this.projectLawsInventoryIds = [] this.projectLawsInventoryIds = []
this.selectedRowKeys.forEach(res=>{ this.selectedRowKeys.forEach(res => {
if (res.taskIds.indexOf(',') != '-1'){ res.taskIds = res.actiProcInstId
res.taskIds = res.taskIds.slice(0,res.taskIds.indexOf(',')) this.taskIds.push(res.taskIds)
} this.projectLawsInventoryIds.push(res.projectLawsInventoryId)
this.taskIds.push(res.taskIds)
this.projectLawsInventoryIds.push(res.projectLawsInventoryId)
}) })
this.confirmLoading = false this.confirmLoading = false
this.visible = true this.visible = true
@@ -152,14 +150,14 @@
this.formInline[value] = id this.formInline[value] = id
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
}, },
addBatch(){ addBatch() {
let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
let query = { let query = {
rejectUserId:this.userInfo().id, rejectUserId: this.userInfo().id,
rejectTime:rejectTime, rejectTime: rejectTime,
rejectCause:this.formInline.approvalOpinion, rejectCause: this.formInline.approvalOpinion,
taskIds:this.taskIds.join(','), taskIds: this.taskIds.join(','),
rejectType:'1', rejectType: '1'
} }
postAction('/project/projectLawsInventoryRejectCauseEO/addBatch', query).then((res) => { postAction('/project/projectLawsInventoryRejectCauseEO/addBatch', query).then((res) => {
@@ -171,16 +169,16 @@
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
let query = { let query = {
...this.formInline, ...this.formInline,
taskIds:this.taskIds.join(','), taskIds: this.taskIds.join(','),
userId:this.userInfo().id, userId: this.userInfo().id,
taskDefinitionKey:this.taskDefinitionKey, taskDefinitionKey: this.taskDefinitionKey,
handlingTime:handlingTime, handlingTime: handlingTime,
projectLawsInventoryIds:this.projectLawsInventoryIds.join(',') projectLawsInventoryIds: this.projectLawsInventoryIds.join(',')
} }
if (this.formInline.flag == '1'){ if (this.formInline.flag == '1') {
this.addBatch() this.addBatch()
} }
if (!this.formInline.flag){ if (!this.formInline.flag) {
query.flag = '0' query.flag = '0'
} }
this.confirmLoading = true this.confirmLoading = true
@@ -9,7 +9,7 @@
<span>{{$t('RelatedItems')}}</span> <span>{{$t('RelatedItems')}}</span>
</div> </div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('RelatedItems')" <j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('RelatedItems')"
v-model="queryParam.title"></j-input> v-model="queryParam.projectName"></j-input>
</div> </div>
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
@@ -18,7 +18,7 @@
<span>{{$t('standardInformation')}}</span> <span>{{$t('standardInformation')}}</span>
</div> </div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standardInformation')" <j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standardInformation')"
v-model="queryParam.standardInformation"></j-input> v-model="queryParam.serialNumber"></j-input>
</div> </div>
</a-col> </a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
@@ -86,46 +86,46 @@
dataSource:[], dataSource:[],
queryParam:{}, queryParam:{},
loading:false, loading:false,
columns:[ columns: [
{ {
title: this.$t('RelatedItems'), title: this.$t('RelatedItems'),
align: 'center', align: 'center',
dataIndex: 'RelatedItems', dataIndex: 'projectName',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
{ {
title: this.$t('standardInformation'), title: this.$t('standardInformation'),
align: 'center', align: 'center',
dataIndex: 'standardInformation', dataIndex: 'serialNumber',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
{ {
title: this.$t('taskType'), title: this.$t('taskType'),
align: 'center', align: 'center',
dataIndex: 'taskType', dataIndex: 'flowTypeShow',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
{ {
title: this.$t('Sponsor'), title: this.$t('Sponsor'),
align: 'center', align: 'center',
dataIndex: 'Sponsor', dataIndex: 'createBy',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
{ {
title: this.$t('TaskCutOffTime'), title: this.$t('TaskCutOffTime'),
align: 'center', align: 'center',
dataIndex: 'TaskCutOffTime', dataIndex: 'endTime',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
{ {
title: this.$t('taskStatus'), title: this.$t('taskStatus'),
align: 'center', align: 'center',
dataIndex: 'taskStatus', dataIndex: 'statusShow',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
@@ -142,10 +142,13 @@
pageNo:1, pageNo:1,
total:0, total:0,
url:{ url:{
list:'', list:'/todoCenter/projectProcess/todoTaskList',
}, },
} }
}, },
mounted() {
this.getList()
},
methods:{ methods:{
batchProcessingForm() { batchProcessingForm() {
this.pageNo = 1 this.pageNo = 1
@@ -186,7 +189,7 @@
if (value && value.length > 0) { if (value && value.length > 0) {
value.forEach(res => { value.forEach(res => {
res = JSON.parse(res) res = JSON.parse(res)
if (res.prcType == '1') { if (res.flowType == '1') {
this.selectedRowKeys.push(JSON.stringify(res)) this.selectedRowKeys.push(JSON.stringify(res))
} else { } else {
this.$message.warning(this.$t('onlyDataTaskConfirmationProcessSelected')) this.$message.warning(this.$t('onlyDataTaskConfirmationProcessSelected'))
@@ -213,6 +216,7 @@
let query = { let query = {
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
flowType:'1',
...queryParam ...queryParam
} }
this.loading = true this.loading = true
@@ -295,4 +299,9 @@
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent !important; background: transparent !important;
} }
.page {
text-align: right;
margin-top: 20px;
}
</style> </style>