Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cf7036d3
authored
Feb 22, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
CRM:完善商机产品的展示列表
parent
8512fe6b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
0 deletions
+83
-0
src/api/crm/business/index.ts
+13
-0
src/views/crm/business/detail/BusinessProductList.vue
+66
-0
src/views/crm/business/detail/index.vue
+4
-0
No files found.
src/api/crm/business/index.ts
View file @
cf7036d3
...
...
@@ -27,6 +27,19 @@ export interface BusinessVO {
creatorName
?:
string
// 创建人名称
createTime
:
Date
// 创建时间
updateTime
:
Date
// 更新时间
products
?:
[
{
id
:
number
productId
:
number
productName
:
string
productNo
:
string
productUnit
:
number
productPrice
:
number
businessPrice
:
number
count
:
number
totalPrice
:
number
}
]
}
// 查询 CRM 商机列表
...
...
src/views/crm/business/detail/BusinessProductList.vue
0 → 100644
View file @
cf7036d3
<
template
>
<ContentWrap>
<el-table
:data=
"business.products"
:stripe=
"true"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
label=
"产品名称"
fixed=
"left"
prop=
"productName"
min-width=
"160"
>
<template
#
default=
"scope"
>
{{
scope
.
row
.
productName
}}
</
template
>
</el-table-column>
<el-table-column
label=
"产品条码"
align=
"center"
prop=
"productNo"
min-width=
"120"
/>
<el-table-column
align=
"center"
label=
"产品单位"
prop=
"productUnit"
min-width=
"160"
>
<
template
#
default=
"{ row }"
>
<dict-tag
:type=
"DICT_TYPE.CRM_PRODUCT_UNIT"
:value=
"row.productUnit"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"产品价格(元)"
align=
"center"
prop=
"productPrice"
min-width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
/>
<el-table-column
label=
"合同价格(元)"
align=
"center"
prop=
"businessPrice"
min-width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
/>
<el-table-column
align=
"center"
label=
"数量"
prop=
"count"
min-width=
"100px"
:formatter=
"erpPriceTableColumnFormatter"
/>
<el-table-column
label=
"合计金额(元)"
align=
"center"
prop=
"totalPrice"
min-width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
/>
</el-table>
<el-row
class=
"mt-10px"
justify=
"end"
>
<el-col
:span=
"3"
>
整单折扣:{{ erpPriceInputFormatter(business.discountPercent) }}%
</el-col>
<el-col
:span=
"4"
>
产品总金额:{{ erpPriceInputFormatter(business.totalProductPrice) }} 元
</el-col>
</el-row>
</ContentWrap>
</template>
<
script
setup
lang=
"ts"
>
import
*
as
BusinessApi
from
'@/api/crm/business'
import
{
erpPriceInputFormatter
,
erpPriceTableColumnFormatter
}
from
'@/utils'
import
{
DICT_TYPE
}
from
'@/utils/dict'
const
{
business
}
=
defineProps
<
{
business
:
BusinessApi
.
BusinessVO
}
>
()
</
script
>
src/views/crm/business/detail/index.vue
View file @
cf7036d3
...
...
@@ -23,6 +23,10 @@
:customer-id=
"business.customerId"
/>
</el-tab-pane>
<!-- TODO 合同 -->
<el-tab-pane
label=
"产品"
>
<BusinessProductList
:business=
"business"
/>
</el-tab-pane>
<el-tab-pane
label=
"操作日志"
>
<OperateLogV2
:log-list=
"logList"
/>
</el-tab-pane>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment