From 40255a6846152b2d54f4de9a2256c7066ef10d30 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 18 May 2024 16:28:55 +0800 Subject: [PATCH] 1 --- src/views/data/supplier/audit/detail.vue | 9 ++++++--- src/views/data/supplier/audit/index.vue | 7 +++---- src/views/data/supplier/supplier/index.vue | 6 +++++- src/views/goods/goods/index.vue | 6 +++++- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/views/data/supplier/audit/detail.vue b/src/views/data/supplier/audit/detail.vue index d0592fb..4b003e0 100644 --- a/src/views/data/supplier/audit/detail.vue +++ b/src/views/data/supplier/audit/detail.vue @@ -138,6 +138,7 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ id: "", + pid: "", category_id: "", type_id: "", mer_name: "", @@ -169,6 +170,7 @@ const formData = reactive({ financial_wechat: "", financial_alipay: "", financial_type: "", + supplier: {} }); // 表单验证 @@ -200,13 +202,14 @@ const auditInfo = reactive({ const onAudit = () => { if(auditInfo.status == 0 && auditInfo.mark == '') return ElMessage.error('请输入拒绝原因'); apiSupplierStatus({ - id: formData.id, + id: formData.pid, status: auditInfo.status, - apply_id: formData.id, - service_phone: formData.service_phone, + apply_id: formData.apply_id, + service_phone: formData.supplier.service_phone, mark: auditInfo.mark, }).then((res) => { popupRef.value?.close(); + emit('success') }); }; diff --git a/src/views/data/supplier/audit/index.vue b/src/views/data/supplier/audit/index.vue index dd49891..dc96f4d 100644 --- a/src/views/data/supplier/audit/index.vue +++ b/src/views/data/supplier/audit/index.vue @@ -71,7 +71,7 @@ @@ -151,12 +151,11 @@ const handleDelete = async (id: number | any[]) => { } // 详情 -const handleDetail = async (id: any) => { - let res = await apiSupplierDetail({ id }) +const handleDetail = async (data: any) => { showDetail.value = true await nextTick() detailRef.value?.open('edit') - detailRef.value?.setFormData(res) + detailRef.value?.setFormData(data) } getLists() diff --git a/src/views/data/supplier/supplier/index.vue b/src/views/data/supplier/supplier/index.vue index 5643c72..f91d306 100644 --- a/src/views/data/supplier/supplier/index.vue +++ b/src/views/data/supplier/supplier/index.vue @@ -62,7 +62,11 @@ - + + +