修改点击责任领域后,跳转未筛选状态

This commit is contained in:
范强强
2023-10-26 12:24:45 +08:00
parent c4659076b2
commit 3a0a48ec66
7 changed files with 554 additions and 207 deletions
@@ -21,6 +21,7 @@
class="box-input" class="box-input"
mode="multiple" mode="multiple"
allowClear allowClear
@change="ProcessStatusChange"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam.flowStatus"> v-model="queryParam.flowStatus">
<a-select-option v-for="(item, key) in processStatusList" <a-select-option v-for="(item, key) in processStatusList"
@@ -85,8 +86,10 @@
{{ !toggleSearchStatus ? $t('open') : $t('away') }} {{ !toggleSearchStatus ? $t('open') : $t('away') }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a> </a>
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" @click="searchReset">{{$t('reset')}}</a-button> <a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }"
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" type="primary" @click="searchQuery">{{$t('query')}}</a-button> @click="searchReset">{{$t('reset')}}</a-button>
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" type="primary"
@click="searchQuery">{{$t('query')}}</a-button>
<globalAdvancedQuery ref="globalAdvancedQueryRef" <globalAdvancedQuery ref="globalAdvancedQueryRef"
@handleSuperQuery="handleSuperQuery" @handleSuperQuery="handleSuperQuery"
:fieldList="fieldList"/> :fieldList="fieldList"/>
@@ -130,9 +133,9 @@
</div> </div>
<!-- 认证目录--> <!-- 认证目录-->
<!-- v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1 ||--> <!-- v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1 ||-->
<!-- roleSwitchingCode == 2"--> <!-- roleSwitchingCode == 2"-->
<div @click="certificationClick" v-has="'rzqd:homologationatalogue'" class="operator-text"> <div @click="certificationClick" v-has="'rzqd:homologationatalogue'" class="operator-text">
<a-icon type="profile"/> <a-icon type="profile"/>
{{ $t('CertificationDirectory') }} {{ $t('CertificationDirectory') }}
</div> </div>
@@ -603,7 +606,7 @@
export default { export default {
name: 'index', name: 'index',
props: ['isDisplayNum','areaOfResponsibility'], props: ['isDisplayNum', 'areaOfResponsibility'],
mixins: [ResizeColumnProvide, ResizeHeader], mixins: [ResizeColumnProvide, ResizeHeader],
components: { components: {
globalAdvancedQuery, globalAdvancedQuery,
@@ -633,7 +636,7 @@
total: 0, total: 0,
JTextLoading: false, JTextLoading: false,
visibleoperationFailed: false, visibleoperationFailed: false,
visibleoperation:'', visibleoperation: '',
CertificationColor: { CertificationColor: {
'Test passed': 'accordColor', 'Test passed': 'accordColor',
'Test failed': 'nonConformityColor', 'Test failed': 'nonConformityColor',
@@ -896,7 +899,7 @@
align: 'left', align: 'left',
dataIndex: 'remark', dataIndex: 'remark',
width: 210, width: 210,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -913,7 +916,7 @@
toDoNotConditions: [], toDoNotConditions: [],
userInfoQuery: {}, userInfoQuery: {},
DeliverableTreeList: [], DeliverableTreeList: [],
firstLevelDutyTerritoryList:[], firstLevelDutyTerritoryList: []
} }
}, },
mounted() { mounted() {
@@ -922,9 +925,9 @@
this.long = localStorage.getItem('language') || 'zh-cn' this.long = localStorage.getItem('language') || 'zh-cn'
this.loading = true this.loading = true
this.userInfoQuery = this.userInfo() this.userInfoQuery = this.userInfo()
console.log(this.areaOfResponsibility)
if (this.areaOfResponsibility && this.areaOfResponsibility.dutyTerritoryName) { if (this.areaOfResponsibility && this.areaOfResponsibility.dutyTerritoryName) {
this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibility.dutyTerritoryName this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibility.dutyTerritoryName
this.queryParam.flowStatus = this.areaOfResponsibility.processState ? this.areaOfResponsibility.processState.split(',') : []
this.queryParam = { ...this.queryParam } this.queryParam = { ...this.queryParam }
} }
this.getProcessStatus() this.getProcessStatus()
@@ -1206,6 +1209,9 @@
} }
downloadFile(this.url.exportData, this.$route.query.projectName + '.zip', query, this.Deselect) downloadFile(this.url.exportData, this.$route.query.projectName + '.zip', query, this.Deselect)
}, },
ProcessStatusChange(value) {
console.log(value)
},
handleDel() { handleDel() {
let _this = this let _this = this
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -1215,9 +1221,9 @@
if (this.selectedRowKeysList[i].flowStatus == 'List to be released' || if (this.selectedRowKeysList[i].flowStatus == 'List to be released' ||
this.selectedRowKeysList[i].flowStatus == 'Review and pass') { this.selectedRowKeysList[i].flowStatus == 'Review and pass') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -1284,7 +1290,7 @@
ids: idList.join(','), ids: idList.join(','),
projectLibraryId: _this.$route.query.id, projectLibraryId: _this.$route.query.id,
operatorType: 'certificationInventoryStudioReset', operatorType: 'certificationInventoryStudioReset',
currRole:_this.roleSwitchingCode currRole: _this.roleSwitchingCode
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
@@ -1310,9 +1316,9 @@
} }
}, },
// 关联平台件 // 关联平台件
associatedplatformClick(type){ associatedplatformClick(type) {
let flag = '' let flag = ''
if(this.selectedRowKeys && this.selectedRowKeys.length > 0){ if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.detailedWarningList = [] this.detailedWarningList = []
let dataSource = [] let dataSource = []
let status = '' let status = ''
@@ -1331,31 +1337,31 @@
status = '2' status = '2'
} }
} }
if(status == '1'){ if (status == '1') {
this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(',')) this.$refs.associatedplatRef.transferModel(flag, type, this.selectedRowKeys.join(','))
}else{ } else {
this.$message.warning(this.$t('unpublishedregulationsselected')) this.$message.warning(this.$t('unpublishedregulationsselected'))
} }
}else{ } else {
flag = '2' flag = '2'
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
associatedplatForm(id,flag,type,ids){ associatedplatForm(id, flag, type, ids) {
console.log(id,flag,type,ids) console.log(id, flag, type, ids)
let query ={ let query = {
ids:ids, ids: ids,
projectLibraryIds:id projectLibraryIds: id
} }
if(type == '认证'){ if (type == '认证') {
postAction('/project/projectCertificationInventoryEO/listPlatform', query).then((res) => { postAction('/project/projectCertificationInventoryEO/listPlatform', query).then((res) => {
if (res.success) { if (res.success) {
if(res.result == ''){ if (res.result == '') {
this.$refs.associatedplatRef.visible = false this.$refs.associatedplatRef.visible = false
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.selectedRowKeys = [] this.selectedRowKeys = []
this.getList() this.getList()
}else{ } else {
this.visibleoperation = res.result this.visibleoperation = res.result
this.visibleoperationFailed = true this.visibleoperationFailed = true
} }
@@ -1368,16 +1374,16 @@
// this.$refs.associatedplattwoRef.transferModel(id,type,ids) // this.$refs.associatedplattwoRef.transferModel(id,type,ids)
// } // }
}, },
cancleoperationFailed(){ cancleoperationFailed() {
this.visibleoperationFailed = false this.visibleoperationFailed = false
this.$refs.associatedplatRef.handleCancel() this.$refs.associatedplatRef.handleCancel()
this.selectedRowKeys = [] this.selectedRowKeys = []
this.getList() this.getList()
}, },
associatedplattwoForm(id,type,ids){ associatedplattwoForm(id, type, ids) {
// this.$refs.associatedplatthreeRef.transferModel(id,type,ids) // this.$refs.associatedplatthreeRef.transferModel(id,type,ids)
}, },
associatedplatthreeForm(id){ associatedplatthreeForm(id) {
console.log(id) console.log(id)
}, },
//添加 //添加
@@ -1425,7 +1431,7 @@
dutyDueDate: 'inventoryVerifyEndTime', dutyDueDate: 'inventoryVerifyEndTime',
title: this.$t('release') title: this.$t('release')
} }
this.$refs.deadlineFormRef.getData(JSON.parse(JSON.stringify(query)),this.$t('inventoryVerifyEndTime')) this.$refs.deadlineFormRef.getData(JSON.parse(JSON.stringify(query)), this.$t('inventoryVerifyEndTime'))
} else { } else {
this.failedMessage(data) this.failedMessage(data)
} }
@@ -1542,9 +1548,9 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'List to be checked') { if (this.selectedRowKeysList[i].flowStatus == 'List to be checked') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -1606,9 +1612,9 @@
this.selectedRowKeysList[i].flowStatus == 'Results to be reviewed' || this.selectedRowKeysList[i].flowStatus == 'Results to be reviewed' ||
this.selectedRowKeysList[i].flowStatus == 'Review and return') { this.selectedRowKeysList[i].flowStatus == 'Review and return') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -1629,9 +1635,9 @@
this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' || this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' ||
this.selectedRowKeysList[i].flowStatus == 'Review and return') { this.selectedRowKeysList[i].flowStatus == 'Review and return') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -1652,9 +1658,9 @@
this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' || this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' ||
this.selectedRowKeysList[i].flowStatus == 'Review and return') { this.selectedRowKeysList[i].flowStatus == 'Review and return') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -1721,13 +1727,16 @@
let _this = this let _this = this
if (val.flowStatus == 'List to be released' || val.flowStatus == 'Review and pass') { if (val.flowStatus == 'List to be released' || val.flowStatus == 'Review and pass') {
console.log(val) console.log(val)
if(val.projectCertificationInventoryEOS && (val.projectCertificationInventoryEOS.length > 0 || val.projectCertificationInventoryEOS !== null)){ if (val.projectCertificationInventoryEOS && (val.projectCertificationInventoryEOS.length > 0 || val.projectCertificationInventoryEOS !== null)) {
this.$message.warning(val.serialNumber + this.$t('platformitemhasbeenassociated')) this.$message.warning(val.serialNumber + this.$t('platformitemhasbeenassociated'))
}else{ } else {
this.$confirm({ this.$confirm({
content: _this.$t('ConfirmDelete'), content: _this.$t('ConfirmDelete'),
onOk() { onOk() {
deleteAction(_this.url.deleteOne, { id: val.id, projectLibraryId: _this.$route.query.id }).then((res) => { deleteAction(_this.url.deleteOne, {
id: val.id,
projectLibraryId: _this.$route.query.id
}).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
_this.getList() _this.getList()
@@ -1857,9 +1866,9 @@
if (this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) { if (this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') { if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -1873,9 +1882,9 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') { if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -1914,9 +1923,9 @@
this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' || this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' ||
this.selectedRowKeysList[i].flowStatus == 'Review and return') { this.selectedRowKeysList[i].flowStatus == 'Review and return') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
this.toDoIds.push(this.selectedRowKeysList[i].id) this.toDoIds.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2036,17 +2045,17 @@
this.selectedRowKeysList[i].flowStatus == 'Refusal of responsible person') { this.selectedRowKeysList[i].flowStatus == 'Refusal of responsible person') {
if (this.selectedRowKeysList[i].deliverableType == '1635545748968783874') { if (this.selectedRowKeysList[i].deliverableType == '1635545748968783874') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
NAId.push(this.selectedRowKeysList[i].id) NAId.push(this.selectedRowKeysList[i].id)
} }
} else if (this.selectedRowKeysList[i].dutyPerson && this.selectedRowKeysList[i].deliverableType && } else if (this.selectedRowKeysList[i].dutyPerson && this.selectedRowKeysList[i].deliverableType &&
this.selectedRowKeysList[i].sdt && this.selectedRowKeysList[i].endTime) { this.selectedRowKeysList[i].sdt && this.selectedRowKeysList[i].endTime) {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2071,7 +2080,7 @@
title: this.$t('initiateTask'), title: this.$t('initiateTask'),
NAId: NAId NAId: NAId
} }
this.$refs.deadlineFormRef.getData(JSON.parse(JSON.stringify(query)),this.$t('taskConfirmEndTime')) this.$refs.deadlineFormRef.getData(JSON.parse(JSON.stringify(query)), this.$t('taskConfirmEndTime'))
// this.submitTask(value, prompt, ids, notConditions, data, NAId) // this.submitTask(value, prompt, ids, notConditions, data, NAId)
} else { } else {
this.failedMessage(data) this.failedMessage(data)
@@ -2089,9 +2098,9 @@
if (this.selectedRowKeysList[i].flowStatus == 'List to be checked' || if (this.selectedRowKeysList[i].flowStatus == 'List to be checked' ||
this.selectedRowKeysList[i].flowStatus == 'Refusal of responsible person') { this.selectedRowKeysList[i].flowStatus == 'Refusal of responsible person') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2124,9 +2133,9 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed') { if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2158,9 +2167,9 @@
if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed' && if (this.selectedRowKeysList[i].flowStatus == 'Task to be confirmed' &&
this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) { this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2205,9 +2214,9 @@
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' || if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted' ||
this.selectedRowKeysList[i].flowStatus == 'Review and return') { this.selectedRowKeysList[i].flowStatus == 'Review and return') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2237,9 +2246,9 @@
this.selectedRowKeysList[i].flowStatus == 'Review and return') && this.selectedRowKeysList[i].flowStatus == 'Review and return') &&
this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) { this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2268,16 +2277,16 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be reviewed') { if (this.selectedRowKeysList[i].flowStatus == 'Results to be reviewed') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else if (this.selectedRowKeysList[i].flowStatus == 'Review and pass' && value == 'rzgcssc_th') { } else if (this.selectedRowKeysList[i].flowStatus == 'Review and pass' && value == 'rzgcssc_th') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
isTrue = true isTrue = true
} }
@@ -2445,16 +2454,16 @@
if (this.selectedRowKeysList[i].flowStatus == 'Review and pass') { if (this.selectedRowKeysList[i].flowStatus == 'Review and pass') {
if (this.roleSwitchingCode == 20 && this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) { if (this.roleSwitchingCode == 20 && this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else if (this.roleSwitchingCode == 21) { } else if (this.roleSwitchingCode == 21) {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) { if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') ) this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated'))
return return
}else{ } else {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} }
} else { } else {
@@ -2502,31 +2511,31 @@
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
bringInRelevantPersonnelClick(){ bringInRelevantPersonnelClick() {
let _this = this let _this = this
// if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { // if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$confirm({ this.$confirm({
content: _this.$t('confirmBringInRelevantPersonnel'), content: _this.$t('confirmBringInRelevantPersonnel'),
onOk() { onOk() {
// let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys)) // let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
postAction('/project/projectCertificationInventoryEO/matchRelevantPeople', { postAction('/project/projectCertificationInventoryEO/matchRelevantPeople', {
// ids: selectedRowKeys.join(','), // ids: selectedRowKeys.join(','),
projectLibraryId: _this.$route.query.id projectLibraryId: _this.$route.query.id
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = [] _this.selectedRowKeys = []
_this.getList() _this.getList()
} else { } else {
_this.$message.warning(_this.$t('operationFailed')) _this.$message.warning(_this.$t('operationFailed'))
} }
}) })
} }
}) })
// } else { // } else {
// this.$message.warning(this.$t('selectLeastOne')) // this.$message.warning(this.$t('selectLeastOne'))
// } // }
}, }
} }
} }
</script> </script>
@@ -58,6 +58,7 @@
style="width: calc(100% - 80px);" style="width: calc(100% - 80px);"
mode="multiple" mode="multiple"
optionFilterProp="label" optionFilterProp="label"
@change="listOptionsChange"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam[selectModel]"> v-model="queryParam[selectModel]">
<a-select-option v-for="(item, key) in listOptions" <a-select-option v-for="(item, key) in listOptions"
@@ -113,8 +114,10 @@
{{ !toggleSearchStatus ? $t('open') : $t('away') }} {{ !toggleSearchStatus ? $t('open') : $t('away') }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a> </a>
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" @click="searchReset">{{$t('reset')}}</a-button> <a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }"
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" type="primary" @click="searchQuery">{{$t('query')}}</a-button> @click="searchReset">{{$t('reset')}}</a-button>
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" type="primary"
@click="searchQuery">{{$t('query')}}</a-button>
<globalAdvancedQuery ref="globalAdvancedQueryRef" <globalAdvancedQuery ref="globalAdvancedQueryRef"
@handleSuperQuery="handleSuperQuery" @handleSuperQuery="handleSuperQuery"
:fieldList="fieldList"/> :fieldList="fieldList"/>
@@ -166,11 +169,11 @@
{{ $t('processReset') }} {{ $t('processReset') }}
</div> </div>
<!-- 关联平台件--> <!-- 关联平台件-->
<!-- v-if="this.roleSwitchingCode == '0'"--> <!-- v-if="this.roleSwitchingCode == '0'"-->
<!-- <div class="operator-text" @click="associatedplatformClick('法规')">--> <!-- <div class="operator-text" @click="associatedplatformClick('法规')">-->
<!-- <a-icon type="setting"/>--> <!-- <a-icon type="setting"/>-->
<!-- {{ $t('Associatedplatform') }}--> <!-- {{ $t('Associatedplatform') }}-->
<!-- </div>--> <!-- </div>-->
<!-- 列表设置--> <!-- 列表设置-->
<!-- v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '13'"--> <!-- v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '13'"-->
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize" <a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize"
@@ -440,7 +443,8 @@
<transferList :url="url" @transferListForm="transferListForm" ref="transferListRef"/> <transferList :url="url" @transferListForm="transferListForm" ref="transferListRef"/>
<associatedplat :url="url" @associatedplatForm="associatedplatForm" ref="associatedplatRef"/> <associatedplat :url="url" @associatedplatForm="associatedplatForm" ref="associatedplatRef"/>
<associatedplattwo :url="url" @associatedplattwoForm="associatedplattwoForm" ref="associatedplattwoRef"/> <associatedplattwo :url="url" @associatedplattwoForm="associatedplattwoForm" ref="associatedplattwoRef"/>
<associatedplatthree :url="url" @associatedplatthreeFormHomo="associatedplatthreeFormHomo" @associatedplatthreeForm="associatedplatthreeForm" ref="associatedplatthreeRef"/> <associatedplatthree :url="url" @associatedplatthreeFormHomo="associatedplatthreeFormHomo"
@associatedplatthreeForm="associatedplatthreeForm" ref="associatedplatthreeRef"/>
<customizeList :url="url" @customizeListForm="customizeListForm" ref="customizeListRef"/> <customizeList :url="url" @customizeListForm="customizeListForm" ref="customizeListRef"/>
<transferListvirtal :url="url" @transferListFormHomo="transferListFormHomo" ref="transferListvirtalRef"/> <transferListvirtal :url="url" @transferListFormHomo="transferListFormHomo" ref="transferListvirtalRef"/>
<fixedPlate @fixedPlateForm="addModelList" ref="fixedPlateRef"/> <fixedPlate @fixedPlateForm="addModelList" ref="fixedPlateRef"/>
@@ -795,8 +799,8 @@
pageNo: 1, pageNo: 1,
pageSize: 50, pageSize: 50,
total: 0, total: 0,
long:'', long: '',
visibleoperation:'', visibleoperation: '',
roleSwitchingList: [], roleSwitchingList: [],
formInlineQuestion: {}, formInlineQuestion: {},
formInlineReset: {}, formInlineReset: {},
@@ -1585,6 +1589,8 @@
this.getFirstLevelDutyTerritory() this.getFirstLevelDutyTerritory()
if (this.areaOfResponsibilityList && this.areaOfResponsibilityList.dutyTerritoryName) { if (this.areaOfResponsibilityList && this.areaOfResponsibilityList.dutyTerritoryName) {
this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibilityList.dutyTerritoryName this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibilityList.dutyTerritoryName
this.selectModel = this.areaOfResponsibilityList.selectModel
this.queryParam[this.selectModel] = this.areaOfResponsibilityList.processState ? this.areaOfResponsibilityList.processState.split(',') : []
this.queryParam = { ...this.queryParam } this.queryParam = { ...this.queryParam }
} }
this.long = localStorage.getItem('language') || 'zh-cn' this.long = localStorage.getItem('language') || 'zh-cn'
@@ -1855,15 +1861,15 @@
primaryKeyId: row.primaryKeyId primaryKeyId: row.primaryKeyId
} }
} }
if(row.projectLawsInventoryEOS && row.projectLawsInventoryEOS.length > 1){ if (row.projectLawsInventoryEOS && row.projectLawsInventoryEOS.length > 1) {
this.$refs.flowstatusdetialRef.addModel(row, name) this.$refs.flowstatusdetialRef.addModel(row, name)
}else{ } else {
this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), name) this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), name)
} }
}, },
a(){ a() {
this.$refs.flowstatusdetialRef.addModel() this.$refs.flowstatusdetialRef.addModel()
}, },
@@ -1942,7 +1948,9 @@
downloadFile(this.url.ExportReportUrl, this.$t('listOfRegulations') + this.$t('complianceReporting') + '-' + serialNumber + '.docx', { id: selectedRowKeys.join(',') }) downloadFile(this.url.ExportReportUrl, this.$t('listOfRegulations') + this.$t('complianceReporting') + '-' + serialNumber + '.docx', { id: selectedRowKeys.join(',') })
} }
}, },
listOptionsChange(row) {
console.log(row)
},
//导出 //导出
handleExport() { handleExport() {
let roleCodeIndex = this.roleSwitchingCode let roleCodeIndex = this.roleSwitchingCode
@@ -1985,9 +1993,9 @@
this.$refs.transferListRef.transferModel() this.$refs.transferListRef.transferModel()
}, },
// 关联平台件visibleoperation // 关联平台件visibleoperation
associatedplatformClick(type){ associatedplatformClick(type) {
let flag = '' let flag = ''
if(this.selectedRowKeys && this.selectedRowKeys.length > 0){ if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.detailedWarningList = [] this.detailedWarningList = []
let dataSource = [] let dataSource = []
let status = '' let status = ''
@@ -2006,42 +2014,42 @@
} }
} }
console.log(status) console.log(status)
if(status == '1'){ if (status == '1') {
this.$message.warning(this.$t('unpublishedregulationsselected')) this.$message.warning(this.$t('unpublishedregulationsselected'))
}else{ } else {
this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(',')) this.$refs.associatedplatRef.transferModel(flag, type, this.selectedRowKeys.join(','))
} }
}else{ } else {
let ids = [] let ids = []
this.dataSource.forEach(item => { this.dataSource.forEach(item => {
ids.push(item.id) ids.push(item.id)
}) })
flag = '2' flag = '2'
this.$refs.associatedplatRef.transferModel(flag,type,ids.join(',')) this.$refs.associatedplatRef.transferModel(flag, type, ids.join(','))
} }
}, },
associatedplatForm(id,flag,type,ids){ associatedplatForm(id, flag, type, ids) {
if(flag == '1'){ if (flag == '1') {
this.$refs.associatedplatthreeRef.transferModel(id,flag,type,ids) this.$refs.associatedplatthreeRef.transferModel(id, flag, type, ids)
}else{ } else {
this.$refs.associatedplattwoRef.transferModel(id,flag,type,ids) this.$refs.associatedplattwoRef.transferModel(id, flag, type, ids)
} }
}, },
associatedplattwoForm(id,flag,type,ids){ associatedplattwoForm(id, flag, type, ids) {
this.$refs.associatedplatthreeRef.transferModel(id,flag,type,ids) this.$refs.associatedplatthreeRef.transferModel(id, flag, type, ids)
}, },
associatedplatthreeForm(id){ associatedplatthreeForm(id) {
this.$refs.associatedplatRef.handleCancel() this.$refs.associatedplatRef.handleCancel()
this.$refs.associatedplattwoRef.handleCancel() this.$refs.associatedplattwoRef.handleCancel()
this.selectedRowKeys = [] this.selectedRowKeys = []
this.getList() this.getList()
}, },
associatedplatthreeFormHomo(msg){ associatedplatthreeFormHomo(msg) {
if(msg){ if (msg) {
this.visibleoperation = msg this.visibleoperation = msg
this.visibleoperationFailed = true this.visibleoperationFailed = true
}else{ } else {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.$refs.associatedplatRef.handleCancel() this.$refs.associatedplatRef.handleCancel()
this.$refs.associatedplattwoRef.handleCancel() this.$refs.associatedplattwoRef.handleCancel()
@@ -2049,7 +2057,7 @@
this.getList() this.getList()
} }
}, },
cancleoperationFailed(){ cancleoperationFailed() {
this.visibleoperationFailed = false this.visibleoperationFailed = false
this.$refs.associatedplatRef.handleCancel() this.$refs.associatedplatRef.handleCancel()
this.$refs.associatedplattwoRef.handleCancel() this.$refs.associatedplattwoRef.handleCancel()
@@ -2156,8 +2164,8 @@
contentList[i].designFlowStatus == 'Duty Person Rejected') { contentList[i].designFlowStatus == 'Duty Person Rejected') {
if (contentList[i].projectLawsInventoryEOS && (contentList[i].projectLawsInventoryEOS.length > 0 || contentList[i].projectLawsInventoryEOS !== null)) { if (contentList[i].projectLawsInventoryEOS && (contentList[i].projectLawsInventoryEOS.length > 0 || contentList[i].projectLawsInventoryEOS !== null)) {
detailedWarningList.push( detailedWarningList.push(
< div > { contentList[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>) < div > { contentList[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>)
}else{ } else {
idList.push(contentList[i].id) idList.push(contentList[i].id)
} }
} else if (contentList[i].designFlowStatus == 'NA' || contentList[i].verifyFlowStatus == 'NA') { } else if (contentList[i].designFlowStatus == 'NA' || contentList[i].verifyFlowStatus == 'NA') {
@@ -2280,8 +2288,8 @@
content[i].designFlowStatus == 'Results to be reviewed') { content[i].designFlowStatus == 'Results to be reviewed') {
if (content[i].projectLawsInventoryEOS && (content[i].projectLawsInventoryEOS.length > 0 || content[i].projectLawsInventoryEOS !== null)) { if (content[i].projectLawsInventoryEOS && (content[i].projectLawsInventoryEOS.length > 0 || content[i].projectLawsInventoryEOS !== null)) {
this.questionWarning.push( this.questionWarning.push(
< div > { content[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>) < div > { content[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>)
}else{ } else {
this.questionIdList.push(content[i].id) this.questionIdList.push(content[i].id)
} }
} else { } else {
@@ -2407,7 +2415,7 @@
ids: idList.join(','), ids: idList.join(','),
projectLibraryId: _this.$route.query.id, projectLibraryId: _this.$route.query.id,
operateType: _this.formInlineReset.operateType, operateType: _this.formInlineReset.operateType,
currRole:this.roleSwitchingCode currRole: this.roleSwitchingCode
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
@@ -2934,12 +2942,12 @@
dataSource[i].designFlowStatus == 'List to be released' || dataSource[i].designFlowStatus == 'List to be released' ||
dataSource[i].designFlowStatus == 'Regulatory engineer returns') { dataSource[i].designFlowStatus == 'Regulatory engineer returns') {
// if(dataSource[i].projectLawsInventoryEOS && (dataSource[i].projectLawsInventoryEOS.length > 0 || dataSource[i].projectLawsInventoryEOS !== null)){ // if(dataSource[i].projectLawsInventoryEOS && (dataSource[i].projectLawsInventoryEOS.length > 0 || dataSource[i].projectLawsInventoryEOS !== null)){
if (dataSource[i].regulationOwnerId) { if (dataSource[i].regulationOwnerId) {
this.detailedSuccessList.push(dataSource[i]) this.detailedSuccessList.push(dataSource[i])
} else { } else {
this.detailedWarningList.push( this.detailedWarningList.push(
< div > { dataSource[i].serialNumber + this.$t('TheEngineerAndCertification') } < /div>) < div > { dataSource[i].serialNumber + this.$t('TheEngineerAndCertification') } < /div>)
} }
// }else{ // }else{
// this.detailedWarningList.push( // this.detailedWarningList.push(
// < div > { dataSource[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>) // < div > { dataSource[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>)
@@ -3103,8 +3111,8 @@
dataSource[i].designFlowStatus == 'Duty Person Rejected') { dataSource[i].designFlowStatus == 'Duty Person Rejected') {
if (dataSource[i].projectLawsInventoryEOS && (dataSource[i].projectLawsInventoryEOS.length > 0 || dataSource[i].projectLawsInventoryEOS !== null)) { if (dataSource[i].projectLawsInventoryEOS && (dataSource[i].projectLawsInventoryEOS.length > 0 || dataSource[i].projectLawsInventoryEOS !== null)) {
this.detailedWarningList.push( this.detailedWarningList.push(
< div > { dataSource[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>) < div > { dataSource[i].serialNumber + this.$t('platformitemhasbeenassociated') } < /div>)
}else{ } else {
idList.push(dataSource[i].id) idList.push(dataSource[i].id)
this.rowKeysSuccessList.push(dataSource[i]) this.rowKeysSuccessList.push(dataSource[i])
} }
@@ -3477,7 +3485,7 @@
if (isDesign || isVerify) { if (isDesign || isVerify) {
if (dataSource[0].projectLawsInventoryEOS && (dataSource[0].projectLawsInventoryEOS.length > 0 || dataSource[0].projectLawsInventoryEOS !== null)) { if (dataSource[0].projectLawsInventoryEOS && (dataSource[0].projectLawsInventoryEOS.length > 0 || dataSource[0].projectLawsInventoryEOS !== null)) {
this.$message.warning(dataSource[0].serialNumber + this.$t('platformitemhasbeenassociated')) this.$message.warning(dataSource[0].serialNumber + this.$t('platformitemhasbeenassociated'))
}else{ } else {
this.$refs.toResubmitFormRef.getData(dataSource[0], isDesign, isVerify) this.$refs.toResubmitFormRef.getData(dataSource[0], isDesign, isVerify)
} }
} else { } else {
@@ -30,7 +30,7 @@
> >
<!-- --> <!-- -->
<a slot="areaOfResponsibility" @click="areaOfResponsibilityClick(result)" slot-scope="text,result"> <a slot="areaOfResponsibility" @click="areaOfResponsibilityClick(result)" slot-scope="text,result">
{{text}} {{text}}
</a> </a>
</a-table> </a-table>
</a-modal> </a-modal>
@@ -82,7 +82,101 @@
width: 240, width: 240,
sorter: true sorter: true
} }
] ],
//法规清单
taskProcessState: {//设计、验证任务确认
'Duty Person Accepted': [//设计、验证任务确认-责任人接受
'Results to be submitted',
'Results to be reviewed',
'Compliance',
'Non-Compliance',
'To be tracked'
],
'List to be released': [//设计、验证任务确认-清单待发布
'List to be released',
'Regulatory engineer returns'
],
'Task to be confirmed': [//设计、验证任务确认-任务待确认
'Task to be confirmed'
],
'Duty Person Rejected': [//设计、验证任务确认-责任人拒绝
'Duty Person Rejected'
],
'List to be checked': [//设计、验证任务确认-任务待发起
'List to be checked'
]
},
complianceProcessState: {//设计、验证符合性
'Task to be confirmed': [//任务待确认
'List to be released',
'Regulatory engineer returns',
'List to be checked',
'Task to be confirmed',
'Duty Person Rejected'
],
'Results to be submitted': [//结果待提交
'Results to be submitted'
],
'Results to be reviewed': [//结果待审查
'Results to be reviewed'
],
'To be tracked': [//待追踪
'To be tracked'
],
'Compliance': [//符合
'Compliance'
],
'Non-Compliance': [//不符合
'Non-Compliance'
]
},
//认证清单-认证任务确认
authenticationProcessState: {
'List to be released': [//清单待发布
'List to be released',
'Certification returned'
],
'List to be checked': [//任务待发起
'List to be checked'
],
'Task to be confirmed': [//任务待确认
'Task to be confirmed'
],
'Accepted of responsible person': [//责任人接受
'Results to be submitted',
'Results to be reviewed',
'Review and pass',
'Review and return'
],
'Refusal of responsible person': [//责任人拒绝
'Refusal of responsible person'
]
},
//认证清单-Pro-homo流程
proHomoProcessState: {
'Task to be confirmed': [//任务待确认
'List to be released',
'Certification returned',
'List to be checked',
'Task to be confirmed',
'Refusal of responsible person'
],
'Results to be submitted': [//结果待提交
'Results to be submitted'
],
'Results to be reviewed': [//结果待审查
'Results to be reviewed'
],
'Review and pass': [//审查通过
'Review and pass'
],
'Review and return': [//审查退回
'Review and return'
]
},
//认证清单-认证进度
progressProcessState: {}
} }
}, },
mounted() { mounted() {
@@ -108,9 +202,9 @@
this.orderByField = 'designDutyId' this.orderByField = 'designDutyId'
} else if (sorter.columnKey == 'verifyDutyIdName') { } else if (sorter.columnKey == 'verifyDutyIdName') {
this.orderByField = 'verifyDutyId' this.orderByField = 'verifyDutyId'
} else if (sorter.columnKey == 'verifyFlowStatusName') { } else if (sorter.columnKey == 'verifyFlowStatusName') {
this.orderByField = 'verifyFlowStatus' this.orderByField = 'verifyFlowStatus'
} else if (sorter.columnKey == 'designFlowStatusName') { } else if (sorter.columnKey == 'designFlowStatusName') {
this.orderByField = 'designFlowStatus' this.orderByField = 'designFlowStatus'
} else { } else {
this.orderByField = sorter.columnKey this.orderByField = sorter.columnKey
@@ -120,9 +214,9 @@
getList() { getList() {
this.loading = true this.loading = true
let query = { let query = {
...this.queryParam, ...this.queryParam,
orderBy: this.orderBy, orderBy: this.orderBy,
orderByField: this.orderByField, orderByField: this.orderByField
} }
getAction(this.url.GroupByTerritory, query).then((res) => { getAction(this.url.GroupByTerritory, query).then((res) => {
if (res.success) { if (res.success) {
@@ -141,11 +235,26 @@
this.visible = false this.visible = false
}, },
areaOfResponsibilityClick(item) { areaOfResponsibilityClick(item) {
if (this.queryParam.operatorType == 'queryDesignTaskConfirmation' || if (this.queryParam.operatorType == 'queryDesignTaskConfirmation') {
this.queryParam.operatorType == 'queryVerificationTaskConfirmation' ||
this.queryParam.operatorType == 'queryDesignStatistics' ||
this.queryParam.operatorType == 'queryVerifyStatistics') {
item.isListing = '1' item.isListing = '1'
item.processState = this.taskProcessState[this.queryParam.status].join(',')
item.selectModel = 'designFlowStatus'
} else if (this.queryParam.operatorType == 'queryVerificationTaskConfirmation') {
item.isListing = '1'
item.processState = this.taskProcessState[this.queryParam.status].join(',')
item.selectModel = 'verifyFlowStatus'
} else if (this.queryParam.operatorType == 'queryDesignStatistics') {
item.processState = this.complianceProcessState[this.queryParam.status].join(',')
item.isListing = '1'
item.selectModel = 'designFlowStatus'
} else if (this.queryParam.operatorType == 'queryVerifyStatistics') {
item.processState = this.complianceProcessState[this.queryParam.status].join(',')
item.isListing = '1'
item.selectModel = 'verifyFlowStatus'
} else if (this.queryParam.operatorType == 'queryRZTaskToConfirmStatistics') {
item.processState = this.authenticationProcessState[this.queryParam.status].join(',')
} else if (this.queryParam.operatorType == 'queryPrehomoStatistics') {
item.processState = this.proHomoProcessState[this.queryParam.status].join(',')
} }
this.$emit('responsibility', item) this.$emit('responsibility', item)
} }
@@ -85,8 +85,10 @@
{{ !toggleSearchStatus ? $t('open') : $t('away') }} {{ !toggleSearchStatus ? $t('open') : $t('away') }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a> </a>
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" @click="searchReset">{{$t('reset')}}</a-button> <a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }"
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" type="primary" @click="searchQuery">{{$t('query')}}</a-button> @click="searchReset">{{$t('reset')}}</a-button>
<a-button class="box-button" :style="{ marginLeft: long == 'en-us'?'3px':'8px' }" type="primary"
@click="searchQuery">{{$t('query')}}</a-button>
<globalAdvancedQuery ref="globalAdvancedQueryRef" <globalAdvancedQuery ref="globalAdvancedQueryRef"
@handleSuperQuery="handleSuperQuery" @handleSuperQuery="handleSuperQuery"
:fieldList="fieldList"/> :fieldList="fieldList"/>
@@ -130,18 +132,18 @@
</div> </div>
<!-- 认证目录--> <!-- 认证目录-->
<!-- v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1 ||--> <!-- v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1 ||-->
<!-- roleSwitchingCode == 2"--> <!-- roleSwitchingCode == 2"-->
<div @click="certificationClick" v-has="'rzqd:homologationatalogue'" class="operator-text"> <div @click="certificationClick" v-has="'rzqd:homologationatalogue'" class="operator-text">
<a-icon type="profile"/> <a-icon type="profile"/>
{{ $t('CertificationDirectory') }} {{ $t('CertificationDirectory') }}
</div> </div>
<!-- 修改配置--> <!-- 修改配置-->
<!-- <div @click="BatchSettingClick($t('changeSetting'))" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"--> <!-- <div @click="BatchSettingClick($t('changeSetting'))" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"-->
<!-- class="operator-text">--> <!-- class="operator-text">-->
<!-- <a-icon type="setting"/>--> <!-- <a-icon type="setting"/>-->
<!-- {{ $t('changeSetting') }}--> <!-- {{ $t('changeSetting') }}-->
<!-- </div>--> <!-- </div>-->
<!-- 引用交付物--> <!-- 引用交付物-->
<div @click="referenceDeliverablesClick" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21" <div @click="referenceDeliverablesClick" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"
@@ -150,12 +152,12 @@
{{ $t('referenceDeliverables') }} {{ $t('referenceDeliverables') }}
</div> </div>
<!-- 添加配置--> <!-- 添加配置-->
<!-- <div @click="addConfigurationClick"--> <!-- <div @click="addConfigurationClick"-->
<!-- v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"--> <!-- v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"-->
<!-- class="operator-text">--> <!-- class="operator-text">-->
<!-- <a-icon type="plus"/>--> <!-- <a-icon type="plus"/>-->
<!-- {{ $t('addConfiguration') }}--> <!-- {{ $t('addConfiguration') }}-->
<!-- </div>--> <!-- </div>-->
<a-popconfirm overlayClassName="popconfirm" placement="bottomRight"> <a-popconfirm overlayClassName="popconfirm" placement="bottomRight">
<template slot="title" id="popconfirm"> <template slot="title" id="popconfirm">
<div> <div>
@@ -167,12 +169,12 @@
{{ $t('add') }} {{ $t('add') }}
</div> </div>
<!-- 添加配置--> <!-- 添加配置-->
<!-- <div @click="addConfigurationClick"--> <!-- <div @click="addConfigurationClick"-->
<!-- v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"--> <!-- v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"-->
<!-- class="operator-text-title">--> <!-- class="operator-text-title">-->
<!-- <a-icon type="plus"/>--> <!-- <a-icon type="plus"/>-->
<!-- {{ $t('addConfiguration') }}--> <!-- {{ $t('addConfiguration') }}-->
<!-- </div>--> <!-- </div>-->
<!-- 模板下载--> <!-- 模板下载-->
<div @click="handleModule" <div @click="handleModule"
v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
@@ -182,12 +184,12 @@
</div> </div>
<!-- 导出--> <!-- 导出-->
<!-- <div @click="handleExport"--> <!-- <div @click="handleExport"-->
<!-- v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2 || roleSwitchingCode == 20 || roleSwitchingCode == 21"--> <!-- v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2 || roleSwitchingCode == 20 || roleSwitchingCode == 21"-->
<!-- class="operator-text-title">--> <!-- class="operator-text-title">-->
<!-- <a-icon type="export" :rotate="-90"/>--> <!-- <a-icon type="export" :rotate="-90"/>-->
<!-- {{ $t('export') }}--> <!-- {{ $t('export') }}-->
<!-- </div>--> <!-- </div>-->
<!-- 导入--> <!-- 导入-->
<div class="operator-text-title" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"> <div class="operator-text-title" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2">
@@ -220,11 +222,11 @@
</div> </div>
<div style="margin-top: 1px;float:right;"> <div style="margin-top: 1px;float:right;">
<!-- &lt;!&ndash; 撤回&ndash;&gt;--> <!-- &lt;!&ndash; 撤回&ndash;&gt;-->
<!-- <div @click="withdrawClick" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2" class="operator-text">--> <!-- <div @click="withdrawClick" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2" class="operator-text">-->
<!-- <a-icon type="rollback"/>--> <!-- <a-icon type="rollback"/>-->
<!-- {{ $t('withdraw') }}--> <!-- {{ $t('withdraw') }}-->
<!-- </div>--> <!-- </div>-->
<!-- 发起任务--> <!-- 发起任务-->
<div @click="initiatingProcessClick('rzgcsjsrw',$t('confirmLaunchTask'))" <div @click="initiatingProcessClick('rzgcsjsrw',$t('confirmLaunchTask'))"
@@ -233,12 +235,12 @@
{{ $t('initiateTask') }} {{ $t('initiateTask') }}
</div> </div>
<!-- &lt;!&ndash; 退回至Studio&ndash;&gt;--> <!-- &lt;!&ndash; 退回至Studio&ndash;&gt;-->
<!-- <div @click="returnToStudioClick('rzgcsthrw',$t('areYouReturnToStudio'))"--> <!-- <div @click="returnToStudioClick('rzgcsthrw',$t('areYouReturnToStudio'))"-->
<!-- v-if="roleSwitchingCode == 1" class="operator-text">--> <!-- v-if="roleSwitchingCode == 1" class="operator-text">-->
<!-- <a-icon type="close-circle"/>--> <!-- <a-icon type="close-circle"/>-->
<!-- {{ $t('returnToStudio') }}--> <!-- {{ $t('returnToStudio') }}-->
<!-- </div>--> <!-- </div>-->
<!-- 审批通过--> <!-- 审批通过-->
<div @click="ApprovedClick('rzgcssc_tg',$t('confirmApproval'))" v-if="roleSwitchingCode == 1" <div @click="ApprovedClick('rzgcssc_tg',$t('confirmApproval'))" v-if="roleSwitchingCode == 1"
@@ -546,7 +548,7 @@
export default { export default {
name: 'index', name: 'index',
props: ['isDisplayNum','areaOfResponsibility'], props: ['isDisplayNum', 'areaOfResponsibility'],
mixins: [ResizeColumnProvide, ResizeHeader], mixins: [ResizeColumnProvide, ResizeHeader],
components: { components: {
globalAdvancedQuery, globalAdvancedQuery,
@@ -825,7 +827,7 @@
align: 'left', align: 'left',
dataIndex: 'remark', dataIndex: 'remark',
width: 180, width: 180,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -842,7 +844,7 @@
toDoNotConditions: [], toDoNotConditions: [],
userInfoQuery: {}, userInfoQuery: {},
DeliverableTreeList: [], DeliverableTreeList: [],
firstLevelDutyTerritoryList:[], firstLevelDutyTerritoryList: []
} }
}, },
mounted() { mounted() {
@@ -851,9 +853,9 @@
this.long = localStorage.getItem('language') || 'zh-cn' this.long = localStorage.getItem('language') || 'zh-cn'
this.loading = true this.loading = true
this.userInfoQuery = this.userInfo() this.userInfoQuery = this.userInfo()
console.log(this.areaOfResponsibility)
if (this.areaOfResponsibility && this.areaOfResponsibility.dutyTerritoryName) { if (this.areaOfResponsibility && this.areaOfResponsibility.dutyTerritoryName) {
this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibility.dutyTerritoryName this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibility.dutyTerritoryName
this.queryParam.flowStatus = this.areaOfResponsibility.processState ? this.areaOfResponsibility.processState.split(',') : []
this.queryParam = { ...this.queryParam } this.queryParam = { ...this.queryParam }
} }
this.getProcessStatus() this.getProcessStatus()
@@ -1144,7 +1146,7 @@
let notConditions = [] let notConditions = []
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'List to be checked' || if (this.selectedRowKeysList[i].flowStatus == 'List to be checked' ||
this.selectedRowKeysList[i].flowStatus == 'Review and pass' || this.selectedRowKeysList[i].flowStatus == 'Review and pass' ||
this.selectedRowKeysList[i].flowStatus == 'Refusal of responsible person') { this.selectedRowKeysList[i].flowStatus == 'Refusal of responsible person') {
ids.push(this.selectedRowKeysList[i].id) ids.push(this.selectedRowKeysList[i].id)
} else { } else {
@@ -2210,7 +2212,7 @@
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, }
} }
} }
</script> </script>
@@ -1521,6 +1521,8 @@
this.getFirstLevelDutyTerritory() this.getFirstLevelDutyTerritory()
if (this.areaOfResponsibilityList && this.areaOfResponsibilityList.dutyTerritoryName) { if (this.areaOfResponsibilityList && this.areaOfResponsibilityList.dutyTerritoryName) {
this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibilityList.dutyTerritoryName this.queryParam.firstLevelDutyTerritory = this.areaOfResponsibilityList.dutyTerritoryName
this.selectModel = this.areaOfResponsibilityList.selectModel
this.queryParam[this.selectModel] = this.areaOfResponsibilityList.processState ? this.areaOfResponsibilityList.processState.split(',') : []
this.queryParam = { ...this.queryParam } this.queryParam = { ...this.queryParam }
} }
this.long = localStorage.getItem('language') || 'zh-cn' this.long = localStorage.getItem('language') || 'zh-cn'
@@ -82,7 +82,99 @@
width: 240, width: 240,
sorter: true sorter: true
} }
] ],
//法规清单
taskProcessState: {//设计、验证任务确认
'Duty Person Accepted': [//设计、验证任务确认-责任人接受
'Results to be submitted',
'Results to be reviewed',
'Compliance',
'Non-Compliance',
'To be tracked'
],
'List to be released': [//设计、验证任务确认-清单待发布
'List to be released',
'Regulatory engineer returns'
],
'Task to be confirmed': [//设计、验证任务确认-任务待确认
'Task to be confirmed'
],
'Duty Person Rejected': [//设计、验证任务确认-责任人拒绝
'Duty Person Rejected'
],
'List to be checked': [//设计、验证任务确认-任务待发起
'List to be checked'
]
},
complianceProcessState: {//设计、验证符合性
'Task to be confirmed': [//任务待确认
// 'List to be released',
// 'Regulatory engineer returns',
'List to be checked',
'Task to be confirmed',
'Duty Person Rejected'
],
'Results to be submitted': [//结果待提交
'Results to be submitted'
],
'Results to be reviewed': [//结果待审查
'Results to be reviewed'
],
'To be tracked': [//待追踪
'To be tracked'
],
'Compliance': [//符合
'Compliance'
],
'Non-Compliance': [//不符合
'Non-Compliance'
]
},
//认证清单-认证任务确认
authenticationProcessState: {
'List to be released': [//清单待发布
'List to be released',
'Certification returned'
],
'List to be checked': [//任务待发起
'List to be checked'
],
'Task to be confirmed': [//任务待确认
'Task to be confirmed'
],
'Accepted of responsible person': [//责任人接受
'Results to be submitted',
'Results to be reviewed',
'Review and pass',
'Review and return'
],
'Refusal of responsible person': [//责任人拒绝
'Refusal of responsible person'
]
},
//认证清单-Pro-homo流程
proHomoProcessState: {
'Task to be confirmed': [//任务待确认
'List to be released',
'Certification returned',
'List to be checked',
'Task to be confirmed',
'Refusal of responsible person'
],
'Results to be submitted': [//结果待提交
'Results to be submitted'
],
'Results to be reviewed': [//结果待审查
'Results to be reviewed'
],
'Review and pass': [//审查通过
'Review and pass'
],
'Review and return': [//审查退回
'Review and return'
]
},
} }
}, },
mounted() { mounted() {
@@ -141,11 +233,26 @@
this.visible = false this.visible = false
}, },
areaOfResponsibilityClick(item) { areaOfResponsibilityClick(item) {
if (this.queryParam.operatorType == 'queryDesignTaskConfirmation' || if (this.queryParam.operatorType == 'queryDesignTaskConfirmation') {
this.queryParam.operatorType == 'queryVerificationTaskConfirmation' ||
this.queryParam.operatorType == 'queryDesignStatistics' ||
this.queryParam.operatorType == 'queryVerifyStatistics') {
item.isListing = '1' item.isListing = '1'
item.processState = this.taskProcessState[this.queryParam.status].join(',')
item.selectModel = 'designFlowStatus'
} else if (this.queryParam.operatorType == 'queryVerificationTaskConfirmation') {
item.isListing = '1'
item.processState = this.taskProcessState[this.queryParam.status].join(',')
item.selectModel = 'verifyFlowStatus'
} else if (this.queryParam.operatorType == 'queryDesignStatistics') {
item.processState = this.complianceProcessState[this.queryParam.status].join(',')
item.isListing = '1'
item.selectModel = 'designFlowStatus'
} else if (this.queryParam.operatorType == 'queryVerifyStatistics') {
item.processState = this.complianceProcessState[this.queryParam.status].join(',')
item.isListing = '1'
item.selectModel = 'verifyFlowStatus'
} else if (this.queryParam.operatorType == 'queryRZTaskToConfirmStatistics') {
item.processState = this.authenticationProcessState[this.queryParam.status].join(',')
} else if (this.queryParam.operatorType == 'queryPrehomoStatistics') {
item.processState = this.proHomoProcessState[this.queryParam.status].join(',')
} }
this.$emit('responsibility', item) this.$emit('responsibility', item)
} }
@@ -83,7 +83,99 @@
width: 240, width: 240,
sorter: true sorter: true
} }
] ],
//法规清单
taskProcessState: {//设计、验证任务确认
'Duty Person Accepted': [//设计、验证任务确认-责任人接受
'Results to be submitted',
'Results to be reviewed',
'Compliance',
'Non-Compliance',
'To be tracked'
],
'List to be released': [//设计、验证任务确认-清单待发布
'List to be released',
'Regulatory engineer returns'
],
'Task to be confirmed': [//设计、验证任务确认-任务待确认
'Task to be confirmed'
],
'Duty Person Rejected': [//设计、验证任务确认-责任人拒绝
'Duty Person Rejected'
],
'List to be checked': [//设计、验证任务确认-任务待发起
'List to be checked'
]
},
complianceProcessState: {//设计、验证符合性
'Task to be confirmed': [//任务待确认
'List to be released',
'Regulatory engineer returns',
'List to be checked',
'Task to be confirmed',
'Duty Person Rejected'
],
'Results to be submitted': [//结果待提交
'Results to be submitted'
],
'Results to be reviewed': [//结果待审查
'Results to be reviewed'
],
'To be tracked': [//待追踪
'To be tracked'
],
'Compliance': [//符合
'Compliance'
],
'Non-Compliance': [//不符合
'Non-Compliance'
]
},
//认证清单-认证任务确认
authenticationProcessState: {
'List to be released': [//清单待发布
'List to be released',
'Certification returned'
],
'List to be checked': [//任务待发起
'List to be checked'
],
'Task to be confirmed': [//任务待确认
'Task to be confirmed'
],
'Accepted of responsible person': [//责任人接受
'Results to be submitted',
'Results to be reviewed',
'Review and pass',
'Review and return'
],
'Refusal of responsible person': [//责任人拒绝
'Refusal of responsible person'
]
},
//认证清单-Pro-homo流程
proHomoProcessState: {
'Task to be confirmed': [//任务待确认
'List to be released',
'Certification returned',
'List to be checked',
'Task to be confirmed',
'Refusal of responsible person'
],
'Results to be submitted': [//结果待提交
'Results to be submitted'
],
'Results to be reviewed': [//结果待审查
'Results to be reviewed'
],
'Review and pass': [//审查通过
'Review and pass'
],
'Review and return': [//审查退回
'Review and return'
]
},
} }
}, },
mounted() { mounted() {
@@ -144,14 +236,6 @@
}, },
areaOfResponsibilityClick(item) { areaOfResponsibilityClick(item) {
let type = '' let type = ''
if (this.queryParam.operatorType == 'queryDesignTaskConfirmation' ||
this.queryParam.operatorType == 'queryVerificationTaskConfirmation' ||
this.queryParam.operatorType == 'queryDesignStatistics' ||
this.queryParam.operatorType == 'queryVerifyStatistics') {
type = '102'
} else {
type = '106'
}
let query = { let query = {
id: this.projectInfo.id, id: this.projectInfo.id,
projectName: this.projectInfo.projectName, projectName: this.projectInfo.projectName,
@@ -161,6 +245,32 @@
type: type, type: type,
dutyTerritoryName: item.dutyTerritoryName dutyTerritoryName: item.dutyTerritoryName
} }
if (this.queryParam.operatorType == 'queryDesignTaskConfirmation') {
query.processState = this.taskProcessState[this.queryParam.status].join(',')
query.selectModel = 'designFlowStatus'
type = '102'
} else if (this.queryParam.operatorType == 'queryVerificationTaskConfirmation') {
query.processState = this.taskProcessState[this.queryParam.status].join(',')
query.selectModel = 'verifyFlowStatus'
type = '102'
} else if (this.queryParam.operatorType == 'queryDesignStatistics') {
query.processState = this.complianceProcessState[this.queryParam.status].join(',')
query.selectModel = 'designFlowStatus'
type = '102'
} else if (this.queryParam.operatorType == 'queryVerifyStatistics') {
query.processState = this.complianceProcessState[this.queryParam.status].join(',')
query.selectModel = 'verifyFlowStatus'
type = '102'
} else if (this.queryParam.operatorType == 'queryRZTaskToConfirmStatistics') {
query = '106'
item.processState = this.authenticationProcessState[this.queryParam.status].join(',')
} else if (this.queryParam.operatorType == 'queryPrehomoStatistics') {
type = '106'
query.processState = this.proHomoProcessState[this.queryParam.status].join(',')
}else{
type = '106'
}
query.type = type
let newUrl = this.$router.resolve({ let newUrl = this.$router.resolve({
path: '/ProjectDetails', path: '/ProjectDetails',
query: query query: query