瀏覽代碼

feat: 调整Booking详情页链接

Jack Zhou 1 月之前
父節點
當前提交
f6ab767878
共有 1 個文件被更改,包括 12 次插入2 次删除
  1. 12 2
      src/views/Booking/src/components/BookingDetail/src/components/BasicInformation.vue

+ 12 - 2
src/views/Booking/src/components/BookingDetail/src/components/BasicInformation.vue

@@ -160,7 +160,8 @@ const convertData = (data: any) => {
           label: 'Service Type',
           content: data.basicInfo['Service_Type'] || '--'
         }
-      ]
+      ],
+      bol_type: data.basicInfo.bol_type || '--'
     },
     businessPartners: [
       {
@@ -320,7 +321,16 @@ defineExpose({
             Add Reference
           </el-button> -->
         </div>
-        <div class="content" v-if="item.label !== 'Ref No.' && item.type !== 'link'">
+
+        <div
+          class="content"
+          v-if="
+            (item.label !== 'Ref No.' && item.type !== 'link') ||
+            (item.type === 'link' &&
+              (allData?.basicInformation?.bol_type?.toLowerCase() === 'booking' ||
+                item.content === '--'))
+          "
+        >
           {{ item.content }}
         </div>
         <div