rfqs.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <script lang='ts' setup>
  2. const quotationModalVisible = ref<boolean>(false)
  3. const rfqId = ref<any>('')
  4. const rfqsRef = ref<any>(null)
  5. function onDetail(id: any) {
  6. rfqId.value = id
  7. quotationModalVisible.value = true
  8. }
  9. function addRFQs() {
  10. rfqId.value = ''
  11. quotationModalVisible.value = true
  12. }
  13. function updateRFQsList() {
  14. rfqsRef.value.getTableList()
  15. }
  16. </script>
  17. <template>
  18. <div>
  19. <div class="flex justify-between items-center bg-#FAFAFA mb-20px">
  20. <div class="py-18px px-24px b-rd-10px text-#000 text-20px fw-500">
  21. Wish Orders
  22. </div>
  23. <el-button class="!bg-#C58C64 !text-#fff !w-176px !h-48px !fw-500 !b-rd-8px" @click="addRFQs">
  24. Post an RFQ
  25. </el-button>
  26. </div>
  27. <business-account-rfqs ref="rfqsRef" @open-model="onDetail" />
  28. <business-account-rfqs-quotation-modal v-if="quotationModalVisible" v-model:visible="quotationModalVisible" :rfq-id="rfqId" @update:data="updateRFQsList" />
  29. </div>
  30. </template>
  31. <style lang='less' scoped>
  32. .favorite-tabs {
  33. background-color: #FAFAFA;
  34. border-radius: 10px;
  35. padding: 20px;
  36. padding-top: 0px;
  37. ::v-deep(.el-tabs__header) {
  38. .el-tabs__item {
  39. color: #333;
  40. &.is-active {
  41. color: #C58C64 !important;
  42. }
  43. }
  44. .el-tabs__active-bar {
  45. background-color: #C58C64 !important;
  46. }
  47. }
  48. }
  49. </style>