Commit 11523522 by 张立顺

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

…ife-system into SAAS+V4.51.1-0415
2 parents 65b9e8dc 2d7fdade
...@@ -250,3 +250,15 @@ export function getCustomerInfoDetail(data) { ...@@ -250,3 +250,15 @@ export function getCustomerInfoDetail(data) {
data.method = `dj.api.mindworkplate.customervisit.getCustomerInfoDetail` data.method = `dj.api.mindworkplate.customervisit.getCustomerInfoDetail`
return request(data, "post") return request(data, "post")
} }
/** 标签列表 */
export function findAllTags(data = {}) {
data.method = `dj.api.material.scenemarket.findAllTags`
return request(data, "post")
}
/** 场景列表 */
export function findAllLevel(data = {}) {
data.method = `dj.api.material.scenemarket.findAllLevel`
return request(data, "post")
}
\ No newline at end of file \ No newline at end of file
import request from "./request"
import RequestMethods from "./request.methods"
// 主营品牌(旧接口)
export function getBrandList(data) {
data.method = `dj.api.smartcarlife.common.car.brand.list`
return request(data, RequestMethods.POST)
}
// 业务列表
export function findAllLevelList(data) {
data.method = `dj.api.material.scenemarket.findAllLevel`
return request(data, RequestMethods.POST)
}
// 分页列表查询
export function getSceneData(data) {
data.method = `dj.api.material.scenemarket.sceneMarketLeadsPage`
return request(data, RequestMethods.POST)
}
// 列表导出
export function sceneExport(data) {
data.method = `dj.api.material.scenemarket.sceneMarketLeadsListExport`
return request(data, RequestMethods.POST)
}
// 详情
export function findSceneMarketLeadsById(data) {
data.method = `dj.api.material.scenemarket.findSceneMarketLeadsById`
return request(data, RequestMethods.POST)
}
...@@ -828,7 +828,9 @@ export const downloadReportManage_reportType = [ ...@@ -828,7 +828,9 @@ export const downloadReportManage_reportType = [
{ confId: "dailybehaviorsummary", confValue: "日行为汇总表" }, { confId: "dailybehaviorsummary", confValue: "日行为汇总表" },
{ confId: "weeklybehaviorsummary", confValue: "周行为汇总表" }, { confId: "weeklybehaviorsummary", confValue: "周行为汇总表" },
{ confId: "businessDataSummary", confValue: "业务数据汇总" }, { confId: "businessDataSummary", confValue: "业务数据汇总" },
{ confId: "yanbaoMerAndPerRanking", confValue: "门店产值及个人成交排名" } { confId: "yanbaoMerAndPerRanking", confValue: "门店产值及个人成交排名" },
{ confId: "abnormalClockWeeklySummary", confValue: "打卡异常周汇总表" },
{ confId: "ClockMonthlySummary", confValue: "打卡月汇总表" }
] ]
// 下载报表 业务类型 // 下载报表 业务类型
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2024-04-01 15:03:31 * @Date: 2024-04-01 15:03:31
* @LastEditors: huyue * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2024-08-13 14:42:56 * @LastEditTime: 2025-04-01 10:42:02
*/ */
const _import = require("@/libs/util.import." + process.env.NODE_ENV) const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = { export const routerName = {
...@@ -657,7 +657,7 @@ export const routerName = { ...@@ -657,7 +657,7 @@ export const routerName = {
ruleObj: { ruleObj: {
attr: "minPerformConfigStatus", attr: "minPerformConfigStatus",
rule: { rule: {
null: '启用', null: "启用",
2: "启用", 2: "启用",
1: "禁用" 1: "禁用"
}, },
...@@ -858,7 +858,7 @@ export const routerName = { ...@@ -858,7 +858,7 @@ export const routerName = {
parentId: "91214", parentId: "91214",
label: "删除", label: "删除",
handle: "handleDelete" handle: "handleDelete"
}, }
], ],
component: _import("residentManage/growUpGrade/indexControl") component: _import("residentManage/growUpGrade/indexControl")
}, },
...@@ -894,5 +894,79 @@ export const routerName = { ...@@ -894,5 +894,79 @@ export const routerName = {
cache: false cache: false
}, },
component: _import("residentManage/promotionAndDmotion/index") component: _import("residentManage/promotionAndDmotion/index")
},
91218: {
path: "/sceneClueManagement",
name: "sceneClueManagement",
meta: {
title: "场景线索管理",
authId: "91218",
parentId: "912",
cache: false
},
auth: [
{
authId: "9121801",
parentId: "91218",
label: "详情",
handle: "handleDetail",
addRoutePath: [
{
authId: "912180101",
name: "详情",
parentId: "91218"
}
]
}
],
component: _import("residentManage/sceneClueManagement/index")
},
912180101: {
path: "/inSceneConfigView",
name: "inSceneConfigView",
meta: {
title: "详情",
authId: "912180101",
parentId: "91218",
activePath: "/inSceneConfigView"
},
component: _import("residentManage/sceneClueManagement/detailView")
},
91219: {
path: "/verbalTrickManagement",
name: "verbalTrickManagement",
meta: {
title: "话术管理",
authId: "91219",
parentId: "912",
cache: false
},
auth: [
{
authId: "9121901",
parentId: "91219",
label: "明细",
handle: "handleDetail",
addRoutePath: [
{
authId: "912190101",
name: "详情",
parentId: "91219"
}
]
}
],
component: _import("residentManage/verbalTrickManagement/index")
},
912190101: {
path: "/inVerbalConfigView",
name: "inVerbalConfigView",
meta: {
title: "明细",
authId: "912190101",
parentId: "91219",
activePath: "/inVerbalConfigView"
},
component: _import("residentManage/verbalTrickManagement/detailView")
} }
} }
<template>
<div class="activity-img-box">
<div class="upload-img">
<el-button
class="avatar-uploader-desc-word"
size="small"
icon="el-icon-puls"
key="btn-i"
:disabled="!!imageUrlArr.length"
@click="selectFile()"
>上传文件</el-button
>
<input
type="file"
ref="uploadImgRef"
class="upload-img"
style="opacity: 0; z-index: -1"
:accept="accept"
@change="(e) => handleImgChange(e)"
/>
</div>
<template v-if="imageUrlArr && imageUrlArr.length > 0">
<div class="file-wrap" v-for="(item, index) in imageUrlArr" :key="index">
<div class="file-box" @click="toOpenPDF(item.image)">
<div class="info" v-if="item.imageName">
<img class="logo" :src="require('@/assets/pdf.png')" alt="" />
<span class="name">{{ item.imageName }}</span>
</div>
<div
class="process"
:style="{
width: item.image ? '432px' : (compress * 432) / 100 + 'px'
}"
></div>
</div>
<img
v-if="item.image"
class="del-btn"
:src="require('@/assets/icon-delete.png')"
alt=""
@click="delFile(index)"
/>
</div>
</template>
</div>
</template>
<script>
import upload from "@/common/upload"
import { uploadPDF } from "@/api/sys.base"
export default {
props: {
picOptions: {
type: Object,
default: () => {
return {
width: "104px",
height: "104px",
isClose: true,
limitSize: 10
}
}
},
imageUrlArr: {
type: Array,
default: () => [
{
name: "asdakf.pdf",
url: "sfdsfjskdf.pdf"
}
]
},
accept: {
type: String,
default: '.pdf'
},
limit: {
type: String,
default: "1"
},
index: {
type: Number,
default: -1
}
},
data() {
return {
compress: 0,
dialogVisibleImg: false,
uploadInfo: null,
uploading: false
}
},
methods: {
selectFile() {
if (this.uploading) {
return this.$message.error(`文件上传中,请耐心等待文件上传完成`)
}
this.$refs.uploadImgRef.click()
},
// 上传图片
handleImgChange(e) {
var file = e.srcElement.files[0]
// if (file.type?.indexOf("pdf") == -1) {
// this.$refs.uploadImgRef && (this.$refs.uploadImgRef.value = "")
// this.$message.error(`上传文件不是pdf的格式!`)
// return
// }
// 默认1MB
const limitSize = this.picOptions.limitSize || 10
const isLt = file.size / 1024 / 1024 < limitSize
if (!isLt) {
this.$message.error(`上传文件大小不能超过${limitSize}MB!`)
this.$refs.uploadImgRef && (this.$refs.uploadImgRef.value = "")
return
}
if (this.imageUrlArr.length >= this.limit) {
this.$message.error(`最多上传${this.limit}个文件`)
this.$refs.uploadImgRef && (this.$refs.uploadImgRef.value = "")
return
}
this.$notify({
title: "提示",
message: `文件上传中,请稍后`
})
this.$emit("beforeUpload")
const idx = this.imageUrlArr.length
this.$set(this.imageUrlArr, idx, { imageName: file.name, image: "" })
this.uploading = true
this.uploadInfo = new upload({
showprocess: true,
success: (res) => {
this.$notify({
title: "提示",
message: `文件上传成功`,
type: "success"
})
this.$set(this.imageUrlArr, idx, {
imageName: file.name,
image: res
})
this.$emit("change", {
arr: this.imageUrlArr,
key: this.picOptions.key,
index: this.index
})
this.uploadEnd()
},
error: (err) => {
this.uploadEnd()
}
})
this.uploadInfo.clickEvent(e.srcElement.files)
},
uploadEnd() {
this.uploading = false
this.$refs.uploadImgRef && (this.$refs.uploadImgRef.value = "")
this.$emit("afterUpload")
},
toOpenPDF(url) {
if (!url) {
return this.$message({
type: "warning",
message: "文件正在上传,请稍后预览"
})
}
window.open(url)
},
// 删除图片/视频
delFile(index) {
this.imageUrlArr.splice(index, 1)
this.$emit("change", {
arr: this.imageUrlArr,
key: this.picOptions.key,
id: 1,
index: this.index
})
}
}
}
</script>
<style scoped lang="scss">
.file-wrap {
display: flex;
align-items: center;
.file-box {
width: 432px;
height: 32px;
border-radius: 4px;
position: relative;
cursor: pointer;
.info {
height: inherit;
display: flex;
align-items: center;
margin-left: 8px;
position: relative;
z-index: 1;
.logo {
margin-right: 8px;
}
.name {
color: #1d1d1d;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.process {
position: absolute;
height: 32px;
left: 0;
top: 0;
background: #f4f6f7;
}
}
.del-btn {
width: 16px;
height: 16px;
cursor: pointer;
margin-left: 10px;
}
}
.activity-img-box {
max-width: 600px;
.pic-box {
position: relative;
width: 104px;
height: 104px;
border-radius: 4px;
margin-right: 8px;
margin-bottom: 5px;
&:hover .mask {
opacity: 1;
}
.pic {
position: absolute;
object-fit: fill;
}
.photo-activity {
position: absolute;
width: 100%;
height: 100%;
}
.mask {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
background: rgba(0, 0, 0, 0.5);
color: #ffffff;
opacity: 0;
top: 0;
right: 0;
width: 104px;
height: 104px;
z-index: 999;
.pic-pane-close {
width: 16px;
height: 16px;
cursor: pointer;
margin-left: 24px;
&:first-child {
margin-left: 0;
}
img {
width: 100%;
display: block;
}
}
}
}
.upload-img {
position: relative;
display: inline-block;
input {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
}
}
.avatar-uploader-desc-word {
font-weight: 400;
font-size: 28rpx;
color: #666666;
margin-bottom: 8px;
}
.image-dialog {
::v-deep {
.el-dialog__header {
border-bottom: 0px;
padding: 0px;
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -22,6 +22,14 @@ export const CONTENT_TYPE_OPTIONS = [ ...@@ -22,6 +22,14 @@ export const CONTENT_TYPE_OPTIONS = [
{ {
id: 3, id: 3,
label: "富文本" label: "富文本"
},
{
id: 4,
label: "Excel"
},
{
id: 5,
label: "Word"
} }
] ]
// 场景 // 场景
...@@ -60,6 +68,10 @@ export const CHANNEL_OPTIONS = [ ...@@ -60,6 +68,10 @@ export const CHANNEL_OPTIONS = [
{ {
id: 2, id: 2,
label: "展业助手" label: "展业助手"
},
{
id: 3,
label: "场景集市"
} }
] ]
// 状态 // 状态
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot="merchantSlot" slot-scope="scope"> <div slot="merchantSlot" slot-scope="scope">
<div v-if="scope.scope.showMerchant == 0">全部门店</div> <div v-if="scope.scope.showMerchant == 0">全部门店</div>
<div v-else-if="scope.scope.showMerchant == null">-</div>
<el-popover v-else placement="top" width="245" trigger="hover"> <el-popover v-else placement="top" width="245" trigger="hover">
<div class="merchant-wrap"> <div class="merchant-wrap">
<div <div
...@@ -289,7 +290,9 @@ export default { ...@@ -289,7 +290,9 @@ export default {
0: "图片", 0: "图片",
1: "视频", 1: "视频",
2: "PDF", 2: "PDF",
3: "富文本" 3: "富文本",
4: "excel",
5: "word"
}[cellValue.type] }[cellValue.type]
} }
}, },
...@@ -315,7 +318,8 @@ export default { ...@@ -315,7 +318,8 @@ export default {
return { return {
0: "培训资料", 0: "培训资料",
1: "营销素材", 1: "营销素材",
2: "展业助手" 2: "展业助手",
3: "场景集市"
}[cellValue.showChannel] }[cellValue.showChannel]
} }
}, },
......
<template>
<div>详情</div>
</template>
<script>
import { findSceneMarketLeadsById } from "@/api/scene.js"
export default {
data() {
return {
isFlag: false,
id: this.$route.query.id
}
},
mounted() {
this.getDetail()
},
methods: {
getDetail() {
findSceneMarketLeadsById({
id: this.id
})
.then((data) => {
this.isFlag = true
console.log(data)
})
.catch((err) => {
if (error) this.$message.error(error)
})
}
}
}
</script>
<style></style>
\ No newline at end of file \ No newline at end of file
<template>
<d2-container class="customer-tags">
<div class="header" slot="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'100px'"
:form-data="showFormData"
>
<template slot="businessCode">
<el-cascader
v-model="searchForm.businessCode"
:options="baseData.businessTypeList"
:props="props"
@change="handleChange"
></el-cascader>
</template>
</d2-search>
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header title="场景线索列表">
<el-button size="small" type="primary" @click="exportTable">
导出
</el-button>
</d2-table-header>
<d2-table
ref="table"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9121801']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
</template>
<script>
import {
getBrandList,
findAllLevelList,
getSceneData,
sceneExport
} from "@/api/scene.js"
import { Util, deepClone } from "@/common/util"
export default {
data() {
return {
getListApi: getSceneData,
tableParams: {
listName: "list",
tableOption: {
width: "100"
},
tableColumns: [
{
label: "门店名称",
prop: "storeName"
},
{
label: "主营品牌",
prop: "storeBrand"
},
{
label: "业务分类",
prop: "businessCodeName"
},
{
label: "员工姓名",
prop: "createdBy"
},
{
label: "提报时间",
formatter: (cellValue) => {
return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
: "-"
}
}
]
},
props: {
value: "code",
label: "directoryName",
children: "sceneMarketLevelTwoList"
},
searchFormSearch: {},
searchForm: {
storeName: "",
businessCode: "",
reportDate: [],
storeBrandId: "",
createdBy: ""
},
showFormData: [
{
label: "门店名称",
name: "storeName",
type: "input",
isClear: true
},
{
label: "主营品牌",
name: "storeBrandId",
type: "select",
// multiple: true,
isClear: true,
optionList: [],
optionId: "id",
optionLabel: "label",
optionsName: "brandList"
},
{
label: "业务类型",
name: "businessCode",
type: "slot",
addHtml: "businessCode"
},
{
label: "员工姓名",
name: "createdBy",
type: "input",
isClear: true
},
{
label: "提报日期",
name: "reportDate",
type: "datePicker",
isClear: false,
pickerOptions: "rangePickerOptions"
}
],
baseData: {
businessTypeList: [],
brandList: []
}
}
},
mounted() {
this.initSelect()
},
methods: {
handleDetail(data) {
console.log("row", data)
this.$router.push({
path: "/inSceneConfigView",
query: {
id: data.id
}
})
},
beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchForm?.reportDate?.length) {
let [startDate, endDate] = this.searchForm.reportDate
this.searchFormSearch.startDate = Util.dateFormate(
startDate,
"YYYY-MM-DD"
)
this.searchFormSearch.endDate = Util.dateFormate(
endDate,
"YYYY-MM-DD"
)
}
delete this.searchFormSearch.reportDate
resolve()
})
},
handleSearch() {
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
},
async exportTable() {
try {
await this.beforeSearchFn()
const res = await sceneExport({
...this.searchFormSearch
})
if (res) window.open(res)
} catch (error) {
if (error) this.$message.error(error)
}
},
initSelect() {
// 使用 Promise.all 处理多个异步任务,并捕获所有可能的错误
Promise.allSettled([this.getBusinessTypeList(), this.getBrandList()])
.then((results) => {
// 检查每个任务的结果
results.forEach((result, index) => {
if (result.status === "rejected") {
console.error(`Task ${index} failed:`, result.reason)
}
})
// 统一调用 getOptionsList
this.getOptionsList()
})
.catch((err) => {
console.error("Unexpected error in initSelect:", err)
this.getOptionsList() // 确保即使有意外错误也调用 getOptionsList
})
},
getBusinessTypeList() {
return new Promise((resolve, reject) => {
findAllLevelList({})
.then((res) => {
this.baseData.businessTypeList = res
resolve(res) // 返回结果以便主流程感知
})
.catch((err) => {
console.error("Error in getBusinessTypeList:", err)
reject(err) // 捕获并传递错误
})
})
},
getBrandList() {
return new Promise((resolve, reject) => {
getBrandList({})
.then((res) => {
this.baseData.brandList = res
resolve(res) // 返回结果以便主流程感知
})
.catch((err) => {
console.error("Error in getBrandList:", err)
reject(err) // 捕获并传递错误
})
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
if (
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
] !== "全部"
) {
// if (item.optionsName != "brandList") {
const temp = {}
temp[this.showFormData[index].optionId] = ""
temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp)
// }
}
this.$set(
this.showFormData[index],
"optionList",
this.baseData[item.optionsName]
)
}
})
}
}
}
</script>
<style>
</style>
\ No newline at end of file \ No newline at end of file
...@@ -230,7 +230,7 @@ export default { ...@@ -230,7 +230,7 @@ export default {
pickerOptions: "rangePickerOptions" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "区域督导", label: "区域运营",
name: "areaSupervision", name: "areaSupervision",
type: "input", type: "input",
maxlength: "20", maxlength: "20",
...@@ -302,7 +302,7 @@ export default { ...@@ -302,7 +302,7 @@ export default {
width: "200px" width: "200px"
}, },
{ {
label: "区域督导", label: "区域运营",
prop: "areaSupervisionList", prop: "areaSupervisionList",
width: "200px", width: "200px",
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -970,4 +970,4 @@ export default { ...@@ -970,4 +970,4 @@ export default {
.m-t-40 { .m-t-40 {
margin-top: 40px; margin-top: 40px;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
:label="item.confId">{{ item.confValue }}</el-checkbox> :label="item.confId">{{ item.confValue }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item label="设置区域督导:" <el-form-item label="区域运营:"
prop="areaSupervisionList"> prop="areaSupervisionList">
<el-select clearable <el-select clearable
multiple multiple
...@@ -82,7 +82,23 @@ ...@@ -82,7 +82,23 @@
:value="item.userId"> :value="item.userId">
</el-option> </el-option>
</el-select> </el-select>
<span class="item-tips">注:区域督导在账户中心创建广联数科员工,角色类型选区域督导</span> <span class="item-tips">注:区域运营在账户中心创建广联数科员工,角色类型选区域运营</span>
</el-form-item>
<el-form-item label="飞行督导:"
prop="">
<el-select v-model="directorList[6]"
clearable
multiple
filterable
value-key="userId"
placeholder="请选择"
class="el_select itd">
<el-option v-for="item in flySuperList"
:key="item.userId"
:label="item.userName"
:value="item.userId" />
</el-select>
<span class="item-tips">注:获取账户中心创建在广联数科下的员工,角色类型选飞行督导</span>
</el-form-item> </el-form-item>
<el-form-item label="驻店负责人:" <el-form-item label="驻店负责人:"
prop="residentManager"> prop="residentManager">
...@@ -186,7 +202,7 @@ ...@@ -186,7 +202,7 @@
<div class="month-set-div"> <div class="month-set-div">
<div class="month-choose"> <div class="month-choose">
<span class="month-choose-span" <span class="month-choose-span"
>设置每月产值绩效(绩效细化到驻店负责人,汇总给区域督导)</span >设置每月产值绩效(绩效细化到驻店负责人,汇总给区域运营)</span
> >
<span> <span>
<el-date-picker <el-date-picker
...@@ -389,12 +405,14 @@ export default { ...@@ -389,12 +405,14 @@ export default {
// boutiqueDirectorUserId: '', // boutiqueDirectorUserId: '',
// quotationDirectorUserId: '' // quotationDirectorUserId: ''
}, },
// 1.精品升级业务负责人, 2.精品升级业务服务商负责人, 3.会员权益业务负责人, 4.会员权益业务服务商负责人, 5.盯防负责人, 6.飞行督导
directorList: { directorList: {
1: [], 1: [],
2: [], 2: [],
3: [], 3: [],
4: [], 4: [],
5: [] 5: [],
6: []
}, },
outputValueListByYear: [], outputValueListByYear: [],
year: "", year: "",
...@@ -414,7 +432,7 @@ export default { ...@@ -414,7 +432,7 @@ export default {
// }], // }],
// areaSupervision: [{ // areaSupervision: [{
// required: true, // required: true,
// message: '请选择区域督导', // message: '请选择区域运营',
// trigger: 'change' // trigger: 'change'
// }], // }],
// residentManager: [{ // residentManager: [{
...@@ -435,7 +453,8 @@ export default { ...@@ -435,7 +453,8 @@ export default {
}, },
sellerMerchantStaffList: [], sellerMerchantStaffList: [],
serviceBossList: [], serviceBossList: [],
storePersonList: [] // 盯防负责人列表 storePersonList: [], // 盯防负责人列表
flySuperList: [], // 飞行督导列表
} }
}, },
...@@ -485,7 +504,7 @@ export default { ...@@ -485,7 +504,7 @@ export default {
? "serviceBossList" ? "serviceBossList"
: "sellerMerchantStaffList" : "sellerMerchantStaffList"
]?.find((ele) => ele.userId == item.directorUserId) ]?.find((ele) => ele.userId == item.directorUserId)
if (item.directorType == 5) { if ([5, 6].includes(item.directorType)) {
target = this.storePersonList?.find( target = this.storePersonList?.find(
(ele) => ele.userId == item.directorUserId (ele) => ele.userId == item.directorUserId
) )
...@@ -619,7 +638,7 @@ export default { ...@@ -619,7 +638,7 @@ export default {
}, },
async merchantStaffByRoleList() { async merchantStaffByRoleList() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
merchantStaffByRoleList({ roleName: "区域督导" }).then((result) => { merchantStaffByRoleList({ roleName: "区域运营" }).then((result) => {
const copyResult = deepClone(result) const copyResult = deepClone(result)
this.supervisionOptionsList = copyResult.map((item) => { this.supervisionOptionsList = copyResult.map((item) => {
return { return {
...@@ -640,6 +659,7 @@ export default { ...@@ -640,6 +659,7 @@ export default {
// 服务商负责人(根据角色名过滤) // 服务商负责人(根据角色名过滤)
const arr = [] const arr = []
const arr2 = [] const arr2 = []
this.flySuperList = []
res?.map((val) => { res?.map((val) => {
if (val.roleName == baseConfig.roleName) { if (val.roleName == baseConfig.roleName) {
arr.push({ arr.push({
...@@ -654,6 +674,14 @@ export default { ...@@ -654,6 +674,14 @@ export default {
userName: val.staffName userName: val.staffName
}) })
}) })
res?.map((val) => {
if(val.roleName == '飞行督导') {
this.flySuperList.push({
userId: val.uuid,
userName: val.staffName
})
}
})
this.serviceBossList = arr this.serviceBossList = arr
this.storePersonList = arr2 this.storePersonList = arr2
resolve() resolve()
...@@ -854,6 +882,9 @@ export default { ...@@ -854,6 +882,9 @@ export default {
if (key == 5) { if (key == 5) {
target = this.storePersonList.find((ele) => ele.userId == item) target = this.storePersonList.find((ele) => ele.userId == item)
} }
if(key == 6) {
target = this.flySuperList.find((ele) => ele.userId == item)
}
directorList.push({ directorList.push({
directorUserId: target?.userId, directorUserId: target?.userId,
directorType: key, directorType: key,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!