From 86262cd54d6396dc8889f7e8641f6e62ab7a39f1 Mon Sep 17 00:00:00 2001 From: woody Date: Wed, 28 May 2025 16:45:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(supplierSet):=20=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20bug-130?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supply.js | 8 ++++++++ src/views/system/supplierSet/index.vue | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/api/supply.js b/src/api/supply.js index 7edf911..934bf6f 100644 --- a/src/api/supply.js +++ b/src/api/supply.js @@ -64,6 +64,14 @@ export function supplierProduct(params) { }) } +// 供应商类型 +export function getCustTypeList(params) { + return request({ + url: '/system/pub/enums/supply-type', + method: 'get', + params + }) +} // 供应商管理列表 export function getSupplierList(params) { return request({ diff --git a/src/views/system/supplierSet/index.vue b/src/views/system/supplierSet/index.vue index 98f4e84..7c04726 100644 --- a/src/views/system/supplierSet/index.vue +++ b/src/views/system/supplierSet/index.vue @@ -351,6 +351,12 @@ export default { site.areaList().then((res) => { this.areaData = res.data }) + this.getCustTypeList() + }, + getCustTypeList() { + api.getCustTypeList().then((res) => { + this.custTypeList = res.data + }) }, reset() { this.select = {}