Commit ba592f3d by 前端

Merge branch 'hotfix_V4.46.2-1119' of http://192.168.3.233:8090/saas_plus/dj-car…

…-life-system into hotfix_V4.46.2-1119
2 parents 71074475 ce526dc6
Showing 118 changed files with 772 additions and 302 deletions

416 Bytes | W: | H:

1.1 KB | W: | H:

public/menuIcon/contentManager.png
public/menuIcon/contentManager.png
public/menuIcon/contentManager.png
public/menuIcon/contentManager.png
  • 2-up
  • Swipe
  • Onion skin

453 Bytes | W: | H:

661 Bytes | W: | H:

public/menuIcon/financeManage.png
public/menuIcon/financeManage.png
public/menuIcon/financeManage.png
public/menuIcon/financeManage.png
  • 2-up
  • Swipe
  • Onion skin

438 Bytes | W: | H:

1006 Bytes | W: | H:

public/menuIcon/flowManage.png
public/menuIcon/flowManage.png
public/menuIcon/flowManage.png
public/menuIcon/flowManage.png
  • 2-up
  • Swipe
  • Onion skin

406 Bytes | W: | H:

809 Bytes | W: | H:

public/menuIcon/goods.png
public/menuIcon/goods.png
public/menuIcon/goods.png
public/menuIcon/goods.png
  • 2-up
  • Swipe
  • Onion skin

410 Bytes | W: | H:

910 Bytes | W: | H:

public/menuIcon/index.png
public/menuIcon/index.png
public/menuIcon/index.png
public/menuIcon/index.png
  • 2-up
  • Swipe
  • Onion skin

528 Bytes | W: | H:

891 Bytes | W: | H:

public/menuIcon/orderManage.png
public/menuIcon/orderManage.png
public/menuIcon/orderManage.png
public/menuIcon/orderManage.png
  • 2-up
  • Swipe
  • Onion skin

502 Bytes | W: | H:

999 Bytes | W: | H:

public/menuIcon/pointManagement.png
public/menuIcon/pointManagement.png
public/menuIcon/pointManagement.png
public/menuIcon/pointManagement.png
  • 2-up
  • Swipe
  • Onion skin

601 Bytes | W: | H:

785 Bytes | W: | H:

public/menuIcon/purchaseManage.png
public/menuIcon/purchaseManage.png
public/menuIcon/purchaseManage.png
public/menuIcon/purchaseManage.png
  • 2-up
  • Swipe
  • Onion skin

410 Bytes | W: | H:

734 Bytes | W: | H:

public/menuIcon/residentManage.png
public/menuIcon/residentManage.png
public/menuIcon/residentManage.png
public/menuIcon/residentManage.png
  • 2-up
  • Swipe
  • Onion skin

360 Bytes | W: | H:

898 Bytes | W: | H:

public/menuIcon/rightsAndInterestsManage.png
public/menuIcon/rightsAndInterestsManage.png
public/menuIcon/rightsAndInterestsManage.png
public/menuIcon/rightsAndInterestsManage.png
  • 2-up
  • Swipe
  • Onion skin

406 Bytes | W: | H:

427 Bytes | W: | H:

public/menuIcon/stockManage.png
public/menuIcon/stockManage.png
public/menuIcon/stockManage.png
public/menuIcon/stockManage.png
  • 2-up
  • Swipe
  • Onion skin

360 Bytes | W: | H:

678 Bytes | W: | H:

public/menuIcon/systemConfig.png
public/menuIcon/systemConfig.png
public/menuIcon/systemConfig.png
public/menuIcon/systemConfig.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -3,200 +3,244 @@ import request from "./request"
const path = "dj.api."
// 内容管理列表查询条件可见门店列表
export function getMerchantList(data) {
export function getMerchantList (data) {
data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data)
}
// 内容管理列表查询
export function getContenttList(data) {
export function getContenttList (data) {
data.method = `${path}material.record.page`
return request(data)
}
// 内容管理详情
export function getContentDetail(data) {
export function getContentDetail (data) {
data.method = `${path}material.record.detail`
return request(data)
}
// 批量启停用内容
export function batchOperaterContent(data) {
export function batchOperaterContent (data) {
data.method = `${path}material.record.batch.operate`
return request(data)
}
// 删除内容
export function delContent(data) {
export function delContent (data) {
data.method = `${path}material.record.delete`
return request(data)
}
// 统计列表
export function getStatisticsList(data) {
export function getStatisticsList (data) {
data.method = `dj.api.customer.dynamic.record.page`
return request(data)
}
// 导出统计列表
export function exportStatisticsList(data) {
export function exportStatisticsList (data) {
data.method = `dj.api.customer.dynamic.record.page.export`
return request(data)
}
// 新增内容
export function addContent(data) {
export function addContent (data) {
data.method = `${path}material.record.add`
return request(data, "post")
}
// 编辑内容
export function updateContent(data) {
export function updateContent (data) {
data.method = `${path}material.record.update`
return request(data, "post")
}
// 获取会员权益/升级和积分商城 门店
export function getAllMerchantList(data) {
export function getAllMerchantList (data) {
data.method = `dj.api.merchant.page`
return request(data, "POST")
}
// 获取精品升级/次新车转化/售后众筹 门店
export function getMerchantListByScene(data) {
export function getMerchantListByScene (data) {
data.method = `dj.api.scenemerchantref.listShop4sByRef.page`
return request(data)
}
// 获取精品升级/次新车转化/售后众筹 门店
export function getListShop4sByRef(data) {
export function getListShop4sByRef (data) {
data.method = `dj.api.scenemerchantref.listShop4sByRef`
return request(data)
}
// 获取品牌列表
export function getBrandList(data) {
export function getBrandList (data) {
data.method = `dj.api.smartcarlife.common.car.brand.page`
return request(data)
}
// 分页查询标签员工
export function getListLabelStaffPage(data) {
export function getListLabelStaffPage (data) {
data.method = `dj.api.smartcarlife.contentManagerTask.listLabelStaffPage`
return request(data)
}
// 员工群发-分页查询列表
export function contentManagerTaskPage(data) {
export function contentManagerTaskPage (data) {
data.method = `dj.api.smartcarlife.contentManagerTask.page`
return request(data, "POST")
}
// 员工群发-删除记录
export function deleteTaskById(data) {
export function deleteTaskById (data) {
data.method = `dj.api.smartcarlife.contentManagerTask.deleteById`
return request(data, "POST")
}
// 员工群发-分页查询内容管理统计信息
export function getStatisticPage(data) {
export function getStatisticPage (data) {
data.method = `dj.api.smartcarlife.contentManagerTask.statistic.page`
return request(data, "POST")
}
// 员工群发-添加/修改记录
export function insertOrUpdate(data) {
export function insertOrUpdate (data) {
data.method = `dj.api.smartcarlife.contentManagerTask.insertOrUpdate`
return request(data, "POST")
}
// 根据ID查询详细信息
export function contentManagerTaskById(data) {
export function contentManagerTaskById (data) {
data.method = `dj.api.smartcarlife.contentManagerTask.getById`
return request(data, "POST")
}
// 获取接待场景
export function receptionSceneList(data) {
export function receptionSceneList (data) {
data.method = "dj.api.material.reception.scene.list"
return request(data, "POST")
}
// 获取客户标签树
export function getLabelList(data) {
export function getLabelList (data) {
data.method = "dj.api.material.customer.label.list"
return request(data, "POST")
}
// 单一商品
export function listAllInWithPage(data) {
export function listAllInWithPage (data) {
data.method = "dj.api.smartcarlife.upgradeGoods.listAllInWithPage"
return request(data, "POST")
}
// 套餐商品
export function allInPage(data) {
export function allInPage (data) {
data.method = "dj.api.smartcarlife.merchantPackageGoodsInfo.allInPage"
return request(data, "POST")
}
// 获取产品词条列表
export function productTextPage(data) {
export function productTextPage (data) {
data.method = "dj.api.material.product.text.page"
return request(data, "POST")
}
// 分页获取产品词条列表
export function productPage(data) {
export function productPage (data) {
data.method = `dj.api.material.product.text.page`
return request(data, "POST")
}
// 获取产品词条详情
export function productDetail(data) {
export function productDetail (data) {
data.method = `dj.api.material.product.text.detail`
return request(data, "POST")
}
// 删除产品词条
export function productDelete(data) {
export function productDelete (data) {
data.method = `dj.api.material.product.text.delete`
return request(data, "POST")
}
// 保存产品词条
export function productSave(data) {
export function productSave (data) {
data.method = `dj.api.material.product.text.save`
return request(data, "POST")
}
// 更新产品词条
export function productUpdate(data) {
export function productUpdate (data) {
data.method = `dj.api.material.product.text.update`
return request(data, "POST")
}
// 查询接待素材商户配置
export function materialPage(data) {
export function materialPage (data) {
data.method = `dj.api.smartcarlife.recepiton.material.page`
return request(data, "post", [], "", "/rop-dj-car-boutique/router")
}
// 查询门店接待素材详情
export function materialDetail(data) {
export function materialDetail (data) {
data.method = `dj.api.smartcarlife.recepiton.material.merchant.detail`
return request(data, "post", [], "", "/rop-dj-car-boutique/router")
}
// 保存更新门店接待素材
export function recepitonUpdate(data) {
export function recepitonUpdate (data) {
data.method = `dj.api.smartcarlife.recepiton.material.merchant.saveOrUpdate`
return request(data, "post", [], "", "/rop-dj-car-boutique/router")
}
// 保存更新门店接待素材
export function findDictData(data) {
export function findDictData (data) {
data.method = `merchants.api.menu.findDictData`
return request(data, "post")
}
// 保存更新门店接待素材
export function deleteDictData(data) {
export function deleteDictData (data) {
data.method = `merchants.api.menu.deleteDictData`
return request(data, "post")
}
// 保存更新门店接待素材
export function updateDictData(data) {
export function updateDictData (data) {
data.method = `merchants.api.menu.updateDictData`
return request(data, "post")
}
// 保存更新门店接待素材
export function saveDictData(data) {
export function saveDictData (data) {
data.method = `merchants.api.menu.saveDictData`
return request(data, "post")
}
/**客户标签列表 */
export function getCustomerLabelPage (data) {
data.method = `dj.api.material.customer.label.page`
return request(data, "post")
}
/**新增客户标签 */
export function addCustomerLabel (data) {
data.method = `dj.api.material.customer.label.add`
return request(data, "post")
}
/**修改客户标签 */
export function updateCustomerLabel (data) {
data.method = `dj.api.material.customer.label.update`
return request(data, "post")
}
/**分页查询客户档案信息(管理后台) */
export function getCustomerFilePage (data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListPage`
return request(data, "post")
}
/**客户档案信息(管理后台)导出 */
export function exportCustomerFile (data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListExport`
return request(data, "post")
}
/** 客户档案统计信息(管理后台) */
export function getCustomerFileStatic (data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListStatic`
return request(data, "post")
}
/** 客户档案话术浏览记录 */
export function getCustomerVisitScriptsListPage (data) {
data.method = `dj.api.mindworkplate.customervisit.CustomerVisitScriptsListPage`
return request(data, "post")
}
/**客户档案标签 */
export function getCustomerInfoDetail (data) {
data.method = `dj.api.mindworkplate.customervisit.getCustomerInfoDetail`
return request(data, "post")
}
/*
* @Description: AI对练相关接口
* @Author: huyue
* @Date: 2024-04-19 11:02:02
* @LastEditors: 王志慧 wangzh@didihu.com.cn
* @LastEditTime: 2024-07-20 10:42:14
*/
import request from "./request"
const path = "dj.api.smartcarlife.ai.sparring."
// 结束任务
export function stopTask(data) {
data.method = `${path}stop.task`
return request(data)
}
// 获取练习列表
export function getList(data) {
data.method = `${path}task.page`
return request(data)
}
// 新建任务
export function createTask(data) {
data.method = `${path}task.create`
return request(data, "post")
}
// 对练详情
export function getTaskDetail(data) {
data.method = `${path}task.staff.detail.page`
return request(data)
}
// 分页任务员工列表
export function getTaskStaffList(data) {
data.method = `${path}task.staff.page`
return request(data)
}
// 任务员工提醒
export function remindTaskStaff(data) {
data.method = `${path}task.staff.notify`
return request(data)
}
// 查询员工列表
export function getStaffList(data) {
data.method = `dj.api.smartcarlife.staff.page`
// data.method = 'merchants.api.open.serviceCenter.searchStaffPage'
return request(data)
}
// 获取所有的园区店
export function getAllStore(data = {}) {
data.method = `dj.smartcarlife.api.yqMerchant.list`
return request(data)
}
// 获取质检结果
export function getQualityResult(data) {
data.method = `dj.api.carboutique.ai.sparring.detail.check.result`
return request(data)
}
// 查询对练详情
export function getSparringDetail(data) {
data.method = `${path}task.staff.detail.page`
return request(data)
}
// 查询对练详情列表
export function staffRecordPage(data) {
data.method = `${path}staff.record.page`
return request(data)
}
// 更新任务提示词状态
export function updateTaskPromptStatus(data) {
data.method = `${path}task.updatePrompt`
return request(data)
}
//质检结果
export function getSparringCheckResult(data) {
data.method = `dj.api.carboutique.ai.sparring.detail.check.result`
}
// 获取对练报告详情
export function getSparringReportDetail(data) {
data.method = `${path}report.detail`
return request(data)
}
/*
* @Description: AI对练相关接口
* @Author: huyue
* @Date: 2024-04-19 11:02:02
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-10-25 15:45:25
*/
import request from "./request"
const path = "dj.api.smartcarlife.ai.sparring."
// 结束任务
export function stopTask(data) {
data.method = `${path}stop.task`
return request(data)
}
// 获取练习列表
export function getList(data) {
data.method = `${path}task.page`
return request(data)
}
// 新建任务
export function createTask(data) {
data.method = `${path}task.create`
return request(data, "post")
}
// 对练详情
export function getTaskDetail(data) {
data.method = `${path}task.staff.detail.page`
return request(data)
}
// 分页任务员工列表
export function getTaskStaffList(data) {
data.method = `${path}task.staff.page`
return request(data)
}
// 任务员工提醒
export function remindTaskStaff(data) {
data.method = `${path}task.staff.notify`
return request(data)
}
// 查询员工列表
export function getStaffList(data) {
data.method = `dj.api.smartcarlife.staff.page`
// data.method = 'merchants.api.open.serviceCenter.searchStaffPage'
return request(data)
}
// 获取所有的园区店
export function getAllStore(data = {}) {
data.method = `dj.smartcarlife.api.yqMerchant.list`
return request(data)
}
// 获取质检结果
export function getQualityResult(data) {
data.method = `dj.api.carboutique.ai.sparring.detail.check.result`
return request(data)
}
// 查询对练详情
export function getSparringDetail(data) {
data.method = `${path}task.staff.detail.page`
return request(data)
}
// 查询对练详情列表
export function staffRecordPage(data) {
data.method = `${path}staff.record.page`
return request(data)
}
// 查询对练详情列表
export function staffBehaviorPage(data) {
data.method = `dj.api.carboutique.ai.sparring.staff.behavior.page`
return request(data)
}
// 查询对练详情列表
export function staffBehaviorExport(data) {
data.method = `dj.api.smartcarlife.ai.sparring.staff.behavior.list.export`
return request(data)
}
// 更新任务提示词状态
export function updateTaskPromptStatus(data) {
data.method = `${path}task.updatePrompt`
return request(data)
}
//质检结果
export function getSparringCheckResult(data) {
data.method = `dj.api.carboutique.ai.sparring.detail.check.result`
}
// 获取对练报告详情
export function getSparringReportDetail(data) {
data.method = `${path}report.detail`
return request(data)
}
......@@ -8,6 +8,16 @@ export function getReclistWithPage(data) {
data.method = `${path}badge.employeeBadgeReclistWithPage`
return request(data, "post")
}
// 质检统计
export function receptionStaffStatic(data) {
data.method = `${path}badge.receptionStaffStatic`
return request(data, "post")
}
// 安心包明细
export function findAxbByBatchId(data) {
data.method = `${path2}inspection.defence.findAxbByBatchId`
return request(data, "post")
}
// 分页查询接待批次列表
export function conversationPage(data) {
......
// 创建 el-menu-item
export function elMenuItem(createElement, menu) {
return createElement('el-menu-item', { props: { index: menu.path } }, [
return createElement("el-menu-item", { props: { index: menu.path } }, [
...(menu.icon
? [createElement('i', { attrs: { class: `el-icon-${menu.icon}` } })]
? [createElement("i", { attrs: { class: `el-icon-${menu.icon}` } })]
: []),
...((menu.icon === undefined) & !menu.iconSvg
...(menu.icon === undefined && !menu.iconSvg && menu.title == "总览"
? [
// createElement('img', { attrs: { src: './menuIcon/' + menu.path.slice(1) + '.png' } })
// public 文件需要使用绝对路径引入
createElement('img', {
attrs: {
src:
// createElement('img', { attrs: { src: './menuIcon/' + menu.path.slice(1) + '.png' } })
// public 文件需要使用绝对路径引入
createElement("img", {
attrs: {
src:
`${process.env.VUE_APP_PUBLIC_PATH}menuIcon/` +
menu.path.slice(1) +
'.png'
}
})
]
".png",
width: "22px",
height: "20px"
}
})
]
: []),
...(menu.iconSvg
? [createElement('d2-icon-svg', { props: { name: menu.iconSvg } })]
? [createElement("d2-icon-svg", { props: { name: menu.iconSvg } })]
: []),
createElement('span', { slot: 'title' }, menu.title || '未命名菜单')
createElement("span", { slot: "title" }, menu.title || "未命名菜单")
])
}
// 创建 el-submenu
export function elSubmenu(createElement, menu) {
return createElement('el-submenu', { props: { index: menu.path } }, [
return createElement("el-submenu", { props: { index: menu.path } }, [
...(menu.icon
? [
createElement('i', {
slot: 'title',
attrs: { class: `el-icon-${menu.icon}` }
})
]
createElement("i", {
slot: "title",
attrs: { class: `el-icon-${menu.icon}` }
})
]
: []),
...((menu.icon === undefined) & !menu.iconSvg
? [
// createElement('img', { slot: 'title', attrs: { src: './menuIcon/' + menu.path.slice(1) + '.png' } })
// public 文件需要使用绝对路径引入
createElement('img', {
slot: 'title',
attrs: {
src:
// createElement('img', { slot: 'title', attrs: { src: './menuIcon/' + menu.path.slice(1) + '.png' } })
// public 文件需要使用绝对路径引入
createElement("img", {
slot: "title",
attrs: {
src:
`${process.env.VUE_APP_PUBLIC_PATH}menuIcon/` +
menu.path.slice(1) +
'.png'
}
})
]
".png",
width: "22px",
height: "20px"
}
})
]
: []),
...(menu.iconSvg
? [
createElement('d2-icon-svg', {
slot: 'title',
props: { name: menu.iconSvg }
})
]
createElement("d2-icon-svg", {
slot: "title",
props: { name: menu.iconSvg }
})
]
: []),
createElement('span', { slot: 'title' }, menu.title || '未命名菜单'),
createElement("span", { slot: "title" }, menu.title || "未命名菜单"),
...menu.children.map((child, childIndex) =>
child.sideHidden
? ''
? ""
: (child.children === undefined ? elMenuItem : elSubmenu).call(
this,
createElement,
child
)
this,
createElement,
child
)
)
])
}
import { mapState } from 'vuex'
import menuMixin from '../mixin/menu'
import { elMenuItem, elSubmenu } from '../libs/util.menu'
import { mapState } from "vuex"
import menuMixin from "../mixin/menu"
import { elMenuItem, elSubmenu } from "../libs/util.menu"
export default {
name: 'd2-layout-header-aside-menu-header',
mixins: [
menuMixin
],
name: "d2-layout-header-aside-menu-header",
mixins: [menuMixin],
render(createElement) {
return createElement('div', {
attrs: { flex: 'cross:center' },
class: { 'd2-theme-header-menu': true, 'is-scrollable': this.isScroll },
ref: 'page'
}, [
createElement('div', {
attrs: { class: 'd2-theme-header-menu__content', flex: '', 'flex-box': '1' },
ref: 'content'
}, [
createElement('div', {
attrs: { class: 'd2-theme-header-menu__scroll', 'flex-box': '0' },
style: { transform: `translateX(${this.currentTranslateX}px)` },
ref: 'scroll'
}, [
createElement('el-menu', {
props: { mode: 'horizontal', defaultActive: this.active },
on: { select: this.handleMenuSelect }
}, this.header.map(menu => (menu.children === undefined ? elMenuItem : elSubmenu).call(this, createElement, menu)))
])
]),
...this.isScroll
? [
createElement('div', {
attrs: { class: 'd2-theme-header-menu__prev', flex: 'main:center cross:center', 'flex-box': '0' },
on: { click: () => this.scroll('left') }
}, [
createElement('i', { attrs: { class: 'el-icon-arrow-left' } })
]),
createElement('div', {
attrs: { class: 'd2-theme-header-menu__next', flex: 'main:center cross:center', 'flex-box': '0' },
on: { click: () => this.scroll('right') }
}, [
createElement('i', { attrs: { class: 'el-icon-arrow-right' } })
])
]
: []
])
return createElement(
"div",
{
attrs: { flex: "cross:center" },
class: { "d2-theme-header-menu": true, "is-scrollable": this.isScroll },
ref: "page"
},
[
createElement(
"div",
{
attrs: {
class: "d2-theme-header-menu__content",
flex: "",
"flex-box": "1"
},
ref: "content"
},
[
createElement(
"div",
{
attrs: {
class: "d2-theme-header-menu__scroll",
"flex-box": "0"
},
style: { transform: `translateX(${this.currentTranslateX}px)` },
ref: "scroll"
},
[
createElement(
"el-menu",
{
props: { mode: "horizontal", defaultActive: this.active },
on: { select: this.handleMenuSelect }
},
this.header.map((menu) =>
(menu.children === undefined || menu.title != "总览"
? elMenuItem
: elSubmenu
).call(this, createElement, menu)
)
)
]
)
]
),
...(this.isScroll
? [
createElement(
"div",
{
attrs: {
class: "d2-theme-header-menu__prev",
flex: "main:center cross:center",
"flex-box": "0"
},
on: { click: () => this.scroll("left") }
},
[createElement("i", { attrs: { class: "el-icon-arrow-left" } })]
),
createElement(
"div",
{
attrs: {
class: "d2-theme-header-menu__next",
flex: "main:center cross:center",
"flex-box": "0"
},
on: { click: () => this.scroll("right") }
},
[
createElement("i", {
attrs: { class: "el-icon-arrow-right" }
})
]
)
]
: [])
]
)
},
computed: {
...mapState('d2admin/menu', [
'header'
])
...mapState("d2admin/menu", ["header"])
},
data() {
return {
active: '',
active: "",
isScroll: false,
scrollWidth: 0,
contentWidth: 0,
......@@ -62,7 +102,7 @@ export default {
}
},
watch: {
'$route.matched': {
"$route.matched": {
handler(val) {
this.active = val[val.length - 1].path
},
......@@ -71,12 +111,15 @@ export default {
},
methods: {
scroll(direction) {
if (direction === 'left') {
if (direction === "left") {
// 向右滚动
this.currentTranslateX = 0
} else {
// 向左滚动
if (this.contentWidth * 2 - this.currentTranslateX <= this.scrollWidth) {
if (
this.contentWidth * 2 - this.currentTranslateX <=
this.scrollWidth
) {
this.currentTranslateX -= this.contentWidth
} else {
this.currentTranslateX = this.contentWidth - this.scrollWidth
......@@ -121,14 +164,14 @@ export default {
mounted() {
// 初始化判断
// 默认判断父元素和子元素的大小,以确定初始情况是否显示滚动
window.addEventListener('load', this.checkScroll)
window.addEventListener("load", this.checkScroll)
// 全局窗口变化监听,判断父元素和子元素的大小,从而控制isScroll的开关
this.throttledCheckScroll = _.throttle(this.checkScroll, 300)
window.addEventListener('resize', this.throttledCheckScroll)
window.addEventListener("resize", this.throttledCheckScroll)
},
beforeDestroy() {
// 取消监听
window.removeEventListener('resize', this.throttledCheckScroll)
window.removeEventListener('load', this.checkScroll)
window.removeEventListener("resize", this.throttledCheckScroll)
window.removeEventListener("load", this.checkScroll)
}
}
import { mapState } from 'vuex'
import menuMixin from '../mixin/menu'
import { elMenuItem, elSubmenu } from '../libs/util.menu'
import BScroll from 'better-scroll'
import { mapState } from "vuex"
import menuMixin from "../mixin/menu"
import { elMenuItem, elSubmenu } from "../libs/util.menu"
import BScroll from "better-scroll"
export default {
name: 'd2-layout-header-aside-menu-side',
mixins: [
menuMixin
],
name: "d2-layout-header-aside-menu-side",
mixins: [menuMixin],
render(createElement) {
return createElement('div', { attrs: { class: 'd2-layout-header-aside-menu-side' } }, [
createElement('el-menu', {
props: { collapse: this.asideCollapse, uniqueOpened: true, defaultActive: this.active },
ref: 'menu',
on: { select: this.handleMenuSelect }
}, this.aside.map(menu => ((menu.children === undefined || menu.children.every(i => i.sideHidden === true)) ? elMenuItem : elSubmenu).call(this, createElement, menu))),
...this.aside.length === 0 && !this.asideCollapse
? [
createElement('div', { attrs: { class: 'd2-layout-header-aside-menu-empty', flex: 'dir:top main:center cross:center' } }, [
createElement('d2-icon', { props: { name: 'inbox' } }),
createElement('span', {}, '没有侧栏菜单')
])
]
: []
])
return createElement(
"div",
{ attrs: { class: "d2-layout-header-aside-menu-side" } },
[
createElement(
"el-menu",
{
props: {
collapse: this.asideCollapse,
uniqueOpened: true,
defaultActive: this.active
},
ref: "menu",
on: { select: this.handleMenuSelect }
},
this.aside.map((menu) =>
(menu.children === undefined ||
menu.children.every((i) => i.sideHidden === true)
? elMenuItem
: elSubmenu
).call(this, createElement, menu)
)
),
...(this.aside.length === 0 && !this.asideCollapse
? [
createElement(
"div",
{
attrs: {
class: "d2-layout-header-aside-menu-empty",
flex: "dir:top main:center cross:center"
}
},
[
createElement("d2-icon", { props: { name: "inbox" } }),
createElement("span", {}, "没有侧栏菜单")
]
)
]
: [])
]
)
},
data() {
return {
active: '',
active: "",
asideHeight: 300,
BS: null
}
},
computed: {
...mapState('d2admin/menu', [
'aside',
'asideCollapse'
])
...mapState("d2admin/menu", ["aside", "asideCollapse"])
},
watch: {
// 折叠和展开菜单的时候销毁 better scroll
......@@ -47,9 +69,11 @@ export default {
}, 500)
},
// 监听路由 控制侧边栏激活状态
'$route.matched': {
"$route.matched": {
handler(val) {
this.active = val[val.length - 1].meta.hasOwnProperty('activePath') ? val[val.length - 1].meta.activePath : val[val.length - 1].path
this.active = val[val.length - 1].meta.hasOwnProperty("activePath")
? val[val.length - 1].meta.activePath
: val[val.length - 1].path
},
immediate: true
}
......
......@@ -796,7 +796,7 @@ export const routerName = {
{
authId: "9061914",
parentId: "90619",
label: "标记退款",
label: "阳光激励配置",
handle: "markRefundHandle"
},
......
......@@ -15,7 +15,9 @@ export const routerName = {
title: "总览",
authId: "907",
parentId: "1",
cache: false
icon: "s-home",
cache: false,
sideHidden: false
},
auth: [
{
......@@ -69,7 +71,7 @@ export const routerName = {
category: "Button",
handle: "handleOutputImport",
label: "导入"
},
}
],
component: _import("index")
},
......
......@@ -306,5 +306,41 @@ export const routerName = {
},
auth: [],
component: _import("contentManager/packageConfig/edit")
},
91315: {
path: "/customerTags",
name: "customerTags",
meta: {
title: "客户标签",
authId: "91315",
parentId: "913",
cache: false
},
auth: [],
component: _import("contentManager/customerTags/index")
},
91317: {
path: "/customerFile",
name: "customerFile",
meta: {
title: "客户档案",
authId: "91317",
parentId: "913",
cache: false
},
auth: [],
component: _import("contentManager/customerFile/index")
},
9131701:{
path: "/customerFileDetails",
name: "customerFileDetails",
meta: {
title: "话术管理",
authId: "9131701",
parentId: "91317",
cache: false
},
auth: [],
component: _import("contentManager/customerFile/customerFileDetails")
}
}
......@@ -28,7 +28,8 @@ export const home = {
title: "总览",
authId: "907",
parentId: "1",
cache: false
cache: false,
sideHidden: false
},
auth: [
{
......
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-08-29 18:04:06
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-09-02 16:12:54
* @FilePath: \dj-car-life-system\src\views\contentManager\components\AddDrawer\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-drawer
:title="form.id ? '编辑产品词条' : '新增产品词条'"
......@@ -118,7 +110,6 @@
v-if="form.pictureList && form.pictureList.length"
>
图片按照以上排序进行展示,可拖动调整排序
<span class="tip-btn" @click="showEffect()">查看效果</span>
</p>
<p class="photo-top-tips" v-else>
推荐尺寸:1173*768,单个文件不超过10M,最多上传9张
......@@ -156,6 +147,12 @@ export default {
},
mounted() {
this.init()
setTimeout(() => {
console.log(this.form)
if (!this.form.pictureList) {
this.form.pictureList = []
}
}, 1000)
},
data() {
return {
......@@ -302,6 +299,7 @@ export default {
border-bottom: 1px solid #e5e5e5;
margin-bottom: 0px;
padding-bottom: 20px;
color: #333333;
}
.drawer__content {
padding: 20px;
......@@ -370,4 +368,7 @@ export default {
margin-left: 20px;
}
}
.photo-top-tips {
color: #999999;
}
</style>
......@@ -278,12 +278,12 @@ export default {
tableColumns: [
{
label: "标题",
prop: "title"
prop: "title",
minWidth:120
},
{
label: "类型",
prop: "type",
width: "100px",
formatter: (cellValue) => {
return {
0: "图片",
......@@ -322,7 +322,7 @@ export default {
{
label: "客户标签",
prop: "customerLabelInfoList",
width: "120px",
minWidth: "300px",
formatter: (cellValue) => {
return cellValue.customerLabelInfoList && cellValue.customerLabelInfoList.length > 0 ? cellValue.customerLabelInfoList.map(item => item.labelName).join(",") : '-'
}
......@@ -346,14 +346,12 @@ export default {
{
label: "可见门店",
prop: "showMerchant",
width: "120px",
type: "slot",
addHtml: "merchantSlot"
},
{
label: "浏览次数",
prop: "browseCount",
width: "120px",
formatter: (cell) => {
return cell.browseCount || 0
}
......
<template>
<d2-dialog
title="新增分类"
:is-visible="visible"
width="40%"
@closeDialog="handleClose"
@confirmDialog="handleConfirm"
>
<div
class="classify-box"
v-loading="loading"
>
<el-form
ref="classifyForm"
:model="dataForm"
:rules="formRules"
label-width="154px"
size="small"
>
<el-form-item
label="一级分类:"
prop="labelName"
>
<el-input
v-model="dataForm.labelName"
placeholder="请输入"
maxlength="30"
/>
</el-form-item>
<el-form-item
label="业务类型:"
prop="scene"
>
<el-select
v-model="dataForm.scene"
placeholder="请选择"
:disabled="currentItem.id"
>
<el-option
v-for="(subItem, subIndex) in businessTypeList"
:key="subIndex"
:value="subItem.id"
:label="subItem.label"
></el-option>
</el-select>
</el-form-item>
</el-form>
</div>
</d2-dialog>
</template>
<script type='text/ecmascript-6'>
import { deepClone } from '@/common/util'
import { SCENE_OPTIONS } from "../../constant"
import { addCustomerLabel, updateCustomerLabel } from '@api/contentManager'
export default {
name: 'classifyDialog',
props: {
visible: Boolean,
currentItem: Object
},
data () {
return {
loading: false,
businessTypeList: deepClone(SCENE_OPTIONS),
dataForm: {
labelName: '',
scene: ''
},
formRules: {
labelName: [{ required: true, message: '请输入一级分类', trigger: 'change' }],
scene: [{ required: true, message: '请选择业务类型', trigger: 'change' }],
}
}
},
watch: {
currentItem: {
immediate: true,
handler (newval) {
this.dataForm.scene = newval.scene
this.dataForm.labelName = newval.labelName
}
}
},
mounted () {
},
methods: {
handleClose () {
this.dataForm = this.$options.data.call(this).dataForm
this.$refs.classifyForm.resetFields()
this.loading = false
this.$emit('update:visible', false)
this.$emit('update:currentItem', {})
},
handleConfirm () {
this.$refs.classifyForm.validate(async (valid) => {
if (valid) {
try {
let targetApiName = addCustomerLabel,
params = {
level: 1,
...this.dataForm
},
{ id } = this.currentItem
if (id) {
targetApiName = updateCustomerLabel
params = {
id,
labelName: this.dataForm.labelName
}
}
this.loading = true
const res = await targetApiName(params)
console.log(res)
if (res) {
this.$message.success(id ? '修改成功' : '保存成功')
this.$emit('refresh')
this.handleClose()
this.loading = false
}
} catch (error) {
console.log(error)
this.loading = false
this.$message.error(error)
}
}
})
},
}
}
</script>
<style scoped lang='scss'>
.el-input,
.el-input--small ,
.el-select--small{
max-width: 215px;
}
</style>
\ No newline at end of file
......@@ -36,7 +36,9 @@
class="el-icon-question"
slot="reference"
></i> </el-popover
><span class="tab-header-link" @click="handleLook()"
><span
class="tab-header-link"
@click="handleLook(sIndex == 3 ? 2 : 0)"
>查看示例</span
>
<span
......@@ -52,7 +54,7 @@
>恢复门店上架此专区</span
>
</div>
<div class="child-tab">
<div class="child-tab" v-if="sIndex != 3">
<div class="add-tab" v-if="sItem.length != 20">
<el-button
size="small"
......@@ -95,18 +97,25 @@
>
<tr>
<th>序号</th>
<th v-if="isShowBand(sIndex, sub)">
<span class="required">*</span>品牌
<i
class="el-icon-edit-outline"
v-if="configType == 0"
@click="handleEditBrand(sub.infoList)"
></i>
</th>
<th><span class="required">*</span>车型展示图</th>
<th><span class="required">*</span>选购卡名称</th>
<th><span class="required">*</span>选购卡描述</th>
<th><span class="required">*</span>详图</th>
<template v-if="sIndex != 3">
<th v-if="isShowBand(sIndex, sub)">
<span class="required">*</span>品牌
<i
class="el-icon-edit-outline"
v-if="configType == 0"
@click="handleEditBrand(sub.infoList)"
></i>
</th>
<th><span class="required">*</span>车型展示图</th>
<th><span class="required">*</span>选购卡名称</th>
<th><span class="required">*</span>选购卡描述</th>
<th><span class="required">*</span>详图</th>
</template>
<template v-else>
<th><span class="required">*</span>产品名称</th>
<th><span class="required">*</span>质保</th>
<th><span class="required">*</span>售价</th>
</template>
<th>操作</th>
</tr>
<tr v-for="(pItem, pindex) in sub.infoList">
......@@ -206,6 +215,69 @@
</Tab-pane>
</Tabs>
</div>
<div class="child-tab" v-else>
<table
cellspacing="0"
cellpadding="0"
border="0"
class="table-box"
>
<tr>
<th>序号</th>
<th><span class="required">*</span>产品名称</th>
<th><span class="required">*</span>质保</th>
<th><span class="required">*</span>售价</th>
<th>操作</th>
</tr>
<tr v-for="(pItem, pindex) in sItem">
<td>{{ pindex + 1 }}</td>
<td>
<el-input
v-model="pItem.name"
maxlength="50"
placeholder="请输入产品名称"
></el-input>
</td>
<td>
<el-input
v-model="pItem.warranty"
maxlength="20"
type="textarea"
rows="6"
placeholder="请输入质保"
></el-input>
</td>
<td>
<el-input
v-model="pItem.price"
maxlength="9"
@input="handleInput(pItem, 'price')"
placeholder="请输入售价"
></el-input>
</td>
<td>
<el-button
type="text"
v-if="
pindex == sItem.length - 1 &&
pindex < PACKAGE[sIndex + 1].maxNum - 1
"
@click="handleAdd(sItem, pindex)"
>
新增一行
</el-button>
<el-button
:disabled="getDisabled(sIndex)"
type="text"
v-if="sItem.length != 1"
@click="handleDel(sItem, pindex)"
>
删除此项
</el-button>
</td>
</tr>
</table>
</div>
</div>
<div class="tab-content">
<div class="tab-header">
......@@ -424,11 +496,17 @@ const PACKAGE = {
tips: "每个类目最大支持上传20个产品",
name: "精品专区",
maxNum: 20
},
4: {
tips: "最大新增20个",
name: "选装清单",
maxNum: 20
}
}
const imgSrc = [
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case.jpg",
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case-2.jpg"
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case-2.jpg",
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case-3.png"
]
export default {
components: {
......@@ -518,6 +596,19 @@ export default {
}
},
methods: {
handleInput(row, val) {
var reg = /^(\.*)(\d+)(\.?)(\d{0,2}).*$/g
if (reg.test(row[val])) {
//正则匹配通过,提取有效文本
row[val] = row[val].replace(reg, "$2$3$4")
} else {
//正则匹配不通过,直接清空
row[val] = ""
}
if (+row[val] > 999999) {
row[val] = 999999
}
},
getBrand() {
findDictData({
pageSize: 1000,
......@@ -644,7 +735,12 @@ export default {
this.configInfo = res.materials
this.caseInfo = res.cases
this.configInfo.forEach((item) => {
this.$set(item, "subItem", [item.packages, item.films, item.products])
this.$set(item, "subItem", [
item.packages,
item.films,
item.products,
item.optionals
])
})
this.caseName = this.caseInfo[0].category
this.packageName = this.configInfo[0].carModelName
......@@ -825,7 +921,8 @@ export default {
let packageList = {
packageInfoList: [],
filmInfoList: [],
productInfoList: []
productInfoList: [],
optionalInfoList: []
}
/**
* infoList[]转为packageInfoList:[],productInfoList:[],filmInfoList:[]
......@@ -833,7 +930,16 @@ export default {
const keys = Object.keys(packageList)
this.configInfo.forEach((i) => {
i.subItem.forEach((sub, k) => {
sub.forEach((info) => {
console.log(sub)
if (!sub) return
sub.forEach((info, i) => {
if (k == 3) {
if (!this.validateForm(sub, i)) {
throw new Error("请完善信息")
}
console.log(sub, "info.infoList")
return
}
info.infoList.forEach((d, dIndex) => {
if (k == 0 && !this.isUpStatus) {
} else {
......@@ -846,8 +952,12 @@ export default {
})
packageList[keys[k]].push(...info.infoList)
})
if (k == 3) {
packageList[keys[k]].push(...sub)
}
})
})
console.log(packageList)
const { merchantId, merchantName, id } = this.$route.query
return {
id,
......@@ -871,15 +981,24 @@ export default {
})
},
validateForm(item, i, type = 0) {
const validateList = {
const keys = Object.keys(item[i])
let validateList = {
modelDisplayPicurl: "请上传车型展示图",
name: ["请输入选购卡名称", "请输入素材名称"],
description: "请输入选购卡描述",
detailPicurl: "请上传详图",
thumbnailUrl: "请上传缩略图",
materialUrl: "请上传视频或者图片"
price: "请输入价格",
materialUrl: "请上传视频或者图片",
warranty: "请输入质保价"
}
if (keys.includes("warranty")) {
validateList = {
name: "请输入名称",
price: "请输入价格",
warranty: "请输入质保价"
}
}
const keys = Object.keys(item[i])
const { carModelId, carModelName, category } = item[i]
let obj = {
category
......
......@@ -176,6 +176,7 @@ export default {
optionLabel: 'confLabel',
optionsName: 'refundList',
optionList: [],
isDisabled: false,
style: { width: '520px' },
handleRadioChange: () => { }
},
......@@ -400,6 +401,7 @@ export default {
type: Array,
default: () => { }
},
// 标记精品升级,区分退款审核弹窗字段
scene: {
type: String,
default: ''
......@@ -460,13 +462,16 @@ export default {
console.log("this.detail", this.detail)
console.log("this.orderList", this.orderList)
this.infoForm.orderType = this.orderType
// 入口:精品升级、会员权益升级、次新车转化,售后众筹、积分商城
if (this.detail) {
this.orderInfoList.push({
orderCode: this.detail.orderCode,
price: this.detail.totalPrice
})
this.infoForm.bizOrderCodeList.push(this.detail.orderCode)
// 加判断---------------
// 判断是否部分退款
this.judgeRefundType()
// 订单的退款的基本信息
this.getOrderDefaultInfo()
} else if (this.orderList && this.orderList.length > 0) {
let yqIdTemp = this.orderList[0].yqMerchantId
......@@ -516,6 +521,17 @@ export default {
}
},
findAttrIdx(attrName) {
return this.infoEditFormData.findIndex(item => item.name == attrName)
},
judgeRefundType() {
if (this.detail.refundType == 2) {
this.infoForm.refundType = '2'
this.infoEditFormData[this.findAttrIdx('refundType')].isDisabled = true
}
},
getOrderDefaultInfo() {
var params = {
orderCode: this.detail.orderCode
......@@ -526,13 +542,18 @@ export default {
this.infoForm.yqMerchantName = res.yqMerchantName
this.infoForm.shopMerchantId = res.shopMerchantId
this.infoForm.shopMerchantName = res.shopMerchantName
this.infoForm.shopRefundAmount = +res.shopDivisionMoney
this.infoForm.installMerchantId = res.installMerchantId
this.infoForm.installMerchantName = res.installMerchantName
this.infoForm.installCost = +res.installCost
this.infoForm.marketingMerchantId = res.marketingMerchantId
this.infoForm.marketingMerchantName = res.marketingMerchantName
this.infoForm.marketingCost = res.marketingCost + res.rewardAndPenaltyCost
/** refundType:1-全额退款,2-部分退款
* 部分退款时,除了“所属服务对接”和“所属流量方”,其他不写入
* */
if (this.detail.refundType != 2) {
this.infoForm.shopRefundAmount = +res.shopDivisionMoney
this.infoForm.installMerchantId = res.installMerchantId
this.infoForm.installMerchantName = res.installMerchantName
this.infoForm.installCost = +res.installCost
this.infoForm.marketingMerchantId = res.marketingMerchantId
this.infoForm.marketingMerchantName = res.marketingMerchantName
this.infoForm.marketingCost = res.marketingCost + res.rewardAndPenaltyCost
}
})
},
......
......@@ -86,6 +86,13 @@ export default {
trigger: "blur"
}
],
payReason: [
{
required: true,
message: "请输入付款事由,最大不超过500个字",
trigger: "blur"
}
],
attachmentList: [
{
required: false,
......@@ -142,6 +149,15 @@ export default {
}
}
}, {
label: "付款事由",
name: "payReason",
type: "input",
maxlength: 500,
inputType: "textarea",
showLimit: true,
rows: 4,
width: "370px"
}, {
label: "结算凭证",
name: "attachmentList",
isHide: true,
......
......@@ -208,7 +208,7 @@
:data="scope.scope" />
</span>
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<span v-if="scope.scope.tailOrderStatus == '1' && signRefundFlag">
<span v-if="[1, 2].includes(scope.scope.tailOrderStatus) && signRefundFlag">
<el-button type="text"
size="mini"
style="margin-left: 10px"
......
......@@ -230,7 +230,7 @@
:data="scope.scope" />
</span>
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<span v-if="scope.scope.tailOrderStatus == '1' && signRefundFlag">
<span v-if="[1, 2].includes(scope.scope.tailOrderStatus) && signRefundFlag">
<el-button type="text"
size="mini"
style="margin-left: 10px"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!