CRM:完善 CRM 跟进记录(商机的展示、添加)

This commit is contained in:
YunaiV
2024-02-24 15:19:03 +08:00
parent a9e4ef9b7b
commit 28eb23738c
10 changed files with 162 additions and 244 deletions

View File

@@ -48,8 +48,8 @@
<el-table-column
label="商机金额"
align="center"
prop="price"
:formatter="erpPriceInputFormatter"
prop="totalPrice"
:formatter="erpPriceTableColumnFormatter"
/>
<el-table-column label="客户名称" align="center" prop="customerName" />
<el-table-column label="商机组" align="center" prop="statusTypeName" />
@@ -75,7 +75,7 @@
<script setup lang="ts">
import * as BusinessApi from '@/api/crm/business'
import BusinessForm from '../BusinessForm.vue'
import { erpPriceInputFormatter } from '@/utils'
import { erpPriceTableColumnFormatter } from '@/utils'
const message = useMessage() // 消息弹窗
const props = defineProps<{
@@ -99,6 +99,7 @@ const queryParams = reactive({
/** 打开弹窗 */
const open = async () => {
dialogVisible.value = true
queryParams.customerId = props.customerId // 解决 props.customerId 没更新到 queryParams 上的问题
await getList()
}
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
@@ -144,7 +145,7 @@ const submitForm = async () => {
return message.error('未选择商机')
}
dialogVisible.value = false
emit('success', businessIds)
emit('success', businessIds, businessRef.value.getSelectionRows())
}
/** 打开联系人详情 */