File tree Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ export const getContractPageByCustomer = async (params: any) => {
55
55
return await request . get ( { url : `/crm/contract/page-by-customer` , params } )
56
56
}
57
57
58
+ // 查询 CRM 联系人列表,基于指定商机
59
+ export const getContractPageByBusiness = async ( params : any ) => {
60
+ return await request . get ( { url : `/crm/contract/page-by-business` , params } )
61
+ }
62
+
58
63
// 查询 CRM 合同详情
59
64
export const getContract = async ( id : number ) => {
60
65
return await request . get ( { url : `/crm/contract/get?id=` + id } )
Original file line number Diff line number Diff line change 101
101
<el-input
102
102
disabled
103
103
v-model =" formData.totalProductPrice"
104
- :formatter =" erpPriceInputFormatter "
104
+ :formatter =" erpPriceTableColumnFormatter "
105
105
/>
106
106
</el-form-item >
107
107
</el-col >
123
123
disabled
124
124
v-model =" formData.totalPrice"
125
125
placeholder =" 请输入商机金额"
126
- :formatter =" erpPriceInputFormatter "
126
+ :formatter =" erpPriceTableColumnFormatter "
127
127
/>
128
128
</el-form-item >
129
129
</el-col >
@@ -142,7 +142,7 @@ import * as CustomerApi from '@/api/crm/customer'
142
142
import * as UserApi from ' @/api/system/user'
143
143
import { useUserStore } from ' @/store/modules/user'
144
144
import BusinessProductForm from ' ./components/BusinessProductForm.vue'
145
- import { erpPriceInputFormatter , erpPriceMultiply } from ' @/utils'
145
+ import { erpPriceMultiply , erpPriceTableColumnFormatter } from ' @/utils'
146
146
147
147
const { t } = useI18n () // 国际化
148
148
const message = useMessage () // 消息弹窗
Original file line number Diff line number Diff line change 34
34
<el-tab-pane label =" 产品" >
35
35
<BusinessProductList :business =" business" />
36
36
</el-tab-pane >
37
- <!-- TODO 合同 -->
38
- <el-tab-pane label =" 合同" > 123 </el-tab-pane >
37
+ <el-tab-pane label =" 合同" lazy >
38
+ <ContractList :biz-id =" business.id!" :biz-type =" BizTypeEnum.CRM_BUSINESS" />
39
+ </el-tab-pane >
39
40
<el-tab-pane label =" 操作日志" >
40
41
<OperateLogV2 :log-list =" logList" />
41
42
</el-tab-pane >
@@ -71,6 +72,7 @@ import CrmTransferForm from '@/views/crm/permission/components/TransferForm.vue'
71
72
import FollowUpList from ' @/views/crm/followup/index.vue'
72
73
import ContactList from ' @/views/crm/contact/components/ContactList.vue'
73
74
import BusinessUpdateStatusForm from ' @/views/crm/business/BusinessUpdateStatusForm.vue'
75
+ import ContractList from ' @/views/crm/contract/components/ContractList.vue'
74
76
75
77
defineOptions ({ name: ' CrmBusinessDetail' })
76
78
Original file line number Diff line number Diff line change 159
159
<el-input
160
160
disabled
161
161
v-model =" formData.totalProductPrice"
162
- :formatter =" erpPriceInputFormatter "
162
+ :formatter =" erpPriceTableColumnFormatter "
163
163
/>
164
164
</el-form-item >
165
165
</el-col >
176
176
</el-form-item >
177
177
</el-col >
178
178
<el-col :span =" 8" >
179
- <el-form-item label =" 折扣后金额" prop =" price " >
179
+ <el-form-item label =" 折扣后金额" prop =" totalPrice " >
180
180
<el-input
181
181
disabled
182
182
v-model =" formData.totalPrice"
183
183
placeholder =" 请输入商机金额"
184
- :formatter =" erpPriceInputFormatter "
184
+ :formatter =" erpPriceTableColumnFormattere "
185
185
/>
186
186
</el-form-item >
187
187
</el-col >
@@ -199,10 +199,9 @@ import * as ContractApi from '@/api/crm/contract'
199
199
import * as UserApi from ' @/api/system/user'
200
200
import * as ContactApi from ' @/api/crm/contact'
201
201
import * as BusinessApi from ' @/api/crm/business'
202
- import { erpPriceInputFormatter , erpPriceMultiply } from ' @/utils'
202
+ import { erpPriceMultiply , erpPriceTableColumnFormatter } from ' @/utils'
203
203
import { useUserStore } from ' @/store/modules/user'
204
204
import ContractProductForm from ' @/views/crm/contract/components/ContractProductForm.vue'
205
- import { bu } from ' ../../../../dist-prod/assets/index-9eac537b'
206
205
207
206
const { t } = useI18n () // 国际化
208
207
const message = useMessage () // 消息弹窗
Original file line number Diff line number Diff line change 22
22
<el-table-column
23
23
label =" 合同金额(元)"
24
24
align =" center"
25
- prop =" price "
26
- :formatter =" erpPriceInputFormatter "
25
+ prop =" totalPrice "
26
+ :formatter =" erpPriceTableColumnFormatter "
27
27
/>
28
28
<el-table-column
29
29
label =" 开始时间"
@@ -63,7 +63,7 @@ import ContractForm from './../ContractForm.vue'
63
63
import { BizTypeEnum } from ' @/api/crm/permission'
64
64
import { dateFormatter } from ' @/utils/formatTime'
65
65
import { DICT_TYPE } from ' @/utils/dict'
66
- import { erpPriceInputFormatter } from ' @/utils'
66
+ import { erpPriceTableColumnFormatter } from ' @/utils'
67
67
68
68
defineOptions ({ name: ' CrmContractList' })
69
69
const props = defineProps <{
@@ -93,6 +93,10 @@ const getList = async () => {
93
93
queryParams .customerId = props .bizId
94
94
data = await ContractApi .getContractPageByCustomer (queryParams )
95
95
break
96
+ case BizTypeEnum .CRM_BUSINESS :
97
+ queryParams .businessId = props .bizId
98
+ data = await ContractApi .getContractPageByBusiness (queryParams )
99
+ break
96
100
default :
97
101
return
98
102
}
You can’t perform that action at this time.
0 commit comments