Commit ae13bbab authored by 姬鋆屾's avatar 姬鋆屾

推添加自评考核报错提醒;修改请假原因无法显示的问题

parent 9c837f17
...@@ -56,8 +56,12 @@ export default { ...@@ -56,8 +56,12 @@ export default {
// //
res.entity = this.util_toDateStr(res.entity, this.toDate); res.entity = this.util_toDateStr(res.entity, this.toDate);
this.form = Object.assign({}, this.form, res.entity); this.form = Object.assign({}, this.form, res.entity);
this.dict = Object.assign({}, this.dict, res.dict); this.dict = Object.assign({}, this.dict, res.dict);
console.log(this.form);
this.form.leaveType
? (this.form.leaveType = Number(this.form.leaveType))
: "";
this.afterRender(res); this.afterRender(res);
}) })
.catch((error) => { .catch((error) => {
...@@ -89,6 +93,9 @@ export default { ...@@ -89,6 +93,9 @@ export default {
el.validate((valid) => { el.validate((valid) => {
if (!valid) return; if (!valid) return;
this.loading = true; this.loading = true;
this.form.leaveType
? (this.form.leaveType = this.form.leaveType.toString())
: "";
this.$post(url, this.beforeSubmit(this.form)) this.$post(url, this.beforeSubmit(this.form))
.then((res) => { .then((res) => {
this.$message.success(res.msg); this.$message.success(res.msg);
......
...@@ -256,11 +256,11 @@ export default { ...@@ -256,11 +256,11 @@ export default {
this.title = "新增请假记录信息"; this.title = "新增请假记录信息";
}, },
/** 查看*/ /** 查看*/
view(row) { async view(row) {
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
this.urls.currUrl = "attendance/leave/record/view"; this.urls.currUrl = "attendance/leave/record/view";
this.getData(); await this.getData();
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "请假记录信息详细"; this.title = "请假记录信息详细";
}, },
......
...@@ -427,7 +427,8 @@ export default { ...@@ -427,7 +427,8 @@ export default {
this.form = row; this.form = row;
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
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.form.id = row.id;
...@@ -462,7 +463,10 @@ export default { ...@@ -462,7 +463,10 @@ export default {
}).then((responsed) => { }).then((responsed) => {
if (responsed.code == 1) { if (responsed.code == 1) {
this.dict = { ...this.dict, ...responsed.dict }; this.dict = { ...this.dict, ...responsed.dict };
if (this.form.bonusReport && this.form.bonusReport != "[]") { if (
this.form.bonusReport &&
this.form.bonusReport != "[]"
) {
let bonusArr = []; let bonusArr = [];
bonusArr = JSON.parse(this.form.bonusReport); bonusArr = JSON.parse(this.form.bonusReport);
let bonusarrText = responsed.data.data.filter((item) => let bonusarrText = responsed.data.data.filter((item) =>
...@@ -491,11 +495,15 @@ export default { ...@@ -491,11 +495,15 @@ export default {
this.tableData = []; this.tableData = [];
this.tableData.push({ this.tableData.push({
discipline: this.form["discipline"] ? this.form["discipline"] : "--", discipline: this.form["discipline"]
? this.form["discipline"]
: "--",
specification: this.form["specification"] specification: this.form["specification"]
? this.form["specification"] ? this.form["specification"]
: "--", : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--", bonusScore: this.form["bonusScore"]
? this.form["bonusScore"]
: "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--", sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
selfLevel: this.form["selfLevel"] selfLevel: this.form["selfLevel"]
? this.form["selfLevel"] == 1 ? this.form["selfLevel"] == 1
...@@ -503,6 +511,9 @@ export default { ...@@ -503,6 +511,9 @@ export default {
: "黑旗窗口" : "黑旗窗口"
: "--", : "--",
}); });
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "市政务服务大厅窗口考核登记表"; this.title = "市政务服务大厅窗口考核登记表";
...@@ -526,7 +537,8 @@ export default { ...@@ -526,7 +537,8 @@ export default {
this.form = row; this.form = row;
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
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.dict = res.dict; this.dict = res.dict;
...@@ -560,7 +572,10 @@ export default { ...@@ -560,7 +572,10 @@ export default {
}).then((responsed) => { }).then((responsed) => {
if (responsed.code == 1) { if (responsed.code == 1) {
this.dict = { ...this.dict, ...responsed.dict }; this.dict = { ...this.dict, ...responsed.dict };
if (this.form.bonusReport && this.form.bonusReport != "[]") { if (
this.form.bonusReport &&
this.form.bonusReport != "[]"
) {
let bonusArr = []; let bonusArr = [];
bonusArr = JSON.parse(this.form.bonusReport); bonusArr = JSON.parse(this.form.bonusReport);
let bonusarrText = responsed.data.data.filter((item) => let bonusarrText = responsed.data.data.filter((item) =>
...@@ -588,11 +603,15 @@ export default { ...@@ -588,11 +603,15 @@ export default {
); );
this.tableData = []; this.tableData = [];
this.tableData.push({ this.tableData.push({
discipline: this.form["discipline"] ? this.form["discipline"] : "--", discipline: this.form["discipline"]
? this.form["discipline"]
: "--",
specification: this.form["specification"] specification: this.form["specification"]
? this.form["specification"] ? this.form["specification"]
: "--", : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--", bonusScore: this.form["bonusScore"]
? this.form["bonusScore"]
: "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--", sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
selfLevel: this.form["selfLevel"] selfLevel: this.form["selfLevel"]
? this.form["selfLevel"] == 1 ? this.form["selfLevel"] == 1
...@@ -600,6 +619,9 @@ export default { ...@@ -600,6 +619,9 @@ export default {
: "黑旗窗口" : "黑旗窗口"
: "--", : "--",
}); });
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "市政务服务大厅窗口考核登记表"; this.title = "市政务服务大厅窗口考核登记表";
......
...@@ -337,7 +337,8 @@ export default { ...@@ -337,7 +337,8 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.recordId, id: row.recordId,
}).then((res) => { })
.then((res) => {
console.log(res); console.log(res);
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
...@@ -348,6 +349,9 @@ export default { ...@@ -348,6 +349,9 @@ export default {
} }
this.form.view = "修改"; this.form.view = "修改";
this.open = true; this.open = true;
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
...@@ -437,7 +441,8 @@ export default { ...@@ -437,7 +441,8 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.recordId, id: row.recordId,
}).then((res) => { })
.then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
this.form.id = row.id; this.form.id = row.id;
...@@ -455,6 +460,9 @@ export default { ...@@ -455,6 +460,9 @@ export default {
} }
} }
); );
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
......
...@@ -427,7 +427,8 @@ export default { ...@@ -427,7 +427,8 @@ export default {
this.form = row; this.form = row;
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
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.dict = res.dict; this.dict = res.dict;
...@@ -461,7 +462,10 @@ export default { ...@@ -461,7 +462,10 @@ export default {
}).then((responsed) => { }).then((responsed) => {
if (responsed.code == 1) { if (responsed.code == 1) {
this.dict = { ...this.dict, ...responsed.dict }; this.dict = { ...this.dict, ...responsed.dict };
if (this.form.bonusReport && this.form.bonusReport != "[]") { if (
this.form.bonusReport &&
this.form.bonusReport != "[]"
) {
let bonusArr = []; let bonusArr = [];
bonusArr = JSON.parse(this.form.bonusReport); bonusArr = JSON.parse(this.form.bonusReport);
let bonusarrText = responsed.data.data.filter((item) => let bonusarrText = responsed.data.data.filter((item) =>
...@@ -490,11 +494,15 @@ export default { ...@@ -490,11 +494,15 @@ export default {
this.tableData = []; this.tableData = [];
this.tableData.push({ this.tableData.push({
discipline: this.form["discipline"] ? this.form["discipline"] : "--", discipline: this.form["discipline"]
? this.form["discipline"]
: "--",
specification: this.form["specification"] specification: this.form["specification"]
? this.form["specification"] ? this.form["specification"]
: "--", : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--", bonusScore: this.form["bonusScore"]
? this.form["bonusScore"]
: "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--", sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
selfLevel: this.form["selfLevel"] selfLevel: this.form["selfLevel"]
? this.form["selfLevel"] == 1 ? this.form["selfLevel"] == 1
...@@ -502,6 +510,9 @@ export default { ...@@ -502,6 +510,9 @@ export default {
: "黑旗窗口" : "黑旗窗口"
: "--", : "--",
}); });
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "市政务服务大厅窗口考核登记表"; this.title = "市政务服务大厅窗口考核登记表";
...@@ -525,7 +536,8 @@ export default { ...@@ -525,7 +536,8 @@ export default {
this.form = row; this.form = row;
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
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.dict = res.dict; this.dict = res.dict;
...@@ -559,7 +571,10 @@ export default { ...@@ -559,7 +571,10 @@ export default {
}).then((responsed) => { }).then((responsed) => {
if (responsed.code == 1) { if (responsed.code == 1) {
this.dict = { ...this.dict, ...responsed.dict }; this.dict = { ...this.dict, ...responsed.dict };
if (this.form.bonusReport && this.form.bonusReport != "[]") { if (
this.form.bonusReport &&
this.form.bonusReport != "[]"
) {
let bonusArr = []; let bonusArr = [];
bonusArr = JSON.parse(this.form.bonusReport); bonusArr = JSON.parse(this.form.bonusReport);
let bonusarrText = responsed.data.data.filter((item) => let bonusarrText = responsed.data.data.filter((item) =>
...@@ -592,11 +607,15 @@ export default { ...@@ -592,11 +607,15 @@ export default {
// }); // });
this.tableData = []; this.tableData = [];
this.tableData.push({ this.tableData.push({
discipline: this.form["discipline"] ? this.form["discipline"] : "--", discipline: this.form["discipline"]
? this.form["discipline"]
: "--",
specification: this.form["specification"] specification: this.form["specification"]
? this.form["specification"] ? this.form["specification"]
: "--", : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--", bonusScore: this.form["bonusScore"]
? this.form["bonusScore"]
: "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--", sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
selfLevel: this.form["selfLevel"] selfLevel: this.form["selfLevel"]
? this.form["selfLevel"] == 1 ? this.form["selfLevel"] == 1
...@@ -604,6 +623,9 @@ export default { ...@@ -604,6 +623,9 @@ export default {
: "黑旗窗口" : "黑旗窗口"
: "--", : "--",
}); });
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "市政务服务大厅窗口考核登记表"; this.title = "市政务服务大厅窗口考核登记表";
......
...@@ -337,7 +337,8 @@ export default { ...@@ -337,7 +337,8 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.recordId, id: row.recordId,
}).then((res) => { })
.then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
this.dict = res.dict; this.dict = res.dict;
...@@ -346,6 +347,9 @@ export default { ...@@ -346,6 +347,9 @@ export default {
} }
this.form.view = "修改"; this.form.view = "修改";
this.open = true; this.open = true;
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
...@@ -435,7 +439,8 @@ export default { ...@@ -435,7 +439,8 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/check/window/workman/perform/info", { await this.$get("/check/window/workman/perform/info", {
id: row.id, id: row.id,
}).then((res) => { })
.then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
this.dict = res.dict; this.dict = res.dict;
...@@ -478,14 +483,24 @@ export default { ...@@ -478,14 +483,24 @@ export default {
this.tableData = []; this.tableData = [];
this.tableData.push({ this.tableData.push({
staffName: this.form["staffName"] ? this.form["staffName"] : "--", staffName: this.form["staffName"] ? this.form["staffName"] : "--",
discipline: this.form["discipline"] ? this.form["discipline"] : "--", discipline: this.form["discipline"]
? this.form["discipline"]
: "--",
specification: this.form["specification"] specification: this.form["specification"]
? this.form["specification"] ? this.form["specification"]
: "--", : "--",
management: this.form["management"] ? this.form["management"] : "--", management: this.form["management"]
evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--", ? this.form["management"]
efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--", : "--",
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--", 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"] : "--", sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
examineLevel: this.form["examineLevel"] examineLevel: this.form["examineLevel"]
? this.dict["examineLevel"] ? this.dict["examineLevel"]
...@@ -493,6 +508,9 @@ export default { ...@@ -493,6 +508,9 @@ export default {
}); });
this.form.view = "查看"; this.form.view = "查看";
this.open = true; this.open = true;
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
......
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