qsh 2 weeks ago
parent 3022106428
commit b475af8dd3
  1. 4
      .env.base
  2. 2
      src/views/Clue/Order/Comp/Reback.vue
  3. 34
      src/views/Home/Comp/DialogSalerReportDetail.vue

@ -4,8 +4,8 @@ VITE_NODE_ENV=development
VITE_DEV=true
# 请求路径
VITE_BASE_URL='http://118.31.23.45:48080'
# VITE_BASE_URL='http://114.55.169.15:48080'
# VITE_BASE_URL='http://118.31.23.45:48080'
VITE_BASE_URL='http://114.55.169.15:48080'
# 上传路径
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'

@ -514,7 +514,7 @@ function handleSelectionChange(val) {
const batchAuditDialog = ref()
function batchAudit() {
if (batchIds.value.length) {
batchAuditDialog.value.open('aftersale', batchIds.value)
batchAuditDialog.value.open('feeback', batchIds.value)
} else {
message.info('请选择表格中需要审核的数据')
}

@ -238,13 +238,21 @@ const echart3Option = ref({
const setReportData = async (data) => {
// const data = await HomeApi.getClueSignSignRate()
const channelClueArr = showChannel.value.sort((pre, cur) => {
const preArr = tableList.value.find((it) => it.sourceName == pre).clueIntentionNumVOList || []
const curArr = tableList.value.find((it) => it.sourceName == cur).clueIntentionNumVOList || []
const preCount = preArr.reduce((preVal, curVal) => preVal + curVal.intentionNum, 0)
const curCount = curArr.reduce((preVal, curVal) => preVal + curVal.intentionNum, 0)
return preCount - curCount
})
const arr1 = intentionOptions.map((intention) => {
const list = []
tableList.value.map((it) => {
if (showChannel.value.includes(it.sourceName)) {
channelClueArr.map((item) => {
const row = tableList.value.find((it) => item == it.sourceName)
if (row) {
list.push(
it.clueIntentionNumVOList.find((row) => row.intentionState == intention.value)
.intentionNum
row.clueIntentionNumVOList.find((it) => it.intentionState == intention.value).intentionNum
)
}
})
@ -264,12 +272,20 @@ const setReportData = async (data) => {
}
})
const channelSignArr = showChannel.value.sort((pre, cur) => {
const preArr = tableList.value.find((it) => it.sourceName == pre).signLicenseTypeNumVOList || []
const curArr = tableList.value.find((it) => it.sourceName == cur).signLicenseTypeNumVOList || []
const preCount = preArr.reduce((preVal, curVal) => preVal + curVal.licenseTypeNum, 0)
const curCount = curArr.reduce((preVal, curVal) => preVal + curVal.licenseTypeNum, 0)
return preCount - curCount
})
const arr2 = props.licenseTypeOptions.map((cartype) => {
const list = []
tableList.value.map((it) => {
if (showChannel.value.includes(it.sourceName)) {
channelClueArr.map((item) => {
const row = tableList.value.find((it) => item == it.sourceName)
if (row) {
list.push(
it.signLicenseTypeNumVOList.find((row) => row.licenseType == cartype.label).licenseTypeNum
row.signLicenseTypeNumVOList.find((it) => it.licenseType == cartype.label).licenseTypeNum
)
}
})
@ -291,7 +307,7 @@ const setReportData = async (data) => {
set(echart1Option.value, 'radiusAxis', {
type: 'category',
data: showChannel.value,
data: channelClueArr,
axisLabel: {
margin: 5,
fontSize: 10,
@ -303,7 +319,7 @@ const setReportData = async (data) => {
set(echart2Option.value, 'radiusAxis', {
type: 'category',
data: showChannel.value,
data: channelSignArr,
axisLabel: {
margin: 5,
fontSize: 10,

Loading…
Cancel
Save