Commit ce526dc6 by 胡悦

Merge branch 'SAAS+V4.46.1-1107' into 'hotfix_V4.46.2-1119'

开发提测合并

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