You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import request from "@/config/request"
|
|
|
|
|
|
|
|
|
|
export const baseUrl = `/system/supplier`
|
|
|
|
|
|
|
|
|
|
export function getLimitRegion() {
|
|
|
|
|
return request.get(`${baseUrl}/getLimitRegion`).then(({data}) => data.data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getSuppliers(data) {
|
|
|
|
|
return request.post(`${baseUrl}/search`, data).then(({data}) => data.data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function addSupplier(data) {
|
|
|
|
|
return request.post(`${baseUrl}/add`, data).then(({data}) => data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function updateSupplier(data) {
|
|
|
|
|
return request.post(`${baseUrl}/update`, data).then(({data}) => data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function delSupplier(data) {
|
|
|
|
|
return request.post(`${baseUrl}/del`, data).then(({data}) => data)
|
|
|
|
|
}
|