法规清单修改操作人
This commit is contained in:
@@ -1784,4 +1784,5 @@ module.exports = {
|
|||||||
modifyOperator:'Modify Operator',
|
modifyOperator:'Modify Operator',
|
||||||
onlyDesignComplianceConfirmationSelected:'Only data with a design compliance confirmation process status of task to be confirmed, result to be submitted, or verification compliance confirmation process status of task to be confirmed, result to be submitted can be selected',
|
onlyDesignComplianceConfirmationSelected:'Only data with a design compliance confirmation process status of task to be confirmed, result to be submitted, or verification compliance confirmation process status of task to be confirmed, result to be submitted can be selected',
|
||||||
oneThePersonnelMustBeSelected:'One of the personnel must be selected',
|
oneThePersonnelMustBeSelected:'One of the personnel must be selected',
|
||||||
|
pleaseSelectRegulatoryCurrentLogin:'Please select Regulatory Engineer as the data for the current login',
|
||||||
}
|
}
|
||||||
@@ -1886,4 +1886,5 @@ module.exports = {
|
|||||||
modifyOperator:'修改操作人',
|
modifyOperator:'修改操作人',
|
||||||
onlyDesignComplianceConfirmationSelected:'只能选择设计符合性确认流程状态为任务待确认、结果待提交或验证符合性确认流程状态为任务待确认、结果待提交的数据',
|
onlyDesignComplianceConfirmationSelected:'只能选择设计符合性确认流程状态为任务待确认、结果待提交或验证符合性确认流程状态为任务待确认、结果待提交的数据',
|
||||||
oneThePersonnelMustBeSelected:'必须选择其中一个人员',
|
oneThePersonnelMustBeSelected:'必须选择其中一个人员',
|
||||||
|
pleaseSelectRegulatoryCurrentLogin:'请选择法规工程师为当前登录人的数据',
|
||||||
}
|
}
|
||||||
@@ -113,13 +113,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<!-- <PersonnelSelection-->
|
<!-- <PersonnelSelection-->
|
||||||
<!-- :query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}"-->
|
<!-- :query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}"-->
|
||||||
<!-- :isSingleChoice="true"-->
|
<!-- :isSingleChoice="true"-->
|
||||||
<!-- :personneQuery="formInline"-->
|
<!-- :personneQuery="formInline"-->
|
||||||
<!-- v-if="visible"-->
|
<!-- v-if="visible"-->
|
||||||
<!-- @change="PersonnelSelectionChange"-->
|
<!-- @change="PersonnelSelectionChange"-->
|
||||||
<!-- v-model="formInline.engineeringInterfacePersonName"/>-->
|
<!-- v-model="formInline.engineeringInterfacePersonName"/>-->
|
||||||
<!-- <j-dict-select-tag class="box-input" v-model="formInline.designDuty"-->
|
<!-- <j-dict-select-tag class="box-input" v-model="formInline.designDuty"-->
|
||||||
<!-- :disabled="formInline.roleCode == 0 ? false : true"-->
|
<!-- :disabled="formInline.roleCode == 0 ? false : true"-->
|
||||||
<!-- @input="handleInput('designDuty')"-->
|
<!-- @input="handleInput('designDuty')"-->
|
||||||
@@ -361,7 +361,7 @@
|
|||||||
ids: [],
|
ids: [],
|
||||||
code: '',
|
code: '',
|
||||||
regulatoryEngineerList: [],
|
regulatoryEngineerList: [],
|
||||||
engineeringInterfacePersonList:[],
|
engineeringInterfacePersonList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -370,7 +370,7 @@
|
|||||||
dutyTerritoryChange(event) {
|
dutyTerritoryChange(event) {
|
||||||
this.formInline.regulationOwnerId = undefined
|
this.formInline.regulationOwnerId = undefined
|
||||||
this.formInline.engineeringInterfacePerson = undefined
|
this.formInline.engineeringInterfacePerson = undefined
|
||||||
this.formInline = {...this.formInline}
|
this.formInline = { ...this.formInline }
|
||||||
this.queryPersonByProject(event)
|
this.queryPersonByProject(event)
|
||||||
},
|
},
|
||||||
queryPersonByProject(row) {
|
queryPersonByProject(row) {
|
||||||
@@ -380,8 +380,15 @@
|
|||||||
}
|
}
|
||||||
getAction('/project/projectRelatedPersonnel/queryPersonByProjectId', query).then((res) => {
|
getAction('/project/projectRelatedPersonnel/queryPersonByProjectId', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.regulatoryEngineerList = res.result.lawEngineerList //法规工程师
|
this.regulatoryEngineerList = res.result.lawEngineerList || [] //法规工程师
|
||||||
this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList //工程接口人
|
this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || [] //工程接口人
|
||||||
|
if (this.regulatoryEngineerList.length == 1) {
|
||||||
|
this.formInline.regulationOwnerId = this.regulatoryEngineerList[0].value
|
||||||
|
}
|
||||||
|
if (this.engineeringInterfacePersonList.length == 1) {
|
||||||
|
this.formInline.engineeringInterfacePerson = this.engineeringInterfacePersonList[0].value
|
||||||
|
}
|
||||||
|
this.formInline = {...this.formInline}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -389,7 +396,7 @@
|
|||||||
this.formInline[value] = id
|
this.formInline[value] = id
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
},
|
},
|
||||||
edit(data, code) {
|
edit(data, code, content) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.regulatoryEngineerList = []
|
this.regulatoryEngineerList = []
|
||||||
this.engineeringInterfacePersonList = []
|
this.engineeringInterfacePersonList = []
|
||||||
@@ -398,6 +405,11 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.ids = data || []
|
this.ids = data || []
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
|
if (content) {
|
||||||
|
this.formInline.dutyTerritory = content.dutyTerritory
|
||||||
|
this.queryPersonByProject(content)
|
||||||
|
}
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 修改操作人-->
|
<!-- 修改操作人-->
|
||||||
<div class="operator-text" v-if="this.roleSwitchingCode == '1'"
|
<div class="operator-text" v-if="this.roleSwitchingCode == '1'"
|
||||||
@click="modifyOperatorClick">
|
@click="modifyOperatorClick('法规')">
|
||||||
<a-icon type="export" :rotate="-90"/>
|
<a-icon type="export" :rotate="-90"/>
|
||||||
{{ $t('modifyOperator') }}
|
{{ $t('modifyOperator') }}
|
||||||
</div>
|
</div>
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
{{ $t('compliancereport') }}
|
{{ $t('compliancereport') }}
|
||||||
</div>
|
</div>
|
||||||
<!-- 修改操作人-->
|
<!-- 修改操作人-->
|
||||||
<div class="operator-text-title" @click="modifyOperatorClick">
|
<div class="operator-text-title" @click="modifyOperatorClick('studio')">
|
||||||
<a-icon type="export" :rotate="-90"/>
|
<a-icon type="export" :rotate="-90"/>
|
||||||
{{ $t('modifyOperator') }}
|
{{ $t('modifyOperator') }}
|
||||||
</div>
|
</div>
|
||||||
@@ -1467,7 +1467,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
modifyOperatorClick() {
|
modifyOperatorClick(name) {
|
||||||
if (this.selectedRowKeys.length == 0) {
|
if (this.selectedRowKeys.length == 0) {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
} else if (this.selectedRowKeys.length > 1) {
|
} else if (this.selectedRowKeys.length > 1) {
|
||||||
@@ -1491,8 +1491,15 @@
|
|||||||
|| contentList[0].designFlowStatus == 'Results to be submitted') {
|
|| contentList[0].designFlowStatus == 'Results to be submitted') {
|
||||||
isDesignFlow = true
|
isDesignFlow = true
|
||||||
}
|
}
|
||||||
|
if (name == '法规') {
|
||||||
|
if (contentList[0].regulationOwnerId == this.userInfo().id) {
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('pleaseSelectRegulatoryCurrentLogin'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
if (isDesignFlow || isVerifyFlow) {
|
if (isDesignFlow || isVerifyFlow) {
|
||||||
this.$refs.modifyOperatorRef.getData(contentList[0],isDesignFlow, isVerifyFlow)
|
this.$refs.modifyOperatorRef.getData(contentList[0], isDesignFlow, isVerifyFlow)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('onlyDesignComplianceConfirmationSelected'))
|
this.$message.warning(this.$t('onlyDesignComplianceConfirmationSelected'))
|
||||||
}
|
}
|
||||||
@@ -1721,7 +1728,32 @@
|
|||||||
batSettingClick() {
|
batSettingClick() {
|
||||||
let code = this.roleSwitchingCode
|
let code = this.roleSwitchingCode
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), code)
|
let content = []
|
||||||
|
for (let i = 0; i < this.dataSource.length; i++) {
|
||||||
|
for (let j = 0; j < this.selectedRowKeys.length; j++) {
|
||||||
|
if (this.dataSource[i].id == this.selectedRowKeys[j]) {
|
||||||
|
content.push(this.dataSource[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let isTrue = false
|
||||||
|
for (let i = 0; i < content.length; i++) {
|
||||||
|
if (!content[i].dutyTerritory_dictText) {
|
||||||
|
isTrue = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
for (let j = 1; j < content.length; j++) {
|
||||||
|
if (content[i].dutyTerritory_dictText != content[j].dutyTerritory_dictText) {
|
||||||
|
isTrue = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!isTrue){
|
||||||
|
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), code,content[0])
|
||||||
|
}else{
|
||||||
|
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), code)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user