Commit 26d7ce90 by wangzhihui

Merge branch 'SAAS+V4.55.0-0730' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.55.0-0730
2 parents a412882c 45e09a85
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 长课程配置-已配置课程列表(上周复盘列表)
export function taskStaffStudyPage(data) {
data.method = `${path}servicecenter.contentmanager.task.staff.study.page`
return request(data, RequestMethods.POST)
}
// 长课程配置-已配置课程详情(上周复盘查看课程)
export function taskStaffStudyDetail(data) {
data.method = `${path}servicecenter.contentmanager.task.staff.study.detail`
return request(data, RequestMethods.POST)
}
...@@ -1339,3 +1339,20 @@ export const label_businessOpt = [ ...@@ -1339,3 +1339,20 @@ export const label_businessOpt = [
{ confId: 3, confValue: "权益" }, { confId: 3, confValue: "权益" },
{ confId: 1, confValue: "延保" } { confId: 1, confValue: "延保" }
] ]
// 服务中心-长课程配置 是否启用处罚
export const punishFlagOpt = [
{ confId: "0", confValue: "否" },
{ confId: "1", confValue: "是" }
]
// 服务中心-长课程配置 处罚状态
export const punishStatusOpt = [
{ confId: "1", confValue: "未触发" },
{ confId: "2", confValue: "处罚中" },
{ confId: "3", confValue: "已结束" }
]
// 服务中心-长课程配置 归属业务
export const course_businessOpt = [
{ confId: "0", confValue: "轻改" },
{ confId: "1", confValue: "权益" },
{ confId: "2", confValue: "延保" }
]
...@@ -167,9 +167,9 @@ export default { ...@@ -167,9 +167,9 @@ export default {
nbTransferStatusOpt: [], nbTransferStatusOpt: [],
refreshFlag: false, refreshFlag: false,
colorClass: { colorClass: {
0: 'ashSpot', 1: 'ashSpot',
1: 'greenSpot', 2: 'orgenSpot',
2: 'redSpot' 3: 'greenSpot'
} }
} }
}, },
......
...@@ -35,13 +35,14 @@ ...@@ -35,13 +35,14 @@
:table-params="tableParams" :table-params="tableParams"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot="performanceFlag" <div slot="punishFlagHtml"
slot-scope="scope"> slot-scope="scope">
<el-switch v-model="scope.scope.cancelStatus" <el-switch v-model="scope.scope.punishFlag"
class="switchStyle"
active-color="#2a58ad"
active-text="启用" active-text="启用"
inactive-text="停用"></el-switch> inactive-text="停用"
active-value="1"
inactive-value="0"></el-switch>
<!-- <span>{{ scope.scope.cancelStatus ? "启用" : "停用" }}</span> -->
</div> </div>
<div slot="auth-button" <div slot="auth-button"
slot-scope="scope"> slot-scope="scope">
...@@ -74,34 +75,33 @@ import courseDetailDialog from "./components/courseDetailDialog" ...@@ -74,34 +75,33 @@ import courseDetailDialog from "./components/courseDetailDialog"
// import QRCodeDetailDialog from "../../components/QRCodeDetailDialog" // import QRCodeDetailDialog from "../../components/QRCodeDetailDialog"
import { invoicePage, batchCancelInvoiceQrcode } from "@api/invoiceManage" import { invoicePage, batchCancelInvoiceQrcode } from "@api/invoiceManage"
import { import {
useStatusOpt, punishFlagOpt,
expireStatusOpt, punishStatusOpt,
createdSourceOpt, course_businessOpt
cancelStatusOpt,
invoiceTypeOpt
} from "@/common/constants.js" } from "@/common/constants.js"
export default { export default {
name: "CourseList", name: "CourseList",
data() { data() {
return { return {
searchForm: { searchForm: {
createTime: "", staffName: "",
staffPhone: "",
title: "",
mainBrand: "",
merchantName: "",
businessSceneTypeName: "",
sendTime: "",
finishTime: "",
passedTime: "",
useStatus: "", useStatus: "",
expireStatus: "", punishStatus: "",
itemNames: "", punishFlag: ""
createdSource: "",
cancelStatus: "",
bizOrderCode: "",
bizTradeNo: "",
tradeNo: "",
invoiceType: "",
invoiceAmount: []
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [ showFormData: [
{ {
label: "员工姓名", label: "员工姓名",
name: "itemNames", name: "staffName",
type: "input", type: "input",
maxlength: "50", maxlength: "50",
isClear: true isClear: true
...@@ -116,88 +116,85 @@ export default { ...@@ -116,88 +116,85 @@ export default {
}, },
{ {
label: "任务名称", label: "任务名称",
name: "itemNames", name: "title",
type: "input", type: "input",
maxlength: "50", maxlength: "50",
isClear: true isClear: true
}, },
{ {
label: "主营品牌", label: "主营品牌",
name: "useStatus", name: "mainBrand",
type: "select", type: "input",
isClear: true, maxlength: "50",
optionList: [], isClear: true
optionId: "confId",
optionLabel: "confValue",
optionsName: "useStatusOpt"
}, },
{ {
label: "门店名称", label: "门店名称",
name: "itemNames", name: "merchantName",
type: "input", type: "input",
maxlength: "50", maxlength: "50",
isClear: true isClear: true
}, },
{ {
label: "归属业务", label: "归属业务",
name: "useStatus", name: "businessSceneTypeName",
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "useStatusOpt" optionsName: "businessOpt"
}, },
{ {
label: "课程配置时间", label: "课程配置时间",
name: "createTime", name: "sendTime",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
pickerOptions: "rangePickerOptions" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "课程结束时间", label: "课程结束时间",
name: "createTime", name: "finishTime",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
pickerOptions: "rangePickerOptions" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "课程完成时间", label: "课程完成时间",
name: "createTime", name: "passedTime",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
pickerOptions: "rangePickerOptions" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "任务状态", label: "任务状态",
name: "useStatus", name: "taskStatus",
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "useStatusOpt" optionsName: "taskStatusOpt"
}, },
{ {
label: "处罚状态", label: "处罚状态",
name: "useStatus", name: "punishStatus",
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "useStatusOpt" optionsName: "punishStatusOpt"
}, },
{ {
label: "处罚启停", label: "处罚启停",
name: "useStatus", name: "punishFlag",
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "useStatusOpt" optionsName: "punishFlagOpt"
} }
], ],
getListApi: invoicePage, getListApi: invoicePage,
...@@ -211,66 +208,61 @@ export default { ...@@ -211,66 +208,61 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "员工姓名", label: "员工姓名",
prop: "invoiceAmount", prop: "staffName",
width: "150" width: "150"
}, },
{ {
label: "手机号码", label: "手机号码",
prop: "invoiceAmount", prop: "staffPhone",
width: "150" width: "150"
}, },
{ {
label: "门店名称", label: "门店名称",
prop: "itemNames", prop: "merchantName",
width: "300" width: "300"
}, },
{ {
label: "归属业务", label: "归属业务",
prop: "expireStatus", prop: "businessSceneTypeName",
width: "120px", width: "120px",
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.expireStatusOpt.find( return this.baseData.businessOpt.find(
(item) => item.confId === cellValue.expireStatus (item) => item.confId === cellValue.businessSceneTypeName
)?.confValue )?.confValue
} }
}, },
{ {
label: "主营品牌", label: "主营品牌",
prop: "expireStatus", prop: "mainBrand",
width: "120px", width: "120px"
formatter: (cellValue) => {
return this.baseData.expireStatusOpt.find(
(item) => item.confId === cellValue.expireStatus
)?.confValue
}
}, },
{ {
label: "学习任务名称", label: "学习任务名称",
prop: "itemNames", prop: "title",
width: "300" width: "300"
}, },
{ {
label: "课程信息", label: "课程信息",
prop: "itemNames", prop: "courseName",
width: "150" width: "150"
}, },
{ {
label: "课程配置时间", label: "课程配置时间",
prop: "createdDate", prop: "sendTime",
width: "180" width: "180"
}, },
{ {
label: "课程结束时间", label: "课程结束时间",
prop: "createdDate", prop: "finishDate",
width: "180" width: "180"
}, },
{ {
label: "任务状态", label: "任务状态",
prop: "useStatus", prop: "taskStatus",
width: "120px", width: "120px",
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.useStatusOpt.find( return this.baseData.taskStatusOpt.find(
(item) => item.confId === cellValue.useStatus (item) => item.confId === cellValue.taskStatus
)?.confValue )?.confValue
}, },
className: (cellValue) => { className: (cellValue) => {
...@@ -282,7 +274,7 @@ export default { ...@@ -282,7 +274,7 @@ export default {
}, },
{ {
label: "任务完成时间", label: "任务完成时间",
prop: "createdDate", prop: "passedTime",
width: "180" width: "180"
}, },
{ {
...@@ -292,31 +284,32 @@ export default { ...@@ -292,31 +284,32 @@ export default {
}, },
{ {
label: "处罚状态", label: "处罚状态",
prop: "cancelStatus", prop: "punishStatus",
width: "100px", width: "100px",
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.cancelStatusOpt.find( return this.baseData.punishStatusOpt.find(item => item.confId === cellValue.punishStatus)?.confValue
(item) => item.confId === cellValue.cancelStatus },
)?.confValue className: (cellValue) => {
return {
1: 'ashSpot',
2: 'orgenSpot',
3: 'greenSpot'
}[cellValue.punishStatus]
} }
}, },
{ {
label: '处罚启停', label: '处罚启停',
prop: 'cancelStatus', prop: 'punishFlag',
width: '150px', width: '150px',
addHtml: 'performanceFlag' addHtml: 'punishFlagHtml'
// formatter: (cellValue) => {
// return this.baseData.cancelStatusOpt.find(item => item.confId === cellValue.cancelStatus)?.confValue
// }
} }
] ]
}, },
baseData: { baseData: {
useStatusOpt: deepClone(useStatusOpt), punishStatusOpt: deepClone(punishStatusOpt),
expireStatusOpt: deepClone(expireStatusOpt), punishFlagOpt: deepClone(punishFlagOpt),
createdSourceOpt: deepClone(createdSourceOpt), businessOpt: deepClone(course_businessOpt),
cancelStatusOpt: deepClone(cancelStatusOpt), taskStatusOpt: deepClone(taskStatusOpt)
invoiceTypeOpt: deepClone(invoiceTypeOpt)
}, },
recordInfo: null, recordInfo: null,
detailVisible: false detailVisible: false
...@@ -381,17 +374,18 @@ export default { ...@@ -381,17 +374,18 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
createTime: "", staffName: "",
staffPhone: "",
title: "",
mainBrand: "",
merchantName: "",
businessSceneTypeName: "",
sendTime: "",
finishTime: "",
passedTime: "",
useStatus: "", useStatus: "",
expireStatus: "", punishStatus: "",
itemNames: "", punishFlag: ""
createdSource: "",
cancelStatus: "",
bizOrderCode: "",
bizTradeNo: "",
tradeNo: "",
invoiceType: "",
invoiceAmount: []
} }
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!