Commit abb6e0f8 by wangzhihui

优秀案例审核

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