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 = [
{ confId: 3, 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 {
nbTransferStatusOpt: [],
refreshFlag: false,
colorClass: {
0: 'ashSpot',
1: 'greenSpot',
2: 'redSpot'
1: 'ashSpot',
2: 'orgenSpot',
3: 'greenSpot'
}
}
},
......
......@@ -35,13 +35,14 @@
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="performanceFlag"
<div slot="punishFlagHtml"
slot-scope="scope">
<el-switch v-model="scope.scope.cancelStatus"
class="switchStyle"
active-color="#2a58ad"
<el-switch v-model="scope.scope.punishFlag"
active-text="启用"
inactive-text="停用"></el-switch>
inactive-text="停用"
active-value="1"
inactive-value="0"></el-switch>
<!-- <span>{{ scope.scope.cancelStatus ? "启用" : "停用" }}</span> -->
</div>
<div slot="auth-button"
slot-scope="scope">
......@@ -74,34 +75,33 @@ import courseDetailDialog from "./components/courseDetailDialog"
// import QRCodeDetailDialog from "../../components/QRCodeDetailDialog"
import { invoicePage, batchCancelInvoiceQrcode } from "@api/invoiceManage"
import {
useStatusOpt,
expireStatusOpt,
createdSourceOpt,
cancelStatusOpt,
invoiceTypeOpt
punishFlagOpt,
punishStatusOpt,
course_businessOpt
} from "@/common/constants.js"
export default {
name: "CourseList",
data() {
return {
searchForm: {
createTime: "",
staffName: "",
staffPhone: "",
title: "",
mainBrand: "",
merchantName: "",
businessSceneTypeName: "",
sendTime: "",
finishTime: "",
passedTime: "",
useStatus: "",
expireStatus: "",
itemNames: "",
createdSource: "",
cancelStatus: "",
bizOrderCode: "",
bizTradeNo: "",
tradeNo: "",
invoiceType: "",
invoiceAmount: []
punishStatus: "",
punishFlag: ""
},
searchFormSearch: {},
showFormData: [
{
label: "员工姓名",
name: "itemNames",
name: "staffName",
type: "input",
maxlength: "50",
isClear: true
......@@ -116,88 +116,85 @@ export default {
},
{
label: "任务名称",
name: "itemNames",
name: "title",
type: "input",
maxlength: "50",
isClear: true
},
{
label: "主营品牌",
name: "useStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "useStatusOpt"
name: "mainBrand",
type: "input",
maxlength: "50",
isClear: true
},
{
label: "门店名称",
name: "itemNames",
name: "merchantName",
type: "input",
maxlength: "50",
isClear: true
},
{
label: "归属业务",
name: "useStatus",
name: "businessSceneTypeName",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "useStatusOpt"
optionsName: "businessOpt"
},
{
label: "课程配置时间",
name: "createTime",
name: "sendTime",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
},
{
label: "课程结束时间",
name: "createTime",
name: "finishTime",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
},
{
label: "课程完成时间",
name: "createTime",
name: "passedTime",
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
},
{
label: "任务状态",
name: "useStatus",
name: "taskStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "useStatusOpt"
optionsName: "taskStatusOpt"
},
{
label: "处罚状态",
name: "useStatus",
name: "punishStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "useStatusOpt"
optionsName: "punishStatusOpt"
},
{
label: "处罚启停",
name: "useStatus",
name: "punishFlag",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "useStatusOpt"
optionsName: "punishFlagOpt"
}
],
getListApi: invoicePage,
......@@ -211,66 +208,61 @@ export default {
tableColumns: [
{
label: "员工姓名",
prop: "invoiceAmount",
prop: "staffName",
width: "150"
},
{
label: "手机号码",
prop: "invoiceAmount",
prop: "staffPhone",
width: "150"
},
{
label: "门店名称",
prop: "itemNames",
prop: "merchantName",
width: "300"
},
{
label: "归属业务",
prop: "expireStatus",
prop: "businessSceneTypeName",
width: "120px",
formatter: (cellValue) => {
return this.baseData.expireStatusOpt.find(
(item) => item.confId === cellValue.expireStatus
return this.baseData.businessOpt.find(
(item) => item.confId === cellValue.businessSceneTypeName
)?.confValue
}
},
{
label: "主营品牌",
prop: "expireStatus",
width: "120px",
formatter: (cellValue) => {
return this.baseData.expireStatusOpt.find(
(item) => item.confId === cellValue.expireStatus
)?.confValue
}
prop: "mainBrand",
width: "120px"
},
{
label: "学习任务名称",
prop: "itemNames",
prop: "title",
width: "300"
},
{
label: "课程信息",
prop: "itemNames",
prop: "courseName",
width: "150"
},
{
label: "课程配置时间",
prop: "createdDate",
prop: "sendTime",
width: "180"
},
{
label: "课程结束时间",
prop: "createdDate",
prop: "finishDate",
width: "180"
},
{
label: "任务状态",
prop: "useStatus",
prop: "taskStatus",
width: "120px",
formatter: (cellValue) => {
return this.baseData.useStatusOpt.find(
(item) => item.confId === cellValue.useStatus
return this.baseData.taskStatusOpt.find(
(item) => item.confId === cellValue.taskStatus
)?.confValue
},
className: (cellValue) => {
......@@ -282,7 +274,7 @@ export default {
},
{
label: "任务完成时间",
prop: "createdDate",
prop: "passedTime",
width: "180"
},
{
......@@ -292,31 +284,32 @@ export default {
},
{
label: "处罚状态",
prop: "cancelStatus",
prop: "punishStatus",
width: "100px",
formatter: (cellValue) => {
return this.baseData.cancelStatusOpt.find(
(item) => item.confId === cellValue.cancelStatus
)?.confValue
return this.baseData.punishStatusOpt.find(item => item.confId === cellValue.punishStatus)?.confValue
},
className: (cellValue) => {
return {
1: 'ashSpot',
2: 'orgenSpot',
3: 'greenSpot'
}[cellValue.punishStatus]
}
},
{
label: '处罚启停',
prop: 'cancelStatus',
prop: 'punishFlag',
width: '150px',
addHtml: 'performanceFlag'
// formatter: (cellValue) => {
// return this.baseData.cancelStatusOpt.find(item => item.confId === cellValue.cancelStatus)?.confValue
// }
addHtml: 'punishFlagHtml'
}
]
},
baseData: {
useStatusOpt: deepClone(useStatusOpt),
expireStatusOpt: deepClone(expireStatusOpt),
createdSourceOpt: deepClone(createdSourceOpt),
cancelStatusOpt: deepClone(cancelStatusOpt),
invoiceTypeOpt: deepClone(invoiceTypeOpt)
punishStatusOpt: deepClone(punishStatusOpt),
punishFlagOpt: deepClone(punishFlagOpt),
businessOpt: deepClone(course_businessOpt),
taskStatusOpt: deepClone(taskStatusOpt)
},
recordInfo: null,
detailVisible: false
......@@ -381,17 +374,18 @@ export default {
},
handleReset() {
this.searchForm = {
createTime: "",
staffName: "",
staffPhone: "",
title: "",
mainBrand: "",
merchantName: "",
businessSceneTypeName: "",
sendTime: "",
finishTime: "",
passedTime: "",
useStatus: "",
expireStatus: "",
itemNames: "",
createdSource: "",
cancelStatus: "",
bizOrderCode: "",
bizTradeNo: "",
tradeNo: "",
invoiceType: "",
invoiceAmount: []
punishStatus: "",
punishFlag: ""
}
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!