mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-12 09:01:54 +08:00
✨ CRM:完善 CRM 跟进记录(商机的展示、添加)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
/** 打开联系人详情 */
|
||||
|
Reference in New Issue
Block a user