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 @@ - + + +