123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import request from '@/utils/request'
- // 创建采购信息
- export function createPurchaseInfo(data) {
- return request({
- url: '/supplier/purchase-info/create',
- method: 'post',
- data: data
- })
- }
- // 更新采购信息
- export function updatePurchaseInfo(data) {
- return request({
- url: '/supplier/purchase-info/update',
- method: 'put',
- data: data
- })
- }
- // 删除采购信息
- export function deletePurchaseInfo(id) {
- return request({
- url: '/supplier/purchase-info/delete?id=' + id,
- method: 'delete'
- })
- }
- // 获得采购信息
- export function getPurchaseInfo(id) {
- return request({
- url: '/supplier/purchase-info/get?id=' + id,
- method: 'get'
- })
- }
- // 获得采购信息分页
- export function getPurchaseInfoPage(query) {
- return request({
- url: '/supplier/purchase-info/page',
- method: 'get',
- params: query
- })
- }
- // 导出采购信息 Excel
- export function exportPurchaseInfoExcel(query) {
- return request({
- url: '/supplier/purchase-info/export-excel',
- method: 'get',
- params: query,
- responseType: 'blob'
- })
- }
|