File tree Expand file tree Collapse file tree 6 files changed +19
-14
lines changed
config/customerLimitConfig Expand file tree Collapse file tree 6 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 10
10
<el-form-item label =" 线索名称" prop =" name" >
11
11
<el-input v-model =" formData.name" placeholder =" 请输入线索名称" />
12
12
</el-form-item >
13
+ <!-- TODO 芋艿:后续客户的选择 -->
13
14
<el-form-item label =" 客户" prop =" customerId" >
14
15
<el-select v-model =" formData.customerId" clearable placeholder =" 请选择客户" >
15
16
<el-option
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
<script setup lang="ts">
13
13
import * as CustomerApi from ' @/api/crm/customer'
14
14
15
- const { customer } = defineProps <{ customer: CustomerApi .CustomerVO }>()
15
+ const { customer } = defineProps <{
16
+ customer: CustomerApi .CustomerVO
17
+ }>()
16
18
</script >
Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ import * as CustomerApi from '@/api/crm/customer'
87
87
import { DICT_TYPE } from ' @/utils/dict'
88
88
import { formatDate } from ' @/utils/formatTime'
89
89
90
- const { customer } = defineProps <{ customer: CustomerApi .CustomerVO }>()
90
+ const { customer } = defineProps <{
91
+ customer: CustomerApi .CustomerVO
92
+ }>()
91
93
92
94
// 展示的折叠面板
93
95
const activeNames = ref ([' basicInfo' , ' systemInfo' ])
Original file line number Diff line number Diff line change 7
7
</div >
8
8
<div >
9
9
<!-- 右上:按钮 -->
10
- <el-button v-hasPermi =" ['crm:customer:update']" @click =" openForm('update', customer.id)" >
10
+ <el-button v-hasPermi =" ['crm:customer:update']" @click =" openForm(customer.id)" >
11
11
编辑
12
12
</el-button >
13
13
<el-button >更改成交状态</el-button >
70
70
<script setup lang="ts">
71
71
import * as CustomerApi from ' @/api/crm/customer'
72
72
import { DICT_TYPE } from ' @/utils/dict'
73
+ // TODO @wanwan:是不是把 CustomerBasicInfo 也放进来。
73
74
import CustomerBasicInfo from ' @/views/crm/customer/detail/CustomerBasicInfo.vue'
74
75
import CustomerForm from ' @/views/crm/customer/CustomerForm.vue'
75
76
76
- const { customer, loading } = defineProps <{ customer: CustomerApi .CustomerVO ; loading: boolean }>()
77
-
78
- const openForm = (type : string , id ? : number ) => {
79
- formRef .value .open (type , id )
80
- }
77
+ const { customer, loading } = defineProps <{
78
+ customer: CustomerApi .CustomerVO
79
+ loading: boolean
80
+ }>()
81
81
82
+ /** 修改操作 */
82
83
const formRef = ref ()
84
+ const openForm = (id ? : number ) => {
85
+ formRef .value .open (' update' , id )
86
+ }
83
87
84
88
const emit = defineEmits ([' refresh' ]) // 定义 success 事件,用于操作成功后的回调
85
89
</script >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <CustomerDetailsTop :customer =" customer" :loading =" loading" @refresh =" getCustomerData(id)" />
2
+ <CustomerDetailsHeader :customer =" customer" :loading =" loading" @refresh =" getCustomerData(id)" />
3
3
<el-col >
4
4
<el-tabs >
5
5
<el-tab-pane label =" 详细资料" >
@@ -66,7 +66,7 @@ const loading = ref(true) // 加载中
66
66
/**
67
67
* 获取详情
68
68
*
69
- * @param id
69
+ * @param id 客户编号
70
70
*/
71
71
const customer = ref <CustomerApi .CustomerVO >({} as CustomerApi .CustomerVO ) // 客户详情
72
72
const getCustomerData = async (id : number ) => {
You can’t perform that action at this time.
0 commit comments