Commit c065bbdc authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents be973bfd e065a875
...@@ -689,6 +689,10 @@ export default { ...@@ -689,6 +689,10 @@ export default {
list: list:
this.$route.path.indexOf("/attendance/stat/list") == 0 this.$route.path.indexOf("/attendance/stat/list") == 0
? "/attendance/stat/listExt" ? "/attendance/stat/listExt"
: this.$route.path.indexOf("/window/perform/list") == 0
? "/check/window/perform/list"
: this.$route.path.indexOf("/window/workman/perform/list") == 0
? "/check/window/workman/perform/list"
: this.$route.path, : this.$route.path,
edit: this.$route.path.replace("/list", "/edit"), edit: this.$route.path.replace("/list", "/edit"),
save: this.$route.path.replace("/list", "/save"), save: this.$route.path.replace("/list", "/save"),
......
...@@ -114,6 +114,8 @@ const router = new Router({ ...@@ -114,6 +114,8 @@ const router = new Router({
...restBuilder("perform/gowork/record", "perform/gowork/record"), //办件绩效记录信息 ...restBuilder("perform/gowork/record", "perform/gowork/record"), //办件绩效记录信息
...restBuilder("perform/effect/record", "perform/effect/record"), //效能绩效记录信息 ...restBuilder("perform/effect/record", "perform/effect/record"), //效能绩效记录信息
...restBuilder("perform/other/record", "perform/other/record"), //其它绩效记录信息 ...restBuilder("perform/other/record", "perform/other/record"), //其它绩效记录信息
...restBuilder("window/perform", "window/perform"), //自评绩效核查信息(窗口)
...restBuilder("window/workman/perform", "window/workman/perform"), //自评绩效核查信息(工作人员)
...restBuilder("check/attend/record", "check/attend/record"), //考勤绩效核查信息 ...restBuilder("check/attend/record", "check/attend/record"), //考勤绩效核查信息
...restBuilder("check/review/record", "check/review/record"), //评价绩效核查信息 ...restBuilder("check/review/record", "check/review/record"), //评价绩效核查信息
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<span>{{ form.ownerName }}</span> <span>{{ form.ownerName }}</span>
</div> </div>
<div class="text_box"> <div class="text_box">
<span>登记年月:</span> <span style="width: 120px;">登记年月:</span>
<span>{{ <span>{{
`${form.year ? form.year : "--"}-${ `${form.year ? form.year : "--"}-${
form.month form.month
...@@ -26,44 +26,54 @@ ...@@ -26,44 +26,54 @@
}}</span> }}</span>
</div> </div>
<div class="text_box"> <div class="text_box">
<span>窗口编号:</span> <span style="width: 140px;">窗口编号:</span>
<span>{{ form.windowName }}</span> <span>{{ form.windowCode ? form.windowCode : "--" }}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>工作总结:</span> <span style="width: 90px;">工作总结:</span>
<span>{{ form.workSummary }}</span> <span style="display: inline-block;">{{
form.workSummary ? form.workSummary : "--"
}}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>加分申报:</span> <span style="width: 90px;">加分申报:</span>
<span>{{ form.bonusReport }}</span> <span>{{ form.bonusReport ? form.bonusReport : "--" }}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>加分佐证材料:</span> <span style="width: 110px;">加分佐证材料:</span>
<span>{{ form.bonusReport }}</span> <el-link
v-if="form.proofUrl"
:href="baseUrl + form.proofUrl"
target="_blank"
type="primary"
>
{{ form.proof || "--" }}</el-link
>
<span v-else> {{ form.proof || "--" }}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>扣分情况:</span> <span style="width: 130px;">扣分情况:</span>
<span>{{ form.deductStatement }}</span> <span>{{ form.deductStatement ? form.deductStatement : "--" }}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>扣分分值:</span> <span>扣分分值:</span>
<span>{{ form.deductScore }}</span> <span>{{ form.deductScore ? form.deductScore : "--" }}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>自评得分:</span> <span style="width: 80px;">自评得分:</span>
<span style="width: 820px;" <span style="width: 700px;"
><el-table :data="tableData" border style="width: 100%"> ><el-table :data="tableData" border style="width: 100%">
<el-table-column <el-table-column
prop="discipline" prop="discipline"
...@@ -89,14 +99,22 @@ ...@@ -89,14 +99,22 @@
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>备注:</span> <span style="width: 90px;">备注:</span>
<span>{{ form.remark }}</span> <span>{{ form.remark ? form.remark : "--" }}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>附件材料:</span> <span style="width: 70px;">附件材料:</span>
<span>{{ form.annex }}</span> <el-link
v-if="form.annexUrl"
:href="baseUrl + form.annexUrl"
target="_blank"
type="primary"
>
{{ form.annex || "--" }}</el-link
>
<span v-else> {{ form.annex || "--" }}</span>
</div> </div>
</div> </div>
<div class="hecha_box"> <div class="hecha_box">
...@@ -355,6 +373,7 @@ export default { ...@@ -355,6 +373,7 @@ export default {
}, },
data() { data() {
return { return {
baseUrl: process.env.VUE_APP_API_BASE_URL + "/",
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 弹出层标题 // 弹出层标题
...@@ -379,7 +398,7 @@ export default { ...@@ -379,7 +398,7 @@ export default {
async edit(row) { async edit(row) {
// this.reset(); // this.reset();
// this.query = { id: row.id }; // this.query = { id: row.id };
this.urls.currUrl = "check/window/perform/save"; this.urls.saveUrl = "check/window/perform/examine";
// this.getData(); // this.getData();
// this.pageInfo.type = "edit"; // this.pageInfo.type = "edit";
// this.title = "修改窗口考核核查"; // this.title = "修改窗口考核核查";
...@@ -389,6 +408,7 @@ export default { ...@@ -389,6 +408,7 @@ export default {
await this.$get("/window/perform/info", { id: row.id }).then((res) => { await this.$get("/window/perform/info", { id: row.id }).then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
this.form.id = row.id;
this.dict = res.dict; this.dict = res.dict;
} else { } else {
this.form = row; this.form = row;
...@@ -573,12 +593,12 @@ export default { ...@@ -573,12 +593,12 @@ export default {
.text_box { .text_box {
display: flex; display: flex;
span { span {
text-align: end; width: 160px;
width: 100px;
display: inline-block; display: inline-block;
} }
span:nth-child(2) { span:nth-child(2) {
text-align: start; text-align: start;
width: 100%;
} }
} }
} }
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
label: "操作", label: "操作",
width: 240, width: 240,
formatter: (row) => { formatter: (row) => {
return ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
noAdd noAdd
noDel noDel
...@@ -157,6 +157,17 @@ export default { ...@@ -157,6 +157,17 @@ export default {
onView={this.toView} onView={this.toView}
onDel={this.toDel} onDel={this.toDel}
/> />
) : (
<table-buttons
noAdd
noDel
noEdit
text={"自评核查"}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
); );
}, },
}, },
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>窗口负责人:</span> <span>窗口负责人:</span>
<span>{{ form.ownerName || '--'}}</span> <span>{{ form.ownerName || "--" }}</span>
</div> </div>
<div class="text_box"> <div class="text_box">
<span>登记年月:</span> <span>登记年月:</span>
...@@ -28,8 +28,12 @@ ...@@ -28,8 +28,12 @@
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span style="width: 100%;" <div style="width: 100%;">
><el-table :data="tableData" border style="width: 100%"> <el-table
:data="form.windowWorkmanPerformDetailList"
border
style="width: 100%"
>
<el-table-column type="index" label="序号" width="50"> <el-table-column type="index" label="序号" width="50">
</el-table-column> </el-table-column>
<el-table-column prop="staffName" label="姓名" align="center"> <el-table-column prop="staffName" label="姓名" align="center">
...@@ -75,31 +79,46 @@ ...@@ -75,31 +79,46 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="selfLevel" prop="examineLevel"
label="建议考核等级" label="建议考核等级"
align="center" align="center"
width="200"
> >
<template slot-scope="scope">
{{ dict.examineLevel[scope.row.examineLevel] }}
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</span> </div>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>备注:</span> <span>备注:</span>
<span>{{ form.remark || '--' }}</span> <span>{{ form.remark || "--" }}</span>
</div> </div>
</div> </div>
<div class="text_line"> <div class="text_line">
<div class="text_box"> <div class="text_box">
<span>附件材料:</span> <span>附件材料:</span>
<span>{{ form.annex || '--' }}</span> <el-link
v-if="form.annexUrl"
:href="baseUrl + form.annexUrl"
target="_blank"
type="primary"
>
{{ form.annex || "--" }}</el-link
>
<span v-else> {{ form.annex || "--" }}</span>
</div> </div>
</div> </div>
<div class="hecha_box"> <div class="hecha_box">
<div class="hecha_title"> <div class="hecha_title">
<span class="line"></span> <span class="line"></span>
<span style="font-size: 18px;font: bold;margin-bottom: 20px;color: #409eff;">核查情况</span> <span
style="font-size: 18px;font: bold;margin-bottom: 20px;color: #409eff;"
>核查情况</span
>
</div> </div>
<div class="hecha_content"> <div class="hecha_content">
<el-form ref="form" :model="form" :rules="rules" label-width="180px"> <el-form ref="form" :model="form" :rules="rules" label-width="180px">
...@@ -294,6 +313,7 @@ export default { ...@@ -294,6 +313,7 @@ export default {
// 表单校验 // 表单校验
rules: {}, rules: {},
tableData: [], tableData: [],
baseUrl: process.env.VUE_APP_API_BASE_URL + "/",
}; };
}, },
...@@ -306,76 +326,92 @@ export default { ...@@ -306,76 +326,92 @@ export default {
async edit(row) { async edit(row) {
// this.reset(); // this.reset();
// this.query = { id: row.id }; // this.query = { id: row.id };
this.urls.currUrl = "check/window/workman/perform/save"; this.urls.saveUrl = "check/window/workman/perform/examine";
// this.getData(); // this.getData();
// this.pageInfo.type = "edit"; // this.pageInfo.type = "edit";
// this.title = "修改窗口人员考核汇总核查"; // this.title = "修改窗口人员考核汇总核查";
this.form = row; this.form = row;
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/check/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.id, id: row.recordId,
}).then((res) => { }).then((res) => {
console.log(res);
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
this.form.id = row.id;
this.dict = res.dict; this.dict = res.dict;
} else { } else {
this.form = row; this.form = row;
} }
for (let key in this.form) {
key == "fillDate"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "createTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "deductTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "updateTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "checkTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "reviewTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: "";
}
this.$get("/window/workman/perform/detail/info", { id: row.id }).then(
(response) => {
if (response.code == 1) {
this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict };
}
}
);
this.$get("/window/workman/perform/info", { id: row.id }).then(
(responses) => {
if (responses.code == 1) {
this.form = { ...this.form, ...responses.data };
this.dict = { ...this.dict, ...responses.dict };
}
}
);
this.tableData = [];
this.tableData.push({
staffName: this.form["staffName"] ? this.form["staffName"] : "--",
discipline: this.form["discipline"] ? this.form["discipline"] : "--",
specification: this.form["specification"]
? this.form["specification"]
: "--",
management: this.form["management"] ? this.form["management"] : "--",
evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--",
efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
examineLevel: this.form["examineLevel"]
? this.dict["examineLevel"]
: "--",
});
this.form.view = "修改"; this.form.view = "修改";
this.open = true; this.open = true;
}); });
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "窗口人员自评绩效核查"; this.title = "窗口人员自评绩效核查";
// await this.$get("/check/window/workman/perform/info", {
// id: row.id,
// }).then((res) => {
// if (res.code == 1) {
// this.form = res.data;
// this.dict = res.dict;
// } else {
// this.form = row;
// }
// for (let key in this.form) {
// key == "fillDate"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "createTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "deductTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "updateTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "checkTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "reviewTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : "";
// }
// this.$get("/window/workman/perform/detail/info", { id: row.id }).then(
// (response) => {
// if (response.code == 1) {
// this.form = { ...this.form, ...response.data };
// this.dict = { ...this.dict, ...response.dict };
// }
// }
// );
// this.$get("/window/workman/perform/info", { id: row.id }).then(
// (responses) => {
// if (responses.code == 1) {
// this.form = { ...this.form, ...responses.data };
// this.dict = { ...this.dict, ...responses.dict };
// }
// }
// );
// this.tableData = [];
// this.tableData.push({
// staffName: this.form["staffName"] ? this.form["staffName"] : "--",
// discipline: this.form["discipline"] ? this.form["discipline"] : "--",
// specification: this.form["specification"]
// ? this.form["specification"]
// : "--",
// management: this.form["management"] ? this.form["management"] : "--",
// evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--",
// efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--",
// bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
// sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
// examineLevel: this.form["examineLevel"]
// ? this.dict["examineLevel"]
// : "--",
// });
// this.form.view = "修改";
// this.open = true;
// });
// this.pageInfo.type = "edit";
// this.title = "窗口人员自评绩效核查";
}, },
/** 新增 */ /** 新增 */
add(row) { add(row) {
...@@ -393,72 +429,100 @@ export default { ...@@ -393,72 +429,100 @@ export default {
// this.getData(); // this.getData();
// this.pageInfo.type = "view"; // this.pageInfo.type = "view";
// this.title = "窗口人员考核汇总核查详细"; // this.title = "窗口人员考核汇总核查详细";
this.form = row; this.form = row;
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/check/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.id, id: row.recordId,
}).then((res) => { }).then((res) => {
console.log(res);
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
this.form.id = row.id;
this.dict = res.dict; this.dict = res.dict;
} else { } else {
this.form = row; this.form = row;
} }
for (let key in this.form) { this.form.view = "查看";
key == "fillDate" this.open = true;
? (this.form[key] = timestampToTime(this.form[key], 6)) this.$get("/check/window/workman/perform/info", { id: row.id }).then(
: key == "createTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "deductTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "updateTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "checkTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "reviewTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: "";
}
this.$get("/window/workman/perform/detail/info", { id: row.id }).then(
(response) => { (response) => {
if (response.code == 1) { if (response.code == 1) {
this.form = { ...this.form, ...response.data }; this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict }; this.dict = { ...this.dict, ...response.dict };
} }
} }
); );
this.$get("/window/workman/perform/info", { id: row.id }).then(
(responses) => {
if (responses.code == 1) {
this.form = { ...this.form, ...responses.data };
this.dict = { ...this.dict, ...responses.dict };
}
}
);
this.tableData = [];
this.tableData.push({
staffName: this.form["staffName"] ? this.form["staffName"] : "--",
discipline: this.form["discipline"] ? this.form["discipline"] : "--",
specification: this.form["specification"]
? this.form["specification"]
: "--",
management: this.form["management"] ? this.form["management"] : "--",
evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--",
efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
examineLevel: this.form["examineLevel"]
? this.dict["examineLevel"]
: "--",
});
this.form.view = "查看";
this.open = true;
}); });
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "窗口人员自评绩效核查信息详细"; this.title = "窗口人员自评绩效核查信息详细";
// this.form = row;
// this.reset();
// this.query = { id: row.id };
// await this.$get("/check/window/workman/perform/info", {
// id: row.id,
// }).then((res) => {
// if (res.code == 1) {
// this.form = res.data;
// this.dict = res.dict;
// } else {
// this.form = row;
// }
// for (let key in this.form) {
// key == "fillDate"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "createTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "deductTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "updateTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "checkTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "reviewTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : "";
// }
// this.$get("/window/workman/perform/detail/info", { id: row.id }).then(
// (response) => {
// if (response.code == 1) {
// this.form = { ...this.form, ...response.data };
// this.dict = { ...this.dict, ...response.dict };
// }
// }
// );
// this.$get("/window/workman/perform/info", { id: row.id }).then(
// (responses) => {
// if (responses.code == 1) {
// this.form = { ...this.form, ...responses.data };
// this.dict = { ...this.dict, ...responses.dict };
// }
// }
// );
// this.tableData = [];
// this.tableData.push({
// staffName: this.form["staffName"] ? this.form["staffName"] : "--",
// discipline: this.form["discipline"] ? this.form["discipline"] : "--",
// specification: this.form["specification"]
// ? this.form["specification"]
// : "--",
// management: this.form["management"] ? this.form["management"] : "--",
// evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--",
// efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--",
// bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
// sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
// examineLevel: this.form["examineLevel"]
// ? this.dict["examineLevel"]
// : "--",
// });
// this.form.view = "查看";
// this.open = true;
// });
// this.pageInfo.type = "view";
// this.title = "窗口人员自评绩效核查信息详细";
}, },
/**取消按钮 */ /**取消按钮 */
cancel() { cancel() {
......
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
label: "操作", label: "操作",
width: 240, width: 240,
formatter: (row) => { formatter: (row) => {
return ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
noAdd noAdd
noDel noDel
...@@ -165,6 +165,17 @@ export default { ...@@ -165,6 +165,17 @@ export default {
onView={this.toView} onView={this.toView}
onDel={this.toDel} onDel={this.toDel}
/> />
) : (
<table-buttons
noAdd
noDel
noEdit
text={"自评核查"}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
); );
}, },
}, },
......
<template>
<!-- 弹出框表单 -->
<el-drawer
:title="title"
:visible.sync="open"
:direction="direction"
:destroy-on-close="true"
size="50%"
>
<div class="content_box">
<div class="text_line">
<div class="text_box">
<span>窗口负责人:</span>
<span>{{ form.ownerName }}</span>
</div>
<div class="text_box">
<span style="width: 120px;">登记年月:</span>
<span>{{
`${form.year ? form.year : "--"}-${
form.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(form.month)
? "0" + form.month
: form.month
: "--"
}`
}}</span>
</div>
<div class="text_box">
<span style="width: 140px;">窗口编号:</span>
<span>{{ form.windowCode ? form.windowCode : "--" }}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span style="width: 140px;">工作总结:</span>
<span style="display: inline-block;">{{
form.workSummary ? form.workSummary : "--"
}}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span style="width: 140px;">加分申报:</span>
<span>{{ form.bonusReport ? form.bonusReport : "--" }}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span style="width: 110px;">加分佐证材料:</span>
<el-link
v-if="form.proofUrl"
:href="baseUrl + form.proofUrl"
target="_blank"
type="primary"
>
{{ form.proof || "--" }}</el-link
>
<span v-else> {{ form.proof || "--" }}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span style="width: 140px;">扣分情况:</span>
<span>{{ form.deductStatement ? form.deductStatement : "--" }}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span>扣分分值:</span>
<span>{{ form.deductScore ? form.deductScore : "--" }}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span style="width: 80px;">自评得分:</span>
<span style="width: 700px;"
><el-table :data="tableData" border style="width: 100%">
<el-table-column
prop="discipline"
label="工作纪律"
align="center"
>
</el-table-column>
<el-table-column
prop="specification"
label="服务规范"
align="center"
>
</el-table-column>
<el-table-column prop="bonusScore" label="加分" align="center">
</el-table-column>
<el-table-column prop="sumScore" label="合计得分" align="center">
</el-table-column>
<el-table-column prop="selfLevel" label="自评等级" align="center">
</el-table-column>
</el-table>
</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span style="width: 90px;">备注:</span>
<span>{{ form.remark ? form.remark : "--" }}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span style="width: 70px;">附件材料:</span>
<el-link
v-if="form.annexUrl"
:href="baseUrl + form.annexUrl"
target="_blank"
type="primary"
>
{{ form.annex || "--" }}</el-link
>
<span v-else> {{ form.annex || "--" }}</span>
</div>
</div>
<div class="hecha_box" v-if="false">
<div class="hecha_title">
<span class="line"></span>
<span>核查情况</span>
</div>
<div class="hecha_content">
<el-form ref="form" :model="form" :rules="rules" label-width="180px">
<el-row>
<el-form-item label="政务服务管理科评荐意见:" prop="checkResult">
<div
v-if="form.view == '查看'"
style="display: flex; justify-content: space-between;"
>
<span class="left">
{{ form.manageCheckResult }}
</span>
<span class="right">
{{ form.manageCheckPerson }}
{{ functionTime(form.manageCheckTime) }} 核查
</span>
</div>
<el-radio-group v-model="form.manageCheckResult" v-else>
<el-radio
v-for="(val, i) in dict.manageCheckResult"
:key="i"
:label="val"
>{{ val }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item label="管理组核查说明:" prop="manageCheckDesc">
<el-input
v-model="form.manageCheckDesc"
type="textarea"
placeholder="请填写说明"
:disabled="form.view == '查看'"
></el-input>
</el-form-item>
<el-form-item label="领导小组审定意见:" prop="leaderCheckResult">
<div
v-if="form.view == '查看'"
style="display: flex; justify-content: space-between;"
>
<span class="left">
{{ form.leaderCheckResult }}
</span>
<span class="right">
{{ form.leaderCheckPerson }}
{{ functionTime(form.leaderCheckTime) }} 核查
</span>
</div>
<el-radio-group v-model="form.leaderCheckResult" v-else>
<el-radio
v-for="(val, i) in dict.leaderCheckResult"
:key="i"
:label="val"
>{{ val }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item label="领导小组核查说明:" prop="leaderCheckDesc">
<el-input
v-model="form.leaderCheckDesc"
type="textarea"
placeholder="请填写说明"
:disabled="form.view == '查看'"
></el-input>
</el-form-item>
</el-row>
<form-buttons
@submit="submitForm"
v-if="pageInfo.type != 'view'"
noCancelBtn
/>
</el-form>
</div>
</div>
</div>
<!-- <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<Field
label="记录ID"
prop="recordId"
v-model="form.recordId"
placeholder="请输入记录ID"
/>
<Field
label="考核年度"
prop="year"
v-model="form.year"
placeholder="请输入考核年度"
/>
<Field
label="考核月份"
prop="month"
v-model="form.month"
placeholder="请输入考核月份"
/>
<Field
label="窗口ID"
prop="windowId"
v-model="form.windowId"
placeholder="请输入窗口ID"
/>
<Field
label="窗口名称"
prop="windowName"
v-model="form.windowName"
placeholder="请输入窗口名称"
/>
<Field
label="窗口负责人id"
prop="ownerId"
v-model="form.ownerId"
placeholder="请输入窗口负责人id"
/>
<Field
label="窗口负责人名称"
prop="ownerName"
v-model="form.ownerName"
placeholder="请输入窗口负责人名称"
/>
<Field
label="所属部门id"
prop="deptId"
v-model="form.deptId"
placeholder="请输入所属部门id"
/>
<Field
label="所属部门名称"
prop="deptName"
v-model="form.deptName"
type="textarea"
placeholder="请输入所属部门名称"
/>
<Field
label="所属大厅"
prop="salaId"
v-model="form.salaId"
placeholder="请输入所属大厅"
/>
<Field
label="所属大厅名称"
prop="salaName"
v-model="form.salaName"
placeholder="请输入所属大厅名称"
/>
<Field
label="考核表单名称"
prop="fromName"
v-model="form.fromName"
placeholder="请输入考核表单名称"
/>
<Field
label="合计得分"
prop="sumScore"
v-model="form.sumScore"
placeholder="请输入合计得分"
/>
<Field
label="提交时间"
prop="submitDate"
v-model="form.submitDate"
type="date"
/>
<Field
label="管理组核查人员"
prop="manageCheckPerson"
v-model="form.manageCheckPerson"
placeholder="请输入管理组核查人员"
/>
<Field
label="管理组核查时间"
prop="manageCheckTime"
v-model="form.manageCheckTime"
type="date"
/>
<Field
label="管理组核查说明"
prop="manageCheckDesc"
v-model="form.manageCheckDesc"
type="textarea"
placeholder="请输入管理组核查说明"
/>
<Field
label="管理组核查结果"
prop="manageCheckResult"
v-model="form.manageCheckResult"
type="radio"
:enumData="dict.manageCheckResult"
/>
<Field
label="领导组核查人员"
prop="leaderCheckPerson"
v-model="form.leaderCheckPerson"
placeholder="请输入领导组核查人员"
/>
<Field
label="领导组核查时间"
prop="leaderCheckTime"
v-model="form.leaderCheckTime"
type="date"
/>
<Field
label="领导组核查说明"
prop="leaderCheckDesc"
v-model="form.leaderCheckDesc"
type="textarea"
placeholder="请输入领导组核查说明"
/>
<Field
label="领导组核查结果"
prop="leaderCheckResult"
v-model="form.leaderCheckResult"
type="radio"
:enumData="dict.leaderCheckResult"
/>
<Field
label="处理状态"
prop="checkStatus"
v-model="form.checkStatus"
type="select"
:enumData="dict.checkStatus"
placeholder="请选择处理状态"
/>
<Field
label="备注"
prop="remark"
v-model="form.remark"
type="textarea"
placeholder="请输入备注"
/>
</el-row>
<form-buttons
@submit="submitForm"
v-if="pageInfo.type != 'view'"
noCancelBtn
/>
</el-form> -->
</el-drawer>
</template>
<script>
import form from "@/assets/mixins/formdialog";
import { timestampToTime } from "@/assets/utils/dateFormat.js";
export default {
name: "CheckWindowPerformDetail",
mixins: [form],
components: {},
created() {
this.changePath("check/window/perform");
},
data() {
return {
baseUrl: process.env.VUE_APP_API_BASE_URL + "/",
// 遮罩层
loading: true,
// 弹出层标题
title: "窗口考核核查",
// 是否显示弹出层
open: false,
direction: "rtl",
toString: ["checkStatus"],
toDate: ["submitDate", "manageCheckTime", "leaderCheckTime"],
// 表单校验
rules: {},
tableData: [],
};
},
methods: {
functionTime(val) {
let time = timestampToTime(val, 6);
return time;
},
/** 编辑 */
async edit(row) {
// this.reset();
// this.query = { id: row.id };
this.urls.currUrl = "check/window/perform/save";
// this.getData();
// this.pageInfo.type = "edit";
// this.title = "修改窗口考核核查";
this.form = row;
this.reset();
this.query = { id: row.id };
await this.$get("/window/perform/info", { id: row.id }).then((res) => {
if (res.code == 1) {
this.form = res.data;
this.dict = res.dict;
} else {
this.form = row;
}
for (let key in this.form) {
key == "fillDate"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "createTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "deductTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "updateTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "checkTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "reviewTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: "";
}
this.$get("/check/window/perform/info", { id: row.id }).then(
(response) => {
if (response.code == 1) {
this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict };
}
}
);
this.tableData = [];
this.tableData.push({
discipline: this.form["discipline"] ? this.form["discipline"] : "--",
specification: this.form["specification"]
? this.form["specification"]
: "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
selfLevel: this.form["selfLevel"]
? this.form["selfLevel"] == 1
? "红旗窗口"
: "黑旗窗口"
: "--",
});
this.form.view = "修改";
this.open = true;
});
this.pageInfo.type = "edit";
this.title = "自评绩效核查";
},
/** 新增 */
add(row) {
this.reset();
this.urls.currUrl = "check/window/perform/add";
this.getData();
this.pageInfo.type = "add";
this.title = "新增窗口考核核查";
},
/** 查看*/
async view(row) {
// this.reset();
// this.query = { id: row.id };
// this.urls.currUrl = "check/window/perform/view";
// this.getData();
// this.pageInfo.type = "view";
// this.title = "窗口考核核查详细";
this.form = row;
this.reset();
this.query = { id: row.id };
await this.$get("/window/perform/info", { id: row.id }).then((res) => {
if (res.code == 1) {
this.form = res.data;
this.dict = res.dict;
} else {
this.form = row;
}
for (let key in this.form) {
key == "fillDate"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "createTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "deductTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "updateTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "checkTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "reviewTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: "";
}
this.$get("/check/window/perform/info", { id: row.id }).then(
(response) => {
if (response.code == 1) {
this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict };
}
}
);
this.tableData = [];
this.tableData.push({
discipline: this.form["discipline"] ? this.form["discipline"] : "--",
specification: this.form["specification"]
? this.form["specification"]
: "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
selfLevel: this.form["selfLevel"]
? this.form["selfLevel"] == 1
? "红旗窗口"
: "黑旗窗口"
: "--",
});
this.form.view = "查看";
this.open = true;
});
this.pageInfo.type = "view";
this.title = "自评绩效核查信息详细";
},
/**取消按钮 */
cancel() {
this.open = false;
},
/**获取数据后弹框 */
afterRender(data) {
this.open = true;
},
afterSubmit(data) {
this.open = false;
this.$emit("ok");
},
// 表单重置
reset() {
this.form = {
recordId: null,
year: null,
month: null,
windowId: null,
windowName: "",
ownerId: null,
ownerName: "",
deptId: null,
deptName: "",
salaId: null,
salaName: "",
fromName: "",
sumScore: 0,
submitDate: null,
manageCheckPerson: "",
manageCheckTime: null,
manageCheckDesc: "",
manageCheckResult: "",
leaderCheckPerson: "",
leaderCheckTime: null,
leaderCheckDesc: "",
leaderCheckResult: "",
checkStatus: 1,
remark: "",
};
this.resetForm("form");
},
resetForm(refName) {
if (this.$refs[refName]) {
this.$refs[refName].resetFields();
}
},
},
};
</script>
<style lang="less" scoped>
.content_box {
padding: 0 20px;
font-size: 14px;
.text_line {
width: 100%;
display: flex;
margin-bottom: 25px;
.text_box:nth-child(2) {
margin: 0 100px;
}
.text_box {
display: flex;
span {
width: 160px;
display: inline-block;
}
span:nth-child(2) {
text-align: start;
width: 100%;
}
}
}
}
</style>
<template>
<div class="page">
<div class="btn_box" style="position: absolute;top: 54px;left: 10px;">
<el-radio-group v-model="radio1" @input="changeRadio">
<el-radio-button label="1">窗口考核</el-radio-button>
<el-radio-button label="2">工作人员考核</el-radio-button>
</el-radio-group>
<el-button
slot="table-head-left2"
style="margin-left: 10px"
icon="el-icon-tickets"
size="mini"
@click="doExport"
:disabled="isExport"
>导出</el-button
>
</div>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
<drawer-show ref="drawerform" @ok="getData" />
</div>
</template>
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
export default {
name: "WindowPerformList",
components: {
drawerShow,
},
mixins: [table],
created() {
this.pageInfo.list = "/check/window/perform/list";
},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/window/perform/exportExcel",
{
page: 1,
size: -1,
},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
// 切换表格
changeRadio() {
this.radio1 == 2
? this.$router.push("/window/workman/perform/list?page=1")
: "";
},
},
data() {
return {
radio1: "1",
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "deptId",
type: "select",
label: "所属部门",
fuzzy: false,
},
{
name: "checkStatus",
type: "select",
label: "核查状态",
fuzzy: false,
},
{
name: "createTimeMonth",
type: "month",
label: "请选择月份",
fuzzy: false,
},
{
name: "ownerName",
type: "text",
width: 200,
label: "窗口负责人姓名搜索",
fuzzy: false,
},
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "窗口负责人", prop: "ownerName" },
{
label: "登记年月",
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
: row.month
: "--"
}`;
},
},
{ label: "所属大厅", prop: "salaName" },
{
label: "所属部门",
prop: "deptName",
},
{ label: "考核窗口", prop: "windowName" },
{ label: "表单名称", prop: "fromName" },
{ label: "总分分值", prop: "sumScore", formatter: this.formatter },
{
label: "提交时间",
prop: "submitDate",
formatter: this.formatterDate,
},
{ label: "处理状态", prop: "checkStatus", formatter: this.formatter },
{
label: "操作",
width: 240,
formatter: (row) => {
return (
<table-buttons
noAdd
noDel
noEdit
text={"自评核查"}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
],
},
};
},
};
</script>
<style lang="less" scoped>
/deep/.el-radio-button__inner {
border: 1px solid #eee !important;
height: 28px;
line-height: 3px;
}
/deep/.el-radio-button__orig-radio:checked + .el-radio-button__inner {
background: #00b565;
border: none !important;
color: #fff !important;
line-height: 3px;
}
</style>
<template>
<layout-view>
<el-descriptions :title="title" :column="column" :size="size" :colon="false" border>
<template slot="title">
<i class="el-icon-tickets"></i>
基本详细信息
</template>
<template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template>
<el-descriptions-item label="记录ID" label-class-name="labelClass" content-class-name="contentClass">
{{form.recordId}}
</el-descriptions-item>
<el-descriptions-item label="考核年度" label-class-name="labelClass" content-class-name="contentClass">
{{form.year}}
</el-descriptions-item>
<el-descriptions-item label="考核月份" label-class-name="labelClass" content-class-name="contentClass">
{{form.month}}
</el-descriptions-item>
<el-descriptions-item label="窗口ID" label-class-name="labelClass" content-class-name="contentClass">
{{form.windowId}}
</el-descriptions-item>
<el-descriptions-item label="窗口名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.windowName}}
</el-descriptions-item>
<el-descriptions-item label="窗口负责人id" label-class-name="labelClass" content-class-name="contentClass">
{{form.ownerId}}
</el-descriptions-item>
<el-descriptions-item label="窗口负责人名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.ownerName}}
</el-descriptions-item>
<el-descriptions-item label="所属部门id" label-class-name="labelClass" content-class-name="contentClass">
{{form.deptId}}
</el-descriptions-item>
<el-descriptions-item label="所属部门名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.deptName}}
</el-descriptions-item>
<el-descriptions-item label="所属大厅" label-class-name="labelClass" content-class-name="contentClass">
{{form.salaId}}
</el-descriptions-item>
<el-descriptions-item label="所属大厅名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.salaName}}
</el-descriptions-item>
<el-descriptions-item label="考核表单名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.fromName}}
</el-descriptions-item>
<el-descriptions-item label="合计得分" label-class-name="labelClass" content-class-name="contentClass">
{{form.sumScore}}
</el-descriptions-item>
<el-descriptions-item label="提交时间" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatterDate(form.submitDate)}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查人员" label-class-name="labelClass" content-class-name="contentClass">
{{form.manageCheckPerson}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查时间" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatterDate(form.manageCheckTime)}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查说明" label-class-name="labelClass" content-class-name="contentClass">
{{form.manageCheckDesc}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查结果" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatters("manageCheckResult", form.manageCheckResult) }}
</el-descriptions-item>
<el-descriptions-item label="领导组核查人员" label-class-name="labelClass" content-class-name="contentClass">
{{form.leaderCheckPerson}}
</el-descriptions-item>
<el-descriptions-item label="领导组核查时间" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatterDate(form.leaderCheckTime)}}
</el-descriptions-item>
<el-descriptions-item label="领导组核查说明" label-class-name="labelClass" content-class-name="contentClass">
{{form.leaderCheckDesc}}
</el-descriptions-item>
<el-descriptions-item label="领导组核查结果" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatters("leaderCheckResult", form.leaderCheckResult) }}
</el-descriptions-item>
<el-descriptions-item label="处理状态" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatters("checkStatus", form.checkStatus) }}
</el-descriptions-item>
<el-descriptions-item label="备注" label-class-name="labelClass" content-class-name="contentClass">
{{form.remark}}
</el-descriptions-item>
</el-descriptions>
</layout-view>
</template>
<script>
import view from "@/assets/mixins/view";
export default {
mixins: [view],
components: {
},
methods: {
},
data() {
return {
size:"small",
column:2,
toString:[
"checkStatus",
],
toArrays: [
],
toDate: [
]
}
}
}
</script>
<style lang="less">
.labelClass{
width: 200px;
}
.el-descriptions__body{
margin-left: 5px;
margin-right: 5px;
color: #606266;
background-color: #FFF;
}
.contentClass{
width: 600px;
}
</style>
\ No newline at end of file
<template>
<!-- 弹出框表单 -->
<el-drawer
:title="title"
:visible.sync="open"
:direction="direction"
:destroy-on-close="true"
size="53%"
>
<div class="content_box">
<div class="text_line">
<div class="text_box">
<span>窗口负责人:</span>
<span>{{ form.ownerName || "--" }}</span>
</div>
<div class="text_box">
<span>登记年月:</span>
<span>{{
`${form.year ? form.year : "--"}-${
form.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(form.month)
? "0" + form.month
: form.month
: "--"
}`
}}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<div style="width: 100%;">
<el-table
:data="form.windowWorkmanPerformDetailList"
border
style="width: 100%"
>
<el-table-column type="index" label="序号" width="50">
</el-table-column>
<el-table-column prop="staffName" label="姓名" align="center">
</el-table-column>
<el-table-column label="考核得分(分)">
<el-table-column
prop="discipline"
label="工作纪律"
align="center"
>
</el-table-column>
<el-table-column
prop="specification"
label="服务规范"
align="center"
>
</el-table-column>
<el-table-column
prop="management"
label="综合管理"
align="center"
>
</el-table-column>
<el-table-column
prop="evaluation"
label="群众评议"
align="center"
>
</el-table-column>
<el-table-column
prop="efficiency"
label="工作效能"
align="center"
>
</el-table-column>
<el-table-column prop="bonusScore" label="加分" align="center">
</el-table-column>
</el-table-column>
<el-table-column
prop="sumScore"
label="综合评定打分"
align="center"
>
</el-table-column>
<el-table-column
prop="examineLevel"
label="建议考核等级"
align="center"
width="200"
>
<template slot-scope="scope">
{{ dict.examineLevel[scope.row.examineLevel] }}
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span>备注:</span>
<span>{{ form.remark || "--" }}</span>
</div>
</div>
<div class="text_line">
<div class="text_box">
<span>附件材料:</span>
<el-link
v-if="form.annexUrl"
:href="baseUrl + form.annexUrl"
target="_blank"
type="primary"
>
{{ form.annex || "--" }}</el-link
>
<span v-else> {{ form.annex || "--" }}</span>
</div>
</div>
<div class="hecha_box" v-if="false">
<div class="hecha_title">
<span class="line"></span>
<span
style="font-size: 18px;font: bold;margin-bottom: 20px;color: #409eff;"
>核查情况</span
>
</div>
<div class="hecha_content">
<el-form ref="form" :model="form" :rules="rules" label-width="180px">
<el-row>
<el-form-item label="政务服务管理科评荐意见:" prop="checkResult">
<div
v-if="form.view == '查看'"
style="display: flex; justify-content: space-between;"
>
<span class="left">
{{ form.manageCheckResult }}
</span>
<span class="right">
{{ form.manageCheckPerson }}
{{ functionTime(form.manageCheckTime) }} 核查
</span>
</div>
<el-radio-group v-model="form.manageCheckResult" v-else>
<el-radio
v-for="(val, i) in dict.manageCheckResult"
:key="i"
:label="val"
>{{ val }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item label="管理组核查说明:" prop="manageCheckDesc">
<el-input
v-model="form.manageCheckDesc"
type="textarea"
placeholder="请填写说明"
:disabled="form.view == '查看'"
></el-input>
</el-form-item>
</el-row>
<form-buttons
@submit="submitForm"
v-if="pageInfo.type != 'view'"
noCancelBtn
/>
</el-form>
</div>
</div>
</div>
<!-- <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<Field
label="记录ID"
prop="recordId"
v-model="form.recordId"
placeholder="请输入记录ID"
/>
<Field
label="考核年度"
prop="year"
v-model="form.year"
placeholder="请输入考核年度"
/>
<Field
label="考核月份"
prop="month"
v-model="form.month"
placeholder="请输入考核月份"
/>
<Field
label="窗口ID"
prop="windowId"
v-model="form.windowId"
placeholder="请输入窗口ID"
/>
<Field
label="窗口名称"
prop="windowName"
v-model="form.windowName"
placeholder="请输入窗口名称"
/>
<Field
label="窗口负责人id"
prop="ownerId"
v-model="form.ownerId"
placeholder="请输入窗口负责人id"
/>
<Field
label="窗口负责人名称"
prop="ownerName"
v-model="form.ownerName"
placeholder="请输入窗口负责人名称"
/>
<Field
label="所属部门id"
prop="deptId"
v-model="form.deptId"
placeholder="请输入所属部门id"
/>
<Field
label="所属部门名称"
prop="deptName"
v-model="form.deptName"
type="textarea"
placeholder="请输入所属部门名称"
/>
<Field
label="所属大厅"
prop="salaId"
v-model="form.salaId"
placeholder="请输入所属大厅"
/>
<Field
label="所属大厅名称"
prop="salaName"
v-model="form.salaName"
placeholder="请输入所属大厅名称"
/>
<Field
label="考核表单名称"
prop="fromName"
v-model="form.fromName"
placeholder="请输入考核表单名称"
/>
<Field
label="提交时间"
prop="submitDate"
v-model="form.submitDate"
type="date"
/>
<Field
label="管理组核查人员"
prop="manageCheckPerson"
v-model="form.manageCheckPerson"
placeholder="请输入管理组核查人员"
/>
<Field
label="管理组核查时间"
prop="manageCheckTime"
v-model="form.manageCheckTime"
type="date"
/>
<Field
label="管理组核查说明"
prop="manageCheckDesc"
v-model="form.manageCheckDesc"
type="textarea"
placeholder="请输入管理组核查说明"
/>
<Field
label="管理组核查结果"
prop="manageCheckResult"
v-model="form.manageCheckResult"
type="radio"
:enumData="dict.manageCheckResult"
/>
<Field
label="备注"
prop="remark"
v-model="form.remark"
type="textarea"
placeholder="请输入备注"
/>
</el-row>
<form-buttons
@submit="submitForm"
v-if="pageInfo.type != 'view'"
noCancelBtn
/>
</el-form> -->
</el-drawer>
</template>
<script>
import form from "@/assets/mixins/formdialog";
import { timestampToTime } from "@/assets/utils/dateFormat.js";
export default {
name: "CheckWindowWorkmanPerformDetail",
mixins: [form],
components: {},
created() {
this.changePath("check/window/workman/perform");
},
data() {
return {
// 遮罩层
loading: true,
// 弹出层标题
title: "窗口人员考核汇总核查",
// 是否显示弹出层
open: false,
direction: "rtl",
toString: [],
toDate: ["submitDate", "manageCheckTime"],
// 表单校验
rules: {},
tableData: [],
baseUrl: process.env.VUE_APP_API_BASE_URL + "/",
};
},
methods: {
functionTime(val) {
let time = timestampToTime(val, 6);
return time;
},
/** 编辑 */
async edit(row) {
// this.reset();
// this.query = { id: row.id };
this.urls.currUrl = "check/window/workman/perform/save";
// this.getData();
// this.pageInfo.type = "edit";
// this.title = "修改窗口人员考核汇总核查";
this.form = row;
this.reset();
this.query = { id: row.id };
await this.$get("/window/workman/perform/info", {
id: row.recordId,
}).then((res) => {
if (res.code == 1) {
this.form = res.data;
this.dict = res.dict;
} else {
this.form = row;
}
this.form.view = "修改";
this.open = true;
});
this.pageInfo.type = "edit";
this.title = "窗口人员自评绩效核查";
// await this.$get("/check/window/workman/perform/info", {
// id: row.id,
// }).then((res) => {
// if (res.code == 1) {
// this.form = res.data;
// this.dict = res.dict;
// } else {
// this.form = row;
// }
// for (let key in this.form) {
// key == "fillDate"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "createTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "deductTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "updateTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "checkTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : key == "reviewTime"
// ? (this.form[key] = timestampToTime(this.form[key], 6))
// : "";
// }
// this.$get("/window/workman/perform/detail/info", { id: row.id }).then(
// (response) => {
// if (response.code == 1) {
// this.form = { ...this.form, ...response.data };
// this.dict = { ...this.dict, ...response.dict };
// }
// }
// );
// this.$get("/window/workman/perform/info", { id: row.id }).then(
// (responses) => {
// if (responses.code == 1) {
// this.form = { ...this.form, ...responses.data };
// this.dict = { ...this.dict, ...responses.dict };
// }
// }
// );
// this.tableData = [];
// this.tableData.push({
// staffName: this.form["staffName"] ? this.form["staffName"] : "--",
// discipline: this.form["discipline"] ? this.form["discipline"] : "--",
// specification: this.form["specification"]
// ? this.form["specification"]
// : "--",
// management: this.form["management"] ? this.form["management"] : "--",
// evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--",
// efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--",
// bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
// sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
// examineLevel: this.form["examineLevel"]
// ? this.dict["examineLevel"]
// : "--",
// });
// this.form.view = "修改";
// this.open = true;
// });
// this.pageInfo.type = "edit";
// this.title = "窗口人员自评绩效核查";
},
/** 新增 */
add(row) {
this.reset();
this.urls.currUrl = "check/window/workman/perform/add";
this.getData();
this.pageInfo.type = "add";
this.title = "新增窗口人员考核汇总核查";
},
/** 查看*/
async view(row) {
// this.reset();
// this.query = { id: row.id };
// this.urls.currUrl = "check/window/workman/perform/view";
// this.getData();
// this.pageInfo.type = "view";
// this.title = "窗口人员考核汇总核查详细";
this.form = row;
this.reset();
this.query = { id: row.id };
await this.$get("/check/window/workman/perform/info", {
id: row.id,
}).then((res) => {
if (res.code == 1) {
this.form = res.data;
this.dict = res.dict;
} else {
this.form = row;
}
for (let key in this.form) {
key == "fillDate"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "createTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "deductTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "updateTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "checkTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: key == "reviewTime"
? (this.form[key] = timestampToTime(this.form[key], 6))
: "";
}
this.$get("/window/workman/perform/detail/info", { id: row.id }).then(
(response) => {
if (response.code == 1) {
this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict };
}
}
);
this.$get("/window/workman/perform/info", { id: row.id }).then(
(responses) => {
if (responses.code == 1) {
this.form = { ...this.form, ...responses.data };
this.dict = { ...this.dict, ...responses.dict };
}
}
);
this.tableData = [];
this.tableData.push({
staffName: this.form["staffName"] ? this.form["staffName"] : "--",
discipline: this.form["discipline"] ? this.form["discipline"] : "--",
specification: this.form["specification"]
? this.form["specification"]
: "--",
management: this.form["management"] ? this.form["management"] : "--",
evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--",
efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
examineLevel: this.form["examineLevel"]
? this.dict["examineLevel"]
: "--",
});
this.form.view = "查看";
this.open = true;
});
this.pageInfo.type = "view";
this.title = "窗口人员自评绩效核查信息详细";
},
/**取消按钮 */
cancel() {
this.open = false;
},
/**获取数据后弹框 */
afterRender(data) {
this.open = true;
},
afterSubmit(data) {
this.open = false;
this.$emit("ok");
},
// 表单重置
reset() {
this.form = {
recordId: null,
year: null,
month: null,
windowId: null,
windowName: "",
ownerId: null,
ownerName: "",
deptId: null,
deptName: "",
salaId: null,
salaName: "",
fromName: "",
submitDate: null,
manageCheckPerson: "",
manageCheckTime: null,
manageCheckDesc: "",
manageCheckResult: "",
remark: "",
};
this.resetForm("form");
},
resetForm(refName) {
if (this.$refs[refName]) {
this.$refs[refName].resetFields();
}
},
},
};
</script>
<style lang="less" scoped>
.content_box {
padding: 0 20px;
font-size: 14px;
.text_line {
width: 100%;
display: flex;
margin-bottom: 25px;
.text_box:nth-child(2) {
margin: 0 100px;
}
.text_box {
display: flex;
span {
text-align: end;
width: 100px;
display: inline-block;
}
span:nth-child(2) {
text-align: start;
}
}
}
}
</style>
<template>
<div class="page">
<div class="btn_box" style="position: absolute;top: 54px;left: 10px;">
<el-radio-group v-model="radio1" @input="changeRadio">
<el-radio-button label="1">窗口考核</el-radio-button>
<el-radio-button label="2">工作人员考核</el-radio-button>
</el-radio-group>
<el-button
slot="table-head-left2"
style="margin-left: 10px"
icon="el-icon-tickets"
size="mini"
@click="doExport"
:disabled="isExport"
>导出</el-button
>
</div>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
<drawer-show ref="drawerform" @ok="getData" />
</div>
</template>
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
export default {
name: "WindowWorkmanPerformList",
components: {
drawerShow,
},
mixins: [table],
created() {
// this.getData();
},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
console.log(row);
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/window/workman/perform/exportExcel",
{
page: 1,
size: -1,
},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
// 切换表格
changeRadio() {
this.radio1 == 1
? this.$router.push("/window/perform/list?page=1")
: "";
},
},
data() {
return {
radio1: 2,
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "deptId",
type: "select",
label: "所属部门",
fuzzy: false,
},
{
name: "checkStatus",
type: "select",
label: "核查状态",
fuzzy: false,
},
{
name: "createTimeMonth",
type: "month",
label: "请选择月份",
fuzzy: false,
},
{
name: "ownerName",
type: "text",
width: 200,
label: "窗口负责人姓名搜索",
fuzzy: false,
},
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "窗口负责人", prop: "ownerName" },
{
label: "登记年月",
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
: row.month
: "--"
}`;
},
},
{ label: "所属大厅", prop: "salaName" },
{
label: "所属部门",
prop: "deptName",
},
{ label: "考核窗口", prop: "windowName" },
{ label: "表单名称", prop: "fromName" },
{ label: "总分分值", prop: "sumScore", formatter: this.formatter },
{
label: "提交时间",
prop: "submitDate",
width: 110,
formatter: this.formatterDate,
},
{
label: "最新核查时间",
prop: "updateTime",
width: 150,
formatter: this.formatterDate,
},
{ label: "处理状态", prop: "checkStatus", formatter: this.formatter },
{
label: "操作",
width: 240,
formatter: (row) => {
return (
<table-buttons
noAdd
noDel
noEdit
text={"自评核查"}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
],
},
};
},
};
</script>
<style lang="less" scoped>
/deep/.el-radio-button__inner {
border: 1px solid #eee !important;
height: 28px;
line-height: 3px;
}
/deep/.el-radio-button__orig-radio:checked + .el-radio-button__inner {
background: #00b565;
border: none !important;
color: #fff !important;
line-height: 3px;
}
</style>
<template>
<layout-view>
<el-descriptions :title="title" :column="column" :size="size" :colon="false" border>
<template slot="title">
<i class="el-icon-tickets"></i>
基本详细信息
</template>
<template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template>
<el-descriptions-item label="记录ID" label-class-name="labelClass" content-class-name="contentClass">
{{form.recordId}}
</el-descriptions-item>
<el-descriptions-item label="考核年度" label-class-name="labelClass" content-class-name="contentClass">
{{form.year}}
</el-descriptions-item>
<el-descriptions-item label="考核月份" label-class-name="labelClass" content-class-name="contentClass">
{{form.month}}
</el-descriptions-item>
<el-descriptions-item label="窗口ID" label-class-name="labelClass" content-class-name="contentClass">
{{form.windowId}}
</el-descriptions-item>
<el-descriptions-item label="窗口名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.windowName}}
</el-descriptions-item>
<el-descriptions-item label="窗口负责人id" label-class-name="labelClass" content-class-name="contentClass">
{{form.ownerId}}
</el-descriptions-item>
<el-descriptions-item label="窗口负责人名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.ownerName}}
</el-descriptions-item>
<el-descriptions-item label="所属部门id" label-class-name="labelClass" content-class-name="contentClass">
{{form.deptId}}
</el-descriptions-item>
<el-descriptions-item label="所属部门名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.deptName}}
</el-descriptions-item>
<el-descriptions-item label="所属大厅" label-class-name="labelClass" content-class-name="contentClass">
{{form.salaId}}
</el-descriptions-item>
<el-descriptions-item label="所属大厅名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.salaName}}
</el-descriptions-item>
<el-descriptions-item label="考核表单名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.fromName}}
</el-descriptions-item>
<el-descriptions-item label="提交时间" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatterDate(form.submitDate)}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查人员" label-class-name="labelClass" content-class-name="contentClass">
{{form.manageCheckPerson}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查时间" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatterDate(form.manageCheckTime)}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查说明" label-class-name="labelClass" content-class-name="contentClass">
{{form.manageCheckDesc}}
</el-descriptions-item>
<el-descriptions-item label="管理组核查结果" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatters("manageCheckResult", form.manageCheckResult) }}
</el-descriptions-item>
<el-descriptions-item label="备注" label-class-name="labelClass" content-class-name="contentClass">
{{form.remark}}
</el-descriptions-item>
</el-descriptions>
</layout-view>
</template>
<script>
import view from "@/assets/mixins/view";
export default {
mixins: [view],
components: {
},
methods: {
},
data() {
return {
size:"small",
column:2,
toString:[
],
toArrays: [
],
toDate: [
]
}
}
}
</script>
<style lang="less">
.labelClass{
width: 200px;
}
.el-descriptions__body{
margin-left: 5px;
margin-right: 5px;
color: #606266;
background-color: #FFF;
}
.contentClass{
width: 600px;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment