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 = {}