Commit abb6e0f8 by wangzhihui

优秀案例审核

1 parent b9b6caa4
...@@ -737,7 +737,37 @@ export function createOrUpdateBaselineConfig(data = {}) { ...@@ -737,7 +737,37 @@ export function createOrUpdateBaselineConfig(data = {}) {
} }
// 查询所有预警基线配置 // 查询所有预警基线配置
export function listAllBaselineConfigApi(data = {}) { export function listAllBaselineConfig(data = {}) {
data.method = "dj.api.supervisor.baseline.config.listAll"; data.method = "dj.api.supervisor.baseline.config.listAll";
return request(data, "post"); return request(data, "post");
} }
// 删除预警基线配置
export function deleteBaselineConfig(data = {}) {
data.method = "dj.api.supervisor.baseline.config.delete";
return request(data, "post");
}
// 查询优秀案例列表
export function listExcellentCase(data = {}) {
data.method = "dj.api.supervisor.excellent.case.list";
return request(data, "post");
}
// 审核驳回优秀案例
export function rejectExcellentCase(data = {}) {
data.method = "dj.api.supervisor.excellent.case.reject";
return request(data, "post");
}
// 下载优秀案例录音
export function downloadExcellentCaseAudio(data = {}) {
data.method = "dj.api.supervisor.excellent.case.download";
return request(data, "post");
}
// 审核通过优秀案例
export function approveExcellentCase(data = {}) {
data.method = "dj.api.supervisor.excellent.case.approve";
return request(data, "post");
}
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
:style="{ :style="{
background: getStatusColor( background: getStatusColor(
scope && scope.scope && scope.scope.status, scope && scope.scope && scope.scope.status,
'inviteStatusOptMap', 'reviewCaseStatusOptMap',
), ),
}"> }">
</span> </span>
{{ {{
getStatusItem(baseData, "inviteStatusOpt", scope.scope, "status") getStatusItem(baseData, "reviewCaseStatusOpt", scope.scope, "status")
}} }}
</div> </div>
</div> </div>
...@@ -78,40 +78,33 @@ ...@@ -78,40 +78,33 @@
</template> </template>
<script> <script>
import {
getDictList,
getRecruitmentList,
getRecruitmentSummary,
updateRecruitmentStatus,
} from "@api/recruitment";
import { mapActions, mapState } from "vuex"; import { mapActions, mapState } from "vuex";
import { inviteStatusOpt, inviteStatusOptMap } from "@/common/constants.js"; import { approveExcellentCase, downloadExcellentCaseAudio, listExcellentCase, rejectExcellentCase } from "@/api/resident";
import { deepClone, Util } from "@/common/util"; import { reviewCaseStatusOpt, reviewCaseStatusOptMap } from "@/common/constants.js";
import { deepClone, downLoadFile, Util } from "@/common/util";
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"; import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
export default { export default {
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
data() { data() {
return { return {
activeName: "4", activeName: "0",
tabPaneList: [ tabPaneList: [
{ {
label: "待审核", label: "待审核",
name: "4", name: "0",
}, },
{ {
label: "已通过", label: "已通过",
name: "0", name: "1",
}, },
{ {
label: "已驳回", label: "已驳回",
name: "1", name: "2",
}, },
], ],
isRejectVisible: false,
summaryObj: {},
detailInfo: {}, detailInfo: {},
getListApi: getRecruitmentList, getListApi: listExcellentCase,
tableParams: { tableParams: {
listName: "list", listName: "list",
...@@ -121,75 +114,74 @@ export default { ...@@ -121,75 +114,74 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "驻店销售", label: "驻店销售",
prop: "merchantName", prop: "staffName",
width: "200px", width: "200px",
addHtml: "merchantName",
}, },
{ {
label: "接待日期", label: "接待日期",
prop: "businessTypeName", prop: "receptionDate",
width: "100px", width: "100px",
}, },
{ {
label: "接待门店", label: "接待门店",
prop: "recruitmentTypeName", prop: "merchantName",
width: 140, width: 140,
}, },
{ {
label: "质检评分", label: "质检评分",
prop: "recruitmentQuantity", prop: "score",
formatter(row) {
return row.score != null ? row.score : "-";
},
}, },
{ {
label: "攻防评分", label: "攻防评分",
prop: "regionOperationName", prop: "defencePoint",
width: 100, formatter(row) {
return row.defencePoint != null ? row.defencePoint : "-";
},
}, },
{ {
label: "客户类型", label: "客户类型",
prop: "recruiterName", prop: "customerCategory",
width: 160, width: 160,
}, },
{ {
label: "车型", label: "车型",
prop: "technicalSupervisorName", prop: "carModel",
width: 120, width: 120,
}, },
{ {
label: "提交人", label: "提交人",
prop: "provinceCity", prop: "submitterName",
width: 160, width: 160,
}, },
{ {
label: "状态", label: "状态",
prop: "status", prop: "reviewStatus",
minWidth: 120, minWidth: 120,
addHtml: "statusHtml", addHtml: "statusHtml",
}, },
{ {
label: "提交时间", label: "提交时间",
prop: "createdBy", prop: "createTime",
width: 120, width: 120,
}, },
], ],
}, },
searchFormSearch: {}, searchFormSearch: {},
searchForm: { searchForm: {
dataScope: "1",
merchantName: "", merchantName: "",
businessType: "", staffName: "",
recruitmentType: "", customerCategory: "",
createdDate: [], submitterName: "",
status: "", reviewStatus: 0,
recruiterName: "",
regionOperationName: "",
createdBy: "",
provinceCity: "",
technicalSupervisorName: "",
}, },
showFormData: [ showFormData: [
{ {
label: "驻店销售", label: "驻店销售",
name: "merchantName", name: "staffName",
type: "input", type: "input",
isClear: true, isClear: true,
}, },
...@@ -201,7 +193,7 @@ export default { ...@@ -201,7 +193,7 @@ export default {
}, },
{ {
label: "客户类型", label: "客户类型",
name: "businessType", name: "customerCategory",
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
...@@ -211,12 +203,14 @@ export default { ...@@ -211,12 +203,14 @@ export default {
}, },
{ {
label: "提交人", label: "提交人",
name: "createdBy", name: "submitterName",
type: "input", type: "input",
isClear: true, isClear: true,
}, },
], ],
baseData: { baseData: {
reviewCaseStatusOpt: deepClone(reviewCaseStatusOpt),
reviewCaseStatusOptMap: deepClone(reviewCaseStatusOptMap),
clientTypeOpt: deepClone([]), clientTypeOpt: deepClone([]),
}, },
track_event_code: "recruitment_management", track_event_code: "recruitment_management",
...@@ -233,57 +227,43 @@ export default { ...@@ -233,57 +227,43 @@ export default {
}, },
methods: { methods: {
handleClick() { handleClick() {
if (this.activeName !== "4") { this.searchForm.reviewStatus = this.activeName;
this.searchForm.status = this.activeName;
} else {
this.searchForm.status = "";
}
this.handleSearch(); this.handleSearch();
}, },
// 确认 // 确认
handlePass(data) { handlePass(data) {
let params = { id: data.id, status: 1 }; let params = { id: data.id };
this.$confirm( // this.$confirm(
"确认后当前招聘需求自动进入招聘中。确定是否确认?", // "确认后当前招聘需求自动进入招聘中。确定是否确认?",
"提示", // "提示",
{ // {
confirmButtonText: "确定", // confirmButtonText: "确定",
cancelButtonText: "取消", // cancelButtonText: "取消",
type: "warning", // type: "warning",
}, // },
).then(() => { // ).then(() => {
this.updateRecruitmentStatusData(params); // this.updateRecruitmentStatusData(params);
}); // });
}, approveExcellentCase(params).then((res) => {
// 完成 if (res) {
handleComplete(data) { this.notice.okTips("操作成功");
let params = { id: data.id, status: 2 }; this.handleSearch();
this.$confirm( }
"完成招聘,当前招聘需求自动流转为已完成。确定是否结束?",
"提示",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
},
).then(() => {
this.updateRecruitmentStatusData(params);
}); });
}, },
// 驳回
handleReject(data) {
this.detailInfo = data;
this.isRejectVisible = !this.isRejectVisible;
this.isRejectForm.recallReason = "";
},
// 确定驳回 // 确定驳回
handleReject(data) { handleReject(data) {
let params = { const params = {
id: this.detailInfo.id, id: data.id,
recallReason: data.recallReason,
status: 3,
}; };
this.updateRecruitmentStatusData(params); rejectExcellentCase(params).then((res) => {
if (res) {
this.notice.okTips("操作成功");
this.handleSearch();
}
});
}, },
getOptionsList(that, formName, hasAll = true, refreshSigle) { getOptionsList(that, formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
...@@ -368,21 +348,15 @@ export default { ...@@ -368,21 +348,15 @@ export default {
}, },
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
// 下载录音 // 下载录音
handleDownload() { handleDownload(row) {
let params = this.getParams(); const params = {
params.pageNum = 1; id: row.id,
params.moduleName = "STAFF"; };
params.method = "dj.staff.api.recruitment.demand.export.async"; downloadExcellentCaseAudio(params).then((res) => {
const list = [ if (res) {
...this.dowloadList, downLoadFile(res);
{ }
name: "招聘管理", });
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime(),
},
];
this.actionSetDownloadList({ list, type: "dowloadList" });
}, },
getParams() { getParams() {
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
</template> </template>
<script> <script>
import { listAllBaselineConfigApi } from "@/api/resident"; import { deleteBaselineConfig, listAllBaselineConfig } from "@/api/resident";
import AddConfigDialog from "./addConfig.vue"; import AddConfigDialog from "./addConfig.vue";
export default { export default {
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
methods: { methods: {
async getBaseLineConfigList() { async getBaseLineConfigList() {
try { try {
let result = await listAllBaselineConfigApi(); let result = await listAllBaselineConfig();
console.log("获取预警基线配置列表成功:", result); console.log("获取预警基线配置列表成功:", result);
if (result) { if (result) {
this.originalData = result || []; this.originalData = result || [];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!