客户组件模块化
This commit is contained in:
parent
7a953972d5
commit
7ee121ede6
|
|
@ -63,10 +63,10 @@ import { ref, onMounted } from 'vue';
|
||||||
import { createCustomer } from '@/common/api';
|
import { createCustomer } from '@/common/api';
|
||||||
import { useUserStore } from '@/store/user';
|
import { useUserStore } from '@/store/user';
|
||||||
import { useCustomerForm } from '@/composables/useCustomerForm';
|
import { useCustomerForm } from '@/composables/useCustomerForm';
|
||||||
import CustomerFormNavbar from '@/components/customer-form/CustomerFormNavbar.vue';
|
import CustomerFormNavbar from '@/components/customer/customer-form/CustomerFormNavbar.vue';
|
||||||
import CustomerBasicInfo from '@/components/customer-form/CustomerBasicInfo.vue';
|
import CustomerBasicInfo from '@/components/customer/customer-form/CustomerBasicInfo.vue';
|
||||||
import CustomerOtherInfo from '@/components/customer-form/CustomerOtherInfo.vue';
|
import CustomerOtherInfo from '@/components/customer/customer-form/CustomerOtherInfo.vue';
|
||||||
import CustomerPickers from '@/components/customer-form/CustomerPickers.vue';
|
import CustomerPickers from '@/components/customer/customer-form/CustomerPickers.vue';
|
||||||
|
|
||||||
// 使用共享逻辑
|
// 使用共享逻辑
|
||||||
const {
|
const {
|
||||||
|
|
|
||||||
|
|
@ -127,9 +127,9 @@
|
||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||||
import { getCustomerDetail, getCustomerFollowupList, getCustomerProjects, deleteCustomer } from '@/common/api';
|
import { getCustomerDetail, getCustomerFollowupList, getCustomerProjects, deleteCustomer } from '@/common/api';
|
||||||
import FollowupTab from '@/components/customer-detail/FollowupTab.vue';
|
import FollowupTab from '@/components/customer/customer-detail/FollowupTab.vue';
|
||||||
import ProjectsTab from '@/components/customer-detail/ProjectsTab.vue';
|
import ProjectsTab from '@/components/customer/customer-detail/ProjectsTab.vue';
|
||||||
import InfoTab from '@/components/customer-detail/InfoTab.vue';
|
import InfoTab from '@/components/customer/customer-detail/InfoTab.vue';
|
||||||
import CustomerSummaryBrief from '@/components/customer/CustomerSummaryBrief.vue';
|
import CustomerSummaryBrief from '@/components/customer/CustomerSummaryBrief.vue';
|
||||||
import {
|
import {
|
||||||
getCustomerStatusText,
|
getCustomerStatusText,
|
||||||
|
|
|
||||||
|
|
@ -64,10 +64,10 @@ import { onLoad } from '@dcloudio/uni-app';
|
||||||
import { updateCustomer, getCustomerDetail } from '@/common/api';
|
import { updateCustomer, getCustomerDetail } from '@/common/api';
|
||||||
import { useUserStore } from '@/store/user';
|
import { useUserStore } from '@/store/user';
|
||||||
import { useCustomerForm } from '@/composables/useCustomerForm';
|
import { useCustomerForm } from '@/composables/useCustomerForm';
|
||||||
import CustomerFormNavbar from '@/components/customer-form/CustomerFormNavbar.vue';
|
import CustomerFormNavbar from '@/components/customer/customer-form/CustomerFormNavbar.vue';
|
||||||
import CustomerBasicInfo from '@/components/customer-form/CustomerBasicInfo.vue';
|
import CustomerBasicInfo from '@/components/customer/customer-form/CustomerBasicInfo.vue';
|
||||||
import CustomerOtherInfo from '@/components/customer-form/CustomerOtherInfo.vue';
|
import CustomerOtherInfo from '@/components/customer/customer-form/CustomerOtherInfo.vue';
|
||||||
import CustomerPickers from '@/components/customer-form/CustomerPickers.vue';
|
import CustomerPickers from '@/components/customer/customer-form/CustomerPickers.vue';
|
||||||
|
|
||||||
// 使用共享逻辑
|
// 使用共享逻辑
|
||||||
const {
|
const {
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,7 @@ import {
|
||||||
getCustomerIntentLevelDict,
|
getCustomerIntentLevelDict,
|
||||||
getCustomerFollowTypeDict
|
getCustomerFollowTypeDict
|
||||||
} from '@/common/api/customer.js';
|
} from '@/common/api/customer.js';
|
||||||
import FollowupPickers from '@/components/followup-form/FollowupPickers.vue';
|
import FollowupPickers from '@/components/customer/followup-form/FollowupPickers.vue';
|
||||||
import {
|
import {
|
||||||
getCustomerStatusText,
|
getCustomerStatusText,
|
||||||
getIntentLevelText as getIntentLevelTextFromMapping,
|
getIntentLevelText as getIntentLevelTextFromMapping,
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ import {
|
||||||
getCustomerIntentLevelDict,
|
getCustomerIntentLevelDict,
|
||||||
getCustomerFollowTypeDict
|
getCustomerFollowTypeDict
|
||||||
} from '@/common/api/customer.js';
|
} from '@/common/api/customer.js';
|
||||||
import FollowupPickers from '@/components/followup-form/FollowupPickers.vue';
|
import FollowupPickers from '@/components/customer/followup-form/FollowupPickers.vue';
|
||||||
import {
|
import {
|
||||||
getCustomerStatusText,
|
getCustomerStatusText,
|
||||||
getIntentLevelText as getIntentLevelTextFromMapping,
|
getIntentLevelText as getIntentLevelTextFromMapping,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user