Commit 9b7a9821 by 张立顺

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

…ife-system into SAAS+V4.54.0-0630
2 parents 4f2f8960 2e3648bd
Showing 92 changed files with 3422 additions and 335 deletions
......@@ -34,6 +34,7 @@
"file-saver": "^2.0.5",
"flex.css": "^1.1.7",
"fuse.js": "^3.4.4",
"glsk-oss-jssdk": "^1.0.1",
"glsx-common-sdk": "^0.3.0",
"hash.js": "^1.0.0",
"hotkeys-js": "^3.6.2",
......
import request from "./request"
const path = "dj.api.reconciliation.template."
// 对账模版列表
export function getTmplList(data) {
data.method = `${path}page`
return request(data)
}
// 删除模版记录
export function deleteTmpl(data) {
data.method = `${path}deleteById`
return request(data, "post")
}
// 根据ID查询详细信息
export function getTmplById(data) {
data.method = `${path}getById`
return request(data, "post")
}
// 新增或编辑对账模板
export function tmplAddOrEdit(data) {
data.method = `${path}addOrUpdate`
return request(data, "post")
}
// 对账模板元数据(流量方对账单,服务商对账单)
export function getMetaTmpl(data) {
data.method = `${path}metadata.groupByModule`
return request(data, "post")
}
// 对账单管理列表
export function getBillList(data) {
data.method = "dj.api.smartcarlife.reconciliationBill.page"
return request(data)
}
// 根据对账单ID查询待确认内容
export function getBillDetailList(data) {
data.method = "dj.api.smartcarlife.reconciliationBill.confirmContentPage"
return request(data)
}
// 系统分账-财务直接下载对账单(通过自定义字段,获取对账单字段和数据)
export function getBillTmplAdapter(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.generateUseRequestAdapter'
return request(data, "post")
}
// 对账单测算
export function billCompute(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.computeByJson'
return request(data, "post")
}
// 对账单编辑
export function editBill(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.updateByJson'
return request(data, "post")
}
export function billDetail(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.detail'
return request(data, "post")
}
//根据服务商商户号分页获取4S店列表
export function getShopList(data) {
data.method = 'dj.api.scenemerchantref.queryShopRefByPartnerShopPage'
return request(data)
}
// 对账单确认
export function billConfirm(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.confirm'
return request(data, "post")
}
// 对账单取消
export function billCancel(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.cancel'
return request(data, "post")
}
// 对账单待确认内容确认
export function billConfirmChange(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.confirmChange'
return request(data, "post")
}
// 对账单待取消内容确认
export function billCancelChange(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.cancelChange'
return request(data, "post")
}
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.smartcarlife.api.nbcb.transfer."
// 待付清单列表
export function transferPage(data) {
data.method = `${path}page`
return request(data, RequestMethods.POST)
}
// 批量重推付款单
export function batchRepush(data) {
data.method = `${path}batch.repush`
return request(data, RequestMethods.POST)
}
// 待付清单详情
export function transferDetail(data) {
data.method = `${path}detail`
return request(data, RequestMethods.POST)
}
// 待付清单财资付款状态列表
export function getStatusList(data) {
data.method = `${path}status.list`
return request(data, RequestMethods.POST)
}
......@@ -26,7 +26,7 @@ export function conversationPage(data) {
}
// 生产短链
export function getShortUrl(data) {
data.method = 'dj.api.smartcarlife.inspection.batch.file.short.url'
data.method = "dj.api.smartcarlife.inspection.batch.file.short.url"
return request(data, "post")
}
......@@ -332,194 +332,242 @@ export function getSalaryDetailApi(data) {
// 查询日报模板类型列表
export function getTemplateList(data = {}) {
data.method = 'dj.api.smartcarlife.digital.management.template.type.list'
return request(data, 'post')
data.method = "dj.api.smartcarlife.digital.management.template.type.list"
return request(data, "post")
}
// 督导
export function getStaffList(data) {
data.method = 'dj.api.smartcarlife.digital.management.template.staff.ref.list'
return request(data, 'post')
data.method = "dj.api.smartcarlife.digital.management.template.staff.ref.list"
return request(data, "post")
}
// 分页查询日报列表,表格数据
export function getRecordPage(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.page'
return request(data, 'post')
data.method = "dj.api.smartcarlife.digital.management.record.page"
return request(data, "post")
}
// 查询模板详情, 表头数据
export function getTemplateDetail(data) {
data.method = 'dj.api.smartcarlife.digital.management.template.detail'
return request(data, 'post')
data.method = "dj.api.smartcarlife.digital.management.template.detail"
return request(data, "post")
}
// 查询日报统计总览
export function getSummary(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.summary'
return request(data, 'post')
data.method = "dj.api.smartcarlife.digital.management.record.summary"
return request(data, "post")
}
// 查询未提交明细列表
export function getSummaryStaff(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.staff.summary'
return request(data, 'post')
data.method = "dj.api.smartcarlife.digital.management.record.staff.summary"
return request(data, "post")
}
// 更新模版绑定员工
export function updateStaff(data) {
data.method = 'dj.api.smartcarlife.digital.management.template.staff.ref.update'
return request(data, 'post')
data.method =
"dj.api.smartcarlife.digital.management.template.staff.ref.update"
return request(data, "post")
}
// 导出未提交明细列表
export function exportSummary(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.staff.summary.export'
return request(data, 'post')
data.method =
"dj.api.smartcarlife.digital.management.record.staff.summary.export"
return request(data, "post")
}
// 所有督导
export function getAllStaff(data) {
// data.method = 'dj.api.smartcarlife.staff.specificBusinessRolePerson.areaSupervision.pageConfigured'
// data.method = 'dj.api.smartcarlife.staff.specificBusinessRolePerson.areaSupervision.listConfigured'
data.method = 'dj.api.smartcarlife.digital.management.supervision.staff.list'
return request(data, 'post')
data.method = "dj.api.smartcarlife.digital.management.supervision.staff.list"
return request(data, "post")
}
// 收入测算-白名单员工分页
export function getWhiteStaff(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.white.staff.list'
return request(data, 'post')
data.method = "dj.smartcarlife.api.incomeMeasurement.white.staff.list"
return request(data, "post")
}
// 收入测算-查询收入测算配置开关
export function getSwitchConfig(data = {}) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.switch.config.get'
return request(data, 'post')
data.method = "dj.smartcarlife.api.incomeMeasurement.switch.config.get"
return request(data, "post")
}
// 收入测算-添加白名单员工
export function addWhiteStaff(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.white.staff.add'
return request(data, 'post')
data.method = "dj.smartcarlife.api.incomeMeasurement.white.staff.add"
return request(data, "post")
}
// 收入测算配置开关更新
export function addSwitchConfig(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.switch.config.add'
return request(data, 'post')
data.method = "dj.smartcarlife.api.incomeMeasurement.switch.config.add"
return request(data, "post")
}
// 收入测算-删除白名单员工
export function delWhiteStaff(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.white.staff.del'
return request(data, 'post')
data.method = "dj.smartcarlife.api.incomeMeasurement.white.staff.del"
return request(data, "post")
}
// 查询员工详情
export function getStaffInfo(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.staff.info.get'
return request(data, 'post')
data.method = "dj.smartcarlife.api.incomeMeasurement.staff.info.get"
return request(data, "post")
}
// 职级介绍配置查询
export function getRankConfig(data) {
data.method = 'dj.smartcarlife.api.job.rank.config.get'
return request(data, 'post')
data.method = "dj.smartcarlife.api.job.rank.config.get"
return request(data, "post")
}
// 职级介绍配置更新
export function addRankConfig(data) {
data.method = 'dj.smartcarlife.api.job.rank.config.add'
return request(data, 'post')
data.method = "dj.smartcarlife.api.job.rank.config.add"
return request(data, "post")
}
// 员工收入测算
export function getIncomePage(data) {
data.method = 'dj.api.smartcarlife.staff.incomeCalculation.page'
return request(data, 'post')
data.method = "dj.api.smartcarlife.staff.incomeCalculation.page"
return request(data, "post")
}
// 获取商品信息列表
export function listGoodsType(data = {}) {
data.method = 'dj.api.smartcarlife.staff.incomeCalculation.listGoodsType'
return request(data, 'post')
data.method = "dj.api.smartcarlife.staff.incomeCalculation.listGoodsType"
return request(data, "post")
}
// 复制绩效方案
export function copyPerformanceApi(data) {
data.method = `${path2}merchantPerformanceConfig.copyConfig`
return request(data, 'post')
return request(data, "post")
}
// 获取员工是否是可查看工资白名单
export function staffWhiteListFlagApi(data) {
data.method = `${path2}staffBaseInfo.whiteList.select`
return request(data, 'post')
return request(data, "post")
}
// 根据员工手机号获取员工所在园区店
export function yqMerchantListByStaffPhoneApi(data) {
data.method = `${path2}staffBaseInfo.yqMerchantInfo.list`
return request(data, 'post')
return request(data, "post")
}
// 根据园区店商户号获取1.1和2.1场景下4S店列表
export function merchantListByYqMerchantApi(data) {
data.method = `${path2}scene.shopMerchant.list`
return request(data, 'post')
return request(data, "post")
}
// 员工调店分配新增
export function addStaffDailyReportConfigApi(data) {
data.method = `${path2}staffDailyReportConfig.add`
return request(data, 'post')
return request(data, "post")
}
// 员工调店分配配置修改
export function updateStaffDailyReportConfigApi(data) {
data.method = `${path2}staffDailyReportConfig.update`
return request(data, 'post')
return request(data, "post")
}
// 员工调店分配配置删除
export function deleteStaffDailyReportConfigApi(data) {
data.method = `${path2}staffDailyReportConfig.delete`
return request(data, 'post')
return request(data, "post")
}
// 更新指定员工记录项内容
export function updateTmlpStaffItem(data) {
data.method = `${path2}digital.management.staff.item.update`
return request(data, 'post')
return request(data, "post")
}
/**
* 打卡申诉列表
*/
export function getClockSalaryList(data = {}) {
data.method = 'dj.api.smartcarlife.clock.in.staff.appeal.list'
return request(data, 'post')
data.method = "dj.api.smartcarlife.clock.in.staff.appeal.list"
return request(data, "post")
}
/**
* 打卡申诉列表导出
*/
export function exportClockSalaryList(data = {}) {
data.method = 'dj.api.smartcarlife.clock.in.staff.appeal.list.export'
return request(data, 'post')
data.method = "dj.api.smartcarlife.clock.in.staff.appeal.list.export"
return request(data, "post")
}
// 获取员工月度扣款明细
export function getStaffDeductDetailAPI(data) {
data.method = `${path2}staffMonthSalary.deductDetail`
return request(data, 'post')
return request(data, "post")
}
// 获取员工考勤明细
export function getStaffAttendanceDetailAPI(data) {
data.method = `${path2}clock.in.staff.attendance.detail`
return request(data, "post")
}
\ No newline at end of file
}
// 查询录音标签
export function getRecordTagList(data) {
data.method = `${path2}reception.findRecordingTagByBatchId`
return request(data, "post")
}
// 查询质检列表|侧边栏
export function getQualityList(data) {
data.method = `${path2}reception.findCheckResultByBatchId`
return request(data, "post")
}
// 查询对话内容
export function getConversationDetail(data) {
data.method = `${path2}reception.findConversationDetailByBatchIdNew`
return request(data, "post")
}
// dj.api.smartcarlife.performanceSalaryConfig.page 分页查询绩效工资扣减规则
export function getPerformanceSalaryConfigAPI(data) {
data.method = "dj.api.smartcarlife.performanceSalaryConfig.page"
return request(data, "post")
}
// 批量新增或修改绩效工资扣减规则
export function updatePerformanceSalaryConfigAPI(data) {
data.method =
"dj.api.smartcarlife.performanceSalaryConfig.batchInsertOrUpdate"
return request(data, "post")
}
// 配置圈定产品
export function targetProductConfigAPI(data) {
data.method = `${path2}merchantPerformanceProductDefine.batchInsertOrUpdate`
return request(data, "post")
}
// 获取圈定产品列表数据
export function getTargetProductConfigListAPI(data) {
data.method = `${path2}merchantPerformanceProductDefine.page`
return request(data, "post")
}
// 校验圈定产品/套餐是否可被删除
export function checkProductDefineAPI(data) {
data.method = `${path2}merchantPerformanceProductDefine.deleteValid`
return request(data, "post")
}
......@@ -245,7 +245,7 @@ export function getSunshineIncentivePoint(data) {
return request(data)
}
// 获取4s店某场景类型相关的员工列表
// 获取4s店某场景类型相关的员工列表
export function getStaffDataApi(data) {
data.method = `dj.api.smartcarlife.staff.listBySceneShop`
return request(data)
......@@ -280,3 +280,15 @@ export function personalConfigImport(data) {
data.method = `dj.api.smartcarlife.employee.delivery.deal.rate.import`
return request(data, "post", ["file"])
}
// 批量设置运营人员
export function shopBatchSet(data) {
data.method = 'dj.api.smartcarlife.serviceMerchant.shopOperation.setting.batch'
return request(data, "post")
}
// 批量设置展业场景
export function busiBatchSet(data) {
data.method = 'dj.api.smartcarlife.serviceMerchant.BusinessDev.setting.batch'
return request(data, "post")
}
......@@ -793,6 +793,12 @@ export const warningStatus = [
{ confId: "N", confValue: "异常" }
]
// 转账管理-对账方式
export const rangeType = [
{ confId: 1, confValue: "按周期" },
{ confId: 2, confValue: "按订单" }
]
// 规则审核-类型
export const ruleReview_type = [
{ confId: 1, confValue: "清分" },
......@@ -880,6 +886,20 @@ export const refundExamine_status = [
{ confId: 4, confValue: "已完成" },
{ confId: 5, confValue: "驳回" }
]
// 订单管理-退款审核-审批类型
export const refundExamine_approveTypeOpt = [
{ confId: 1, confValue: "嘀加审批" },
{ confId: 2, confValue: "企微OA审批" }
]
// 订单管理-退款审核-企微审批状态
export const oaApproveStatusOpt = [
{ confId: 1, confValue: "审批中" },
{ confId: 2, confValue: "已通过" },
{ confId: 3, confValue: "已驳回" },
{ confId: 4, confValue: "已撤销" }
]
// 虚拟对公账户银盛到账模式
export const receiptModeList = [
{ confId: 1, confValue: "T+1" },
......@@ -1277,3 +1297,34 @@ export const InvoicingOpt = [
{ confId: "1", confValue: "蓝票" },
{ confId: "2", confValue: "红票" }
]
// 待付清单 数据来源
export const transferSourceOpt = [
{ confId: 1, confValue: "嘀加退款" },
{ confId: 0, confValue: "企微OA" }
]
// 待付清单 数据来源
export const bill_statusOpt = [
{ confId: 0, confValue: "未推送" },
{ confId: 1, confValue: "成功" },
{ confId: 2, confValue: "失败" },
{ confId: -1, confValue: "无需推送" }
]
// 待付清单 付款方式
export const payTypeOpt = [
{ confId: 0, confValue: "银行转账" },
{ confId: 1, confValue: "现金" },
{ confId: 2, confValue: "银行承兑汇票" },
{ confId: 3, confValue: "信用证" },
{ confId: 4, confValue: "冲账" },
{ confId: 5, confValue: "其他" }
]
// 待付清单 详情日志操作项
export const transferStatusOpt = [
{ confId: 0, confValue: "获取付款单" },
{ confId: 1, confValue: "推送付款单" },
{ confId: 2, confValue: "重推付款单" }
]
......@@ -78,6 +78,7 @@
:index="scope.$index"
:prop="item.prop"
:width="item.width"
:columnsObj="item"
/>
<template v-else-if="item.type == 'ownSerialNum'">
<span>{{
......
......@@ -145,13 +145,19 @@ fetch(
// hasReg: false,
// // 是否需要配置账号权限;true-有权限,从后台获取权限信息;false-无需权限
// hasAuth: true,
// subShopMerchantName: true, // 是否显示财务列表二级流量方
// env: "backendSingle",
// alipayPath: "https://zlsdev.glsx.com.cn/#/alipay",
// css_url:
// "https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/index.css",
// axios: {
// // "baseURL": "http://192.168.1.129:8392/rop-dj-smartcarlife/router", //周杭
// // "baseURL": "http://192.168.1.204:8392/rop-dj-smartcarlife/router",//陈希
// baseURL: "http://192.168.1.169:8392/rop-dj-smartcarlife/router", // 蔡远明
// // baseURL: "http://192.168.3.226:9203/rop-dj-smartcarlife/router",
// baseURL: "http://dj.dev.glsx.com.cn/rop-dj-smartcarlife/router",
// // "baseURL": "http://192.168.1.88:8392/rop-dj-smartcarlife/router", //周杭
// // baseURL: "http://192.168.1.227:8392/rop-dj-smartcarlife/router", //陈希
// // baseURL: "http://192.168.1.169:8392/rop-dj-smartcarlife/router", // 蔡远明
// // "baseURL": "http://192.168.1.105:8392/rop-dj-smartcarlife/router", //王润泽
// // "baseURL": "http://192.168.1.104:8392/rop-dj-smartcarlife/router", //叶立庆
// appkey: "48e5e13229b82c1b4e6e8c96151f0637",
// secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
// timeout: 50000,
......@@ -162,6 +168,105 @@ fetch(
// code_success_value: 0,
// code_message_map: {}
// }
// },
// axios2: {
// baseURL: "https://scrm.dev.glsx.com.cn/rop-scrm-shopmall/router",
// appkey: "48e5e13229b82c1b4e6e8c96151f0637",
// secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
// timeout: 50000,
// result: {
// data_key: "data",
// message_key: "message",
// code_key: "code",
// code_success_value: 0,
// code_message_map: {}
// }
// },
// common: {
// baseURL:
// "http://didicb.glsx.com.cn?method=glsx.accounts.biz.common.pictureUpload",
// appkey: "48e5e13229b82c1b4e6e8c96151f0637",
// secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
// timeout: 50000,
// result: {
// data_key: "data",
// message_key: "message",
// code_key: "code",
// code_success_value: 0,
// code_message_map: {}
// }
// },
// errCode: {
// 1: "系统开小差了,错误码1",
// 2: "开发者权限不足",
// 3: "用户权限不足",
// 4: "图片上传失败,错误码4",
// 5: "系统开小差了,错误码5",
// 6: "编码错误",
// 7: "请求被禁止",
// 8: "系统开小差了,错误码8",
// 9: "业务逻辑出错",
// 20: "系统开小差了,错误码20",
// 21: "系统开小差了,错误码21",
// 22: "系统开小差了,错误码22",
// 23: "系统开小差了,错误码23",
// 24: "系统开小差了,错误码24",
// 25: "系统开小差了,错误码25",
// 26: "系统开小差了,错误码26",
// 27: "系统开小差了,错误码27",
// 28: "系统开小差了,错误码28",
// 29: "系统开小差了,错误码29",
// 30: "系统开小差了,错误码30",
// 31: "系统开小差了,错误码31",
// 32: "系统开小差了,错误码32",
// 33: "非法的参数",
// 34: "用户调用服务的次数超限",
// 35: "会话调用服务的次数超限",
// 36: "应用调用服务的次数超限",
// 37: "应用调用服务的频率超限",
// "-4000": "系统开小差了,错误码-4000",
// "-1": "系统开小差了,错误码-1",
// "-2": "系统开小差了,错误码-2",
// "-3": "系统开小差了,错误码-3",
// "-4": "系统开小差了,错误码-4",
// "-5": "系统开小差了,错误码-5",
// "-6": "系统开小差了,错误码-6",
// "-5001": "请校验并输入必填选项,错误码-5001",
// "-5002": "系统开小差了,错误码-5002",
// "-5003": "请校验并输入必填选项,错误码-5003",
// "-5004": "必填项格式有误,请正确填写,错误码-5004",
// "-5005": "请校验并输入必填选项,错误码-5005",
// "-9000": "流量限制",
// 30210101: "该手机号已存在"
// },
// equitySceneType: [73, 102, 146, 158], // 开发环境 2.0场景 会员权益升级 类目
// solarFilmArr: [1, 111, 112], // 太阳膜类 1太阳膜 111太阳膜(众筹)售后众筹场景 112太阳膜(众筹)
// selfBuildGoodsType: "109,115,116,117,118", // 开发环境 自建商品类目值
// supplierCode: ["19"],
// extendedPosiType: [114, 120], // 延保类 类目值
// membraneTypeList: [1, 4, 6, 12, 14, 115, 116, 117], // 所有膜类类目值
// shelfManageDivisionConfig: [1, 2], // 嘀加上架分账类目 流量费,服务商分润
// shelfManageFinanceConfig: [706, 808, 809, 901, 807], // 嘀加上架对账类目 管理层市场费1,管理层市场费2,一线阳光激励费,一线阳光2激励费,人力成本
// brandId: 2978,
// childrenBrandId: 3454, // 问界二级品牌Id
// roleName: "服务商老板", // 账户中心创建在广联数科下的员工(角色类型=服务商老板,督导)
// yqMerchantObj: {
// hzgl: {
// yqMerchantId: "44217689",
// yqMerchantName: "惠州广联数科科技有限公司",
// yqMerchantIdName: "惠州广联数科科技有限公司44217689"
// },
// glsk: {
// yqMerchantId: "44209813",
// yqMerchantName: "广联数科(内部使用)",
// yqMerchantIdName: "广联数科(内部使用)44209813"
// }
// },
// alyOss: {
// accessKeyId: "LTAI5tRXYZswFNkkGAF2fk4e",
// accessKeySecret: "iYJdlgs6khO53YqoQYDOtHXCk83d5C",
// bucket: "jinrong-huidan-test",
// endpoint: "https://oss-cn-shenzhen.aliyuncs.com"
// }
// }
baseConfig = response
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-01 15:03:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-04-08 10:33:45
* @LastEditTime: 2025-06-11 11:33:58
*/
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
......@@ -186,6 +186,14 @@ export const routerName = {
label: "考勤/工资申诉",
handle: "handleClockSalaryIndex"
},
{
authId: "9120512",
parentId: "91205",
category: "Button",
type: "default",
label: "绩效扣减",
handle: "handleDeduction"
}
],
component: _import("residentManage/inStoreManage/inStoreControlList")
},
......@@ -723,6 +731,14 @@ export const routerName = {
category: "Button",
type: "primary",
handle: "handleCopyConfig"
},
{
authId: "9121212",
parentId: "91212",
label: "圈定产品",
category: "Button",
type: "default",
handle: "handleDefine"
}
],
component: _import("residentManage/salaryPerformance/index")
......@@ -994,43 +1010,43 @@ export const routerName = {
},
component: _import("residentManage/teachingManage/addTeachingTask")
},
91220: {
path: "/verbalTrickManagement",
name: "verbalTrickManagement",
meta: {
title: "话术管理",
authId: "91220",
parentId: "912",
cache: false
},
auth: [
{
authId: "9122001",
parentId: "91220",
label: "明细",
handle: "handleDetail",
addRoutePath: [
{
authId: "912200101",
name: "详情",
parentId: "91220"
}
]
}
],
component: _import("residentManage/verbalTrickManagement/index")
},
912200101: {
path: "/inVerbalConfigView",
name: "inVerbalConfigView",
meta: {
title: "明细",
authId: "912200101",
parentId: "91220",
activePath: "/inVerbalConfigView"
},
component: _import("residentManage/verbalTrickManagement/detailView")
},
// 91220: {
// path: "/verbalTrickManagement",
// name: "verbalTrickManagement",
// meta: {
// title: "话术管理",
// authId: "91220",
// parentId: "912",
// cache: false
// },
// auth: [
// {
// authId: "9122001",
// parentId: "91220",
// label: "明细",
// handle: "handleDetail",
// addRoutePath: [
// {
// authId: "912200101",
// name: "详情",
// parentId: "91220"
// }
// ]
// }
// ],
// component: _import("residentManage/verbalTrickManagement/index")
// },
// 912200101: {
// path: "/inVerbalConfigView",
// name: "inVerbalConfigView",
// meta: {
// title: "明细",
// authId: "912200101",
// parentId: "91220",
// activePath: "/inVerbalConfigView"
// },
// component: _import("residentManage/verbalTrickManagement/detailView")
// },
91221: {
path: "/getOutverbalTrickManagement",
name: "getOutverbalTrickManagement",
......
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
918: {
path: "/verbalTrickManage",
name: "verbalTrickManage",
meta: {
title: "话术库",
authId: "918",
parentId: "1",
cache: false
}
},
91801: {
path: "/verbalTrickManage/index",
name: "verbalTrickManagement",
meta: {
title: "话术管理",
authId: "91801",
parentId: "918",
cache: false
},
auth: [
{
authId: "9180101",
parentId: "91801",
label: "明细",
handle: "handleDetail",
addRoutePath: [
{
authId: "918010101",
name: "详情",
parentId: "91801"
}
]
}
],
component: _import("verbalTrickManage/index/index")
},
918010101: {
path: "/inVerbalConfigView",
name: "inVerbalConfigView",
meta: {
title: "明细",
authId: "918010101",
parentId: "91801",
activePath: "/inVerbalConfigView"
},
component: _import("verbalTrickManage/index/detailView")
},
}
......@@ -18,7 +18,7 @@
<el-form-item label-width="120px" label="类型:" prop="type">
<el-radio-group v-model="formData.contentType" @change="changeFileType()">
<el-radio v-for="(item, index) in contentTypeList" :key="index" :label="item.value">{{ item.label
}}</el-radio>
}}</el-radio>
</el-radio-group>
</el-form-item>
<!-- 学习任务 -->
......@@ -71,11 +71,11 @@
</el-table-column>
<el-table-column prop="labelName" width="100" label="优秀标签" align="center">
</el-table-column>
<el-table-column prop="sourceContent" label="话术内容" align="center">
<el-table-column prop="polishContent" label="话术内容" align="center">
<template slot-scope="scope">
<el-popover placement="top-start" trigger="hover" :width="300" :content="scope.row.sourceContent">
<el-popover placement="top-start" trigger="hover" :width="300" :content="scope.row.polishContent">
<div slot="reference" class="popover-reference">
{{ scope.row.sourceContent }}
{{ scope.row.polishContent }}
</div>
</el-popover>
</template>
......
......@@ -224,7 +224,21 @@ export default {
this.init()
return this.$message.error("请重试!")
}
const data = event.srcElement.files
console.log(data[0], data[0].type)
if (!data[0] || !data[0].type) {
this.$message.error(`请上传mp3、aac、m4a的录音格式!`)
this.$refs.fileUpload.value = ""
return
}
const allowedTypes = /audio\/mpeg|aac|m4a/i
if (!allowedTypes.test(data[0].type)) {
this.$message.error(`请上传mp3、aac、m4a的录音格式!`)
this.$refs.fileUpload.value = ""
return
}
for (let i = 0; i < data.length; i++) {
await this.putObject(data[i])
}
......
......@@ -167,6 +167,8 @@ import { uploadImg, syncUploadVideo, uploadVideo } from "@/api/sys.base"
import upload from "@/common/upload"
import draggable from "vuedraggable"
import ImageViewer from "./Image.vue"
import { baseConfig } from "@/main"
import GlOssApi from "glsk-oss-jssdk"
export default {
components: {
draggable,
......@@ -207,6 +209,11 @@ export default {
uploadInfo: null
}
},
mounted() {
this.GlOssApi = new GlOssApi({
baseConfig
})
},
methods: {
dragEnd(e) {
if (e.oldIndex != e.newIndex) {
......@@ -236,7 +243,8 @@ export default {
// 上传图片
handleImgChange(e) {
var file = e.srcElement.files[0]
var reader = new FileReader()
const fileName = file.name
// var reader = new FileReader()
if (this.picOptions.type == "video" && file.type?.indexOf("mp4") == -1) {
this.$message.error(`上传文件不是mp4的格式!`)
this.$refs.uploadImgRef && (this.$refs.uploadImgRef.value = "")
......@@ -279,43 +287,72 @@ export default {
})
this.$emit("beforeUpload")
this.uploading = true
if (this.picOptions.type == "video") {
this.uploadVideoFn(e)
return
}
reader.readAsDataURL(file)
reader.onload = (e) => {
const imgFile = e.target.result
const arrBase64 = imgFile.split(",")
const splitStr = file.name.split(".")
const fileUrl = splitStr[splitStr.length - 1] + "@" + arrBase64[1]
const _api =
this.picOptions.type == "video" ? syncUploadVideo : uploadImg
_api({
file: fileUrl,
compress: this.picOptions.compress || 0
})
.then((res) => {
if (res) {
this.$notify({
title: "提示",
message: `${
this.picOptions.type == "video" ? "视频" : "图片"
}上传成功`,
type: "success"
})
this.imageUrlArr.push(res)
this.$emit("change", {
arr: this.imageUrlArr,
key: this.picOptions.key,
index: this.index
})
}
console.log(this.picOptions.type, 6666)
// if (this.picOptions.type == "video") {
// console.log(333333)
// this.uploadVideoFn(e)
// return
// }
// reader.readAsDataURL(file)
// reader.onload = (e) => {
// const imgFile = e.target.result
// const arrBase64 = imgFile.split(",")
// const splitStr = file.name.split(".")
// const fileUrl = splitStr[splitStr.length - 1] + "@" + arrBase64[1]
// const _api =
// this.picOptions.type == "video" ? syncUploadVideo : uploadImg
// _api({
// file: fileUrl,
// compress: this.picOptions.compress || 0
// })
// .then((res) => {
// if (res) {
// this.$notify({
// title: "提示",
// message: `${
// this.picOptions.type == "video" ? "视频" : "图片"
// }上传成功`,
// type: "success"
// })
// this.imageUrlArr.push(res)
// this.$emit("change", {
// arr: this.imageUrlArr,
// key: this.picOptions.key,
// index: this.index
// })
// }
// })
// .finally((end) => {
// this.uploadEnd()
// })
// }
const success = (res) => {
if (res.aliyunAddress) {
this.$notify({
title: "提示",
message: `${
this.picOptions.type == "video" ? "视频" : "图片"
}上传成功`,
type: "success"
})
.finally((end) => {
this.uploadEnd()
this.imageUrlArr.push(res.aliyunAddress)
this.$emit("change", {
arr: this.imageUrlArr,
key: this.picOptions.key,
index: this.index
})
this.uploadEnd()
}
}
const fail = () => {
this.uploadEnd()
}
this.handleOssUpload(file, fileName, success, fail)
},
handleOssUpload(file, fileName, success, fail) {
const bucketName = "jinrong-huidan-test" // 桶名
const fileType = fileName.substr(fileName.lastIndexOf(".") + 1)
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType)
},
getName(name) {
return name.split("/").pop()
......
......@@ -111,7 +111,7 @@
>
</el-table-column>
<el-table-column
prop="sourceContent"
prop="polishContent"
label="话术内容"
align="center"
>
......@@ -120,10 +120,10 @@
placement="top-start"
trigger="hover"
:width="300"
:content="scope.row.sourceContent"
:content="scope.row.polishContent"
>
<div slot="reference" class="popover-reference">
{{ scope.row.sourceContent }}
{{ scope.row.polishContent }}
</div>
</el-popover>
</template>
......@@ -173,7 +173,7 @@
>
</el-table-column>
<el-table-column
prop="sourceContent"
prop="polishContent"
label="话术内容"
align="center"
>
......@@ -182,10 +182,10 @@
placement="top-start"
trigger="hover"
:width="300"
:content="scope.row.sourceContent"
:content="scope.row.polishContent"
>
<div slot="reference" class="popover-reference">
{{ scope.row.sourceContent }}
{{ scope.row.polishContent }}
</div>
</el-popover>
</template>
......
......@@ -51,11 +51,11 @@
</el-table-column>
<el-table-column prop="labelName" width="100" label="优秀标签" align="center">
</el-table-column>
<el-table-column prop="sourceContent" label="话术内容" align="center">
<el-table-column prop="polishContent" label="话术内容" align="center">
<template slot-scope="scope">
<el-popover placement="top-start" trigger="hover" :width="300" :content="scope.row.sourceContent">
<el-popover placement="top-start" trigger="hover" :width="300" :content="scope.row.polishContent">
<div slot="reference" class="popover-reference">
{{ scope.row.sourceContent }}
{{ scope.row.polishContent }}
</div>
</el-popover>
</template>
......
<!-- 模版表格 -->
<template>
<div class='account-tmpl'>
<d2-table ref="tmplTable" :table-data="tmplList" :table-params="tableParams" :hasNum="false" :hasPage="false" :array-span-method="arraySpanMethod" :selectable-fn="selectableFn">
</d2-table>
</div>
</template>
<script>
import { getMetaTmpl, getTmplById } from '@api/accountManage'
import { deepClone } from "@/common/util"
import { localTmplList } from "../../constant/baseData"
export default {
name: 'AccountTmpl',
components: {},
props: {
type: {
type: String,
default: '1'
},
tmplSelectList: {
type: Array,
default: () => []
}
},
watch: {
type: {
handler(val) {
if (val) {
this.getMetaTmpl()
}
},
deep: true
},
},
data() {
return {
selectedList: [],
/** 模块子项信息对象列表,用于合并单元格
* rowIdx:开始的idx
* rowspan:行合并的行数
*/
moduleSubList: [],
tmplList: [],
localTmplList: deepClone(localTmplList),
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
mutiSelectUniqueKey: "id",
// 多选ref的名称
mutiSelectName: "tmplTable",
listName: "list",
tableOption: false,
tableColumns: [
{
label: "所属模块",
prop: "moduleName",
width: "96px"
},
{
label: "字段名",
prop: "fieldName",
width: "196px"
},
{
label: "字段说明",
prop: "remark",
width: "414px"
}
]
}
}
},
mounted() {
setTimeout(() => {
this.getMetaTmpl()
}, 200)
},
methods: {
getMetaTmpl() {
const tmplName = this.localTmplList.find(item => item.type == this.type)?.name || 'trafficTmpl'
var list = JSON.parse(localStorage.getItem(tmplName))
if (list) {
this.dealToTable(list)
} else {
getMetaTmpl({ type: this.type }).then(res => {
this.dealToTable(res)
localStorage.setItem(tmplName, JSON.stringify(res))
})
}
},
// 处理成表格数据
dealToTable(list = []) {
this.tmplList = []
this.moduleSubList = []
this.selectedList = []
list.forEach(item => {
const subLen = this.moduleSubList.length
this.moduleSubList.push({
rowIdx: subLen ? this.moduleSubList[subLen - 1].rowIdx + this.moduleSubList[subLen - 1].rowspan : item.items.length - 1,
rowspan: item.items.length
})
this.tmplList = this.tmplList.concat(item.items)
item.items.forEach(k => {
if (k.required == 1) {
this.selectedList.push(k)
} else if (this.tmplSelectList.includes(k.id)) {
this.selectedList.push(k)
}
})
})
this.$nextTick(() => {
this.recoverySelection(this.selectedList)
})
},
// 合并单元格
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex == 1) {
const idx = this.moduleSubList.findIndex(k => k.rowIdx == rowIndex)
return {
rowspan: idx != -1 ? this.moduleSubList[idx].rowspan : 0,
colspan: idx != -1 ? 1 : 0
}
}
},
selectableFn(row) {
return !row.required
},
recoverySelection(list) {
list.forEach(item => {
this.$refs?.tmplTable?.$refs?.tmplTableMutiTable.toggleRowSelection(
item,
true
)
})
},
// 获取已选元素,并调整元素顺序
getSelected() {
// console.log(this.$refs?.tmplTable?.$refs?.tmplTableMutiTable.selection, 'this.$refs.tmplTable.$refs.tmplTableMutiTable---')
var selectedList = this.$refs?.tmplTable?.$refs?.tmplTableMutiTable.selection
var selectOrderList = []
this.tmplList.forEach(item => {
if (selectedList.findIndex(k => k.id == item.id) != -1) {
selectOrderList.push(item.id)
}
})
return selectOrderList
},
},
};
</script>
<style scoped>
</style>
<!-- 编辑 - 对账单模版信息 -->
<template>
<d2-container class="edit-page edit-tmpl">
<div style="padding: 20px">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="250px" default-width="314px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules">
<AccountTmpl v-if="showTmpl" ref="accountTmpl" slot="accountTmpl" :type="editData.type" :tmplSelectList="tmplSelectList"></AccountTmpl>
</glsx-combi-form>
<div class="footer">
<el-button @click="handleConfirm" type="primary" :loading="$store.state.d2admin.loading.value">提交</el-button>
<el-button @click="handleCancel">取消</el-button>
</div>
</div>
</d2-container>
</template>
<script>
import { deepClone } from "@/common/util"
import { limitPrice } from "@/common/format"
import { tmplTypeList, localTmplList } from "../constant/baseData"
import { tmplAddOrEdit, getTmplById } from '@api/accountManage'
import AccountTmpl from "./components/AccountTmpl"
export default {
name: "editTmpl",
components: {
AccountTmpl
},
data() {
return {
editChildRef: "editChildRef",
isBlock: true,
localTmplList: deepClone(localTmplList),
routeInfo: {
editType: 'add',
id: '',
},
// 控制“对账字段”,确保拿到已选数据
showTmpl: false,
tmplSelectList: [],
formRules: {
templateName: [{ required: true, message: "请输入模版名称" }],
type: [{ required: true, message: "请选择对账单类型" }],
fieldIds: [{ required: true, message: "请选择对账单类型" }]
},
editData: {
templateName: '',
type: '1',
fieldIds: []
},
editFormData: [
{
label: "模版名称",
name: "templateName",
type: "input",
maxlength: 20
}, {
label: '对账单类型',
name: 'type',
type: 'radio',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'tmplTypeList',
handleRadioChange: (val) => {
this.tmplSelectList = []
}
},
{
label: "对账字段",
name: "fieldIds",
type: "slot",
addHtml: "accountTmpl",
}
],
baseData: {
tmplTypeList: tmplTypeList
},
}
},
mounted() {
this.removeStorage()
this.routeInfo.editType = this.$route.query.editType
this.routeInfo.id = this.$route.query.id
this.getOptionsList("editFormData", false)
if (this.routeInfo.editType == 'edit') {
this.getTmplById()
} else {
this.showTmpl = true
}
},
beforeDestroy() {
this.removeStorage()
},
methods: {
removeStorage() {
this.localTmplList.forEach(item => {
localStorage.removeItem(item.name)
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (['select', 'radio'].includes(item.type) && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
getTmplById() {
getTmplById({ id: this.routeInfo.id }).then(res => {
this.editData.templateName = res.templateName
this.editData.type = res.type + ''
this.editData.fieldIds = res.fieldIds
this.tmplSelectList = res.fieldIds
this.showTmpl = true
})
},
handleConfirm() {
this.editData.fieldIds = deepClone(this.$refs.accountTmpl.getSelected())
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
let params = this.editData
if(this.routeInfo.editType == 'edit') {
params.id = this.routeInfo.id
}
tmplAddOrEdit(params).then(res => {
console.log(res)
this.$message.success("操作成功")
this.handleCancel()
})
}
})
},
// 取消按钮返回列表页
handleCancel() {
this.$router.push({
name: "accountTmplManage"
})
},
}
}
</script>
<style lang="scss" scoped>
.edit-page.edit-tmpl {
margin: 0 20px 20px;
background: #ffffff;
.title {
height: 50px;
line-height: 50px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 16px;
font-weight: 600;
color: #333333;
}
}
.edit-tmpl {
.add-mer-btn {
margin-left: 12px;
}
}
</style>
<!-- 对账单模版管理 - 列表 -->
<template>
<div>
<d2-container>
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="labelWidth" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="tmplTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
</d2-container>
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
// import { mapActions, mapState } from 'vuex'
import { getTmplList, deleteTmpl } from '@api/accountManage'
import { tmplTypeList } from "../constant/baseData"
export default {
name: 'accountTmplManage',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '110px',
searchForm: {
templateName: '',
type: ''
},
searchFormSearch: {},
showFormData: [
{
label: '模版名称',
name: 'templateName',
type: 'input',
maxlength: '20'
}, {
label: '对账单类型',
name: 'type',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'tmplTypeList'
}
],
getListApi: getTmplList,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableColumns: [{
label: '模版名称',
prop: 'templateName',
}, {
label: '对账单类型',
prop: 'type',
width: '124px',
formatter: (cellValue) => {
return this.baseData.tmplTypeList.find(item => item.confId == cellValue.type)?.confLabel || '——'
}
}, {
label: '对账字段',
prop: 'fieldNames',
width: '346px',
}, {
label: '创建人',
prop: 'createdBy',
}, {
label: '创建时间',
prop: 'createTime',
formatter: (cellValue) => {
return Util.dateFormate(cellValue.createTime, 'YYYY-MM-DD HH:mm:ss')
}
}]
},
baseData: {
tmplTypeList: tmplTypeList
},
}
},
// computed: {
// ...mapState({
// dowloadList: (state) => state.d2admin.user.dowloadList
// })
// },
mounted() {
this.getOptionsList('showFormData')
},
methods: {
// ...mapActions({
// get: 'd2admin/base/get',
// close: 'd2admin/page/close'
// }),
// ...mapActions('d2admin/user', ['actionSetDownloadList']),
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
resolve()
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
handleSearch() {
this.$refs.tmplTable.refreshTable(false, true)
},
handleReset() {
this.searchForm = {
templateName: '',
type: ''
}
this.$refs.tmplTable.refreshTable(false, true)
},
handleEdit(row = {}) {
const editType = row?.id ? 'edit' : 'add'
this.$router.push({
name: "editTmpl",
query: {
editType: editType,
id: row?.id || ''
}
})
},
handleDelete(row) {
this.$confirm('删除后不可恢复,确认是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const params = { id: row.id }
deleteTmpl(params).then(res => {
this.$message.success("删除成功")
this.handleReset()
})
}).catch(() => { })
},
}
}
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
</style>
<!-- 对账单管理 - 变更说明弹窗 -->
<template>
<d2-dialog title="变更说明" :is-visible="detailVisible" class="privacyDailog" width="1080px" btnOkLabel="关闭" :noCancel="true" @closeDialog="handleClose" @confirmDialog="handleClose">
<d2-table ref="tmplTable" :get-list-api="getListApi" :search-form="searchForm" :table-params="tableParams" :before-search-fn="beforeSearchFn">
</d2-table>
</d2-dialog>
</template>
<script>
import { getBillDetailList } from '@api/accountManage'
import { Util, deepClone } from '@/common/util'
export default {
name: 'ChangeDetailDialog',
data() {
return {
searchForm: {},
getListApi: getBillDetailList,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: false,
tableColumns: [{
label: '变更类型',
prop: 'changeType',
formatter: (cellValue) => {
return {1: '删除', 2: '新增'}[cellValue.changeType]
}
}, {
label: '订单编码',
prop: 'orderCode',
}, {
label: '变更人',
prop: 'operator',
}, {
label: '变更时间',
width: '150px',
prop: 'createdDate',
formatter: (cellValue) => {
return Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss')
}
}]
}
}
},
props: {
detailVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: () => []
}
},
mounted() {
},
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm.reconciliationBillId = this.info.id
resolve()
})
},
handleClose() {
this.$emit('dialogClose')
}
}
}
</script>
<style>
.privacyDailog .el-dialog {
min-width: 700px;
}
</style>
<template>
<div class="dynamic-table-container">
员工标签:<el-button type="default" v-if="isEdit" @click="addRow">
添加事由
</el-button>
<el-form :model="dynamicForm" ref="dynamicForm">
<el-table :data="tableData" border style="width: 100%; margin-top: 20px">
<el-table-column prop="index" label="序号" width="80" align="center">
<template slot-scope="scope">
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column prop="adjustAmount" label="调整金额" width="180">
<template slot-scope="scope">
<el-form-item :prop="'tableData.' + scope.$index + '.adjustAmount'" :rules="adjustAmountRules">
<el-input v-model="scope.row.adjustAmount" :disabled="!isEdit" placeholder="请输入金额" type="number" @blur="handleInputBlur"></el-input>
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="adjustReason" label="调整事由">
<template slot-scope="scope">
<el-form-item :prop="'tableData.' + scope.$index + '.adjustReason'" :rules="adjustReasonRules">
<el-input v-model="scope.row.adjustReason" placeholder="请输入调整事由" :disabled="!isEdit"></el-input>
</el-form-item>
</template>
</el-table-column>
<el-table-column label="操作" width="120" align="center" v-if="isEdit">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="deleteRow(scope.$index)" icon="el-icon-delete"></el-button>
</template>
</el-table-column>
</el-table>
</el-form>
<!-- <div style="margin-top: 20px">
<el-button type="info" @click="showTableData">显示表格数据</el-button>
<el-button type="success" @click="validateForm">提交验证</el-button>
</div> -->
</div>
</template>
<script>
export default {
name: 'DynamicAdjustmentTable',
props: {
adjustments: {
type: Array,
default: () => []
},
isEdit: {
type: Boolean,
default: true
}
},
data() {
return {
dynamicForm: {
tableData: []
},
adjustAmountRules: [
{ required: true, message: '请输入调整金额', trigger: 'blur' },
{
validator: (rule, value, callback) => {
if (value && isNaN(Number(value))) {
callback(new Error('请输入有效的数字'));
} else {
callback();
}
},
trigger: 'blur'
}
],
adjustReasonRules: [
{ required: true, message: '请输入调整事由', trigger: 'blur' },
{ min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
]
}
},
computed: {
tableData: {
get() {
return this.dynamicForm.tableData;
},
set(value) {
this.dynamicForm.tableData = value;
}
}
},
created() {
// 初始化一行数据
this.addRow();
},
mounted() {
this.dynamicForm.tableData = this.adjustments
},
methods: {
addRow() {
this.tableData.push({
adjustAmount: '',
adjustReason: ''
});
},
deleteRow(index) {
// if (this.tableData.length <= 1) {
// this.$message.warning('至少保留一行数据');
// return;
// }
this.tableData.splice(index, 1);
},
handleInputBlur() {
this.$emit('handleInputBlur')
},
showTableData() {
const formattedData = this.tableData.map((row, index) => ({
'序号': index + 1,
'调整金额': row.adjustAmount,
'调整事由': row.adjustReason
}));
console.log('当前表格数据:', formattedData);
},
validateForm() {
this.$refs.dynamicForm.validate(valid => {
if (valid) {
this.$message.success('验证通过,表单数据有效');
this.showTableData();
} else {
this.$message.error('请检查表单,确保所有必填项已填写');
return false;
}
});
}
}
}
</script>
<style scoped>
.dynamic-table-container {
padding: 20px;
}
.el-form-item {
margin-bottom: 0;
}
</style>
<template>
<el-drawer class="tmpl-drawer" size="70%" :visible.sync="tmplDrawerVisible" :wrapperClosable="wrapperClosable" :before-close="handleClose">
<div slot="title">对账字段配置</div>
<div class="container">
<AccountTmpl ref="accountTmpl" :type="type" :tmplSelectList="tmplSelectList"></AccountTmpl>
</div>
<div class="footer">
<el-button @click="handleClose">取消</el-button>
<el-button @click="handleConfirm" type="primary" :loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</el-drawer>
</template>
<script>
import AccountTmpl from "../accountTmplManage/components/AccountTmpl"
import { deepClone } from '@/common/util'
export default {
name: 'TmplDrawer',
components: {
AccountTmpl
},
props: {
tmplDrawerVisible: {
type: Boolean,
default: false
},
type: {
type: String,
default: '1'
},
tmplSelectList: {
type: Array,
default: () => []
}
},
data() {
return {
wrapperClosable: false
}
},
methods: {
handleClose() {
this.$emit('handleClose')
},
handleConfirm() {
this.$emit('handleConfirm', {
fieldIds: deepClone(this.$refs.accountTmpl.getSelected())
})
},
},
mounted() { },
};
</script>
<style lang="scss" scoped>
::v-deep.tmpl-drawer {
.el-drawer__header {
box-sizing: border-box;
height: 60px;
line-height: 60px;
border-bottom: 1px solid #e5e5e5;
padding: 0 0 0 20px;
color: #333333;
font-size: 20px;
font-weight: bold;
margin-bottom: 0;
}
.container {
box-sizing: border-box;
overflow: scroll;
height: calc(100% - 400px);
padding: 20px;
}
}
</style>
export const tmplTypeList = [
{
confId: "1",
confLabel: "流量方对账单"
},
{
confId: "2",
confLabel: "服务商对账单"
}
]
export const billStatusList = [
{
confId: "1",
confLabel: "待对账"
},
{
confId: "2",
confLabel: "待确认"
},
{
confId: "3",
confLabel: "已对账"
}
]
export const sceneTypeList = [
{
confId: "0",
confLabel: "会员权益/升级"
},
{
confId: "1",
confLabel: "精品升级"
},
{
confId: "2",
confLabel: "次新车转化"
},
{
confId: "3",
confLabel: "售后众筹"
},
{
confId: "4",
confLabel: "积分商城"
}
]
// 存储到内存里面的模版数据,减少频繁请求(进入和退出页面会清空)
export const localTmplList = [
{
type: "1",
name: "trafficTmpl"
},
{
type: "2",
name: "serviceTmpl"
}
]
<template>
<div class="range">
<div :class="[
' el-date-editor',
'el-range-editor',
'el-input__inner',
'el-date-editor--daterange',
'el-range-editor--small',
pickerVisible ? 'is-active' : ''
]"
@click="handleRangeClick"
@mouseleave="showClose = false"
@mousemove="handleMove"
ref="reference">
<template v-if="infinity">
<el-input-number class="el-range-input hide-btn"
:placeholder="startPlaceholder"
v-model="userInput[0]"
@blur="handleBlur(0)"></el-input-number>
<span class="el-range-separator">至</span>
<el-input-number class="el-range-input hide-btn"
:placeholder="endPlaceholder"
v-model="userInput[1]"
@blur="handleBlur(1)"></el-input-number>
</template>
<template v-else>
<el-input v-model="userInput[0]"
:placeholder="startPlaceholder"
@blur="handleBlur(0)"
@input="handleStartInput"
class="el-range-input"></el-input>
<span class="el-range-separator">至</span>
<el-input v-model="userInput[1]"
:placeholder="endPlaceholder"
@input="handleEndInput"
@focus="handleFocus"
@blur="handleBlur(1)"
class="el-range-input"></el-input>
</template>
<i v-show="showClose"
@click="handleClickIcon"
class="el-icon-circle-close"></i>
</div>
<div class="errorTips"
v-if="tipsShow">最大金额需大于最小金额</div>
</div>
</template>
<script>
import { limitPrice } from '@/common/format'
export default {
data() {
return {
pickerVisible: false,
showClose: false,
userInput: this.displayValue,
oldVal: {
startInput: '',
endInput: ''
},
tipsShow: false
}
},
props: {
displayValue: Array,
placeholder: String,
startPlaceholder: String,
endPlaceholder: String,
infinity: Boolean
},
watch: {
displayValue(val) {
if (val) {
this.userInput = val
if (val.length == 0) {
this.tipsShow = false
}
}
}
},
methods: {
handleStartInput(event) {
// const isNumber = /^\d+$/.test(event)
// if (!isNumber) {
// event = null
// }
// if (event > 100) event = 100
// this.userInput[0] = event
this.userInput[0] = limitPrice(event, this.oldVal.startInput, 20, 2)
this.oldVal.startInput = this.userInput[0]
},
handleEndInput(event) {
// const isNumber = /^\d+$/.test(event)
// if (!isNumber) {
// event = null
// }
// if (event > 100) event = 100
// this.userInput[1] = event
this.userInput[1] = limitPrice(event, this.oldVal.endInput, 20, 2)
this.oldVal.endInput = this.userInput[1]
},
handleClickIcon(event) {
this.userInput[0] = null
this.userInput[1] = null
this.tipsShow = false
},
valueIsEmpty() {
const val = this.userInput
if (Array.isArray(val)) {
for (let i = 0, len = val.length; i < len; i++) {
if (val[i]) {
return false
}
}
}
return true
},
handleRangeClick() {
this.pickerVisible = true
},
handleMove() {
if (this.valueIsEmpty()) {
this.showClose = false
} else {
this.showClose = true
}
},
handleFocus() {
if (!this.pickerVisible) {
this.pickerVisible = true
this.$emit("focus", this)
}
},
handleBlur(index) {
this.pickerVisible = false
this.contrastValue()
},
contrastValue() {
const val = this.userInput
if (Array.isArray(val)) {
if (+val[0] > +val[1]) {
val[1] = null
this.tipsShow = true
} else {
this.tipsShow = false
}
}
}
}
}
</script>
<style scoped lang="scss">
.range {
.el-range-input {
::v-deep {
input {
border: 0;
margin-top: -2px;
height: 28px;
}
}
}
.el-icon-circle-close {
color: #dcdfe6;
margin-left: 10px;
}
.hide-btn {
::v-deep {
span {
display: none;
}
input {
padding: 0;
}
}
}
.errorTips {
color: red;
// text-align: center;
font-size: 12px;
}
}
</style>
......@@ -46,7 +46,17 @@
<!-- <el-form-item label="商户号:">
{{ detailInfo.merchantId }}
</el-form-item> -->
<el-form-item label="对账周期:">
<el-form-item label="对账方式:">
<span>{{ detailInfo.rangeType == 2 ? '按订单' : '按周期' }}</span>
</el-form-item>
<el-form-item label="订单范围:" v-if="detailInfo.rangeType == 2">
<el-tooltip class="order_code_scope"
:content="formatOrderCode(detailInfo.orderRefList, 'all')"
placement="right">
<span v-html="formatOrderCode(detailInfo.orderRefList)"></span>
</el-tooltip>
</el-form-item>
<el-form-item label="对账周期:" v-if="detailInfo.rangeType == 1">
{{ detailInfo.startTime }} - {{ detailInfo.endTime }}
</el-form-item>
<el-form-item label="费用类型:">
......@@ -201,6 +211,12 @@ export default {
item.optPerShow = "审核人"
item.optTimeShow = "审核时间"
item.optRemarkShow = "驳回原因"
} else if (item.beforeStatus == 0 && item.afterStatus == 2) {
item.optShow = "商务领导审核"
item.optStautsShow = "通过"
item.optPerShow = "审核人"
item.optTimeShow = "审核时间"
item.optRemarkShow = "备注"
} else if (item.beforeStatus == 1 && item.afterStatus == 2) {
item.optShow = "运营审核"
item.optStautsShow = "通过"
......@@ -262,6 +278,12 @@ export default {
})
},
// 处理订单范围显示
formatOrderCode(data, all) {
let text = data?.map(val => { return val.orderCode })?.join(' / ')
return all ? text : text?.length > 25 ? `<span>${text.substring(0, 25)}...</span>` : `<span>${text}</span>`
},
// URL下载文件并修改文件名
download(item) {
const x = new XMLHttpRequest()
......
......@@ -11,7 +11,11 @@
class="show-search"
:search-form="searchForm"
:label-width="labelWidth"
:form-data="showFormData" />
:form-data="showFormData">
<template slot="orderCodeScope">
<el-input v-model="searchForm.refOrderCode" maxlength="50" placeholder="请输入订单编码" @input="handleOrderCode"></el-input>
</template>
</d2-search>
<div class="up-btns">
<el-button @click="handleSearch"
size="small"
......@@ -44,6 +48,14 @@
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot="orderCodeScope" slot-scope="scope">
<el-tooltip class="item" v-if="scope.scope.rangeType == 2"
:content="formatOrderCode(scope.scope.orderRefList, 'all')"
placement="right">
<span v-html="formatOrderCode(scope.scope.orderRefList)"></span>
</el-tooltip>
<span v-else>-</span>
</div>
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 -->
......@@ -125,7 +137,7 @@
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { transferAccountsStatusList, transferTypeList, sceneCodeList, warningStatus } from '@/common/constants.js'
import { transferAccountsStatusList, transferTypeList, sceneCodeList, warningStatus, rangeType } from '@/common/constants.js'
import { transferAccountsRecordPage, transferAccountsRecordUpdateStatus, reTransfer } from '@api/transferAccountsManage'
import { rewithdraw } from '@api/withdrawalManage'
import examineDialog from './components/examineDialog'
......@@ -162,7 +174,11 @@ export default {
transferAccountsDate: '',
transferType: '',
platformMerchantId: '',
warnStatus: ''
warnStatus: '',
createdBy: '',
createdDate: '',
rangeType: '',
refOrderCode: ''
},
searchFormSearch: {},
showFormData: [{
......@@ -246,6 +262,32 @@ export default {
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'warningStatusList'
}, {
label: '发起人',
name: 'createdBy',
type: 'input',
maxlength: '20',
isClear: true
}, {
label: '创建时间',
name: 'createdDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'rangePickerOptions'
}, {
label: '对账方式',
name: 'rangeType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'rangeTypeList'
}, {
label: '订单范围',
name: '',
type: 'slot',
addHtml: 'orderCodeScope'
}],
getListApi: transferAccountsRecordPage,
tableParams: {
......@@ -310,11 +352,23 @@ export default {
return html
}
}, {
label: '对账方式',
prop: 'rangeType',
width: '160px',
formatter: (cellValue) => {
return cellValue.rangeType == 1 ? '按周期' : cellValue.rangeType == 2 ? '按订单' : '-'
}
}, {
label: '订单范围',
prop: '',
width: '210px',
addHtml: 'orderCodeScope'
}, {
label: '对账周期',
prop: 'cycle',
width: '200px',
formatter: (cellValue) => {
return cellValue.startTime + ' - ' + cellValue.endTime
return cellValue.rangeType != 2 ? cellValue.startTime + ' - ' + cellValue.endTime : '-'
}
}, {
label: '转出方',
......@@ -356,6 +410,10 @@ export default {
}
}
}, {
label: '发起人',
prop: 'createdBy',
width: '150px'
}, {
label: '创建时间',
prop: 'createdDate',
width: '150px',
......@@ -440,7 +498,8 @@ export default {
sceneTypeList: deepClone(sceneCodeList),
transferTypeList: deepClone(transferTypeList),
warningStatusList: deepClone(warningStatus),
PlatformMerchantList: []
PlatformMerchantList: [],
rangeTypeList: deepClone(rangeType)
},
examineVisible: false,
......@@ -473,7 +532,11 @@ export default {
async getBaseData() {
this.getOptionsList()
},
// 订单范围查询条件 仅输入数字
handleOrderCode(e) {
let newValue = e.replace(/[^\d.]/g, '')
this.searchForm.refOrderCode = newValue
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
......@@ -490,10 +553,20 @@ export default {
this.searchFormSearch.sceneTypes[0] = this.searchFormSearch.sceneType
delete this.searchFormSearch.sceneType
}
if (this.searchFormSearch.createdDate) {
this.searchFormSearch.createdStartTimeStr = Util.dateFormate(this.searchFormSearch.createdDate[0], 'YYYY-MM-DD HH:mm:ss')
this.searchFormSearch.createdEndTimeStr = Util.dateFormate(this.searchFormSearch.createdDate[1], 'YYYY-MM-DD') + ' 23:59:59'
delete this.searchFormSearch.createdDate
}
resolve()
})
},
// 处理订单范围显示
formatOrderCode(data, all) {
let text = data?.map(val => { return val.orderCode })?.join(' / ')
return all ? text : text?.length > 25 ? `<span>${text.substring(0, 25)}...</span>` : `<span>${text}</span>`
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
......@@ -525,7 +598,11 @@ export default {
transferAccountsDate: '',
transferType: '',
platformMerchantId: '',
warnStatus: ''
warnStatus: '',
createdBy: '',
createdDate: '',
rangeType: '',
refOrderCode: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......
......@@ -44,27 +44,29 @@
</span>
<!-- 审核 -->
<span style="margin-right: 10px;"
v-if="scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2">
v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2) && scope.scope.approveType == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9040805']" />
</span>
<!-- 结算 -->
<span style="margin-right: 10px;"
v-if="scope.scope.status == 3">
v-if="scope.scope.status == 3 && scope.scope.approveType == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9040806']" />
</span>
<!-- 驳回 -->
<span style="margin-right: 10px;"
v-if="scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2 || scope.scope.status == 3">
v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2 || scope.scope.status == 3) && scope.scope.approveType == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9040807']" />
</span>
<!-- 下载 -->
<span style="margin-right: 10px;">
<span style="margin-right: 10px;"
v-if="scope.scope.approveType == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9040808']" />
<span v-if="scope.scope.downCount != 0" style="color: #2A58AD;">({{scope.scope.downCount}})</span>
<span v-if="scope.scope.downCount != 0"
style="color: #2A58AD;">({{ scope.scope.downCount }})</span>
</span>
</div>
</d2-table>
......@@ -97,7 +99,7 @@
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { refundExamine_status } from '@/common/constants.js'
import { refundExamine_status, refundExamine_approveTypeOpt, oaApproveStatusOpt } from '@/common/constants.js'
import examineDialog from './components/examineDialog'
import rejectDialog from './components/rejectDialog'
import detailDialog from './components/detailDialog'
......@@ -114,7 +116,7 @@ export default {
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '100px',
labelWidth: '110px',
searchForm: {
matchApplyCode: '',
title: '',
......@@ -122,7 +124,9 @@ export default {
status: '',
matchBizOrderCode: '',
payee: '',
applyTime: ''
applyTime: '',
approveType: '',
oaApproveStatus: ''
},
searchFormSearch: {},
showFormData: [{
......@@ -148,7 +152,7 @@ export default {
optionLabel: 'merchantShowName',
optionsName: 'platformMerchantIdList'
}, {
label: '状态',
label: '嘀加审批状态',
name: 'status',
type: 'select',
optionList: [],
......@@ -185,6 +189,22 @@ export default {
type: "datePicker",
isClear: true,
pickerOptions: "rangePickerOptions"
}, {
label: '企微审批状态',
name: 'oaApproveStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'oaApproveStatusOpt'
}, {
label: '审批类型',
name: 'approveType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'approveTypeOpt'
}],
getListApi: refundApplyRecordPage,
tableParams: {
......@@ -246,7 +266,7 @@ export default {
return ""
}
}
}, {
}, {
label: '所属服务对接',
prop: 'yqMerchantName',
width: '200px'
......@@ -265,9 +285,9 @@ export default {
return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}, {
label: '状态',
label: '嘀加审批状态',
prop: 'status',
width: '100px',
width: '110px',
formatter: (cellValue) => {
return this.baseData.statusList.find(item => item.confId === cellValue.status)?.confValue
},
......@@ -281,11 +301,27 @@ export default {
5: 'redSpot'
}[cellValue.status]
}
}, {
label: '企微审批状态',
prop: 'oaApproveStatus',
width: '110px',
formatter: (cellValue) => {
return this.baseData.oaApproveStatusOpt.find(item => item.confId === cellValue.oaApproveStatus)?.confValue
}
}, {
label: '审批类型',
prop: 'approveType',
width: '100px',
formatter: (cellValue) => {
return this.baseData.approveTypeOpt.find(item => item.confId === cellValue.approveType)?.confValue
}
}
]
},
baseData: {
statusList: deepClone(refundExamine_status),
approveTypeOpt: deepClone(refundExamine_approveTypeOpt),
oaApproveStatusOpt: deepClone(oaApproveStatusOpt),
platformMerchantIdList: []
},
......@@ -376,7 +412,9 @@ export default {
title: '',
platformMerchantId: '',
status: '',
matchBizOrderCode: ''
matchBizOrderCode: '',
approveType: '',
oaApproveStatus: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......@@ -477,7 +515,7 @@ export default {
const obj = {
0: '运营审核',
1: '商务审核',
2: '财务复核',
2: '财务复核'
}
this.handleBatchExamine_commit(selectedData, obj[row.status])
},
......
<template>
<div class="div">
<div class="classify-container">
<div class="scroll-arrow left" v-show="showLeftArrow" @click="handleScroll('left')">
<i class="el-icon-arrow-left"></i>
</div>
<div class="classify-wrap" ref="classifyWrap">
<template v-for="(item,index) in classifyList">
<div
:class="['classify-item flex',{active: index == activeIndex}]"
:key="index"
@click="activeIndex = index"
>
<div class="title">{{item.tagGroupName}}</div>
<div class="score"><span>{{item.score||item.score===0?item.score:'-'}}</span>/{{item.sumScore||item.sumScore===0?item.sumScore :'-'}}</div>
</div>
</template>
</div>
<div class="scroll-arrow right" v-show="showRightArrow" @click="handleScroll('right')">
<i class="el-icon-arrow-right"></i>
</div>
</div>
<div
class="scroll-view"
:style="{ height: `${dialogueBoxHeight - 56}px` }"
>
<template v-if="qualityData[activeIndex]">
<div class="quality-block" >
<div class="title flex">
{{qualityData[activeIndex].tagGroupName}}
<div :class="['matched-btn flex', qualityData[activeIndex].matchedClass]">{{qualityData[activeIndex].matchedText}}</div>
</div>
<template v-for="(item,index) in qualityData[activeIndex].conversationDetailDTOList">
<div :key="index">
<div
v-if="item.text_id"
:id="item.text_id"
:class="['quality-item flex',{active:item.text_id == activeId}]"
@click="seekPlay(item)"
>
<div class="avatar-box">
<img :src="require(`@/assets/role-${item.role}.png`)" class="sprite-icon" />
<div class="time">{{item.time}}</div>
</div>
<div class="text flex">{{item.content}}</div>
</div>
<template v-if="item.scriptRec">
<div class="script-rec">
<div class="suggestions-box">
<div class="suggestions-title">
<div class="sprite-icon icon-suggestions-icon"></div>
话术推荐
</div>
<div class="text">
<div v-html="item.scriptRec"></div>
</div>
</div>
</div>
</template>
</div>
</template>
</div>
</template>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
import { getQualityList } from '@/api/resident'
export default {
name: '',
props: {
batchId: [String, Number],
qualityData: {
type: Array,
default: () => []
},
qualityAudio: {
type: [Object, HTMLElement],
required: true
},
dialogueBoxHeight: {
type: Number,
default: 0
}
},
data () {
return {
classifyList: [],
activeIndex: 0,
showLeftArrow: false,
showRightArrow: true,
activeId: ''
}
},
mounted () {
this.getQualityList()
this.$nextTick(() => {
this.checkScrollArrows()
window.addEventListener('resize', this.checkScrollArrows)
})
},
beforeDestroy() {
window.removeEventListener('resize', this.checkScrollArrows)
},
methods: {
async getQualityList() {
this.classifyList = await getQualityList({
batchId: this.batchId
})
this.$nextTick(() => {
this.checkScrollArrows()
})
},
checkScrollArrows() {
const wrap = this.$refs.classifyWrap
if (!wrap) return
this.showLeftArrow = wrap.scrollLeft > 0
this.showRightArrow = wrap.scrollLeft < (wrap.scrollWidth - wrap.clientWidth)
},
handleScroll(direction) {
const wrap = this.$refs.classifyWrap
if (!wrap) return
const scrollAmount = 100 // 每次滚动的距离
const newScrollLeft = direction === 'left'
? wrap.scrollLeft - scrollAmount
: wrap.scrollLeft + scrollAmount
wrap.scrollTo({
left: newScrollLeft,
behavior: 'smooth'
})
// 滚动结束后检查箭头状态
setTimeout(() => {
this.checkScrollArrows()
}, 300)
},
onTimeUpdate () {
const {
mergedOffset
} = this.setProgress()
this.activeId = `text_${mergedOffset}`
},
setProgress () {
const {
currentTime
} = this.qualityAudio,
mergedOffset = Math.ceil(currentTime)
return {
currentTime,
mergedOffset
}
},
seekPlay (item) {
let { activeId } = this
this.$emit('seek', item.mergedOffset)
if (item.text_id == activeId) {
const {
paused
} = this.qualityAudio
if (paused) this.$emit('onPlay')
else this.$emit('onPause')
this.$emit('changeOperate', !paused)
} else {
this.$emit('onPlay')
this.$emit('changeOperate', false)
}
}
}
}
</script>
<style scoped lang='scss'>
.flex {
display: flex;
align-items: center;
}
.div {
height: 100%;
width: 100%;
position: relative;
.classify-container {
position: relative;
display: flex;
align-items: center;
width: 100%;
height: 56px;
background: #F7F9FA;
}
.classify-wrap {
width: 100%;
height: 48px;
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
scroll-behavior: smooth;
padding: 0 4px;
&::-webkit-scrollbar {
display: none;
}
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
.classify-item {
box-sizing: border-box;
min-width: 80px;
height: 100%;
padding: 6px 12px;
flex-shrink: 0;
justify-content: center;
flex-direction: column;
line-height: 20px;
font-size: 14px;
transition: all .15s;
background: #F7F9FA;
text-align: center;
.title {
color: #666;
}
.score {
color: #999;
}
}
.active {
border-radius: 8px;
background: #ffffff;
.title {
color: #2A58AD;
font-weight: 500;
}
}
}
.scroll-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 24px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
background: #F7F9FA;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
cursor: pointer;
z-index: 1;
&.left {
left: 0;
}
&.right {
right: 0;
}
i {
font-size: 16px;
color: #808285;
}
}
.scroll-view {
// height: calc(100% - 56px);
height: 100%;
width: 100%;
// border-radius: 14px;
background: #F0F3F8;
overflow-y: auto;
}
.quality-block {
margin-top: 10px;
.title {
height: 36px;
background: linear-gradient(119.9deg, #e1f7fc 0%, #f3f7ff 27%, #f7f2ff 41%, #e8f1ff 66%, #f7f2ff 100%);
font-size: 14px;
font-weight: 600;
padding: 0 10px;
&::before {
content: '';
width: 4px;
height: 4px;
background: #000000;
border-radius: 100%;
display: block;
margin-right: 8px;
}
.matched-btn {
margin-left: auto;
height: 28px;
border-radius: 14px;
background: #ffffff;
padding: 0 18px;
color: #eb4e4e;
font-size: 12px;
font-weight: 600;
}
.hit {
color: #35c376;
}
}
.quality-item {
padding: 10px 12px;
background: #fff;
.avatar-box {
position: relative;
width: 34px;
width: 34px;
height: 48px;
flex-shrink: 0;
display: flex;
align-items: center;
flex-direction: column;
.sprite-icon {
width: 34px;
height: 34px;
border-radius: 100%;
overflow: hidden;
flex-shrink: 0;
}
.time {
width: 35px;
height: 14px;
background: #ffffff;
border: 1px solid #f0f6ff;
border-radius: 14px;
font-size: 10px;
color: #999ea8;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
}
.text {
width: 361px;
min-height: 40px;
color: #292d33;
font-size: 13px;
margin-left: 8px;
line-height: 22px;
}
}
.active {
background: #f0f6ff;
.text {
font-weight: 500;
}
}
.script-rec {
padding: 12px;
.suggestions-box {
background: #ffffff;
border-radius: 8px;
padding: 12px 14px;
box-sizing: border-box;
.suggestions-title {
display: flex;
align-items: center;
font-weight: 500;
font-size: 14px;
color: #333333;
margin-bottom: 10px;
.sprite-icon {
margin-right: 6px;
}
}
.text {
color: #292d33;
font-size: 13px;
line-height: 22px;
}
.suggestions-text {
padding-bottom: 11px;
border-bottom: 1px solid #f0f6ff;
margin-bottom: 12px;
}
}
}
.active {
background: #f0f6ff;
.text {
font-weight: 500;
}
}
}
}
</style>
\ No newline at end of file
<template>
<div class="quality-table-box">
<div class="title">话术标签</div>
<div class="tag-box" ref="tagBox">
<div class="tag-item" v-for="item in tagList" :key="item.tagId">
{{ item.tagGroupName }} - {{ item.tagName }}
</div>
</div>
<div class="title">质检明细</div>
<div class="quality-table">
<div class="quality-content">
<el-table
:data="processedQualityList"
border
style="width: 100%"
:height="tableHeight"
:max-height="tableHeight">
<el-table-column type="index" label="序号" align="center" width="80">
</el-table-column>
<el-table-column prop="tagGroupName" label="一级分类" align="center" width="120">
</el-table-column>
<el-table-column label="质检得分" align="center" width="100">
<template slot-scope="scope">
{{ scope.row.score }}/{{ scope.row.sumScore }}
</template>
</el-table-column>
<el-table-column prop="scriptRec" label="命中文本" align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.processedScriptRec" placement="top" effect="light">
<div class="text-ellipsis">{{ scope.row.processedScriptRec }}</div>
</el-tooltip>
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
import {getRecordTagList, getQualityList} from '@/api/resident'
export default {
props: ['batchId', 'qualityData'],
data() {
return {
qualityList: [],
tagList: [],
tableHeight: 430
}
},
computed: {
processedQualityList() {
return this.qualityData.map(item => ({
...item,
processedScriptRec: item.scriptRec?.replace(/[\[\]"]/g, '') || ''
}))
}
},
mounted() {
this.getRecordTagList()
this.calculateTableHeight()
// this.getQualityList()
},
methods: {
async getRecordTagList() {
this.tagList = await getRecordTagList({
batchId: this.batchId
})
this.$nextTick(() => {
this.calculateTableHeight()
})
},
calculateTableHeight() {
// 获取屏幕高度
const screenHeight = window.innerHeight
// 获取话术标签box的高度
const tagBoxHeight = this.$refs.tagBox ? this.$refs.tagBox.offsetHeight : 0
// 其他固定元素的高度(标题、间距等)
const otherHeight = 260 // 标题高度 + 间距
// 计算表格高度 = 屏幕高度 - 话术标签box高度 - 其他固定元素高度
this.tableHeight = screenHeight - tagBoxHeight - otherHeight
},
// async getQualityList() {
// this.qualityList = await getQualityList({
// batchId: this.batchId
// })
// }
}
}
</script>
<style scoped lang='scss'>
.quality-table-box {
font-size: 16px;
color: #1D1D1D;
.title {
font-size: 16px;
color: #1D1D1D;
font-weight: 500;
margin-bottom: 10px;
}
.tag-box {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
.tag-item {
padding: 8px 12px;
border-radius: 4px;
background-color: #EAEEF7;
border: 1px solid #2A58AD;
color: #333;
font-size: 14px;
}
}
}
</style>
\ No newline at end of file
......@@ -182,12 +182,21 @@
@closeDialog="closeDialog"
ref="qualityDetail"
></quality-detail>
<new-quality-detail
:is-quality-visible="isNewQualityVisible"
v-if="isNewQualityVisible"
:currentNum="currentNum"
:qualityDetailList="qualityDetailList"
@closeDialog="closeDialog"
ref="newQualityDetail"
></new-quality-detail>
</div>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import ElInputRange from "../el-input-range"
import QualityDetail from "./qualityDetail.vue"
import NewQualityDetail from "./newQualityDetail.vue"
import { conversationPage } from "@api/resident"
import reportTrackFunMixin from '@/mixins/reportTrackFunMixin'
export default {
......@@ -199,6 +208,7 @@ export default {
data () {
return {
isQualityVisible: false,
isNewQualityVisible: false,
searchForm: {
recepTime: [],
qualityTestScore: [],
......@@ -340,7 +350,8 @@ export default {
},
components: {
ElInputRange,
QualityDetail
QualityDetail,
NewQualityDetail
},
watch: {
show: {
......@@ -396,8 +407,10 @@ export default {
this.$refs.recepDetail.refreshTable()
},
closeDialog () {
this.$refs.qualityDetail.onPageHide()
if(this.$refs.qualityDetail) this.$refs.qualityDetail.onPageHide()
if(this.$refs.newQualityDetail) this.$refs.newQualityDetail.onPageHide()
this.isQualityVisible = false
this.isNewQualityVisible = false
this.onPageShow()
},
qualitDetail (row) {
......@@ -405,7 +418,11 @@ export default {
currentNum = list.findIndex((e) => e.id == row.id)
this.currentNum = currentNum
this.qualityDetailList = list
this.isQualityVisible = true
if (row.checkHistoryFlag === 0) {
this.isNewQualityVisible = true
} else {
this.isQualityVisible = true
}
this.onPageHide()
},
beforeSearchFn () {
......
......@@ -43,6 +43,14 @@
本月录音数<span class="tips-text">{{ infoData.recordingCount || 0 }}</span>条 本月总触客数<span class="tips-text">{{ infoData.toShopFilmCount || 0 }}</span>人
</div>
</template>
<template v-else-if="item.value === 'performancePenalty' && !isEmpty(infoData.performanceSalarDeductionRatio)">
<div v-if="infoData.monthTotalPrice == 0">
若月底产值为0时,绩效工资扣减<span class="tips-text">{{ `${infoData.performanceSalarDeductionRatio}%` }}</span>
</div>
<div v-else>
若月底产值不为0时,绩效工资扣减<span class="tips-text">{{ `${infoData.performanceSalarDeductionRatio}%` }}</span>
</div>
</template>
</div>
</div>
</div>
......@@ -54,6 +62,7 @@
<script>
import { getStaffDeductDetailAPI } from '@api/resident'
import { isEmpty, filterStr } from '../util.js'
import BigNumber from 'bignumber.js'
export default {
name: 'BasicSalaryDialog',
data() {
......@@ -89,6 +98,11 @@ export default {
value: 'refundOffset'
},
{
label: '绩效工资扣减',
value: 'performancePenalty',
hasDetail: true
},
{
label: '其它应发/应扣',
value: 'otherDeduction'
}
......@@ -134,11 +148,14 @@ export default {
},
getDeductDetail() {
getStaffDeductDetailAPI({ id: this.detailRow?.id }).then(res => {
const performanceSalary = new BigNumber(res.performanceSalary || 0) // 绩效工资
const actualPerformanceSalary = new BigNumber(res.actualPerformanceSalary || 0) // 实际绩效工资
this.infoData = {
...res,
refundOffset: !this.isEmpty(res?.refundOffset) ? `-${Math.abs(res?.refundOffset)}` : 0,
dailyDeductDetailData1: res?.dailyDeductDetailData1?.length ? this.getSortedDays(res?.dailyDeductDetailData1) : [],
dailyDeductDetailData2: res?.dailyDeductDetailData2?.length ? this.getSortedDays(res?.dailyDeductDetailData2) : []
dailyDeductDetailData2: res?.dailyDeductDetailData2?.length ? this.getSortedDays(res?.dailyDeductDetailData2) : [],
performancePenalty: !this.isEmpty(performanceSalary.minus(actualPerformanceSalary).toNumber()) ? `-${Math.abs(performanceSalary.minus(actualPerformanceSalary).toNumber())}` : 0
}
this.show = true
})
......
<!-- 关联门店弹窗 -->
<template>
<d2-dialog
title="选择员工"
:is-visible.sync="relateStoreVisible"
width="1280px"
btn-ok-label="确定"
@confirmDialog="handleRelateStoreConfirm"
@closeDialog="handleRelateStoreClose"
class="relateEmp"
>
<el-row class="tableCon">
<div class="tableBox">
<div class="tableHeader">选择员工</div>
<div class="tableBody">
<el-form :model="storeSearchForm" ref="relate" :inline="true">
<el-form-item label="员工名称:">
<el-input
v-model.trim="storeSearchForm.staffName"
placeholder="请输入员工名称"
max-length="20"
clearable
/>
</el-form-item>
<!-- <el-form-item label="员工手机号:">
<el-input
v-model.trim="storeSearchForm.staffPhone"
placeholder="请输入手机号"
max-length="20"
clearable
/>
</el-form-item> -->
<div class="text-align: right;">
<el-button type="primary" @click="handleCurrentChange(1)"
>搜索</el-button
>
</div>
</el-form>
</div>
<el-table
ref="seletingTable"
:data="selectingData"
height="264px"
class="table"
border
@select="handleChange"
@select-all="handleAll"
>
<el-table-column
type="selection"
:selectable="checkSelectable"
width="55"
align="center"
/>
<el-table-column prop="staffName" label="员工名称" align="center">
</el-table-column>
<el-table-column prop="staffPhone" label="手机号" align="center">
</el-table-column>
</el-table>
<el-pagination
small
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
:page-size="pageSize"
layout="total, prev, pager, next"
:total="total"
/>
</div>
<div class="tableBox">
<div class="tableHeader">
已选员工
<a @click="handleClear" class="clear-btn"> 清空 </a>
</div>
<div class="tableBody">
<el-table class="table" :data="selectedData" border height="364px">
<el-table-column type="index" label="序号" width="50">
</el-table-column>
<el-table-column prop="staffName" label="员工名称" align="center">
</el-table-column>
<el-table-column prop="staffPhone" label="手机号" align="center">
</el-table-column>
<el-table-column label="操作" align="center" width="50px">
<template slot-scope="scope">
<el-button @click="handleDelete(scope.row)" type="text">
删除
</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
</el-row>
</d2-dialog>
</template>
<script>
import { staffBaseInfoPageList } from "@api/contentManager"
export default {
name: "RelateStoreDialog",
data() {
return {
selectedData: [],
selectingData: [],
// 分页
total: 0,
currentPage: 1,
pageSize: 20,
storeSearchForm: {}
}
},
props: {
relateStoreVisible: {
type: Boolean,
default: false
},
storeSelected: {
type: Array,
default: () => []
},
selectingList: {
type: Array,
default: () => []
}
},
mounted() {},
watch: {
relateStoreVisible: {
handler(val) {
if (val) {
this.selectedData = this.storeSelected
console.log(this.selectedData, "---------")
this.recoverySelection()
}
},
deep: true
}
},
methods: {
checkSelectable(row, index) {
const obj = this.selectingList.find((v) => v.staffPhone == row.staffPhone)
if (obj) {
return false
} else {
return true
}
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(
(item) => item.staffPhone !== row.staffPhone
)
const obj = this.selectingData.find((v) => v.staffPhone == row.staffPhone)
this.$refs.seletingTable.toggleRowSelection(obj)
},
handleClear() {
this.selectedData = []
this.$refs.seletingTable.clearSelection()
},
recoverySelection() {
var exitIds = this.selectedData.map((item) => item.staffPhone)
this.selectingData.forEach((item) => {
exitIds.includes(item.staffPhone) &&
this.$refs.seletingTable &&
this.$refs.seletingTable.toggleRowSelection(item, true)
})
},
getSelectingList() {
staffBaseInfoPageList({
hasBasicSalary: true,
...this.storeSearchForm,
currentPage: this.currentPage,
pageSize: this.pageSize
}).then((res) => {
this.selectingData = res.list
this.total = res.total
this.$nextTick(() => {
this.recoverySelection()
})
})
},
handleChange(selection, row) {
var addOrDelete = !!selection.find(
(item) => item.staffPhone == row.staffPhone
)
addOrDelete
? this.selectedData.push(row)
: (this.selectedData = this.selectedData.filter(
(item) => item.staffPhone != row.staffPhone
))
},
handleAll(selection) {
console.log(selection)
this.selectingData.forEach((item) => {
var isExit = this.selectedData.findIndex(
(subItem) => subItem.staffPhone === item.staffPhone
)
if (selection.length && isExit === -1) {
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
}
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(
(item) => item.staffPhone != row.staffPhone
)
const obj = this.selectingData.find((v) => v.staffPhone == row.staffPhone)
if (obj) this.$refs.seletingTable.toggleRowSelection(obj)
},
handleCurrentChange(val) {
this.currentPage = val
this.getSelectingList()
},
handleRelateStoreConfirm() {
this.$emit("handleRelateStoreConfirm", this.selectedData)
},
handleRelateStoreClose() {
this.$emit("handleRelateStoreClose")
}
}
}
</script>
<style lang="scss">
.relateEmp .tableCon {
display: flex;
gap: 10px;
.tableBox {
width: calc(50% - 10px);
border: 1px solid #e5e5e5;
.tableHeader {
opacity: 1;
background: #f5f5f5;
padding: 10px 16px;
color: #333333;
display: flex;
font-size: 14px;
justify-content: space-between;
.clear-btn {
color: #409eff;
cursor: pointer;
}
}
.tableBody {
padding: 16px;
.tab-box {
margin-bottom: -20px;
.el-tabs__nav-wrap {
&::after {
display: none;
}
}
}
.el-input {
width: 170px;
}
.el-range-editor--medium.el-input__inner {
width: 300px !important;
}
}
}
}
.service-store .relateEmp .el-table .cell,
.d2-form .relateEmp .el-table .cell {
line-height: 26px !important;
}
.service-store .relateEmp .el-table--medium td,
.d2-form .relateEmp .el-table--medium td {
padding: 6px 8px !important;
}
.relateEmp .red {
color: red;
}
.relateEmp .tip-icon {
position: absolute;
display: inline-block;
height: 10px;
width: 10px;
line-height: 10px;
color: #ffffff;
background-color: red;
border: 1px solid red;
border-radius: 50%;
cursor: pointer;
font-size: 6px;
margin-left: 2px;
}
</style>
......@@ -20,7 +20,7 @@
<div>
<span>{{ subItem.merchantName }}</span>
<span>{{ subItem.merchantId }}</span>
<span class="car-text" v-if="subItem.configCarType">{{ subItem.configCarType ==1 ? '单问界' : '其他车系' }}</span>
<span class="car-text" v-if="subItem.configCarType">{{ subItem.configCarType == 1 ? '单问界' : subItem.configCarType == 2 ? '其他车系' : '鸿蒙' }}</span>
<span class="car-text" v-for="(bItem, bIdx) in subItem.businessType" :key="bIdx">{{businessTypeList[bItem]}}</span>
</div>
<div>总提成<span class="price-text">{{ (commissionPrice = [2].includes(subItem.configType) ? subItem.grCommissionPrice : subItem.goodsCommissionPrice) || '-' }}元</span></div>
......@@ -31,13 +31,27 @@
<div class="line" :style="{'top': (48 * (idx + 1) + 63) + 'px'}" v-for="(v, idx) in subItem.allocationDetailList" :key="idx"></div>
</div>
<div class="content-item-body-title">
<span>{{ subItem.staffName || '-' }} | </span>
<span>交车数&nbsp;{{ isEmpty(subItem.deliveryCount) ? '-' : `${subItem.deliveryCount}` }} | </span>
<span>触客数&nbsp;{{ isEmpty(subItem.toShopCount) ? '-' : `${subItem.toShopCount}` }} </span>
<div>
<span>{{ subItem.staffName || '-' }} | </span>
<span>交车数&nbsp;{{ isEmpty(subItem.deliveryCount) ? '-' : `${subItem.deliveryCount}` }} | </span>
<span>触客数&nbsp;{{ isEmpty(subItem.toShopCount) ? '-' : `${subItem.toShopCount}` }} </span>
</div>
<div v-if="subItem.configItemList && subItem.configItemList.length">
门店触客率当月<span class="price-text">{{ `${subItem.configItemList[0].startValue}-${subItem.configItemList[0].endValue}%` }}</span>,提成金额整体比例为<span class="price-text">{{ `${subItem.configItemList[0].calculateValue}%` }}</span>
</div>
</div>
<d2-table :hasPage="false"
:tableData="subItem.allocationDetailList"
:table-params="tableParams">
<template slot="goodsTypeName" slot-scope="scope">
<el-tooltip class="order_code_scope"
:content="formatGoodsTypeName(scope.scope, 'all')"
v-if="formatGoodsTypeName(scope.scope, 'all').length > 45"
placement="right">
<span>{{ formatGoodsTypeName(scope.scope) }}</span>
</el-tooltip>
<span v-else>{{ formatGoodsTypeName(scope.scope) }}</span>
</template>
</d2-table>
</div>
</div>
......@@ -85,18 +99,21 @@ export default {
{
label: '产品名称',
prop: 'goodsTypeName',
addHtml: 'goodsTypeName',
formatter: (row) => {
return `${row?.thirdLevelGoodsTypeName ? row.thirdLevelGoodsTypeName : row?.secondaryGoodsTypeName ? row.secondaryGoodsTypeName : row.goodsTypeName}` + `${row?.allocationType == 5 ? '(售后)' : ''}`
return row.allocationType == 9 ? (`${row.productDefineName}`) :
`${row?.thirdLevelGoodsTypeName ? row.thirdLevelGoodsTypeName : row?.secondaryGoodsTypeName ? row.secondaryGoodsTypeName : row.goodsTypeName}` + `${row?.allocationType == 5 ? '(售后)' : ''}`
}
},
{
label: '订单量',
prop: 'orderCount'
prop: 'orderCount',
width: 80
},
{
label: '贡献产值',
prop: 'orderTotalPrice',
width: 80,
width: 120,
formatter: (row) => {
return !isEmpty(row.orderTotalPrice) ? `¥${row.orderTotalPrice}` : '-'
}
......@@ -104,8 +121,10 @@ export default {
{
label: '个人渗透率',
prop: 'penetrationRate',
width: 160,
formatter: (row) => {
return row.penetrationRate ? `${row.penetrationRate}%` : '-'
// 渗透率不为空并且绩效配置类型不为按产值
return !isEmpty(row.penetrationRate) && [2, 3, 4].includes(row.configType) ? `${row.penetrationRate}%` : '-'
}
},
{
......@@ -113,13 +132,13 @@ export default {
prop: '',
width: 100,
formatter: (row) => {
// allocationType:(6非售后 比例取值outputCommissionRatio 系数取值calculateValue)(新类型社招轻改7 比例取值calculateValue 系数取外层结构avgCustomerCalculateValue)(5售后) (8固定提成)
// allocationType:(6非售后 比例取值outputCommissionRatio 系数取值calculateValue)(新类型社招轻改7 比例取值calculateValue 系数取外层结构avgCustomerCalculateValue)(5售后) (8固定提成)(9 || 10 5月赛力斯新绩效方案)
return row.allocationType == 6 ?
`${!isEmpty(row.outputCommissionRatio) ? row.outputCommissionRatio : '-'}%×${row.calculateValue}`
: row.allocationType == 7
? `${!isEmpty(row.calculateValue) ? row.calculateValue : '-'}%×${row.avgCustomerCalculateValue}`
: row.allocationType == 5 ? `${row.calculateValue}%`
: row.allocationType == 8 ? `每单${row.calculateValue}元` : '-'
: row.allocationType == 8 || row.allocationType == 9 || row.allocationType == 10 ? `每单${row.calculateValue}元` : '-'
}
},
{
......@@ -170,6 +189,11 @@ export default {
this.getSalaryDetail()
},
methods: {
formatGoodsTypeName(row, all) {
let text = row.allocationType == 9 ? (row.productDefineName ? `${row.productDefineName}` : '-') :
`${row?.thirdLevelGoodsTypeName ? row.thirdLevelGoodsTypeName : row?.secondaryGoodsTypeName ? row.secondaryGoodsTypeName : row.goodsTypeName}` + `${row?.allocationType == 5 ? '(售后)' : ''}`
return all ? text : text?.length > 45 ? `${text.substring(0, 45)}...` : `${text}`
},
// 基本工资明细弹窗
showBasicDialog() {
this.handleBasicCloseDialog()
......@@ -201,6 +225,7 @@ export default {
detailArray[j].data = detailArray[j]?.data?.map(item => {
item?.allocationDetailList?.forEach(v => { // 按产值系数取客单价绩效配置系数
v.avgCustomerCalculateValue = item.avgCustomerCalculateValue
v.configType = item.configType
})
item.businessType = item.businessType?.split(',')
const key = `${item.merchantId}-${item.sceneType}`
......@@ -225,6 +250,10 @@ export default {
.dialog-content {
max-height: calc(68vh - 70px);
overflow: auto;
.price-text{
margin-left: 2px;
color: #2A58AD;
}
.header {
margin-top: 15px;
font-weight: 500;
......@@ -297,10 +326,6 @@ export default {
border: 1px solid #E8E8E8;
border-radius: 2px;
}
.price-text{
margin-left: 2px;
color: #2A58AD;
}
}
.content-item-body{
padding: 0 36px;
......@@ -319,6 +344,9 @@ export default {
}
}
.content-item-body-title{
display: flex;
align-items: center;
justify-content: space-between;
color: #1D1D1D;
padding: 12px 0;
}
......
......@@ -38,6 +38,9 @@
style="display: inline-block"
:show-btn-ids="['9121211']" />
</span>
<span style="margin-left: 10px;">
<auth-button category="Button" :show-btn-ids="['9121212']"></auth-button>
</span>
</d2-table-header>
<d2-table ref="performanceTable"
:has-num="false"
......@@ -48,7 +51,7 @@
:selectable-fn="selectableFn">
<template slot="brand" slot-scope="scope">
<template v-if="scope.scope.brand && scope.scope.brand.length > 20">
<el-popover placement="top" width="300" trigger="hover">
<el-popover placement="top" width="300" popper-class="brand_popver" trigger="hover">
<div class="brand-box">
{{ brandFilter(scope.scope) }}
</div>
......@@ -74,6 +77,7 @@
</div>
</d2-table>
</div>
<!-- 复制绩效方案 -->
<copy-performance-dialog
ref="copyPerformance"
v-if="copyPerformanceVisible"
......@@ -97,6 +101,8 @@
</el-form>
</el-row>
</copy-performance-dialog>
<!-- 圈定产品 -->
<define-products-dialog v-if="defineVisible" :defineVisible="defineVisible" @dialogClose="dialogClose"></define-products-dialog>
</d2-container>
</template>
<script>
......@@ -105,10 +111,12 @@ import { getStoreSalaryListApi, editStoreSalaryStatusApi, deleteStoreSalaryApi,
import { getCarBrandList } from "@api/commodity.js"
import { deepClone } from '@/common/util'
import copyPerformanceDialog from './copyPerformanceDialog.vue'
import defineProductsDialog from './defineProductsDialog.vue'
export default {
name: "PerformanceList",
components: {
copyPerformanceDialog
copyPerformanceDialog,
defineProductsDialog
},
data() {
return {
......@@ -246,7 +254,8 @@ export default {
maerchantId: ''
},
copyPerformanceVisible: false,
copySelectedData: {}
copySelectedData: {},
defineVisible: false
}
},
computed: {
......@@ -347,6 +356,13 @@ export default {
handleCancel() {
this.copyPerformanceVisible = false
},
// 圈定产品
handleDefine() {
this.defineVisible = true
},
dialogClose() {
this.defineVisible = false
},
// 导入绩效
handleImport() {
this.$alert('敬请期待', '提示', {
......@@ -379,8 +395,7 @@ export default {
this.$message.success(`${text}成功`)
this.$refs.performanceTable.refreshTable()
})
}).catch(err => {
console.log(err)
}).catch(() => {
})
},
// 删除方案
......@@ -394,8 +409,7 @@ export default {
this.$message.success("删除成功")
this.$refs.performanceTable.refreshTable()
})
}).catch(err => {
console.log(err)
}).catch(() => {
})
},
// 导出
......@@ -441,7 +455,17 @@ export default {
}
.brand-box {
font-size: 12px;
max-height: 400px;
overflow-y: auto;
padding: 10px;
box-sizing: border-box;
}
</style>
<style>
.brand_popver{
height: auto !important;
max-height: 200px;
overflow: auto !important;
min-height: 0;
padding: 0 !important;
box-sizing: border-box;
}
</style>
<template>
<baseDialog :dialog-config="selectDialogConfig"
:is-show.sync="visible"
@handleClick="handleConfirm">
<div v-if="selectDialogConfig.type == 1">
<el-row class="tableCon">
<div class="tableBox">
<div class="tableTop">商品</div>
<div class="tableContent">
<div class="searchBox">
<el-input v-model.trim="upgradeGoodsName" placeholder="搜索商品名称" size="small" clearable style="width: 200px;"></el-input>
<el-button type="primary" size="small" @click="handleSearch" >搜索</el-button>
</div>
<el-table
ref="seletingTable"
:data="listData"
height="364px"
class="table"
border
@select="handleChange"
@select-all="handleAll">
<el-table-column type="selection" width="55" align="center" :selectable="selectableFn" />
<el-table-column prop="upgradeGoodsName" label="商品名称" align="center">
</el-table-column>
</el-table>
<el-pagination
small
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
:page-size="pageSize"
layout="total, prev, pager, next"
:total="total" />
</div>
</div>
<div class="tableBox">
<div class="tableTop">
<div>
<span>已选商品</span>
<span>{{ selectedData.length ? `(${selectedData.length}个)` : '' }}</span>
</div>
<el-button type="text" @click="clearSelect">清空</el-button>
</div>
<div class="tableContent">
<el-table
class="tableBox table"
:data="selectedData"
border
height="420px">
<el-table-column prop="upgradeGoodsName" label="商品名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.upgradeGoodsName }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="50px">
<template slot-scope="scope">
<el-button
@click="handleDelete(scope.row)"
type="text">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
</el-row>
</div>
<div v-else>
<el-row class="tableCon">
<div class="tableBox">
<div class="tableTop">圈定产品</div>
<div class="tableContent">
<el-table
ref="seletingTable"
:data="listData"
height="424px"
class="table"
border
@select="handleChange"
@select-all="handleAll">
<el-table-column type="selection" width="55" align="center" :selectable="selectableFn" />
<el-table-column prop="productName" label="产品名称" align="center">
</el-table-column>
</el-table>
</div>
</div>
<div class="tableBox">
<div class="tableTop">
<div>
<span>已选圈定产品</span>
<span>{{ selectedData.length ? `(${selectedData.length}个)` : '' }}</span>
</div>
<el-button type="text" @click="clearSelect">清空</el-button>
</div>
<div class="tableContent">
<el-table
class="tableBox table"
:data="selectedData"
border
height="424px">
<el-table-column prop="productName" label="产品名称" align="center">
</el-table-column>
<el-table-column label="操作" align="center" width="50px">
<template slot-scope="scope">
<el-button
@click="handleDelete(scope.row)"
type="text">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
</el-row>
</div>
</baseDialog>
</template>
<script>
import { getUpgradeProductList } from '@api/productManage'
import { deepClone } from '@/common/util'
export default {
name: 'SelectDefineProductDialog',
data() {
return {
selectedData: [],
listData: [],
// 分页
total: 0,
currentPage: 1,
pageSize: 20,
upgradeGoodsName: ''
}
},
computed: {
visible: {
get() {
return this.selectDialogConfig.selectDialogVisible
},
set() {
this.$emit('selectDialogClose')
}
}
},
props: {
selectDialogConfig: {
type: Object,
default: () => {}
}
},
mounted() {
if (this.selectDialogConfig.type == 1) {
// 获取sku商品列表数据
this.getSkuGoodsList()
} else {
this.listData = deepClone(this.selectDialogConfig.listData)
this.$nextTick(() => {
this.recoverySelection()
})
}
this.selectedData = deepClone(this.selectDialogConfig.selectData)
},
methods: {
getSkuGoodsList() {
let params = {
currentPage: this.currentPage,
pageSize: this.pageSize,
upgradeGoodsName: this.upgradeGoodsName
}
getUpgradeProductList(params).then(res => {
res?.list?.forEach(val => {
val.customerId = val.id // 自定义的id用于唯一值判断
let specificationTypeSequenceArr = val.specificationTypeSequence?.split(';~;')
let specificationValueSequenceArr = val?.specificationData?.split(';~;')
const suffixMapping = {
1: '年',
2: '(km/万)',
3: '万'
}
if (specificationTypeSequenceArr?.length) {
specificationValueSequenceArr?.forEach((v, index) => {
const suffix = suffixMapping[specificationTypeSequenceArr[index]]
if (suffix) {
specificationValueSequenceArr[index] = `${v}${suffix}`
}
})
val.listShowSpecificationData = specificationValueSequenceArr?.join('/')
}
val.itemId = val.id // 后端需要的skuID
val.upgradeGoodsName = val.listShowSpecificationData ? `${val.upgradeGoodsName} ${val.listShowSpecificationData}` : val.upgradeGoodsName
})
this.total = res.total
this.listData = res?.list || []
this.$nextTick(() => {
this.recoverySelection()
})
})
},
recoverySelection() {
var exitIds = this.selectedData.map((item) => item.customerId)
this.listData.forEach((item) => {
exitIds.includes(item.customerId) &&
this.$refs.seletingTable.toggleRowSelection(item, true)
})
},
// sku搜索
handleSearch() {
this.currentPage = 1
this.getSkuGoodsList()
},
// 翻页
handleCurrentChange(val) {
this.currentPage = val
this.getSkuGoodsList()
},
selectableFn(row) {
var isSelect = true
if (this.selectDialogConfig?.otherSelectData?.filter(val => val.customerId == row.customerId)?.length) {
isSelect = false
}
return isSelect
},
// 选择
handleChange(selection, row) {
var addOrDelete = !!selection.find(
(item) => item.customerId === row.customerId
)
addOrDelete
? this.selectedData.push(row)
: (this.selectedData = this.selectedData.filter(
(item) => item.customerId !== row.customerId
))
},
// 全选
handleAll(selection) {
this.listData.forEach((item) => {
var isExit = this.selectedData.findIndex(
(subItem) => subItem.customerId === item.customerId
)
var selectFlag = selection?.some(subItem => subItem.customerId == item.customerId)
if (selection.length && isExit === -1 && selectFlag) {
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1 && !selectFlag) {
this.selectedData.splice(isExit, 1)
}
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(
(item) => item.customerId !== row.customerId
)
const obj = this.listData.find((v) => v.customerId == row.customerId)
this.$refs.seletingTable.toggleRowSelection(obj)
},
// 清除选中项
clearSelect() {
this.selectedData = []
this.$refs.seletingTable.clearSelection()
},
// 确定提交
handleConfirm() {
const message = this.selectDialogConfig.type == 1 ? '请选择商品' : '请选择圈定产品'
if (!this.selectedData?.length) return this.$message.warning(message)
// 商品最多支持选择99个
const maxMessage = `最多支持选择99个${this.selectDialogConfig.type == 1 ? '商品' : '圈定产品'}`
if (this.selectedData?.length > 99) return this.$message.warning(maxMessage)
let eventType = this.selectDialogConfig.type == 1 ? 'addSku' : 'addProductToPackage'
this.$emit(eventType, this.selectedData, this.selectDialogConfig.index)
}
}
}
</script>
<style lang="scss" scoped>
.tableCon {
margin-top: 20px;
display: flex;
.tableBox {
flex: 1;
margin-right: 12px;
border: 1px solid #e5e5e5;
.tableTop{
display: flex;
align-items: center;
justify-content: space-between;
height: 48px;
font-size: 16px;
color: #333333;
font-weight: 600;
background: #f5f5f5;
padding: 0 16px;
}
.tableContent{
padding: 16px;
.searchBox{
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
}
}
.tableBox:last-child{
margin: 0;
}
::v-deep .el-table__header-wrapper th{
background: #F2F4F7 !important;
}
}
</style>
\ No newline at end of file
......@@ -515,7 +515,7 @@ export default {
}
.add_product_btn{
position: absolute;
right: 160px;
right: 50px;
transform: translateY(-55px);
}
</style>
\ No newline at end of file
......@@ -10,7 +10,9 @@
<el-form :model="formData" :rules="rules" ref="ruleForm">
<template v-for="(item, index) in formList">
<el-form-item
v-if="item.prop != 'zyVoucher'"
v-if="
item.prop != 'zyVoucher' && item.prop != 'goodsPriceModify'
"
:key="index"
label-width="240px"
:label="item.name"
......@@ -62,13 +64,46 @@
<el-radio :label="false">无需上传</el-radio>
</el-radio-group>
<div class="tips-box">
<p>必须上传,则店面下单购买第三方权益或延保必须上传协议后才分账,未上传则订单不分帐;</p>
<p>
必须上传,则店面下单购买第三方权益或延保必须上传协议后才分账,未上传则订单不分帐;
</p>
<p>无需上传,则店面下单购买第三方权益或延保无上传协议要求。</p>
</div>
</el-form-item>
</template>
</el-form>
</div>
<div class="title-header">
<div class="line"></div>
<div class="line_text">商品价格修改</div>
</div>
<div class="content_main">
<el-form :model="formData" :rules="rules" ref="ruleForm">
<template v-for="(item, index) in formList">
<el-form-item
:key="index"
v-if="item.prop == 'goodsPriceModify'"
label-width="240px"
:label="item.name"
:prop="item.prop"
>
<el-radio-group
v-model="formData[item.prop]"
@change="changeType()"
>
<el-radio :label="true">禁止修改</el-radio>
<el-radio :label="false">支持修改</el-radio>
</el-radio-group>
<div class="tips-box">
<p>
禁止修改,指商品类目是权益服务或延保类,且供应方属于第三方的商品,下单购买时价格禁止修改;
</p>
<p>支持修改,指商品价格无限制,支持修改。</p>
</div>
</el-form-item>
</template>
</el-form>
</div>
</div>
<div class="footer_btn">
<el-button type="primary" class="ok-btn" @click="comfirm">
......@@ -94,7 +129,8 @@ export default {
carBrand: true,
carNo: false,
idNumber: false,
zyVoucher: true
zyVoucher: true,
goodsPriceModify: false
},
rules: {
carBrand: [
......@@ -107,7 +143,10 @@ export default {
{ required: true, message: "请证件号码:", trigger: "change" }
],
zyVoucher: [
{ required: true, message: '请选择上传协议', trigger: 'change' }
{ required: true, message: "请选择上传协议", trigger: "change" }
],
goodsPriceModify: [
{ required: true, message: "请选择价格修改", trigger: "change" }
]
},
formList: [
......@@ -124,8 +163,12 @@ export default {
prop: "idNumber"
},
{
name: '上传协议:',
prop: 'zyVoucher'
name: "上传协议:",
prop: "zyVoucher"
},
{
name: "价格修改:",
prop: "goodsPriceModify"
}
]
}
......@@ -233,7 +276,7 @@ export default {
.tips-box {
color: #999999;
font-size: 12px;
p{
p {
margin: 0;
line-height: 20px;
}
......
......@@ -306,6 +306,8 @@ import {
getAreaInfoApi,
getAreaInfoByOpenAccBankTypeApi
} from "@api/publicAccount"
import { baseConfig } from "@/main"
import GlOssApi from "glsk-oss-jssdk"
export default {
name: "ApplyAccount",
data() {
......@@ -1382,6 +1384,9 @@ export default {
},
mounted() {
this.GlOssApi = new GlOssApi({
baseConfig
})
if (this.$route.params.merchantId) {
this.targetAccount = this.$route.params
sessionStorage.setItem(
......@@ -1657,28 +1662,55 @@ export default {
"businessLicense",
"authorizerIdCard"
]
var reader = new FileReader()
var fileInfo = file.raw
reader.readAsDataURL(fileInfo)
reader.onload = (e) => {
const imgFile = e.target.result
// const base64 = fileInfo.name.split('.')[1] + '@' + imgFile.split(',')[1]
const base64 =
fileInfo.name.split(".")[fileInfo.name.split(".").length - 1] +
"@" +
imgFile.split(",")[1]
uploadImg({ file: base64 }).then((res) => {
this.picObj[attrName].url = res
this.editForm.papers[this.picObj[attrName].attrName] =
this.picObj[attrName].url
// this.writeToEditForm(attrName)
// this.$refs.editFormRef.$refs.editForm.clearValidate(targetItem.name)
if (hasFnList.includes(attrName)) {
targetItem.autoRecognitionFn &&
targetItem.autoRecognitionFn(res, attrName)
}
})
// var reader = new FileReader()
const fileInfo = file.raw
const fileName = fileInfo.name
if (
!/jpg|jpeg|png|webp/i.test(fileInfo.type)
) {
this.$message.error(`上传图片不是jpg、jpeg、webp或png的格式!`)
// this.$refs.uploadImgRef && (this.$refs.uploadImgRef.value = "")
return
}
// reader.readAsDataURL(fileInfo)
// reader.onload = (e) => {
// const imgFile = e.target.result
// // const base64 = fileInfo.name.split('.')[1] + '@' + imgFile.split(',')[1]
// const base64 =
// fileInfo.name.split(".")[fileInfo.name.split(".").length - 1] +
// "@" +
// imgFile.split(",")[1]
// uploadImg({ file: base64 }).then((res) => {
// this.picObj[attrName].url = res
// this.editForm.papers[this.picObj[attrName].attrName] =
// this.picObj[attrName].url
// // this.writeToEditForm(attrName)
// // this.$refs.editFormRef.$refs.editForm.clearValidate(targetItem.name)
// if (hasFnList.includes(attrName)) {
// targetItem.autoRecognitionFn &&
// targetItem.autoRecognitionFn(res, attrName)
// }
// })
// }
const success = (res) => {
this.picObj[attrName].url = res.aliyunAddress
this.editForm.papers[this.picObj[attrName].attrName] =
this.picObj[attrName].url
if (hasFnList.includes(attrName)) {
targetItem.autoRecognitionFn &&
targetItem.autoRecognitionFn(res.aliyunAddress, attrName)
}
}
const fail = (err) => {
this.picObj[attrName].url = ""
delete this.editForm.papers[this.picObj[attrName].attrName]
}
this.handleOssUpload(fileInfo, fileName, success, fail)
},
handleOssUpload(file, fileName, success, fail) {
const bucketName = "jinrong-huidan-test" // 桶名
const fileType = fileName.substr(fileName.lastIndexOf(".") + 1)
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType)
},
handleImgRemove({ attrName, targetItem }) {
this.picObj[attrName].url = ""
......
<!-- 话术审批进度 -->
<template>
<d2-container class="customer-tags m-t-40">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
<div
class="header"
slot="header"
>
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'100px'"
:form-data="showFormData"
>
</d2-search>
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
<el-button
size="small"
type="primary"
@click="handleSearch"
>
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
<el-button
size="small"
@click="handleReset"
> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<div class="statistics-wrap">
<template v-for="(item, index) in statisticsData">
<div class="statistics-box" :key="index">
<div
class="statistics-box"
:key="index"
>
<div class="title">{{ item.label }}</div>
<div class="content" v-if="!item.innerHtml">
<div
class="content"
v-if="!item.innerHtml"
>
{{ queryInfo[item.key] }}
</div>
<div class="inner-content" v-else v-html="item.innerHtml(queryInfo)"></div>
<div
class="inner-content"
v-else
v-html="item.innerHtml(queryInfo)"
></div>
</div>
</template>
</div>
<d2-table-header title="审批列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
<el-button
size="mini"
type="primary"
plain
@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">
<template slot="polishContent" slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.scope.polishContent" placement="top"
popper-class="text-tooltip">
<span>
{{
scope.scope.polishContent
? scope.scope.polishContent.length > 10
? scope.scope.polishContent.slice(0, 10) + "..."
: item.polishContent
: ""
}}
</span>
</el-tooltip>
<d2-table
ref="table"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<template
slot="popoverHtml"
slot-scope="scope"
>
<template v-if="scope.scope[scope.prop]">
<el-tooltip
class="item"
effect="dark"
:content="$parent.formatterContent(scope.scope,scope.prop)"
placement="top"
popper-class="text-tooltip"
>
<span>
{{$parent.formatterContent(scope.scope,scope.prop, 20)}}
</span>
</el-tooltip>
</template>
<template v-else>-</template>
</template>
<div slot="auth-button" slot-scope="scope">
<div
slot="auth-button"
slot-scope="scope"
>
<span style="margin-right: 10px">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
<el-button
type="text"
@click="handleDetail(scope.scope)"
>详情</el-button>
</span>
</div>
</d2-table>
</div>
<!-- 详细信息 -->
<other-detail :visible.sync="detailVisible" v-if="detailVisible" :id="id" source="approval" />
<other-detail
:visible.sync="detailVisible"
v-if="detailVisible"
:id="id"
source="approval"
/>
</d2-container>
</template>
......@@ -68,7 +119,7 @@ import otherDetail from "./components/otherDetail"
export default {
name: 'ApprovalList',
components: { otherDetail },
data() {
data () {
return {
getListApi: getConditionPage,
tableData: [],
......@@ -110,9 +161,16 @@ export default {
prop: "staffName"
},
{
label: "录音链接",
prop: "recordingUrl",
minWidth: 200,
addHtml: "popoverHtml"
},
{
label: "话术内容",
prop: "polishContent",
addHtml: "polishContent"
minWidth: 200,
addHtml: "popoverHtml"
},
{
label: "萃取时间",
......@@ -221,22 +279,22 @@ export default {
},
}
},
mounted() {
mounted () {
this.initSelect()
this.getTotal()
},
methods: {
handleDetail(data) {
handleDetail (data) {
this.id = data.id
this.detailVisible = true
},
beforeSearchFn(type = 1) {
beforeSearchFn (type = 1) {
return new Promise((resolve, reject) => {
this.searchFormSearch = this.getParams()
resolve()
})
},
getParams() {
getParams () {
const params = deepClone(this.searchForm)
if (params.extractionTime?.length) {
params.startTime = Util.dateFormate(
......@@ -263,16 +321,16 @@ export default {
}
return params
},
handleSearch() {
handleSearch () {
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
},
handleReset() {
handleReset () {
this.searchForm = this.$options.data.call(this).searchForm
console.log("this.searchForm", this.searchForm)
this.handleSearch()
},
async exportTable() {
async exportTable () {
try {
await this.beforeSearchFn()
const res = await conditionExport({
......@@ -283,7 +341,7 @@ export default {
if (error) this.$message.error(error)
}
},
initSelect() {
initSelect () {
// 使用 Promise.all 处理多个异步任务,并捕获所有可能的错误
Promise.allSettled([this.getSceceLabelList()])
.then((results) => {
......@@ -302,7 +360,7 @@ export default {
})
},
getSceceLabelList() {
getSceceLabelList () {
return new Promise((resolve, reject) => {
getSingleLabelList({})
.then((res) => {
......@@ -315,7 +373,7 @@ export default {
})
})
},
getOptionsList() {
getOptionsList () {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
if (
......@@ -339,7 +397,7 @@ export default {
}
})
},
async getTotal() {
async getTotal () {
const res = await getTotalCount({})
this.queryInfo.recordCount = res
}
......
......@@ -29,7 +29,7 @@
>
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9122001']" />
<auth-button :data="scope.scope" :show-btn-ids="['9180101']" />
</span>
</div>
</d2-table>
......
<template>
<d2-container class="customer-tags m-t-40">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
<div
class="header"
slot="header"
>
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'100px'"
:form-data="showFormData"
>
</d2-search>
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
<el-button
size="small"
type="primary"
@click="handleSearch"
>
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
<el-button
size="small"
@click="handleReset"
> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<div class="statistics-wrap">
<template v-for="(item, index) in statisticsData">
<div class="statistics-box" :key="index">
<div
class="statistics-box"
:key="index"
>
<div class="title">{{ item.label }}</div>
<div class="content" v-if="!item.innerHtml">
<div
class="content"
v-if="!item.innerHtml"
>
{{ queryInfo[item.key] }}
</div>
<div class="inner-content" v-else v-html="item.innerHtml(queryInfo)"></div>
<div
class="inner-content"
v-else
v-html="item.innerHtml(queryInfo)"
></div>
</div>
</template>
</div>
<d2-table-header title="未推送列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
<el-button
size="mini"
type="primary"
plain
@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">
<template slot="polishContent" slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.scope.polishContent" placement="top"
popper-class="text-tooltip">
<span>
{{
scope.scope.polishContent
? scope.scope.polishContent.length > 10
? scope.scope.polishContent.slice(0, 10) + "..."
: item.polishContent
: ""
}}
</span>
</el-tooltip>
<d2-table
ref="table"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<template
slot="popoverHtml"
slot-scope="scope"
>
<template v-if="scope.scope[scope.prop]">
<el-tooltip
class="item"
effect="dark"
:content="$parent.formatterContent(scope.scope,scope.prop)"
placement="top"
popper-class="text-tooltip"
>
<span>
{{$parent.formatterContent(scope.scope,scope.prop, 20)}}
</span>
</el-tooltip>
</template>
<template v-else>-</template>
</template>
<div slot="auth-button" slot-scope="scope">
<div
slot="auth-button"
slot-scope="scope"
>
<span style="margin-right: 10px">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
<el-button
type="text"
@click="handleDetail(scope.scope)"
>详情</el-button>
</span>
</div>
</d2-table>
</div>
<!-- 详细信息 -->
<other-detail :visible.sync="detailVisible" v-if="detailVisible" :id="id" source="nopushed" />
<other-detail
:visible.sync="detailVisible"
v-if="detailVisible"
:id="id"
source="nopushed"
/>
</d2-container>
</template>
......@@ -67,7 +118,7 @@ import otherDetail from "./components/otherDetail"
export default {
name: 'NoPushedList',
components: { otherDetail },
data() {
data () {
return {
getListApi: getConditionPage,
tableData: [],
......@@ -92,9 +143,15 @@ export default {
prop: "labelName"
},
{
label: "录音链接",
prop: "recordingUrl",
minWidth: 200,
addHtml: "popoverHtml"
},
{
label: "话术内容",
prop: "polishContent",
addHtml: "polishContent"
addHtml: "popoverHtml"
},
{
label: "更新时间",
......@@ -148,16 +205,16 @@ export default {
}
}
},
mounted() {
mounted () {
this.initSelect()
this.getTotal()
},
methods: {
handleDetail(data) {
handleDetail (data) {
this.id = data.id
this.detailVisible = true
},
beforeSearchFn(type = 1) {
beforeSearchFn (type = 1) {
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.pushStatus = 0
......@@ -176,16 +233,16 @@ export default {
resolve()
})
},
handleSearch() {
handleSearch () {
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
},
handleReset() {
handleReset () {
this.searchForm = this.$options.data.call(this).searchForm
console.log("this.searchForm", this.searchForm)
this.handleSearch()
},
async exportTable() {
async exportTable () {
try {
await this.beforeSearchFn()
const res = await conditionExport({
......@@ -196,7 +253,7 @@ export default {
if (error) this.$message.error(error)
}
},
initSelect() {
initSelect () {
// 使用 Promise.all 处理多个异步任务,并捕获所有可能的错误
Promise.allSettled([this.getSingleLabelList()])
.then((results) => {
......@@ -215,7 +272,7 @@ export default {
})
},
getSingleLabelList() {
getSingleLabelList () {
return new Promise((resolve, reject) => {
getSingleLabelList({})
.then((res) => {
......@@ -228,7 +285,7 @@ export default {
})
})
},
getOptionsList() {
getOptionsList () {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
if (
......@@ -252,10 +309,10 @@ export default {
}
})
},
async getTotal() {
async getTotal () {
const res = await getTotalCount({ pushStatus: 0, checkStatusList: [2] })
this.queryInfo.recordCount = res
}
},
}
}
</script>
......
......@@ -28,19 +28,24 @@
</d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="polishContent" slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.scope.polishContent" placement="top"
popper-class="text-tooltip">
<span>
{{
scope.scope.polishContent
? scope.scope.polishContent.length > 10
? scope.scope.polishContent.slice(0, 10) + "..."
: item.polishContent
: ""
}}
</span>
</el-tooltip>
<template
slot="popoverHtml"
slot-scope="scope"
>
<template v-if="scope.scope[scope.prop]">
<el-tooltip
class="item"
effect="dark"
:content="$parent.formatterContent(scope.scope,scope.prop)"
placement="top"
popper-class="text-tooltip"
>
<span>
{{$parent.formatterContent(scope.scope,scope.prop, 20)}}
</span>
</el-tooltip>
</template>
<template v-else>-</template>
</template>
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px">
......@@ -96,9 +101,15 @@ export default {
prop: "labelName"
},
{
label: "录音链接",
prop: "recordingUrl",
minWidth: 200,
addHtml: "popoverHtml"
},
{
label: "话术内容",
prop: "polishContent",
addHtml: "polishContent"
addHtml: "popoverHtml"
},
{
label: "更新时间",
......
......@@ -7,10 +7,17 @@
>
<div class="detail-content">
<div class="form_div">
<el-form class="edit-sub-block" label-width="110px" :inline="true">
<el-form
class="edit-sub-block"
label-width="110px"
:inline="true"
>
<el-row :gutter="20">
<template v-for="(item, index) in configData">
<el-col :span="item.col ? item.col : 12" :key="index">
<el-col
:span="item.col ? item.col : 12"
:key="index"
>
<el-form-item :label="item.title">
<slot
v-if="item.addHtml"
......@@ -24,15 +31,17 @@
></div>
{{ detailInfo[item.key] ? detailInfo[item.key] : "-" }}
</div>
</el-form-item></el-col
>
</el-form-item></el-col>
</template>
</el-row>
</el-form>
</div>
<div class="operate-wrap">
<div class="title">操作记录</div>
<div class="operate-list" v-if="operateData.length > 0">
<div
class="operate-list"
v-if="operateData.length > 0"
>
<div
v-for="(item, index) in operateData"
:key="index"
......@@ -45,17 +54,18 @@
}}</span>
<span class="result">通过</span>
</div>
<div
:class="[
<div :class="[
'content',
operateData.length == index + 1 ? 'last' : ''
]"
>
]">
{{ item.staffName }}<span>{{ item.createdTime }}</span>
</div>
</div>
</div>
<div v-else class="empty">暂无记录</div>
<div
v-else
class="empty"
>暂无记录</div>
</div>
</div>
</baseDialog>
......@@ -78,24 +88,24 @@ export default {
},
computed: {
dialogShow: {
get() {
get () {
return this.visible
},
set(val) {
set (val) {
this.$emit("update:visible", val)
}
}
},
watch: {
id(val) {
id (val) {
if (val) this.getDetail()
}
},
mounted() {
mounted () {
this.getDetail()
this.getOperateList()
},
data() {
data () {
return {
operateData: [],
configData: [
......@@ -137,6 +147,11 @@ export default {
width: "100%"
},
{
title: "原文内容:",
key: "sourceContent",
col: 24
},
{
title: "话术内容:",
key: "polishContent",
col: 24
......@@ -158,10 +173,10 @@ export default {
}
},
methods: {
handleDetailClose() {
handleDetailClose () {
this.dialogShow = false
},
getDetail() {
getDetail () {
getRecordDetail({ id: this.id }).then((res) => {
if (res) {
res.scene = res.scene == 1 ? "精品" : "延保"
......@@ -177,7 +192,7 @@ export default {
}
})
},
getOperateList() {
getOperateList () {
getOperateList({ id: this.id }).then((res) => {
if (res) {
this.operateData = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!