feat: 客户配置 review 修改
parent
c9d46fe4a3
commit
cc7038dc2b
|
|
@ -9,6 +9,20 @@ export interface CustomerLimitConfigVO {
|
||||||
dealCountEnabled?: boolean
|
dealCountEnabled?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户限制配置类型
|
||||||
|
*/
|
||||||
|
export enum LimitConfType {
|
||||||
|
/**
|
||||||
|
* 拥有客户数限制
|
||||||
|
*/
|
||||||
|
CUSTOMER_QUANTITY_LIMIT = 1,
|
||||||
|
/**
|
||||||
|
* 锁定客户数限制
|
||||||
|
*/
|
||||||
|
CUSTOMER_LOCK_LIMIT = 2
|
||||||
|
}
|
||||||
|
|
||||||
// 查询客户限制配置列表
|
// 查询客户限制配置列表
|
||||||
export const getCustomerLimitConfigPage = async (params) => {
|
export const getCustomerLimitConfigPage = async (params) => {
|
||||||
return await request.get({ url: `/crm/customer-limit-config/page`, params })
|
return await request.get({ url: `/crm/customer-limit-config/page`, params })
|
||||||
|
|
|
||||||
|
|
@ -57,11 +57,11 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import * as CustomerLimitConfigApi from '@/api/crm/customerLimitConfig'
|
import * as CustomerLimitConfigApi from '@/api/crm/customerLimitConfig'
|
||||||
import { LimitConfType } from '@/views/crm/config/customerLimitConfig/customerLimitConf'
|
|
||||||
import * as DeptApi from '@/api/system/dept'
|
import * as DeptApi from '@/api/system/dept'
|
||||||
import { defaultProps, handleTree } from '@/utils/tree'
|
import { defaultProps, handleTree } from '@/utils/tree'
|
||||||
import * as UserApi from '@/api/system/user'
|
import * as UserApi from '@/api/system/user'
|
||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
|
import { LimitConfType } from '@/api/crm/customerLimitConfig'
|
||||||
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,8 @@
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter } from '@/utils/formatTime'
|
||||||
import * as CustomerLimitConfigApi from '@/api/crm/customerLimitConfig'
|
import * as CustomerLimitConfigApi from '@/api/crm/customerLimitConfig'
|
||||||
import CustomerLimitConfigForm from '@/views/crm/config/customerLimitConfig/CustomerLimitConfigForm.vue'
|
import CustomerLimitConfigForm from '@/views/crm/config/customerLimitConfig/CustomerLimitConfigForm.vue'
|
||||||
import { LimitConfType } from '@/views/crm/config/customerLimitConfig/customerLimitConf'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import { DICT_TYPE } from '@/utils/dict'
|
||||||
|
import { LimitConfType } from '@/api/crm/customerLimitConfig'
|
||||||
|
|
||||||
defineOptions({ name: 'CustomerLimitConfigList' })
|
defineOptions({ name: 'CustomerLimitConfigList' })
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
// TODO 可以挪到它对应的 api.ts 文件里哈
|
|
||||||
/**
|
|
||||||
* 客户限制配置类型
|
|
||||||
*/
|
|
||||||
export enum LimitConfType {
|
|
||||||
/**
|
|
||||||
* 拥有客户数限制
|
|
||||||
*/
|
|
||||||
CUSTOMER_QUANTITY_LIMIT = 1,
|
|
||||||
/**
|
|
||||||
* 锁定客户数限制
|
|
||||||
*/
|
|
||||||
CUSTOMER_LOCK_LIMIT = 2
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
// TODO 可以挪到它对应的 api.ts 文件里哈
|
||||||
|
/**
|
||||||
|
* 客户限制配置类型
|
||||||
|
*/
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import CustomerLimitConfigList from '@/views/crm/config/customerLimitConfig/CustomerLimitConfigList.vue'
|
import CustomerLimitConfigList from '@/views/crm/config/customerLimitConfig/CustomerLimitConfigList.vue'
|
||||||
import { LimitConfType } from '@/views/crm/config/customerLimitConfig/customerLimitConf'
|
import { LimitConfType } from '@/api/crm/customerLimitConfig'
|
||||||
|
|
||||||
defineOptions({ name: 'CrmCustomerLimitConfig' })
|
defineOptions({ name: 'CrmCustomerLimitConfig' })
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue