BusinessProductList.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <ContentWrap>
  3. <el-table :data="business.products" :stripe="true" :show-overflow-tooltip="true">
  4. <el-table-column
  5. align="center"
  6. label="产品名称"
  7. fixed="left"
  8. prop="productName"
  9. min-width="160"
  10. >
  11. <template #default="scope">
  12. {{ scope.row.productName }}
  13. </template>
  14. </el-table-column>
  15. <el-table-column label="产品条码" align="center" prop="productNo" min-width="120" />
  16. <el-table-column align="center" label="产品单位" prop="productUnit" min-width="160">
  17. <template #default="{ row }">
  18. <dict-tag :type="DICT_TYPE.CRM_PRODUCT_UNIT" :value="row.productUnit" />
  19. </template>
  20. </el-table-column>
  21. <el-table-column
  22. label="产品价格(元)"
  23. align="center"
  24. prop="productPrice"
  25. min-width="140"
  26. :formatter="erpPriceTableColumnFormatter"
  27. />
  28. <el-table-column
  29. label="合同价格(元)"
  30. align="center"
  31. prop="businessPrice"
  32. min-width="140"
  33. :formatter="erpPriceTableColumnFormatter"
  34. />
  35. <el-table-column
  36. align="center"
  37. label="数量"
  38. prop="count"
  39. min-width="100px"
  40. :formatter="erpPriceTableColumnFormatter"
  41. />
  42. <el-table-column
  43. label="合计金额(元)"
  44. align="center"
  45. prop="totalPrice"
  46. min-width="140"
  47. :formatter="erpPriceTableColumnFormatter"
  48. />
  49. </el-table>
  50. <el-row class="mt-10px" justify="end">
  51. <el-col :span="3"> 整单折扣:{{ erpPriceInputFormatter(business.discountPercent) }}% </el-col>
  52. <el-col :span="4">
  53. 产品总金额:{{ erpPriceInputFormatter(business.totalProductPrice) }} 元
  54. </el-col>
  55. </el-row>
  56. </ContentWrap>
  57. </template>
  58. <script setup lang="ts">
  59. import * as BusinessApi from '@/api/crm/business'
  60. import { erpPriceInputFormatter, erpPriceTableColumnFormatter } from '@/utils'
  61. import { DICT_TYPE } from '@/utils/dict'
  62. const { business } = defineProps<{
  63. business: BusinessApi.BusinessVO
  64. }>()
  65. </script>