对接认证清单
This commit is contained in:
@@ -1424,4 +1424,6 @@ module.exports = {
|
||||
onlyDataStatusResultReviewedCanBeSelected:'Only data with process status of result to be reviewed can be selected',
|
||||
confirmResetProcess:'Confirm reset process?',
|
||||
confirmUrging:'Confirm urging ?',
|
||||
confirmWithdrawal:'Confirm withdrawal ?',
|
||||
onlyListCheckedCanRecalled:'Only the data whose process status is list to be checked can be recalled',
|
||||
}
|
||||
@@ -1524,5 +1524,7 @@ module.exports = {
|
||||
confirmReturnForApproval:'确认退回审批?',
|
||||
onlyDataStatusResultReviewedCanBeSelected:'只能选择流程状态为结果待审查的数据',
|
||||
confirmResetProcess:'确认重置流程?',
|
||||
confirmUrging:'确认催办',
|
||||
confirmUrging:'确认催办?',
|
||||
confirmWithdrawal:'确认撤回?',
|
||||
onlyListCheckedCanRecalled:'只能撤回流程状态为清单待校核的数据',
|
||||
}
|
||||
@@ -288,7 +288,8 @@
|
||||
}}
|
||||
</a-button>
|
||||
<span v-else>
|
||||
<span v-if="record.deliveryResult">
|
||||
<span class="viewFile"
|
||||
@click="viewFileClick(record.deliveryResult)" v-if="record.deliveryResult">
|
||||
{{$t('viewFile')}}
|
||||
</span>
|
||||
<span v-else>--</span>
|
||||
@@ -353,6 +354,7 @@
|
||||
<TaskListModel @TaskListModelList="transferListForm" ref="TaskListModelRef"/>
|
||||
<referenceDeliverablesList ref="referenceDeliverablesListRef" @referenceDeliverablesListForm="transferListForm"/>
|
||||
<SelectedBy ref="SelectedByRef" :title="$t('turnToDo')" @SelectedByForm="SelectedByForm"></SelectedBy>
|
||||
<viewFileModel ref="viewFileModelRef"/>
|
||||
<a-modal
|
||||
:title="listTitle"
|
||||
:width="500"
|
||||
@@ -428,6 +430,7 @@
|
||||
<script>
|
||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||
import certificationDirectory from '../certificationDirectory'
|
||||
import viewFileModel from '@/components/viewFileModel/index'
|
||||
import ImportFile from '@/components/ImportFile/index'
|
||||
import transferList from './components/transferList'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
@@ -454,7 +457,8 @@
|
||||
uploadFile,
|
||||
TaskListModel,
|
||||
referenceDeliverablesList,
|
||||
SelectedBy
|
||||
SelectedBy,
|
||||
viewFileModel
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -645,7 +649,9 @@
|
||||
selectedRowKeys: [],
|
||||
selectedRowKeysList: [],
|
||||
isDisplayNum: 2,
|
||||
long: ''
|
||||
long: '',
|
||||
toDoIds: [],
|
||||
toDoNotConditions: []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -933,9 +939,53 @@
|
||||
|
||||
//撤回
|
||||
withdrawClick() {
|
||||
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
let ids = []
|
||||
let notConditions = []
|
||||
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
|
||||
if (this.selectedRowKeysList[i].flowStatus == 'List to be checked') {
|
||||
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('onlyListCheckedCanRecalled')
|
||||
}
|
||||
if (ids && ids.length > 0) {
|
||||
this.withdrawData(ids, notConditions, data)
|
||||
} else {
|
||||
this.failedMessage(data)
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}
|
||||
},
|
||||
withdrawData(ids, notConditions, data) {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: _this.$t('confirmWithdrawal'),
|
||||
onOk() {
|
||||
postAction('/project/projectCertificationInventoryEO/resetFlow', {
|
||||
ids: ids.join(','),
|
||||
projectLibraryId: _this.$route.query.id
|
||||
}).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)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//催办
|
||||
questionClick() {
|
||||
let _this = this
|
||||
@@ -1105,25 +1155,50 @@
|
||||
//转办
|
||||
turnToDoClick() {
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
if (this.roleSwitchingCode == 20) {
|
||||
this.turnToDoClickJC()
|
||||
return
|
||||
}
|
||||
this.$refs.SelectedByRef.getPush()
|
||||
} else {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}
|
||||
},
|
||||
|
||||
SelectedByForm(userIds) {
|
||||
let ids = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
let query = {
|
||||
userIds: userIds,
|
||||
'projectLibraryId': this.$route.query.id,
|
||||
'ids': ids.join(',')
|
||||
turnToDoClickJC() {
|
||||
this.toDoIds = []
|
||||
this.toDoNotConditions = []
|
||||
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
|
||||
if (this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) {
|
||||
this.toDoIds.push(this.selectedRowKeysList[i].id)
|
||||
} else {
|
||||
this.toDoNotConditions.push(this.selectedRowKeysList[i].inspectionItem)
|
||||
}
|
||||
}
|
||||
postAction('/problemKnowledgeBase/problemKnowledgeBaseEO/forward', query).then((res) => {
|
||||
this.toDoData = ''
|
||||
if (this.toDoNotConditions && this.toDoNotConditions.length > 0) {
|
||||
this.toDoData = this.$t('operationWithoutPermission') + this.$t('inspectionItems') + '"' + this.toDoNotConditions.join('、') + '"' + this.$t('data')
|
||||
}
|
||||
if (this.toDoIds && this.toDoIds.length > 0) {
|
||||
this.$refs.SelectedByRef.getPush()
|
||||
} else {
|
||||
this.failedMessage(this.toDoData)
|
||||
}
|
||||
},
|
||||
SelectedByForm(userIds) {
|
||||
let query = {
|
||||
transferUserId: userIds,
|
||||
'projectLibraryId': this.$route.query.id,
|
||||
'ids': this.toDoIds.join(',')
|
||||
}
|
||||
postAction('/project/projectCertificationInventoryEO/transferTask', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$refs.SelectedByRef.visible = false
|
||||
this.$refs.SelectedByRef.submitLoading = false
|
||||
this.getList()
|
||||
if (this.toDoNotConditions && this.toDoNotConditions.length > 0) {
|
||||
this.failedMessage(this.toDoData)
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.$refs.SelectedByRef.submitLoading = false
|
||||
@@ -1380,6 +1455,10 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
viewFileClick(item) {
|
||||
this.$refs.viewFileModelRef.clickButtonToUpload(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1726,6 +1805,10 @@
|
||||
background: #ddf3f4;
|
||||
}
|
||||
|
||||
.viewFile {
|
||||
color: #00B3BE;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<style lang="less">
|
||||
.box-input .ant-select-selection {
|
||||
|
||||
Reference in New Issue
Block a user