Compare commits

..

No commits in common. '39cddaa8e067be1a5eb4ca482e55d0a0b79cfce8' and 'ffd15e2433a44f6a36db9b7099a76df23e2e0a4e' have entirely different histories.

  1. 8
      src/api/clue/payment.js
  2. 4
      src/views/Basic/GeneralSet/Comp/BSClue.vue
  3. 7
      src/views/Basic/User/index.vue
  4. 98
      src/views/Clue/Order/Comp/DialogFeebackDetail.vue
  5. 96
      src/views/Clue/Order/Comp/Reback.vue
  6. 10
      src/views/Clue/Order/Comp/SchoolSettle.vue
  7. 150
      src/views/Clue/Order/Comp/feedbackSchema.js
  8. 2
      src/views/Clue/Pool/Comp/DrawerClue.vue

@ -37,11 +37,3 @@ export const cancelApplyPayment = async (data) => {
export const getPaymentDetail = async (params) => { export const getPaymentDetail = async (params) => {
return await request.get({ url: '/admin-api/crm/sign-pay-record/get', params }) return await request.get({ url: '/admin-api/crm/sign-pay-record/get', params })
} }
// 撤销
export const updateApplyPayment = async (data) => {
return await request.post({
url: '/admin-api/crm/sign-pay-record/updateRecordMoney',
data
})
}

@ -1,6 +1,6 @@
<template> <template>
<el-form :model="form" ref="formRef" label-width="auto"> <el-form :model="form" ref="formRef" label-width="auto">
<!-- <el-form-item v-if="getConfig('usePhoneConfig')"> <el-form-item v-if="getConfig('usePhoneConfig')">
<template #label> <template #label>
<Tooltip <Tooltip
v-if="getConfig('usePhoneConfig').remark" v-if="getConfig('usePhoneConfig').remark"
@ -20,7 +20,7 @@
{{ item.name }} {{ item.name }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> --> </el-form-item>
<el-form-item v-if="getConfig('showFollowConfig')"> <el-form-item v-if="getConfig('showFollowConfig')">
<template #label> <template #label>
<Tooltip <Tooltip

@ -7,10 +7,10 @@
<el-col :span="20" :xs="24"> <el-col :span="20" :xs="24">
<!-- 搜索 --> <!-- 搜索 -->
<el-form :model="queryParams" ref="queryFormRef" inline label-width="68px"> <el-form :model="queryParams" ref="queryFormRef" inline label-width="68px">
<el-form-item label="姓名" prop="nickname"> <el-form-item label="登录账号" prop="username">
<el-input <el-input
v-model="queryParams.nickname" v-model="queryParams.username"
placeholder="请输入姓名" placeholder="请输入登录账号"
clearable clearable
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
class="!w-240px" class="!w-240px"
@ -118,7 +118,6 @@ const queryParams = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
username: undefined, username: undefined,
nickname: undefined,
mobile: undefined, mobile: undefined,
deptId: undefined deptId: undefined
}) })

@ -25,18 +25,98 @@
import { getPaymentDetail } from '@/api/clue/payment' import { getPaymentDetail } from '@/api/clue/payment'
import { getFollowUserList } from '@/api/clue' import { getFollowUserList } from '@/api/clue'
import { useAppStore } from '@/store/modules/app'
import { schoolApplySchema, mallApplySchema, auditSchema, cancelSchema } from './feedbackSchema.js'
import { dateFormatter } from '@/utils/formatTime'
const appStore = useAppStore()
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const dialogTitle = ref('') // const dialogTitle = ref('') //
const applySchema = computed(() => { const applySchema = [
return appStore.getAppInfo?.instanceType == 1 ? schoolApplySchema : mallApplySchema {
}) field: 'name',
label: '线索名称',
span: 1
},
{
field: 'phone',
label: '联系方式',
span: 1
},
{
field: 'signUserName',
label: '登记人',
span: 1
},
{
field: 'dealDate',
label: '成交日期',
dateFormat: 'YYYY-MM-DD',
span: 1
},
{
field: 'money',
label: '回款金额',
span: 1
},
{
field: 'isPayoff',
label: '是否结清',
span: 1
},
{
field: 'applyUserName',
label: '申请人',
span: 1
},
{
field: 'applyTime',
label: '申请时间',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
span: 1
},
{
field: 'remark',
label: '备注',
span: 2,
isEditor: true
}
]
const auditSchema = [
{
field: 'stateName',
label: '审核状态',
span: 1
},
{
field: 'checkUser',
label: '审核人',
span: 1
},
{
field: 'checkTime',
label: '审核时间',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
span: 1
},
{
field: 'checkRemark',
label: '备注',
span: 3,
isEditor: true
}
]
const cancelSchema = [
{
field: 'stateName',
label: '审核状态',
span: 1
},
{
field: 'revokeTime',
label: '撤销时间',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
span: 1
}
]
const orderInfo = ref({}) const orderInfo = ref({})
/** 打开弹窗 */ /** 打开弹窗 */

@ -94,58 +94,9 @@
> >
<el-table-column type="selection" width="60" :selectable="(row) => row.state == 1" /> <el-table-column type="selection" width="60" :selectable="(row) => row.state == 1" />
<el-table-column prop="signId" label="成交单号" min-width="180px" /> <el-table-column prop="signId" label="成交单号" min-width="180px" />
<el-table-column prop="name" label="线索名称" width="150px" /> <el-table-column prop="name" label="线索名称" min-width="150px" />
<el-table-column prop="phone" label="联系方式" width="120px" />companyProfit <el-table-column prop="phone" label="联系方式" min-width="150px" />
<el-table-column prop="money" label="回款金额" min-width="120px"> <el-table-column prop="money" label="回款金额" min-width="150px" />
<template #default="{ row }">
<el-input-number
v-if="row.edit"
v-model="row.money"
size="small"
:min="0"
:controls="false"
style="width: 100%"
/>
<div v-else>{{ row.money }}</div>
</template>
</el-table-column>
<el-table-column
v-if="appStore.getAppInfo?.instanceType == 1"
prop="companyProfit"
label="公司利润"
min-width="120px"
>
<template #default="{ row }">
<el-input-number
v-if="row.edit"
v-model="row.companyProfit"
size="small"
:min="0"
:controls="false"
style="width: 100%"
/>
<div v-else>{{ row.companyProfit }}</div>
</template>
</el-table-column>
<el-table-column
v-if="appStore.getAppInfo?.instanceType == 1"
prop="personProfit"
label="员工利润"
min-width="120px"
>
<template #default="{ row }">
<el-input-number
v-if="row.edit"
v-model="row.personProfit"
size="small"
:min="0"
:controls="false"
style="width: 100%"
/>
<div v-else>{{ row.personProfit }}</div>
</template>
</el-table-column>
<el-table-column prop="signPrice" label="成交价" min-width="90" />
<el-table-column prop="isPayoff" label="是否结清" min-width="90" /> <el-table-column prop="isPayoff" label="是否结清" min-width="90" />
<el-table-column <el-table-column
v-if="appStore.getAppInfo?.instanceType == 1" v-if="appStore.getAppInfo?.instanceType == 1"
@ -174,7 +125,7 @@
:formatter="dateFormatter" :formatter="dateFormatter"
/> />
<el-table-column prop="stateName" label="审核状态" fixed="right" min-width="90" /> <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 }"> <template #default="{ row }">
<el-button type="primary" style="padding: 0" text @click="handleDetail(row)"> <el-button type="primary" style="padding: 0" text @click="handleDetail(row)">
详情 详情
@ -189,16 +140,6 @@
> >
撤销 撤销
</el-button> </el-button>
<el-button
type="primary"
style="padding: 0"
text
v-if="row.state == 1"
v-hasPermi="['clue:order:update-return-money']"
@click="handleUpdate(row)"
>
<span>{{ row.edit ? '保存' : '修改金额' }}</span>
</el-button>
<el-button <el-button
type="primary" type="primary"
style="padding: 0" style="padding: 0"
@ -285,7 +226,7 @@ function handleReset() {
} }
} }
const totalInfo = ref({}) const totalMoney = ref(0)
const loading = ref(false) const loading = ref(false)
async function getList() { async function getList() {
loading.value = true loading.value = true
@ -293,7 +234,7 @@ async function getList() {
const data = await FeebackApi.getPaymentPage(removeNullField(searchForm.value)) const data = await FeebackApi.getPaymentPage(removeNullField(searchForm.value))
tableList.value = data.list tableList.value = data.list
total.value = data.total total.value = data.total
totalInfo.value = data.totalData totalMoney.value = data.totalAmount
} finally { } finally {
loading.value = false loading.value = false
} }
@ -350,13 +291,7 @@ function getSummaries(param) {
if (index === 0) { if (index === 0) {
sums[index] = '合计' sums[index] = '合计'
} else if (column.property == 'money') { } else if (column.property == 'money') {
sums[index] = totalInfo.value.totalMoney sums[index] = totalMoney.value
} else if (column.property == 'personProfit') {
sums[index] = totalInfo.value.totalPersonProfit
} else if (column.property == 'companyProfit') {
sums[index] = totalInfo.value.totalPersonProfit
} else if (column.property == 'signPrice') {
sums[index] = totalInfo.value.totalSignPrice
} else { } else {
sums[index] = '' sums[index] = ''
} }
@ -365,23 +300,6 @@ function getSummaries(param) {
return sums return sums
} }
async function handleUpdate(row) {
if (row.edit) {
//
await message.confirm('是否确认修改回款金额?')
//
FeebackApi.updateApplyPayment({ id: row.id, money: row.money })
.then(() => {
message.success('修改成功')
})
.finally(() => {
row.edit = false
})
} else {
row.edit = true
}
}
onMounted(() => { onMounted(() => {
getOptions() getOptions()
handleSearch() handleSearch()

@ -239,14 +239,16 @@ const loading = ref(false)
const tableList = ref([]) const tableList = ref([])
const total = ref(0) const total = ref(0)
const totalInfo = ref({}) const totalNum = ref(0)
const totalAmount = ref(0)
async function getList() { async function getList() {
loading.value = true loading.value = true
try { try {
const data = await SettleApi.getSchoolSettlePage(removeNullField(searchForm.value)) const data = await SettleApi.getSchoolSettlePage(removeNullField(searchForm.value))
tableList.value = data.list tableList.value = data.list
total.value = data.total total.value = data.total
totalInfo.value = data.totalData totalNum.value = data.totalNum
totalAmount.value = data.totalAmount
} finally { } finally {
loading.value = false loading.value = false
} }
@ -259,9 +261,9 @@ function getSummaries(param) {
if (index === 0) { if (index === 0) {
sums[index] = '合计' sums[index] = '合计'
} else if (column.property == 'settlementNum') { } else if (column.property == 'settlementNum') {
sums[index] = totalInfo.value.totalNum sums[index] = totalNum.value
} else if (column.property == 'settlementMoney') { } else if (column.property == 'settlementMoney') {
sums[index] = totalInfo.value.totalAmount sums[index] = totalAmount.value
} else { } else {
sums[index] = '' sums[index] = ''
} }

@ -1,150 +0,0 @@
export const schoolApplySchema = [
{
field: 'name',
label: '线索名称',
span: 1
},
{
field: 'phone',
label: '联系方式',
span: 1
},
{
field: 'signUserName',
label: '登记人',
span: 1
},
{
field: 'dealDate',
label: '成交日期',
dateFormat: 'YYYY-MM-DD',
span: 1
},
{
field: 'money',
label: '回款金额',
span: 1
},
{
field: 'signPrice',
label: '成交价',
span: 1
},
{
field: 'companyProfit',
label: '公司利润',
span: 1
},
{
field: 'personProfit',
label: '员工利润',
span: 1
},
{
field: 'applyUserName',
label: '申请人',
span: 1
},
{
field: 'applyTime',
label: '申请时间',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
span: 1
},
{
field: 'remark',
label: '备注',
span: 2,
isEditor: true
}
]
export const mallApplySchema = [
{
field: 'name',
label: '线索名称',
span: 1
},
{
field: 'phone',
label: '联系方式',
span: 1
},
{
field: 'signUserName',
label: '登记人',
span: 1
},
{
field: 'dealDate',
label: '成交日期',
dateFormat: 'YYYY-MM-DD',
span: 1
},
{
field: 'money',
label: '回款金额',
span: 1
},
{
field: 'signPrice',
label: '成交价',
span: 1
},
{
field: 'applyUserName',
label: '申请人',
span: 1
},
{
field: 'applyTime',
label: '申请时间',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
span: 1
},
{
field: 'remark',
label: '备注',
span: 2,
isEditor: true
}
]
export const auditSchema = [
{
field: 'stateName',
label: '审核状态',
span: 1
},
{
field: 'checkUser',
label: '审核人',
span: 1
},
{
field: 'checkTime',
label: '审核时间',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
span: 1
},
{
field: 'checkRemark',
label: '备注',
span: 3,
isEditor: true
}
]
export const cancelSchema = [
{
field: 'stateName',
label: '审核状态',
span: 1
},
{
field: 'revokeTime',
label: '撤销时间',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
span: 1
}
]

@ -16,7 +16,7 @@
<div class="flex" style="align-items: center"> <div class="flex" style="align-items: center">
<b class="mr-5px text-24px">{{ info.name }}</b> <b class="mr-5px text-24px">{{ info.name }}</b>
<div class="mr-5px text-16px">{{ info.phone }}</div> <div class="mr-5px text-16px">{{ info.phone }}</div>
<el-tag type="success">{{ info.intentionStateName }}</el-tag> <el-tag type="success">{{ info.intentionState }}</el-tag>
</div> </div>
<div> <div>
<el-button type="primary" v-hasPermi="['clue:pool:update']" plain @click="handleUpdate"> <el-button type="primary" v-hasPermi="['clue:pool:update']" plain @click="handleUpdate">

Loading…
Cancel
Save