|
@@ -43,44 +43,21 @@
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="序号" align="center" type="index" />
|
|
|
- <el-table-column label="调动人员姓名" align="center" prop="cName" />
|
|
|
- <el-table-column label="调动类型" align="center" prop="transferId">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag
|
|
|
- :options="dict.type.sys_transferId"
|
|
|
- :value="scope.row.transferId"
|
|
|
- />
|
|
|
- </template>
|
|
|
+ <el-table-column label="人员姓名" align="center" prop="cName" />
|
|
|
+ <el-table-column label="部职别" align="center" prop="filed2">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="入伍时间" align="center" prop="filed1">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="调动日期"
|
|
|
+ label="调出日期"
|
|
|
align="center"
|
|
|
- prop="transferDate"
|
|
|
+ prop="createtime"
|
|
|
width="180"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.transferDate, "{y}-{m}-{d}") }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.createtime, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="调动后军衔" align="center" prop="militaryRank2">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag
|
|
|
- :options="dict.type.sys_user_rank"
|
|
|
- :value="scope.row.militaryRank2"
|
|
|
- />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="调动后职务" align="center" prop="post2">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.post_Level" :value="scope.row.post2" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="调动后单位"
|
|
|
- align="center"
|
|
|
- prop="unit2"
|
|
|
- :formatter="unit2Format"
|
|
|
- />
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
align="center"
|
|
@@ -88,15 +65,15 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- size="btu"
|
|
|
+ size="btk"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['peopleManage:transfer:edit']"
|
|
|
- >修改</el-button
|
|
|
+ v-hasPermi="['peopleManage:recall:edit']"
|
|
|
+ >审核</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
size="btd"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['peopleManage:transfer:remove']"
|
|
|
+ v-hasPermi="['peopleManage:recall:remove']"
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -119,6 +96,7 @@
|
|
|
append-to-body
|
|
|
:close-on-click-modal="false"
|
|
|
custom-class="box1"
|
|
|
+ @close="cancel"
|
|
|
>
|
|
|
<el-form
|
|
|
ref="form"
|
|
@@ -148,19 +126,21 @@
|
|
|
<tr align="center" class="tr">
|
|
|
<td width="220" height="40">调出人员</td>
|
|
|
<td width="220" height="56">
|
|
|
- <el-form-item prop="messOfficer">
|
|
|
+ <el-form-item prop="cName">
|
|
|
<el-select
|
|
|
- v-model="form.messOfficer"
|
|
|
+ v-model="form.cName"
|
|
|
placeholder="请选择人员"
|
|
|
clearable
|
|
|
filterable
|
|
|
+ :disabled="que"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in renYuan"
|
|
|
:key="item.id"
|
|
|
:label="item.name"
|
|
|
- :value="item.id"
|
|
|
+ :value="item.name"
|
|
|
class="input_xiala"
|
|
|
+ @click.native="ren(item)"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -174,7 +154,18 @@
|
|
|
>
|
|
|
<td width="220" height="40">{{ item.name }}</td>
|
|
|
<td width="220" height="40">
|
|
|
- <el-button type="bde" style="margin: 9px 0"
|
|
|
+ <el-button
|
|
|
+ type="bde"
|
|
|
+ style="margin: 9px 0"
|
|
|
+ :disabled="true"
|
|
|
+ v-if="item.num == 1"
|
|
|
+ >已同意</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="bde"
|
|
|
+ style="margin: 9px 0"
|
|
|
+ @click="shenHe(item.type)"
|
|
|
+ v-else
|
|
|
>审 核</el-button
|
|
|
>
|
|
|
</td>
|
|
@@ -207,7 +198,18 @@
|
|
|
>
|
|
|
<td width="220" height="40">{{ item.name }}</td>
|
|
|
<td width="220" height="40">
|
|
|
- <el-button type="bde" style="margin: 9px 0"
|
|
|
+ <el-button
|
|
|
+ type="bde"
|
|
|
+ style="margin: 9px 0"
|
|
|
+ :disabled="true"
|
|
|
+ v-if="item.num == 1"
|
|
|
+ >已同意</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="bde"
|
|
|
+ style="margin: 9px 0"
|
|
|
+ @click="shenHe1(item.type)"
|
|
|
+ v-else
|
|
|
>审 核</el-button
|
|
|
>
|
|
|
</td>
|
|
@@ -216,45 +218,26 @@
|
|
|
</table>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm" v-if="que1"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
<el-button @click="cancel" size="btn">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
import {
|
|
|
- listTransfer,
|
|
|
- getTransfer,
|
|
|
- delTransfer,
|
|
|
- addTransfer,
|
|
|
- updateTransfer,
|
|
|
- exportTransfer,
|
|
|
- listPeople,
|
|
|
- getPeople,
|
|
|
- getDept,
|
|
|
-} from "@/api/peopleManage/transfer";
|
|
|
+ recallList,
|
|
|
+ recall,
|
|
|
+ recallDell,
|
|
|
+ getAuthorization,
|
|
|
+ getAuthorizations,
|
|
|
+} from "@/api/peopleManage/seconded";
|
|
|
import { getAll } from "@/api/grassrootsregistration/bdglmeeting";
|
|
|
|
|
|
export default {
|
|
|
name: "Transfer",
|
|
|
- dicts: [
|
|
|
- "sys_user_sex",
|
|
|
- "post_Level",
|
|
|
- "sys_user_rank",
|
|
|
- "personnel_type",
|
|
|
- "Degree_level",
|
|
|
- "degree",
|
|
|
- "Caucus",
|
|
|
- "marryList",
|
|
|
- "sys_yw",
|
|
|
- "healthy",
|
|
|
- "bloodType",
|
|
|
- "sys_yes_no",
|
|
|
- "sys_yes_no",
|
|
|
- "sys_transferId",
|
|
|
- ],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -424,74 +407,96 @@ export default {
|
|
|
type: "zw",
|
|
|
},
|
|
|
],
|
|
|
+ form1: {},
|
|
|
+ // 审核确定按钮的显示与隐藏
|
|
|
+ que: false,
|
|
|
+ que1: true,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
- //调动人员对象
|
|
|
- listPeople().then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.peopleIds = res.rows;
|
|
|
- }
|
|
|
- });
|
|
|
- //调动类型
|
|
|
- this.getDicts("sys_transferId").then((response) => {
|
|
|
- this.transferIds = response.data;
|
|
|
- });
|
|
|
- //职务层级
|
|
|
- this.getDicts("post_Level").then((response) => {
|
|
|
- this.postIds = response.data;
|
|
|
- });
|
|
|
- //军衔
|
|
|
- this.getDicts("sys_user_rank").then((response) => {
|
|
|
- this.rankIds = response.data;
|
|
|
- });
|
|
|
- //部门数据
|
|
|
- getDept().then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.unitId = res.data;
|
|
|
- }
|
|
|
- });
|
|
|
this.getQuanR();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //审核左面
|
|
|
+ shenHe(value) {
|
|
|
+ this.form.type = value;
|
|
|
+ this.$confirm("是否通过审核", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ console.log(this.form);
|
|
|
+ getAuthorization(this.form).then((res) => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "审核成功!",
|
|
|
+ });
|
|
|
+ this.open = false;
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "已取消审核",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 审核右面
|
|
|
+ shenHe1(value) {
|
|
|
+ this.form.type = value;
|
|
|
+ this.$confirm("是否通过审核", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ getAuthorization(this.form).then((res) => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "审核成功!",
|
|
|
+ });
|
|
|
+ this.open = false;
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "已取消审核",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取全部人员
|
|
|
getQuanR() {
|
|
|
getAll().then((res) => {
|
|
|
this.renYuan = res.data;
|
|
|
});
|
|
|
},
|
|
|
- // 获取部门列表
|
|
|
- getBuMen() {
|
|
|
- //部门数据
|
|
|
- getDept().then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.unitId = res.data;
|
|
|
- }
|
|
|
- });
|
|
|
+ // 获取人员信息
|
|
|
+ ren(value) {
|
|
|
+ this.form.filed1 = value.enlistDate;
|
|
|
+ this.form.filed2 = value.duty;
|
|
|
+ this.form.peopleId = value.id;
|
|
|
},
|
|
|
/** 查询调动管理列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listTransfer(this.queryParams).then((response) => {
|
|
|
+ recallList(this.queryParams).then((response) => {
|
|
|
this.transferList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- //单位翻译
|
|
|
- unit2Format(row, column) {
|
|
|
- var deptName = "";
|
|
|
- this.unitId.map((item) => {
|
|
|
- if (item.deptId == row.unit2) {
|
|
|
- deptName = item.deptName;
|
|
|
- }
|
|
|
- });
|
|
|
- return deptName;
|
|
|
- },
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
|
+ this.shenList.forEach((item) => {
|
|
|
+ item.num = 0;
|
|
|
+ });
|
|
|
+ this.shenListRight.forEach((item) => {
|
|
|
+ item.num = 0;
|
|
|
+ });
|
|
|
this.reset();
|
|
|
},
|
|
|
// 表单重置
|
|
@@ -499,23 +504,9 @@ export default {
|
|
|
this.form = {
|
|
|
id: null,
|
|
|
peopleId: null,
|
|
|
- transferId: null,
|
|
|
- transferDate: null,
|
|
|
- transferTake: null,
|
|
|
- militaryRank1: null,
|
|
|
- militaryRank2: null,
|
|
|
- post1: null,
|
|
|
- post2: null,
|
|
|
- unit1: null,
|
|
|
- unit2: null,
|
|
|
- aduty: null,
|
|
|
- commandNumber: null,
|
|
|
- reason: null,
|
|
|
- remark: null,
|
|
|
- field1: null,
|
|
|
- createtime: null,
|
|
|
- updatetime: null,
|
|
|
+ filed1: null,
|
|
|
cName: null,
|
|
|
+ filed1: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -540,17 +531,42 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
+ this.que = false;
|
|
|
+ this.que1 = true;
|
|
|
+ this.shenList.forEach((item) => {
|
|
|
+ item.num = 0;
|
|
|
+ });
|
|
|
+ this.shenListRight.forEach((item) => {
|
|
|
+ item.num = 0;
|
|
|
+ });
|
|
|
this.title = "添加调动管理";
|
|
|
},
|
|
|
- /** 修改按钮操作 */
|
|
|
+ /** 审核按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
- this.reset();
|
|
|
- this.getBuMen();
|
|
|
- const id = row.id || this.ids;
|
|
|
- getTransfer(id).then((response) => {
|
|
|
- this.form = response.data;
|
|
|
+ // 赋值名字
|
|
|
+ this.form = row;
|
|
|
+ this.form1.id = row.id;
|
|
|
+ this.form1.peopleId = row.peopleId;
|
|
|
+ getAuthorizations(this.form1).then((res) => {
|
|
|
+ // 循环左面的列表
|
|
|
+ res.rows.forEach((element) => {
|
|
|
+ this.shenList.forEach((item) => {
|
|
|
+ if (element.bdglPeopleRecallAuditlog.type == item.type) {
|
|
|
+ item.num = 1;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ res.rows.forEach((element) => {
|
|
|
+ this.shenListRight.forEach((item) => {
|
|
|
+ if (element.bdglPeopleRecallAuditlog.type == item.type) {
|
|
|
+ item.num = 1;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
this.open = true;
|
|
|
- this.title = "修改调动管理";
|
|
|
+ this.title = "审批";
|
|
|
+ this.que = true;
|
|
|
+ this.que1 = false;
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
@@ -558,16 +574,9 @@ export default {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
|
- this.form.cName = this.$refs["peopleId"].selectedLabel;
|
|
|
- updateTransfer(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
} else {
|
|
|
- this.form.cName = this.$refs["peopleId"].selectedLabel;
|
|
|
- addTransfer(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
+ recall(this.form).then((res) => {
|
|
|
+ this.$modal.msgSuccess("调出成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
@@ -577,11 +586,12 @@ export default {
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
+ console.log(row);
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal
|
|
|
- .confirm("是否确认删除调动管理的数据项?")
|
|
|
+ .confirm("是否确认删除?")
|
|
|
.then(function () {
|
|
|
- return delTransfer(ids);
|
|
|
+ return recallDell(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.getList();
|
|
@@ -589,32 +599,6 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
- /** 导出按钮操作 */
|
|
|
- handleExport() {
|
|
|
- const queryParams = this.queryParams;
|
|
|
- this.$modal
|
|
|
- .confirm("是否确认导出所有调动管理数据项?")
|
|
|
- .then(() => {
|
|
|
- this.exportLoading = true;
|
|
|
- return exportTransfer(queryParams);
|
|
|
- })
|
|
|
- .then((response) => {
|
|
|
- this.$download.name(response.msg);
|
|
|
- this.exportLoading = false;
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
- },
|
|
|
- //获取人员基本信息
|
|
|
- //获取人员基本信息
|
|
|
- peopleIdfun() {
|
|
|
- getPeople(this.form.peopleId).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.form.militaryRank1 = res.data.nowMilitaryRank;
|
|
|
- this.form.post1 = res.data.postId + "";
|
|
|
- this.form.unit1 = res.data.deptId;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -698,11 +682,24 @@ export default {
|
|
|
::v-deep .box1 .el-form-item {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
-::v-deep .box1 .el-input__inner{
|
|
|
- border: transparent !important;
|
|
|
- width: 200px;
|
|
|
- height: 30px;
|
|
|
- text-align: center;
|
|
|
+::v-deep .box1 .el-input__inner {
|
|
|
+ border: transparent !important;
|
|
|
+ width: 200px;
|
|
|
+ height: 30px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+::v-deep .el-dialog__body {
|
|
|
+ padding: 30px 74px;
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep .el-button.is-disabled,
|
|
|
+.el-button.is-disabled:hover,
|
|
|
+.el-button.is-disabled:focus {
|
|
|
+ color: #fff;
|
|
|
+ cursor: not-allowed;
|
|
|
+ background-image: none;
|
|
|
+ background-color: #13ce66;
|
|
|
+ border-color: #13ce66;
|
|
|
}
|
|
|
</style>
|
|
|
|