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