From e7d5d437c59c437d0c02a222a88dd28b6f938bb0 Mon Sep 17 00:00:00 2001 From: Yangk Date: Mon, 16 Mar 2026 16:39:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(crm):=20=E6=B7=BB=E5=8A=A0=E9=82=AE?= =?UTF-8?q?=E5=AF=84=E8=B5=84=E8=B4=B9=E6=9C=80=E4=BC=98=E6=96=B9=E6=A1=88?= =?UTF-8?q?API=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/crm/shippingTariff/index.ts | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/api/oa/crm/shippingTariff/index.ts diff --git a/src/api/oa/crm/shippingTariff/index.ts b/src/api/oa/crm/shippingTariff/index.ts new file mode 100644 index 0000000..f838542 --- /dev/null +++ b/src/api/oa/crm/shippingTariff/index.ts @@ -0,0 +1,28 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; + +/** + * 邮寄资费最优方案视图对象 + */ +export interface CrmShippingTariffVO { + tariffId: string | number; + province: string; + weightKg: number; + queryCond: string; + solutionName: string; + price: number; + remark: string; +} + +/** + * 查询最优惠方案 + * @param province 省份 + * @param weight 重量 + */ +export const getBestSolution = (province: string, weight: number): AxiosPromise => { + return request({ + url: '/oa/crm/shippingTariff/getBestSolution', + method: 'get', + params: { province, weight } + }); +};