From ee03e896b48433ffeaa3c6afb3035299e46ff2e5 Mon Sep 17 00:00:00 2001 From: Jzow Date: Wed, 31 Jul 2024 02:38:06 +0800 Subject: [PATCH] message update notice for retail module --- web/src/api/retail/refund.ts | 10 +++++----- web/src/api/retail/shipments.ts | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/web/src/api/retail/refund.ts b/web/src/api/retail/refund.ts index 166243dc..614e78ad 100644 --- a/web/src/api/retail/refund.ts +++ b/web/src/api/retail/refund.ts @@ -1,4 +1,4 @@ -import {defHttp} from '/@/utils/http/axios'; +import {defHttp} from '@/utils/http/axios'; import {BaseDataResp, BaseResp} from "@/api/model/baseModel"; import { QueryShipmentsReq } from "@/api/retail/model/shipmentsModel" import { @@ -28,8 +28,8 @@ export function getRefundPageList(params: QueryShipmentsReq) { } export function addOrUpdateRefund(params: AddOrUpdateRefundReq, - successMode: SuccessMessageMode = 'message', - errorMode: ErrorMessageMode = 'message',) { + successMode: SuccessMessageMode = 'notice', + errorMode: ErrorMessageMode = 'notice',) { return defHttp.post( { url: API.AddOrUpdate, @@ -58,7 +58,7 @@ export function getLinkRefundDetail(otherReceipt: string) { ); } -export function updateRefundStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') { +export function updateRefundStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') { return defHttp.put( { url: `${API.UpdateStatus}?ids=${ids}&status=${status}`, @@ -70,7 +70,7 @@ export function updateRefundStatus(ids: string[], status: number, successMode: S ); } -export function deleteRefund(ids: string[], successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') { +export function deleteRefund(ids: string[], successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') { return defHttp.post( { url: `${API.Delete}?ids=${ids}`, diff --git a/web/src/api/retail/shipments.ts b/web/src/api/retail/shipments.ts index b5127f91..a29da98f 100644 --- a/web/src/api/retail/shipments.ts +++ b/web/src/api/retail/shipments.ts @@ -1,4 +1,4 @@ -import {defHttp} from '/@/utils/http/axios'; +import {defHttp} from '@/utils/http/axios'; import {BaseDataResp, BaseResp} from "@/api/model/baseModel"; import { AddOrUpdateShipmentsReq, AddOrUpdateShipmentsResp, @@ -38,8 +38,8 @@ export function getShipmentsList(params: QueryShipmentsReq) { } export function addOrUpdateShipments(params: AddOrUpdateShipmentsReq, - successMode: SuccessMessageMode = 'message', - errorMode: ErrorMessageMode = 'message',) { + successMode: SuccessMessageMode = 'notice', + errorMode: ErrorMessageMode = 'notice',) { return defHttp.post( { url: API.AddOrUpdate, @@ -52,7 +52,7 @@ export function addOrUpdateShipments(params: AddOrUpdateShipmentsReq, ); } -export function deleteShipments(ids: string[], successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') { +export function deleteShipments(ids: string[], successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') { return defHttp.post( { url: `${API.DeleteBatch}?ids=${ids}`, @@ -64,7 +64,7 @@ export function deleteShipments(ids: string[], successMode: SuccessMessageMode = ); } -export function updateShipmentsStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'message', errorMode: ErrorMessageMode = 'message') { +export function updateShipmentsStatus(ids: string[], status: number, successMode: SuccessMessageMode = 'notice', errorMode: ErrorMessageMode = 'notice') { return defHttp.put( { url: `${API.UpdateStatus}?ids=${ids}&status=${status}`, @@ -76,7 +76,7 @@ export function updateShipmentsStatus(ids: string[], status: number, successMode ); } -export function getShipmentsDetail(id: string | number, errorMode: ErrorMessageMode = 'message') { +export function getShipmentsDetail(id: string | number, errorMode: ErrorMessageMode = 'notice') { return defHttp.get>( { url: `${API.GetDetail}/${id}`, @@ -87,7 +87,7 @@ export function getShipmentsDetail(id: string | number, errorMode: ErrorMessageM ); } -export function getLinkShipmentsDetail(otherReceipt: string, errorMode: ErrorMessageMode = 'message') { +export function getLinkShipmentsDetail(otherReceipt: string, errorMode: ErrorMessageMode = 'notice') { return defHttp.get>( { url: `${API.GetLinkShipmentDetail}/${otherReceipt}`,