对接认证清单
This commit is contained in:
@@ -1416,4 +1416,6 @@ module.exports = {
|
|||||||
confirmToAcceptTheTask:'Confirm to accept the task ?',
|
confirmToAcceptTheTask:'Confirm to accept the task ?',
|
||||||
confirmRejectTask:'Confirm Reject Task ?',
|
confirmRejectTask:'Confirm Reject Task ?',
|
||||||
onlyDataStatusConfirmedSelected:'Only data with process status of task to be confirmed can be selected',
|
onlyDataStatusConfirmedSelected:'Only data with process status of task to be confirmed can be selected',
|
||||||
|
operationWithoutPermission:'Operation without permission',
|
||||||
|
data:"'s data",
|
||||||
}
|
}
|
||||||
@@ -1515,6 +1515,8 @@ module.exports = {
|
|||||||
confirmToAcceptTheTask:'确认接受任务?',
|
confirmToAcceptTheTask:'确认接受任务?',
|
||||||
confirmRejectTask:'确认拒绝任务?',
|
confirmRejectTask:'确认拒绝任务?',
|
||||||
onlyDataStatusConfirmedSelected:'只能选择流程状态为任务待确认的数据',
|
onlyDataStatusConfirmedSelected:'只能选择流程状态为任务待确认的数据',
|
||||||
|
operationWithoutPermission:'没有权限操作',
|
||||||
|
data:"的数据",
|
||||||
compliancereport:'生成合规报告',
|
compliancereport:'生成合规报告',
|
||||||
todocenter:'待办中心',
|
todocenter:'待办中心',
|
||||||
}
|
}
|
||||||
@@ -212,21 +212,24 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 任务接受-->
|
<!-- 任务接受-->
|
||||||
<div @click="missionAcceptedClick('zrrjsrw',$t('confirmToAcceptTheTask'))" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"
|
<div @click="missionAcceptedClick('zrrjsrw',$t('confirmToAcceptTheTask'))"
|
||||||
|
v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="check-circle"/>
|
<a-icon type="check-circle"/>
|
||||||
{{ $t('missionAccepted') }}
|
{{ $t('missionAccepted') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 任务退回-->
|
<!-- 任务退回-->
|
||||||
<div @click="missionAcceptedClick('zrrjjrw',$t('confirmRejectTask'))" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"
|
<div @click="missionAcceptedClick('zrrjjrw',$t('confirmRejectTask'))"
|
||||||
|
v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="close-circle"/>
|
<a-icon type="close-circle"/>
|
||||||
{{ $t('missionRejection') }}
|
{{ $t('missionRejection') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 提交-->
|
<!-- 提交-->
|
||||||
<div @click="submitClick" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21" class="operator-text">
|
<div @click="submitClick('zrrtjrw',$t('confirmSubmit'))"
|
||||||
|
v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21" class="operator-text">
|
||||||
<a-icon type="check-circle"/>
|
<a-icon type="check-circle"/>
|
||||||
{{ $t('submit') }}
|
{{ $t('submit') }}
|
||||||
</div>
|
</div>
|
||||||
@@ -879,7 +882,7 @@
|
|||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
this.getList()
|
this.getList()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(res.message)
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
}
|
}
|
||||||
this.detailedSuccessList = []
|
this.detailedSuccessList = []
|
||||||
@@ -1042,10 +1045,6 @@
|
|||||||
//审批退回
|
//审批退回
|
||||||
returnedForApprovalClick() {
|
returnedForApprovalClick() {
|
||||||
|
|
||||||
},
|
|
||||||
//提交
|
|
||||||
submitClick() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//转办
|
//转办
|
||||||
turnToDoClick() {
|
turnToDoClick() {
|
||||||
@@ -1133,8 +1132,60 @@
|
|||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//任务接受\拒绝
|
//责任人任务接受\拒绝
|
||||||
missionAcceptedClick(value,prompt) {
|
missionAcceptedClick(value, prompt) {
|
||||||
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
if (this.roleSwitchingCode == 20) {
|
||||||
|
this.missionAcceptedClickJC(value, prompt)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
let ids = []
|
||||||
|
let notConditions = []
|
||||||
|
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
|
||||||
|
if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed') {
|
||||||
|
ids.push(this.selectedRowKeysList[i].id)
|
||||||
|
} else {
|
||||||
|
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let data = ''
|
||||||
|
if (notConditions && notConditions.length > 0) {
|
||||||
|
data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataStatusConfirmedSelected')
|
||||||
|
}
|
||||||
|
if (ids && ids.length > 0) {
|
||||||
|
this.submitTask(value, prompt, ids, notConditions, data)
|
||||||
|
} else {
|
||||||
|
this.failedMessage(data)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
missionAcceptedClickJC(value, prompt) {
|
||||||
|
let ids = []
|
||||||
|
let notConditions = []
|
||||||
|
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
|
||||||
|
if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed' &&
|
||||||
|
this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) {
|
||||||
|
ids.push(this.selectedRowKeysList[i].id)
|
||||||
|
} else {
|
||||||
|
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let data = ''
|
||||||
|
if (notConditions && notConditions.length > 0) {
|
||||||
|
data = this.$t('operationWithoutPermission')+this.$t('inspectionItems') + '"' + notConditions.join('、') + '"'+this.$t('data')
|
||||||
|
}
|
||||||
|
if (ids && ids.length > 0) {
|
||||||
|
this.submitTask(value, prompt, ids, notConditions, data)
|
||||||
|
} else {
|
||||||
|
this.failedMessage(data)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
//提交
|
||||||
|
submitClick(value, prompt) {
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
let ids = []
|
let ids = []
|
||||||
let notConditions = []
|
let notConditions = []
|
||||||
@@ -1158,6 +1209,7 @@
|
|||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
failedMessage(data) {
|
failedMessage(data) {
|
||||||
let detailedWarningList = []
|
let detailedWarningList = []
|
||||||
detailedWarningList.push(data)
|
detailedWarningList.push(data)
|
||||||
@@ -1165,6 +1217,7 @@
|
|||||||
content: ( < div > { detailedWarningList } < /div>)
|
content: ( < div > { detailedWarningList } < /div>)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
submitTask(value, prompt, ids, notConditions, data) {
|
submitTask(value, prompt, ids, notConditions, data) {
|
||||||
let _this = this
|
let _this = this
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
|
|||||||
Reference in New Issue
Block a user