🎈 perf(api): v1的接口全面换成v2

This commit is contained in:
xuan
2022-11-09 16:34:48 +08:00
parent 6ed3f7456b
commit 3f74d4500d
18 changed files with 79 additions and 79 deletions
+7 -7
View File
@@ -2,35 +2,35 @@ import { useRequest } from '@/use/useHttp'
//列表
export const DeliverNoticeOrderList = () => {
return useRequest({
url: `/v1/mp/deliveryNoticeOrder/list`,
url: `/v2/mp/deliveryNoticeOrder/list`,
method: 'get',
})
}
//发货详情
export const DeliverNoticeOrder = () => {
return useRequest({
url: `/v1/mp/deliveryNoticeOrder`,
url: `/v2/mp/deliveryNoticeOrder`,
method: 'get',
})
}
//发货附件上传
export const DeliveryNoticeOrderUpload = () => {
return useRequest({
url: `/v1/mp/deliveryNoticeOrder/upload`,
url: `/v2/mp/deliveryNoticeOrder/upload`,
method: 'put',
})
}
//审核发货单
export const DeliveryNoticeOrderAudit = () => {
return useRequest({
url: `/v1/mp/deliveryNoticeOrder/audit`,
url: `/v2/mp/deliveryNoticeOrder/audit`,
method: 'put',
})
}
//采购退货的拒收接口
export const DeliveryNoticeOrderRejection = () => {
return useRequest({
url: `/v1/mp/deliveryNoticeOrder/rejection`,
url: `/v2/mp/deliveryNoticeOrder/rejection`,
method: 'put',
})
}
@@ -38,14 +38,14 @@ export const DeliveryNoticeOrderRejection = () => {
//类型枚举
export const EnumDeliveryNoticeTypeList = () => {
return useRequest({
url: `/v1/mp/enum/deliveryNoticeType/list`,
url: `/v2/mp/enum/deliveryNoticeType/list`,
method: 'get',
})
}
//tabs枚举
export const EnumSaleorderStatus = () => {
return useRequest({
url: `/v1/mp/enum/sale/order/status`,
url: `/v2/mp/enum/sale/order/status`,
method: 'get',
})
}