Browse Source

提交代码

Lijy 4 months ago
parent
commit
de49f9e811

+ 5 - 4
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/pageComponents/business/businessOpportunityStage.vue

@@ -28,7 +28,7 @@
 </template>
 
 <script setup>
-import { ref } from 'vue';
+import { ref, watch } from 'vue';
 import { useLifecycle } from '@hooks/useCommon.js';
 import { ACQUISITION_STAGE, GET_BUSINESS_OPPORTUNITY_DETAILS, PROMOTION_STAGE, STAGE_NOTES } from '@hooks/useApi'
 import requests from "@common/requests";
@@ -54,6 +54,10 @@ const stageSetting = ref([])
 const transitionalData = ref({})
 const showDisold = ref(false)
 
+watch(() => props.info, (val) => {
+  getBusinessOpportunityDetails(val.id)
+})
+
 function completionStage(type) {
   const typeObj = { 1: '赢单', 2: '输单', 3: '无效' }
   const row = stageSetting.value.find(item => item.name === typeObj[type])
@@ -141,9 +145,6 @@ function initializeData() {
 }
 
 useLifecycle({
-  load: () => {
-    initializeData()
-  },
   init: () => {
     initializeData()
   }