法规清单修改操作人
This commit is contained in:
@@ -1781,4 +1781,7 @@ module.exports = {
|
||||
deadlineForResponsibilityConfirmation:'Deadline for Responsibility Confirmation',
|
||||
checkRegulatoryCompletedBefore: "Check the implementation of regulatory requirements before product design freezes. Task delivery requirements will first be input and confirmed with the engineering team in G1, and compliance confirmation and review will be completed before G3.",
|
||||
checkVerificationResultsBeforeMP:'Check the verification results required by regulations before mass production of the product. Task delivery requirements will first be input and confirmed with the engineering team in G1, and compliance confirmation and review will be completed before MP.',
|
||||
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',
|
||||
oneThePersonnelMustBeSelected:'One of the personnel must be selected',
|
||||
}
|
||||
@@ -1883,5 +1883,7 @@ module.exports = {
|
||||
deadlineForResponsibilityConfirmation: '责任确认截止日期',
|
||||
checkRegulatoryCompletedBefore: "检查法规要求在产品设计冻结前的落实,任务交付要求将首先在G1与工程团队完成输入和确认,并于G3前完成符合性确认和审查。",
|
||||
checkVerificationResultsBeforeMP:'检查法规要求在产品量产前的验证结果,任务交付要求将首先在G1与工程团队完成输入和确认,并于MP前完成符合性确认和审查。',
|
||||
|
||||
modifyOperator:'修改操作人',
|
||||
onlyDesignComplianceConfirmationSelected:'只能选择设计符合性确认流程状态为任务待确认、结果待提交或验证符合性确认流程状态为任务待确认、结果待提交的数据',
|
||||
oneThePersonnelMustBeSelected:'必须选择其中一个人员',
|
||||
}
|
||||
@@ -117,6 +117,12 @@
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('BatchSetting') }}
|
||||
</div>
|
||||
<!-- 修改操作人-->
|
||||
<div class="operator-text" v-if="this.roleSwitchingCode == '1'"
|
||||
@click="modifyOperatorClick">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('modifyOperator') }}
|
||||
</div>
|
||||
<!-- 列表设置-->
|
||||
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize"
|
||||
placement="bottomRight" v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1'">
|
||||
@@ -191,6 +197,11 @@
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('compliancereport') }}
|
||||
</div>
|
||||
<!-- 修改操作人-->
|
||||
<div class="operator-text-title" @click="modifyOperatorClick">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('modifyOperator') }}
|
||||
</div>
|
||||
<!-- <div class="operator-text-title" @click="batSettingClick">-->
|
||||
<!-- <a-icon type="setting" />-->
|
||||
<!-- {{ $t('batchSettingInformation') }}-->
|
||||
@@ -595,6 +606,7 @@
|
||||
<batchSettingPersonnel :url="url" ref="batchSettingPersonnelRef" @batchSettingPersonnelForm="addModelList"/>
|
||||
<viewFileModel ref="viewFileModelRef"/>
|
||||
<designCompliance ref="designComplianceRef"/>
|
||||
<modifyOperator ref="modifyOperatorRef" @modifyOperatorForm="modifyOperatorForm"/>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
@@ -612,6 +624,7 @@
|
||||
import listOfRegulationsView from './listOfRegulationsView'
|
||||
import viewFileModel from '@/components/viewFileModel/index'
|
||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||
import modifyOperator from './modifyOperator'
|
||||
import batchSettingPersonnel from './batchSettingPersonnel'
|
||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||
@@ -636,7 +649,8 @@
|
||||
batchSettingPersonnel,
|
||||
listOfRegulationsView,
|
||||
viewFileModel,
|
||||
designCompliance
|
||||
designCompliance,
|
||||
modifyOperator
|
||||
},
|
||||
mixins: [ResizeColumnProvide, ResizeHeader],
|
||||
data() {
|
||||
@@ -1453,6 +1467,41 @@
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
modifyOperatorClick() {
|
||||
if (this.selectedRowKeys.length == 0) {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else if (this.selectedRowKeys.length > 1) {
|
||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||
} else {
|
||||
let contentList = []
|
||||
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]) {
|
||||
contentList.push(this.dataSource[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
let isVerifyFlow = false
|
||||
let isDesignFlow = false
|
||||
if (contentList[0].verifyFlowStatus == 'Task to be confirmed'
|
||||
|| contentList[0].verifyFlowStatus == 'Results to be submitted') {
|
||||
isVerifyFlow = true
|
||||
}
|
||||
if (contentList[0].designFlowStatus == 'Task to be confirmed'
|
||||
|| contentList[0].designFlowStatus == 'Results to be submitted') {
|
||||
isDesignFlow = true
|
||||
}
|
||||
if (isDesignFlow || isVerifyFlow) {
|
||||
this.$refs.modifyOperatorRef.getData(contentList[0],isDesignFlow, isVerifyFlow)
|
||||
} else {
|
||||
this.$message.warning(this.$t('onlyDesignComplianceConfirmationSelected'))
|
||||
}
|
||||
}
|
||||
},
|
||||
modifyOperatorForm() {
|
||||
this
|
||||
this.getList()
|
||||
},
|
||||
//收起/展开
|
||||
handleToggleSearch() {
|
||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||
@@ -2468,9 +2517,9 @@
|
||||
this.updateFlowStatusBatch()
|
||||
}
|
||||
for (let i = 0; i < this.startProcessList.length; i++) {
|
||||
if (this.startProcessList[i].type == 2){
|
||||
if (this.startProcessList[i].type == 2) {
|
||||
this.startProcessList[i].dataList.designDutyDueDate = this.formInline.designDutyDueDate
|
||||
}else if(this.startProcessList[i].type == 4){
|
||||
} else if (this.startProcessList[i].type == 4) {
|
||||
this.startProcessList[i].dataList.verifyDutyDueDate = this.formInline.verifyDutyDueDate
|
||||
}
|
||||
this.startProcess(this.startProcessList[i].dataList, this.startProcessList[i].type, this.startProcessList[i].requestsNum)
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-modal
|
||||
:title="$t('modifyOperator')"
|
||||
:width="600"
|
||||
:visible="visible"
|
||||
:confirm-loading="confirmLoading"
|
||||
:maskClosable="false"
|
||||
@ok="handleOk"
|
||||
@cancel="handleCancel"
|
||||
>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||
<a-row :gutter="24" v-if="isDesignFlow">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('designComplianceProcess')">{{ $t('designComplianceProcess') }}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi" prop="designTransferUserIdName">
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'designTransferUserId',db_field_txt:$t('designComplianceProcess')}"
|
||||
:isSingleChoice="true"
|
||||
:personneQuery="formInline"
|
||||
v-if="visible"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.designTransferUserIdName"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="isVerifyFlow">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('validationComplianceProcess')">{{ $t('validationComplianceProcess') }}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi" prop="verifyTransferUserIdName">
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'verifyTransferUserId',db_field_txt:$t('validationComplianceProcess')}"
|
||||
:isSingleChoice="true"
|
||||
:personneQuery="formInline"
|
||||
v-if="visible"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.verifyTransferUserIdName"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
</a-spin>
|
||||
</a-modal>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||
import { getAction, postAction, putAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'modifyOperator',
|
||||
components: {
|
||||
PersonnelSelection
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
formInline: {},
|
||||
rules: {},
|
||||
isDesignFlow: false,
|
||||
isVerifyFlow: false,
|
||||
selectedRowKeys: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getData(val, isDesignFlow, isVerifyFlow) {
|
||||
this.selectedRowKeys = val
|
||||
this.visible = true
|
||||
this.isDesignFlow = isDesignFlow
|
||||
this.isVerifyFlow = isVerifyFlow
|
||||
this.formInline = {}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
})
|
||||
},
|
||||
handleOk() {
|
||||
if (this.formInline.designTransferUserIdName || this.formInline.verifyTransferUserIdName) {
|
||||
let query = {
|
||||
projectLibraryId: this.$route.query.id,
|
||||
ids: this.selectedRowKeys.id,
|
||||
designTransferUserId: this.formInline.designTransferUserId,
|
||||
verifyTransferUserId: this.formInline.verifyTransferUserId
|
||||
}
|
||||
this.confirmLoading = true
|
||||
postAction('/project/projectLawsInventoryEO/compulsoryTransfer', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.confirmLoading = false
|
||||
this.visible = false
|
||||
this.$emit('modifyOperatorForm')
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.confirmLoading = false
|
||||
this.visible = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning(this.$t('oneThePersonnelMustBeSelected'))
|
||||
}
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
},
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.formInline[value] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
width: 124px;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-right: 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 150px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.title-text-text {
|
||||
margin-top: 9px;
|
||||
}
|
||||
|
||||
.formAdd {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user