qsh 1 week ago
parent a81d21dd3b
commit 83d04e7333
  1. 4
      src/components/ConfigGlobal/src/ConfigGlobal.vue
  2. 12
      src/views/Clue/Order/Comp/AfterSales.vue
  3. 2
      src/views/Clue/Order/Comp/OrderList.vue
  4. 18
      src/views/Clue/Order/Comp/Reback.vue
  5. 11
      src/views/Home/Index.vue

@ -22,13 +22,13 @@ onMounted(() => {
appStore.setCssVarTheme()
})
const { width } = useWindowSize()
const { width, height } = useWindowSize()
//
watch(
() => width.value,
(width: number) => {
if (width < 768) {
if (width < 768 || height.value < 450) {
!appStore.getMobile ? appStore.setMobile(true) : undefined
setCssVar('--left-menu-min-width', '0')
appStore.setCollapse(true)

@ -104,8 +104,14 @@
>
<el-table-column type="selection" width="55" :selectable="(row) => row.state == 1" />
<el-table-column prop="signId" label="成交单号" min-width="150px" />
<el-table-column prop="name" label="线索名称" min-width="200px" />
<el-table-column prop="phone" label="联系方式" min-width="150px" />
<el-table-column prop="name" label="线索名称" min-width="150px" />
<el-table-column prop="phone" label="联系方式" min-width="120px" />
<el-table-column
v-if="appStore.getAppInfo?.instanceType == 1"
prop="area"
label="区域"
min-width="90"
/>
<el-table-column prop="reason" label="售后原因" min-width="150px" />
<el-table-column prop="refundAmount" label="退款金额" min-width="90px" />
<el-table-column prop="percentageDeductAmount" label="提成扣款" min-width="90px" />
@ -191,10 +197,12 @@ import DialogBatchAudit from './DialogBatchAudit.vue'
import { removeNullField } from '@/utils'
import { dateFormatter } from '@/utils/formatTime'
import { useAppStore } from '@/store/modules/app'
const afterSaleAuditDialog = ref()
const userStore = useUserStore()
const appStore = useAppStore()
const message = useMessage() //
const currentUserId = userStore.getUser.id

@ -103,7 +103,7 @@
<span v-else>{{ row[item.field] }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="240px" fixed="right">
<el-table-column label="操作" width="170px" fixed="right">
<template #default="scope">
<el-button
type="primary"

@ -136,7 +136,7 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="60" :selectable="(row) => row.state == 1" />
<el-table-column prop="signId" label="成交单号" min-width="150px" />
<el-table-column prop="signId" label="成交单号" min-width="120px" />
<el-table-column prop="name" label="线索名称" width="120px" />
<el-table-column prop="phone" label="联系方式" width="120px" />companyProfit
<el-table-column prop="money" label="回款金额" min-width="120px">
@ -188,7 +188,7 @@
<div v-else>{{ row.personProfit }}</div>
</template>
</el-table-column>
<el-table-column prop="signPrice" label="成交价" min-width="90" />
<el-table-column prop="signPrice" label="成交价" min-width="120" />
<el-table-column prop="isPayoff" label="是否结清" min-width="90">
<template #default="{ row }">
<el-select v-if="row.edit" size="small" v-model="row.isPayoffValue">
@ -253,11 +253,12 @@
:formatter="dateFormatter"
/>
<el-table-column prop="stateName" label="审核状态" fixed="right" min-width="90" />
<el-table-column label="操作" width="220px" fixed="right">
<el-table-column label="操作" width="150px" fixed="right">
<template #default="{ row }">
<el-button
type="primary"
style="padding: 0"
class="mr-10px"
style="padding: 0; margin-left: 0"
text
v-hasPermi="['clue:order:return-detail']"
@click="handleDetail(row)"
@ -266,7 +267,8 @@
</el-button>
<el-button
type="primary"
style="padding: 0"
class="mr-10px"
style="padding: 0; margin-left: 0"
text
v-if="row.state == 1 && currentUserId == row.applyUser"
v-hasPermi="['clue:order:return']"
@ -276,7 +278,8 @@
</el-button>
<el-button
type="primary"
style="padding: 0"
class="mr-10px"
style="padding: 0; margin-left: 0"
text
v-if="row.state == 1"
v-hasPermi="['clue:order:update-return-money']"
@ -286,7 +289,8 @@
</el-button>
<el-button
type="primary"
style="padding: 0"
class="mr-10px"
style="padding: 0; margin-left: 0"
text
v-if="row.state == 1"
v-hasPermi="['clue:order:return-audit']"

@ -67,8 +67,8 @@
</el-row>
</el-skeleton>
</el-card>
<div class="mt-10px flex">
<el-card shadow="never" class="flex-1">
<div class="mt-10px flex" style="flex-wrap: wrap">
<el-card shadow="never" :class="mobile ? 'w-full mb-10px' : 'flex-1'">
<template #header>
<div class="flex justify-between">
<span>成交率</span>
@ -80,7 +80,7 @@
</el-skeleton>
</el-skeleton>
</el-card>
<el-card shadow="never" class="ml-10px">
<el-card shadow="never" :class="mobile ? 'flex-1' : 'ml-10px'">
<template #header>
<div class="flex justify-between items-center">
<span>跟进榜Top10</span>
@ -107,7 +107,7 @@
</ul>
</el-skeleton>
</el-card>
<el-card shadow="never" class="ml-10px">
<el-card shadow="never" :class="mobile ? 'flex-1 ml-10px' : 'ml-10px'">
<template #header>
<div class="flex justify-between"> 本月成交榜Top10 </div>
</template>
@ -142,12 +142,15 @@ import { useUserStore } from '@/store/modules/user'
import avatarImg from '@/assets/imgs/avatar.gif'
import { lineOptions } from './echarts-data'
import * as HomeApi from '@/api/home/index'
import { useAppStore } from '@/store/modules/app'
const { t } = useI18n()
const userStore = useUserStore()
const appStore = useAppStore()
const loading = ref(false)
const avatar = userStore.getUser.avatar ? userStore.getUser.avatar : avatarImg
const username = userStore.getUser.nickname
const mobile = appStore.getMobile
const followDate = ref(1)

Loading…
Cancel
Save