浏览代码

提交代码

Lijy 4 月之前
父节点
当前提交
c728d8994a

+ 0 - 3
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/moduleList/moduleList.vue

@@ -381,9 +381,6 @@ function noTopMounted(row) {
 }
 
 function toDetail(item) {
-  if (queryParameters.value?.key == 'tasks') {
-    return
-  }
   router.navigateTo({
     pathName: 'details',
     success: () => {

+ 8 - 2
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/pageComponents/business/detail.vue

@@ -2,10 +2,10 @@
   <div class="w-full h-full">
     <van-tabs v-model:active="tabActive">
       <van-tab title="商机阶段" name="商机阶段">
-        <BusinessOpportunityStage :info="info" />
+        <BusinessOpportunityStage :info="infoData" />
       </van-tab>
       <van-tab title="商机信息" name="商机信息">
-        <BusinessInfo :info="info" />
+        <BusinessInfo :info="infoData" />
       </van-tab>
       <van-tab title="相关产品" name="相关产品">
         <RelatedProducts :infoList="relatedProductsList" />
@@ -37,6 +37,7 @@ const props = defineProps({
 const tabActive = ref('商机信息');
 const relatedProductsList = ref([]);
 const relatedTasksList = ref([]);
+const infoData = ref({});
 
 watch(() => props.info, (newValue) => {
   tabActive.value = '商机信息';
@@ -45,6 +46,7 @@ watch(() => props.info, (newValue) => {
 
 function getBusinessOpportunityDetails(id) {
   requests.post(GET_BUSINESS_OPPORTUNITY_DETAILS, { id }).then(({ data }) => {
+    infoData.value = data
     relatedProductsList.value = data.businessItemProducts || []
     relatedTasksList.value = data.taskList || []
   })
@@ -58,6 +60,10 @@ useLifecycle({
   init: () => {
     tabActive.value = '商机信息';
     processingData(props.info.id)
+  },
+  load: () => {
+    tabActive.value = '商机信息';
+    processingData(props.info.id)
   }
 });
 </script>

+ 26 - 4
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/pageComponents/tasks/detail.vue

@@ -1,6 +1,9 @@
 <template>
-  <div class="w-full h-full">
-    任务详情
+  <div class="w-full h-full flex-col">
+    <div class="bg-white info flex-1 overflow-y-auto">
+      <van-cell title="任务名称" :value="''" />
+      <van-cell title="优先级" :value="''" />
+    </div>
   </div>
 </template>
 
@@ -8,13 +11,32 @@
 import { ref } from 'vue';
 import { useLifecycle } from '@hooks/useCommon.js';
 
+const props = defineProps({
+  info: {
+    type: Object,
+    required: true,
+    default: () => ({})
+  }
+})
+
+function getTaskDetails() {
+  
+}
+
+function initializeData() {
+
+}
+
 useLifecycle({
   load: () => {
-    // 添加加载逻辑
+    initializeData()
+  },
+  init: () => {
+    initializeData()
   }
 });
 </script>
 
 <style lang='scss' scoped>
-  /* 样式代码 */
+
 </style>