对接认证清单

This commit is contained in:
范强强
2023-03-09 16:45:43 +08:00
parent 6048f0ec82
commit efdd04d5d9
3 changed files with 96 additions and 24 deletions
+2 -1
View File
@@ -1428,5 +1428,6 @@ module.exports = {
onlyListCheckedCanRecalled:'Only the data whose process status is list to be checked can be recalled', onlyListCheckedCanRecalled:'Only the data whose process status is list to be checked can be recalled',
statusthetasistobeconfirmed:'You can withdraw the list only when the status of the list is to be checked or the status of the task is to be confirmed', statusthetasistobeconfirmed:'You can withdraw the list only when the status of the list is to be checked or the status of the task is to be confirmed',
confirmreturn:'Confirm return ?', confirmreturn:'Confirm return ?',
onlyDataSelected:'Only data with process status of task to be confirmed, result to be submitted and review to be returned can be selected' onlyDataSelected:'Only data with process status of task to be confirmed, result to be submitted and review to be returned can be selected',
youCannotStatusListToBeReleasedAndApproved:'You cannot select data whose process status is list to be released and approved',
} }
+2 -1
View File
@@ -1529,5 +1529,6 @@ module.exports = {
confirmUrging:'确认催办?', confirmUrging:'确认催办?',
confirmWithdrawal:'确认撤回?', confirmWithdrawal:'确认撤回?',
onlyListCheckedCanRecalled:'只能撤回流程状态为清单待校核的数据', onlyListCheckedCanRecalled:'只能撤回流程状态为清单待校核的数据',
onlyDataSelected:'只能选择流程状态为任务待确认、结果待提交、审查退回的数据' onlyDataSelected:'只能选择流程状态为任务待确认、结果待提交、审查退回的数据',
youCannotStatusListToBeReleasedAndApproved:'不能选择流程状态为清单待发布、审查通过的数据',
} }
@@ -501,7 +501,7 @@
AndUserId: '/project/projectLibraryRoleRelEO/queryByProjectLibraryIdAndUserId', AndUserId: '/project/projectLibraryRoleRelEO/queryByProjectLibraryIdAndUserId',
AndUserIdEdit: '/project/projectLibraryRoleRelEO/edit', AndUserIdEdit: '/project/projectLibraryRoleRelEO/edit',
saveBatch: '/project/projectCertificationInventoryEO/saveBatch', saveBatch: '/project/projectCertificationInventoryEO/saveBatch',
questionUrl: '' questionUrl: '/project/projectCertificationInventoryEO/expediting'
}, },
dataSource: [], dataSource: [],
roleSwitchingCode: '', roleSwitchingCode: '',
@@ -988,31 +988,99 @@
}, },
//催办 //催办
questionClick() { questionClick() {
let _this = this
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$confirm({ let ids = []
content: _this.$t('confirmUrging'), let notConditions = []
onOk() { let data = ''
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys)) if (this.roleSwitchingCode == 0) {
postAction(_this.url.questionUrl, { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
ids: idList.join(','), if (this.selectedRowKeysList[i].flowStatus == 'List to be checked' ||
projectLibraryId: _this.$route.query.id this.selectedRowKeysList[i].flowStatus == 'Certification returned' ||
}).then((res) => { this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed' ||
if (res.success) { this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' ||
_this.$message.success(_this.$t('OperationSuccessful')) this.selectedRowKeysList[i].flowStatus == 'Refusal of responsible person' ||
_this.selectedRowKeys = [] this.selectedRowKeysList[i].flowStatus == 'Engineer return' ||
_this.getList() this.selectedRowKeysList[i].flowStatus == 'Results to be reviewed' ||
} else { this.selectedRowKeysList[i].flowStatus == 'Review and return') {
_this.$message.warning(res.message) ids.push(this.selectedRowKeysList[i].id)
} } else {
}) notConditions.push(this.selectedRowKeysList[i].inspectionItem)
}
} }
}) if (notConditions && notConditions.length > 0) {
data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('youCannotStatusListToBeReleasedAndApproved')
}
if (ids && ids.length > 0) {
this.questionData('certificationInventoryStudioExpediting', ids, notConditions, data)
} else {
this.failedMessage(data)
}
} else if (this.roleSwitchingCode == 2) {
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed' ||
this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' ||
this.selectedRowKeysList[i].flowStatus == 'Review and return') {
ids.push(this.selectedRowKeysList[i].id)
} else {
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
}
}
if (notConditions && notConditions.length > 0) {
data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataSelected')
}
if (ids && ids.length > 0) {
this.questionData('certificationInventoryCertificationEngineerExpediting', ids, notConditions, data)
} else {
this.failedMessage(data)
}
} else if (this.roleSwitchingCode == 20) {
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed' ||
this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' ||
this.selectedRowKeysList[i].flowStatus == 'Review and return') {
ids.push(this.selectedRowKeysList[i].id)
} else {
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
}
}
if (notConditions && notConditions.length > 0) {
data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataSelected')
}
if (ids && ids.length > 0) {
this.questionData('certificationInventorySdtExpediting', ids, notConditions, data)
} else {
this.failedMessage(data)
}
}
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
questionData(operatorType, ids, notConditions, data) {
let _this = this
this.$confirm({
content: _this.$t('confirmUrging'),
onOk() {
postAction(_this.url.questionUrl, {
ids: ids.join(','),
projectLibraryId: _this.$route.query.id,
operatorType: operatorType
}).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
_this.selectedRowKeysList = []
_this.getList()
if (notConditions && notConditions.length > 0) {
_this.failedMessage(data)
}
} else {
_this.$message.warning(res.message)
}
})
}
})
},
transferListForm() { transferListForm() {
this.pageNo = 1 this.pageNo = 1
this.getList() this.getList()
@@ -1174,15 +1242,16 @@
if (this.toDoNotConditions && this.toDoNotConditions.length > 0) { if (this.toDoNotConditions && this.toDoNotConditions.length > 0) {
this.toDoData = this.$t('inspectionItems') + '"' + this.toDoNotConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataSelected') this.toDoData = this.$t('inspectionItems') + '"' + this.toDoNotConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataSelected')
} }
if (this.toDoIds && this.toDoIds.length > 0){ if (this.toDoIds && this.toDoIds.length > 0) {
this.$refs.SelectedByRef.getPush() this.$refs.SelectedByRef.getPush()
}else{ } else {
this.failedMessage(this.toDoData) this.failedMessage(this.toDoData)
} }
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
//接口人转办
turnToDoClickJC() { turnToDoClickJC() {
this.toDoIds = [] this.toDoIds = []
this.toDoNotConditions = [] this.toDoNotConditions = []
@@ -1206,6 +1275,7 @@
this.failedMessage(this.toDoData) this.failedMessage(this.toDoData)
} }
}, },
//转办接口
SelectedByForm(userIds) { SelectedByForm(userIds) {
let query = { let query = {
transferUserId: userIds, transferUserId: userIds,