diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts
index 43fb9745..d0da7231 100644
--- a/src/api/crm/contact/index.ts
+++ b/src/api/crm/contact/index.ts
@@ -8,7 +8,7 @@ export interface ContactVO {
email: string
post: string
customerId: number
- address: string
+ detailAddress: string
remark: string
ownerUserId: string
lastTime: Date
diff --git a/src/views/crm/contact/ContactForm.vue b/src/views/crm/contact/ContactForm.vue
index 055cf5be..e6fcb0da 100644
--- a/src/views/crm/contact/ContactForm.vue
+++ b/src/views/crm/contact/ContactForm.vue
@@ -49,8 +49,8 @@
-
+
+
-
+
+
+
@@ -72,8 +73,8 @@
-
-
+
+
@@ -104,10 +105,10 @@
-
+
@@ -126,15 +127,17 @@
-
+
-
+
+
+
+
@@ -152,10 +155,11 @@
-
-
+
+
+
+
+
-
+
+
@@ -192,19 +196,20 @@ import { defaultProps } from '@/utils/tree'
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
+
const dialogVisible = ref(false) // 弹窗的是否展示
const dialogTitle = ref('') // 弹窗的标题
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
const formType = ref('') // 表单的类型:create - 新增;update - 修改
const areaList = ref([]) // 地区列表
const formData = ref({
- nextTime: undefined,
+ contactNextTime: undefined,
mobile: undefined,
telephone: undefined,
email: undefined,
customerId: undefined,
customerName: undefined,
- address: undefined,
+ detailAddress: undefined,
remark: undefined,
ownerUserId: undefined,
lastTime: undefined,
@@ -279,13 +284,14 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
+ // TODO zyna:ide 告警,看看怎么去掉哈;
formData.value = {
- nextTime: undefined,
+ contactNextTime: undefined,
mobile: undefined,
telephone: undefined,
email: undefined,
customerId: undefined,
- address: undefined,
+ detailAddress: undefined,
remark: undefined,
ownerUserId: undefined,
lastTime: undefined,
diff --git a/src/views/crm/contact/index.vue b/src/views/crm/contact/index.vue
index 70ba4b8c..fc467ea1 100644
--- a/src/views/crm/contact/index.vue
+++ b/src/views/crm/contact/index.vue
@@ -11,6 +11,7 @@
-
+
-
@@ -102,53 +102,57 @@
-
+
{{ scope.row.name }}
-
+
+
+
+ {{ scope.row.customerName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.ownerUserName }}
-
-
-
+
+
-
([]) // 客户列表
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
- nextTime: [],
- mobile: null,
- telephone: null,
- email: null,
- customerId: null,
- address: null,
- remark: null,
- ownerUserId: null,
- createTime: [],
- lastTime: [],
- parentId: null,
- name: null,
- post: null,
- qq: null,
- wechat: null,
- sex: null,
- policyMakers: null
+ mobile: undefined,
+ telephone: undefined,
+ email: undefined,
+ customerId: undefined,
+ name: undefined,
+ qq: undefined,
+ wechat: undefined
})
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中
@@ -307,11 +290,15 @@ const handleExport = async () => {
}
}
-/** 打开客户详情 */
+/** 打开联系人详情 */
const { push } = useRouter()
const openDetail = (id: number) => {
push({ name: 'CrmContactDetail', params: { id } })
}
+/** 打开客户详情 */
+const openCustomerDetail = (id: number) => {
+ push({ name: 'CrmCustomerDetail', params: { id } })
+}
/** 初始化 **/
onMounted(async () => {