- 新增物料大类编码维护相关API接口和数据对象 - 实现物料大类编码的增删改查和分页查询功能 - 添加物料大类编码维护的前端页面和表单组件 - 在字典配置中新增物料大类编码类型 - 优化供应商模块中的税率字段类型和验证规则 - 修复库存管理中供应商信息清空逻辑问题 - 为物料表单添加物料大类选择功能
74 lines
1.9 KiB
TypeScript
74 lines
1.9 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
export interface SupplierVO {
|
|
id: number
|
|
code: string
|
|
brief: string
|
|
name: string
|
|
industry: string
|
|
level: number
|
|
category: number
|
|
taxRate: number
|
|
userId: number
|
|
description: string
|
|
contact1Name: string
|
|
contact1Post: string
|
|
contact1Method: string
|
|
contact1Email: string
|
|
contact1Addr: string
|
|
contact2Name: string
|
|
contact2Post: string
|
|
contact2Method: string
|
|
contact2Email: string
|
|
contact2Addr: string
|
|
contact3Name: string
|
|
contact3Post: string
|
|
contact3Method: string
|
|
contact3Email: string
|
|
contact3Addr: string
|
|
status: number
|
|
logo: string
|
|
payType: string
|
|
accountName: string
|
|
bankNo: string
|
|
bankAddress: string
|
|
taxNo: string
|
|
}
|
|
// 查询仓库分页
|
|
export const getSimpNoStatusList = async () => {
|
|
return await request.get({ url: `/heli/supplier/all-no-status-simples` })
|
|
}
|
|
// 查询仓库分页
|
|
export const getSimpList = async () => {
|
|
return await request.get({ url: `/heli/supplier/all-simples` })
|
|
}
|
|
// 查询供应商分页
|
|
export const getSupplierPage = async (params) => {
|
|
return await request.get({ url: `/heli/supplier/page`, params })
|
|
}
|
|
|
|
// 查询供应商详情
|
|
export const getSupplier = async (id: number) => {
|
|
return await request.get({ url: `/heli/supplier/get?id=` + id })
|
|
}
|
|
|
|
// 新增供应商
|
|
export const createSupplier = async (data: SupplierVO) => {
|
|
return await request.post({ url: `/heli/supplier/create`, data })
|
|
}
|
|
|
|
// 修改供应商
|
|
export const updateSupplier = async (data: SupplierVO) => {
|
|
return await request.put({ url: `/heli/supplier/update`, data })
|
|
}
|
|
|
|
// 删除供应商
|
|
export const deleteSupplier = async (id: number) => {
|
|
return await request.delete({ url: `/heli/supplier/delete?id=` + id })
|
|
}
|
|
|
|
// 导出供应商 Excel
|
|
export const exportSupplier = async (params) => {
|
|
return await request.download({ url: `/heli/supplier/export-excel`, params })
|
|
}
|