|
@@ -691,6 +691,25 @@
|
|
|
<el-button type="primary" @click="confirmInactiveWay" >{{ $t('btn.submit') }}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="离职信息转移" :visible.sync="projectReviewerSelectDialog" width="500px" >
|
|
|
+ <p>*该用户在项目中担任复审人,请选择其他人接手</p>
|
|
|
+ <el-form :model="userInActiveForm" label-width="120px">
|
|
|
+ <!-- 主要负责人 -->
|
|
|
+ <el-form-item label="选择新的复审人">
|
|
|
+ <el-select v-model="userInActiveForm.targetAuditorId" filterable v-if="user.userNameNeedTranslate != '1'" clearable :placeholder="$t('defaultText.pleaseChoose')" style="width: 200px">
|
|
|
+ <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
|
|
|
+ <span style="float: left">{{ item.name }}</span>
|
|
|
+ <span style="float: right; color: #8492a6; font-size: 13px">{{ item.jobNumber }}</span>
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <selectCat :size="'medium'" :filterable="true" :clearable="true" :widthStr="'360'" v-if="user.userNameNeedTranslate == '1'" :subject="users" :subjectId="userInActiveForm.targetAuditorId" :distinction="'30'" @selectCal="selectCal"></selectCat>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="projectReviewerSelectDialog = false">{{ $t('btn.cancel') }}</el-button>
|
|
|
+ <el-button type="primary" @click="confirmTransferReviwer" >{{ $t('btn.submit') }}</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
<!-- 管理专业证书 -->
|
|
|
<el-dialog :title="$t('professionalCertificate inManagement')" :visible.sync="managementDiolog" width="500px" :before-close="handleClose">
|
|
|
<div>
|
|
@@ -991,6 +1010,7 @@ export default {
|
|
|
return {
|
|
|
isPermanent: true,
|
|
|
reportAuditorSelectDialog: false,
|
|
|
+ projectReviewerSelectDialog: false,
|
|
|
userInActiveForm:{way:0,targetAuditorId:null},
|
|
|
isExporting: false,
|
|
|
isSyncContact: false,
|
|
@@ -2317,7 +2337,11 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.getUser();
|
|
|
- } else {
|
|
|
+ } else if (res.code == 'project') {
|
|
|
+ //项目复核人需要转移为其他人
|
|
|
+ this.userInActiveForm.userId = this.deactiveUser.id;
|
|
|
+ this.projectReviewerSelectDialog = true;
|
|
|
+ }else {
|
|
|
//新的模式
|
|
|
this.userInActiveForm.userId = this.deactiveUser.id;
|
|
|
this.reportAuditorSelectDialog = true;
|
|
@@ -2331,7 +2355,34 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
-
|
|
|
+ confirmTransferReviwer() {
|
|
|
+ var url = '/project/transferProjectReviwer'
|
|
|
+ this.http.post(
|
|
|
+ url,
|
|
|
+ this.userInActiveForm,
|
|
|
+ (res) => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.$message({
|
|
|
+ message: '复核人已转移,请继续停用',
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.projectReviewerSelectDialog = false;
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ (error) => {
|
|
|
+ this.listLoading = false;
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
confirmInactiveWay() {
|
|
|
this.userInActiveForm.isPermanent = this.isPermanent;
|
|
|
var url = this.userInActiveForm.way?'/report/transferReportAuditor':'/report/denyByCheckId'
|