parent
d57257e164
commit
d19bfb73e2
@ -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 商机列表
|
||||
|
66
src/views/crm/business/detail/BusinessProductList.vue
Normal file
66
src/views/crm/business/detail/BusinessProductList.vue
Normal file
@ -0,0 +1,66 @@
|
||||
<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>
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user