From 936d2a71da82c58bc92ea4e4e77f7e9b47988b52 Mon Sep 17 00:00:00 2001 From: lxz Date: Sat, 20 Jan 2024 10:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E8=BF=9B=E8=AE=B0=E5=BD=95bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/annexUpload/index.vue | 24 ++++++++++++ src/views/custom/detail.vue | 9 +---- src/views/custom/edit.vue | 58 ++++++++++++++-------------- src/views/custom_follow/edit.vue | 4 +- 4 files changed, 57 insertions(+), 38 deletions(-) create mode 100644 src/components/annexUpload/index.vue diff --git a/src/components/annexUpload/index.vue b/src/components/annexUpload/index.vue new file mode 100644 index 0000000..b1e17bf --- /dev/null +++ b/src/components/annexUpload/index.vue @@ -0,0 +1,24 @@ + +import type { isTemplate } from 'element-plus/es/utils'; + + \ No newline at end of file diff --git a/src/views/custom/detail.vue b/src/views/custom/detail.vue index d4750e0..1e89f5c 100644 --- a/src/views/custom/detail.vue +++ b/src/views/custom/detail.vue @@ -7,18 +7,13 @@ - - - - - {{ formData.name }} {{ formData.custom_type_text }} - - {{ formData.parent_company }} + {{ formData.address }} diff --git a/src/views/custom/edit.vue b/src/views/custom/edit.vue index c0245ea..1ae0548 100644 --- a/src/views/custom/edit.vue +++ b/src/views/custom/edit.vue @@ -17,7 +17,7 @@ - @@ -31,36 +31,25 @@ - - - --> + + + :rules="[{ required: true, message: '不可为空', trigger: 'blur' }]"> - - - - - {{ item.name }} - - - - + @@ -89,11 +78,22 @@ - + + + + + + {{ item.name }} + + + + - + @@ -339,7 +339,7 @@ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') -const companyname = ref('') +// const companyname = ref('') const list1 = reactive([]) const showDialog = ref(false); const list2 = reactive([]) @@ -356,11 +356,11 @@ const datas = reactive({ areaOptions: [], }); -const customEvent = (e: any) => { - formData.parent_company = e.id; - companyname.value = e.name; - showDialog.value = false; -}; +// const customEvent = (e: any) => { +// formData.parent_company = e.id; +// companyname.value = e.name; +// showDialog.value = false; +// }; const handleAdd = (row: any) => { // 在 row 后面插入一行数据 @@ -449,7 +449,7 @@ const formData = reactive({ org_id: '', name: '', custom_type: '', - parent_company: '', + // parent_company: '', phone: '', credit_rating: '', province: '', diff --git a/src/views/custom_follow/edit.vue b/src/views/custom_follow/edit.vue index 204b1ca..7bb5b6b 100644 --- a/src/views/custom_follow/edit.vue +++ b/src/views/custom_follow/edit.vue @@ -139,9 +139,9 @@ const setFormData = async (data: Record) => { } //@ts-ignore - formData.date = timeFormat(formData.date, 'yyyy-mm-dd hh:MM:ss') + formData.date = timeFormat(formData.date, 'yyyy-mm-dd') //@ts-ignore - formData.next_follow_date = timeFormat(formData.next_follow_date, 'yyyy-mm-dd hh:MM:ss') + formData.next_follow_date = timeFormat(formData.next_follow_date, 'yyyy-mm-dd') } const getDetail = async (row: Record) => {