Commit 71074475 by 前端

版本功能代码提交

1 parent f4362e08
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 查询员工预警列表
export function staffWarningMsgListWithPage(data) {
data.method = `${path}warningmsg.staffWarningMsgListWithPage`
return request(data, RequestMethods.POST)
}
// 预警明细
export function warningMsgDetailListWithPage(data) {
data.method = `${path}warningmsg.warningMsgDetailListWithPage`
return request(data, RequestMethods.POST)
}
// 查询枚举 Type 1.预警类型 2.预警事项
export function findAllData(data) {
data.method = `${path}warningmsg.findAllData`
return request(data, RequestMethods.POST)
}
// 查询相关警情的所有督导或销售 1.督导 2.销售
export function findAllPersonRelations(data) {
data.method = `${path}warningmsg.findAllPersonRelations`
return request(data, RequestMethods.POST)
}
// 根据预警id查询预警的跟进信息
export function findByMsgId(data) {
data.method = `${path}warningmsg.findByMsgId`
return request(data, RequestMethods.POST)
}
// 保存跟进记录
export function saveFollowRecord(data) {
data.method = `${path}warningmsg.saveFollowRecord`
return request(data, RequestMethods.POST)
}
// 导出预警明细
export function warningMsgDetailListWithPageExport(data) {
data.method = `${path}warningmsg.warningMsgDetailListWithPageExport`
return request(data, RequestMethods.POST)
}
// 查询门店预警列表
export function merchantWarningMsgListWithPage(data) {
data.method = `${path}warningmsg.merchantWarningMsgListWithPage`
return request(data, RequestMethods.POST)
}
...@@ -925,3 +925,31 @@ export const sendStatusList = [ ...@@ -925,3 +925,31 @@ export const sendStatusList = [
{ confId: 2, confValue: "待发送" }, { confId: 2, confValue: "待发送" },
{ confId: 3, confValue: "已发送" } { confId: 3, confValue: "已发送" }
] ]
// 预警管理 所属业务
export const businessOpt = [
{ confId: 2, confValue: "轻改" },
{ confId: 3, confValue: "权益" },
{ confId: 4, confValue: "延保" }
]
// 预警管理 优先级
export const priorityOpt = [
{ confId: 1, confValue: "1" },
{ confId: 2, confValue: "2" },
{ confId: 3, confValue: "3" }
]
// 预警管理 预警阶段
export const warnStageyOpt = [
{ confId: 1, confValue: "第一阶段" },
{ confId: 2, confValue: "第二阶段" }
]
// 预警管理 状态
export const statusOpt = [
{ confId: 1, confValue: "待处理" },
{ confId: 2, confValue: "预约处理" },
{ confId: 3, confValue: "已完成" },
{ confId: 0, confValue: "无需处理" }
]
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
915: {
path: "/earlyWarningManager",
name: "earlyWarningManager",
meta: {
title: "预警管理",
authId: "915",
parentId: "1",
cache: false
}
},
91501: {
path: "/staffWarn",
name: "staffWarn",
meta: {
title: "员工预警管理",
authId: "91501",
parentId: "915",
cache: false
},
auth: [
{
authId: "9150101",
parentId: "91501",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9150102",
parentId: "91501",
label: "查看",
handle: "handleDetail"
},
{
authId: "9150103",
parentId: "91501",
label: "处理",
handle: "handleDeal"
}
],
component: _import("earlyWarningManager/staff/indexControl")
},
91502: {
path: "/storeWarn",
name: "storeWarn",
meta: {
title: "门店预警管理",
authId: "91502",
parentId: "915",
cache: false
},
auth: [
{
authId: "9150201",
parentId: "91502",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9150202",
parentId: "91502",
label: "查看",
handle: "handleDetail"
},
{
authId: "9150203",
parentId: "91502",
label: "处理",
handle: "handleDeal"
}
],
component: _import("earlyWarningManager/store/indexControl")
}
}
<!-- 员工预警管理 -->
<template>
<d2-container class="staffWarn">
<div class="header"
slot="header">
<el-tabs v-model="activeName"
@tab-click="handleClickTabs">
<el-tab-pane label="预警看板"
name="noticeBoard" />
<el-tab-pane label="预警明细"
name="details" />
</el-tabs>
</div>
<div>
<notice-board v-if="activeName === 'noticeBoard'"
@gotoDetail="gotoDetail" />
<staff-detail v-if="activeName === 'details'"
:params-obj="recordInfo" />
</div>
</d2-container>
</template>
<script>
import noticeBoard from './noticeBoard'
import staffDetail from './details'
import { deepClone } from '@/common/util'
export default {
name: 'StaffIndex',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
activeName: 'noticeBoard',
recordInfo: {}
}
},
components: {
noticeBoard,
staffDetail
},
mounted() {
},
methods: {
handleClickTabs() {
this.recordInfo = {}
},
gotoDetail(params) {
this.activeName = 'details'
this.recordInfo = deepClone(params)
}
}
}
</script>
<style >
.staffWarn .el-tabs__header {
margin: 0;
padding: 0 20px;
}
</style>
<!-- 门店预警管理 -->
<template>
<d2-container class="staffWarn">
<div class="header"
slot="header">
<el-tabs v-model="activeName"
@tab-click="handleClickTabs">
<el-tab-pane label="预警看板"
name="noticeBoard" />
<el-tab-pane label="预警明细"
name="details" />
</el-tabs>
</div>
<div>
<notice-board v-if="activeName === 'noticeBoard'"
@gotoDetail="gotoDetail" />
<staff-detail v-if="activeName === 'details'"
:params-obj="recordInfo" />
</div>
</d2-container>
</template>
<script>
import noticeBoard from './noticeBoard'
import staffDetail from './details'
export default {
name: 'StaffIndex',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
activeName: 'noticeBoard',
recordInfo: {}
}
},
components: {
noticeBoard,
staffDetail
},
mounted() {
},
methods: {
handleClickTabs() {
this.recordInfo = {}
},
gotoDetail(params) {
this.activeName = 'details'
this.recordInfo = params
console.log(params)
}
}
}
</script>
<style >
.staffWarn .el-tabs__header {
margin: 0;
padding: 0 20px;
}
</style>
...@@ -85,7 +85,8 @@ ...@@ -85,7 +85,8 @@
v-if="editRemarkFlag" v-if="editRemarkFlag"
@click="editRemark">修改</el-button> @click="editRemark">修改</el-button>
</el-form-item> </el-form-item>
<el-form-item label="撤销原因:" v-if="detail.revokeReason"> <el-form-item label="撤销原因:"
v-if="detail.revokeReason">
{{ detail.revokeReason }} {{ detail.revokeReason }}
</el-form-item> </el-form-item>
<el-form-item label="战败原因:" <el-form-item label="战败原因:"
...@@ -275,7 +276,7 @@ ...@@ -275,7 +276,7 @@
</p> </p>
</div> </div>
<el-dialog :visible="imgVisible" <!-- <el-dialog :visible="imgVisible"
:before-close="handleEnlargeImg"> :before-close="handleEnlargeImg">
<el-carousel :autoplay="false" <el-carousel :autoplay="false"
arrow="always" arrow="always"
...@@ -291,7 +292,12 @@ ...@@ -291,7 +292,12 @@
class="carousel-img"> class="carousel-img">
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</el-dialog> </el-dialog> -->
<el-image-viewer v-if="imgVisible"
:on-close="closeImgViewer"
:url-list="imgList"
:initial-index="initialIndex" />
<!-- 标记退款 --> <!-- 标记退款 -->
<!-- <sign-refund-dialog :sign-refund-visible="signRefundVisible" <!-- <sign-refund-dialog :sign-refund-visible="signRefundVisible"
...@@ -331,7 +337,8 @@ export default { ...@@ -331,7 +337,8 @@ export default {
components: { components: {
// signRefundDialog, // signRefundDialog,
remarkDialog, remarkDialog,
newSignRefundDialog newSignRefundDialog,
'el-image-viewer': () => import('element-ui/packages/image/src/image-viewer')
}, },
data() { data() {
return { return {
...@@ -390,7 +397,8 @@ export default { ...@@ -390,7 +397,8 @@ export default {
extendedPosiTypeList: [], extendedPosiTypeList: [],
isPartialRefund: false, // 支持部分退款 isPartialRefund: false, // 支持部分退款
InvoicingFlag: false, // 标记已开票权限 InvoicingFlag: false, // 标记已开票权限
editRemarkFlag: false // 编辑备注权限 editRemarkFlag: false, // 编辑备注权限
initialIndex: 0
} }
}, },
computed: { computed: {
...@@ -420,7 +428,9 @@ export default { ...@@ -420,7 +428,9 @@ export default {
}, },
handleEnlargeImg(url, name) { handleEnlargeImg(url, name) {
this.imgVisible = !this.imgVisible this.imgVisible = !this.imgVisible
this.imgList = url // this.imgList = url
console.log('url', url)
this.imgList = url.map(item => item[name])
this.imgUrlName = name this.imgUrlName = name
}, },
getSummaries(param) { getSummaries(param) {
...@@ -542,6 +552,10 @@ export default { ...@@ -542,6 +552,10 @@ export default {
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
},
closeImgViewer() {
this.imgVisible = false
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!