🌈 style(eslint): add eslint rules

This commit is contained in:
xuan
2022-11-26 14:35:05 +08:00
parent f3aa20f049
commit 99a920975f
245 changed files with 14909 additions and 14349 deletions
+30 -30
View File
@@ -1,48 +1,48 @@
import { useRequest } from "@/use/useHttp"
import { useRequest } from '@/use/useHttp'
/**
* 获取行政地区列表
*/
export const GetAddressListApi = () => {
return useRequest({
url: `/v2/mp/district/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/district/list',
method: 'get',
})
}
//获取客户地址
// 获取客户地址
export const mppurchaseraddresslist = () => {
return useRequest({
url: `/v2/mp/purchaser/address/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/purchaser/address/list',
method: 'get',
})
}
//新增客户地址
// 新增客户地址
export const mppurchaseraddress = () => {
return useRequest({
url: `/v2/mp/purchaser/address`,
method: "post",
})
return useRequest({
url: '/v2/mp/purchaser/address',
method: 'post',
})
}
//获取编辑地址信息
// 获取编辑地址信息
export const mppurchaseraddressget = () => {
return useRequest({
url: `/v2/mp/purchaser/address`,
method: "get",
})
return useRequest({
url: '/v2/mp/purchaser/address',
method: 'get',
})
}
//编辑收货地址信息
// 编辑收货地址信息
export const mppurchaseraddressput = () => {
return useRequest({
url: `/v2/mp/purchaser/address`,
method: "put",
})
return useRequest({
url: '/v2/mp/purchaser/address',
method: 'put',
})
}
//删除收货地址信息
// 删除收货地址信息
export const mppurchaseraddressdelect = () => {
return useRequest({
url: `/v2/mp/purchaser/address`,
method: "delete",
})
return useRequest({
url: '/v2/mp/purchaser/address',
method: 'delete',
})
}
+1 -1
View File
@@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/
export const GetSignApi = () => {
return useRequest({
url: `/v2/mp/cdn/token`,
url: '/v2/mp/cdn/token',
method: 'get',
})
}
+25 -25
View File
@@ -1,37 +1,37 @@
import { useRequest } from '@/use/useHttp'
//获取客户信息
// 获取客户信息
export const mppurchaser = () => {
return useRequest({
url: `/v2/mp/purchaser`,
method: "get",
})
return useRequest({
url: '/v2/mp/purchaser',
method: 'get',
})
}
//新建客户
// 新建客户
export const mppurchaserpost = () => {
return useRequest({
url: `/v2/mp/purchaser`,
method: "post",
})
return useRequest({
url: '/v2/mp/purchaser',
method: 'post',
})
}
//编辑客户
// 编辑客户
export const mppurchaserput = () => {
return useRequest({
url: `/v2/mp/purchaser`,
method: "put",
})
return useRequest({
url: '/v2/mp/purchaser',
method: 'put',
})
}
//获取标签列表
// 获取标签列表
export const mppurchaserlist = () => {
return useRequest({
url: `/v2/mp/purchaser/label/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/purchaser/label/list',
method: 'get',
})
}
//保存标签
// 保存标签
export const mppurchaserlabeladd = () => {
return useRequest({
url: `/v2/mp/purchaser/label/add`,
method: "post",
})
return useRequest({
url: '/v2/mp/purchaser/label/add',
method: 'post',
})
}
+14 -14
View File
@@ -1,51 +1,51 @@
import { useRequest } from '@/use/useHttp'
//列表
// 列表
export const DeliverNoticeOrderList = () => {
return useRequest({
url: `/v2/mp/deliveryNoticeOrder/list`,
url: '/v2/mp/deliveryNoticeOrder/list',
method: 'get',
})
}
//发货详情
// 发货详情
export const DeliverNoticeOrder = () => {
return useRequest({
url: `/v2/mp/deliveryNoticeOrder`,
url: '/v2/mp/deliveryNoticeOrder',
method: 'get',
})
}
//发货附件上传
// 发货附件上传
export const DeliveryNoticeOrderUpload = () => {
return useRequest({
url: `/v2/mp/deliveryNoticeOrder/upload`,
url: '/v2/mp/deliveryNoticeOrder/upload',
method: 'put',
})
}
//审核发货单
// 审核发货单
export const DeliveryNoticeOrderAudit = () => {
return useRequest({
url: `/v2/mp/deliveryNoticeOrder/audit`,
url: '/v2/mp/deliveryNoticeOrder/audit',
method: 'put',
})
}
//采购退货的拒收接口
// 采购退货的拒收接口
export const DeliveryNoticeOrderRejection = () => {
return useRequest({
url: `/v2/mp/deliveryNoticeOrder/rejection`,
url: '/v2/mp/deliveryNoticeOrder/rejection',
method: 'put',
})
}
//类型枚举
// 类型枚举
export const EnumDeliveryNoticeTypeList = () => {
return useRequest({
url: `/v2/mp/enum/deliveryNoticeType/list`,
url: '/v2/mp/enum/deliveryNoticeType/list',
method: 'get',
})
}
//tabs枚举
// tabs枚举
export const EnumSaleorderStatus = () => {
return useRequest({
url: `/v2/mp/enum/sale/order/status`,
url: '/v2/mp/enum/sale/order/status',
method: 'get',
})
}
+4 -4
View File
@@ -1,4 +1,6 @@
// 关于登录
import { useRequest } from '@/use/useHttp'
export { LoginApi } from './login/index'
export {
@@ -48,15 +50,13 @@ export {
SaleOrderDataFormdataFormStatus,
SaleOrderDataFormApi,
} from './statistic/index'
import { useRequest } from '@/use/useHttp'
/**
* 系列列表
* @returns
*/
export const kindListApi = () => {
return useRequest({
url: `/v2/mp/product/kind/list`,
url: '/v2/mp/product/kind/list',
method: 'get',
})
}
@@ -67,7 +67,7 @@ export const kindListApi = () => {
*/
export const ProductListApi = () => {
return useRequest({
url: `/v2/mp/product/list`,
url: '/v2/mp/product/list',
method: 'get',
})
}
+1 -1
View File
@@ -1 +1 @@
export {LoginApi} from './login'
export { LoginApi } from './login'
+1 -1
View File
@@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/
export const LoginApi = () => {
return useRequest({
url: `/v2/mp/login`,
url: '/v2/mp/login',
method: 'post',
})
}
+25 -25
View File
@@ -1,37 +1,37 @@
import { useRequest } from '@/use/useHttp'
//收款单列表
// 收款单列表
export const mpcashManagementOrderlist = () => {
return useRequest({
url: `/v2/mp/cashManagementOrder/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/cashManagementOrder/list',
method: 'get',
})
}
//收款单详情
// 收款单详情
export const mpcashManagementOrder = () => {
return useRequest({
url: `/v2/mp/cashManagementOrder`,
method: "get",
})
return useRequest({
url: '/v2/mp/cashManagementOrder',
method: 'get',
})
}
//收款账号
// 收款账号
export const mpcashManagementOrderaccount = () => {
return useRequest({
url: `/v2/mp/cashManagementOrder/account`,
method: "get",
})
return useRequest({
url: '/v2/mp/cashManagementOrder/account',
method: 'get',
})
}
//新建收款单
// 新建收款单
export const mpcashManagementOrderpost = () => {
return useRequest({
url: `/v2/mp/cashManagementOrder`,
method: "post",
})
return useRequest({
url: '/v2/mp/cashManagementOrder',
method: 'post',
})
}
//扫描获取应收单的客户信息
// 扫描获取应收单的客户信息
export const mpshouldCollectOrderpurchaser = () => {
return useRequest({
url: `/v2/mp/shouldCollectOrder/purchaser`,
method: "get",
})
return useRequest({
url: '/v2/mp/shouldCollectOrder/purchaser',
method: 'get',
})
}
+140 -140
View File
@@ -1,213 +1,213 @@
import { useRequest } from "@/use/useHttp"
import { useRequest } from '@/use/useHttp'
import { CAP_HTML_TO_IMAGE_BASE_URL } from '@/common/constant'
export const mpenumsaleorderstatus = () => {
return useRequest({
url: `/v2/mp/enum/filterMPSaleOrderStatus`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/filterMPSaleOrderStatus',
method: 'get',
})
}
/**
* 获取订单列表
* @returns
* @returns
*/
export const OrderListApi = () => {
return useRequest({
url: `/v2/mp/saleOrder/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/saleOrder/list',
method: 'get',
})
}
/**
* 客户列表
* @returns
* @returns
*/
export const ClientListApi = () => {
return useRequest({
url: `/v2/mp/purchaser/list`,
method: "get"
})
return useRequest({
url: '/v2/mp/purchaser/list',
method: 'get',
})
}
//面料种类列表
// 面料种类列表
export const mpproductcolorlist = () => {
return useRequest({
url: `/v2/mp/product/color/list`,
method: "get"
})
return useRequest({
url: '/v2/mp/product/color/list',
method: 'get',
})
}
//购物车提交
// 购物车提交
export const mpsaleOrderpreView = () => {
return useRequest({
url: `/v2/mp/saleOrder/preView`,
method: "put"
})
return useRequest({
url: '/v2/mp/saleOrder/preView',
method: 'put',
})
}
//业务员枚举
// 业务员枚举
export const mpenumsaleUserlist = () => {
return useRequest({
url: `/v2/mp/enum/saleUser/list`,
method: "get"
})
return useRequest({
url: '/v2/mp/enum/saleUser/list',
method: 'get',
})
}
//订单详情
// 订单详情
export const mpsaleOrder = () => {
return useRequest({
url: `/v2/mp/saleOrder`,
method: "get"
})
return useRequest({
url: '/v2/mp/saleOrder',
method: 'get',
})
}
//取消订单
// 取消订单
export const mpsaleOrdercancel = () => {
return useRequest({
url: `/v2/mp/saleOrder/cancel`,
method: "put",
})
return useRequest({
url: '/v2/mp/saleOrder/cancel',
method: 'put',
})
}
//再次购买
// 再次购买
export const mpshoppingCartproductColorlist = () => {
return useRequest({
url: `/v2/mp/shoppingCart/productColor/list`,
method: "post",
})
return useRequest({
url: '/v2/mp/shoppingCart/productColor/list',
method: 'post',
})
}
//获取账期付款
// 获取账期付款
export const orderPaymentorderPaymentMethodInfo = () => {
return useRequest({
url: `/v2/mp/orderPayment/orderPaymentMethodInfo`,
method: "get",
})
return useRequest({
url: '/v2/mp/orderPayment/orderPaymentMethodInfo',
method: 'get',
})
}
//预收单获取接口信息
// 预收单获取接口信息
export const orderPaymentpreCollectOrderorderPaymentMethodInfo = () => {
return useRequest({
url: `/v2/mp/orderPayment/preCollectOrder/orderPaymentMethodInfo`,
method: "get",
})
return useRequest({
url: '/v2/mp/orderPayment/preCollectOrder/orderPaymentMethodInfo',
method: 'get',
})
}
//确认交易
// 确认交易
export const orderPaymentorderPaymentSubmission = () => {
return useRequest({
url: `/v2/mp/orderPayment/orderPaymentSubmission`,
method: "put",
})
return useRequest({
url: '/v2/mp/orderPayment/orderPaymentSubmission',
method: 'put',
})
}
//订单预支付提交
// 订单预支付提交
export const orderPaymentpreCollectOrderorderPaymentSubmission = () => {
return useRequest({
url: `/v2/mp/orderPayment/preCollectOrder/orderPaymentSubmission`,
method: "put",
})
return useRequest({
url: '/v2/mp/orderPayment/preCollectOrder/orderPaymentSubmission',
method: 'put',
})
}
/**
* 获取在线支付二维码
*/
export const GetPayCode = () => {
return useRequest({
url: `/xima-caphtml/caphtml`,
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: 'post',
})
return useRequest({
url: '/xima-caphtml/caphtml',
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: 'post',
})
}
/**
* 获取退款码单
*/
export const GetReturnPayCode = () => {
return useRequest({
url: `/xima-caphtml/caphtml-return`,
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: 'post',
})
return useRequest({
url: '/xima-caphtml/caphtml-return',
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: 'post',
})
}
//编辑备注信息
// 编辑备注信息
export const mpsaleOrderput = () => {
return useRequest({
url: `/v2/mp/saleOrder`,
method: "put",
})
return useRequest({
url: '/v2/mp/saleOrder',
method: 'put',
})
}
//修改销售单的收货地址
// 修改销售单的收货地址
export const mpsaleOrderaddress = () => {
return useRequest({
url: `/v2/mp/saleOrder/address`,
method: "put",
})
return useRequest({
url: '/v2/mp/saleOrder/address',
method: 'put',
})
}
//关键字搜索历史
// 关键字搜索历史
export const mpsearchHistorylist = () => {
return useRequest({
url: `/v2/mp/searchHistory/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/searchHistory/list',
method: 'get',
})
}
//添加关键字搜索
// 添加关键字搜索
export const mpsearchHistory = () => {
return useRequest({
url: `/v2/mp/searchHistory`,
method: "post",
})
return useRequest({
url: '/v2/mp/searchHistory',
method: 'post',
})
}
//确认收货
// 确认收货
export const mpsaleOrderreceive = () => {
return useRequest({
url: `/v2/mp/saleOrder/receive`,
method: "put",
})
return useRequest({
url: '/v2/mp/saleOrder/receive',
method: 'put',
})
}
//退货原因
// 退货原因
export const mpenumreturnOrderreturnReason = () => {
return useRequest({
url: `/v2/mp/enum/returnOrder/returnReason`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/returnOrder/returnReason',
method: 'get',
})
}
//二次选择退货原因
// 二次选择退货原因
export const mpenumreturnExplain = () => {
return useRequest({
url: `/v2/mp/enum/returnExplain`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/returnExplain',
method: 'get',
})
}
//货物状况
// 货物状况
export const mpenumreturngoodsStatus = () => {
return useRequest({
url: `/v2/mp/enum/return/goodsStatus`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/return/goodsStatus',
method: 'get',
})
}
//申请退货
// 申请退货
export const mpreturnApplyOrder = () => {
return useRequest({
url: `/v2/mp/returnApplyOrder`,
method: "put",
})
return useRequest({
url: '/v2/mp/returnApplyOrder',
method: 'put',
})
}
//退款说明
// 退款说明
export const mpenumrefundExplainone = () => {
return useRequest({
url: `/v2/mp/enum/refundExplain`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/refundExplain',
method: 'get',
})
}
//提交订单
// 提交订单
export const mpsaleOrderpost = () => {
return useRequest({
url: `/v2/mp/saleOrder`,
method: "post",
})
return useRequest({
url: '/v2/mp/saleOrder',
method: 'post',
})
}
//修改销售单物流方式
// 修改销售单物流方式
export const mpsaleOrdershipmentMode = () => {
return useRequest({
url: `/v2/mp/saleOrder/shipmentMode`,
method: "put",
})
return useRequest({
url: '/v2/mp/saleOrder/shipmentMode',
method: 'put',
})
}
//修改销售单物流方式
// 修改销售单物流方式
export const EnumPurchaserType = () => {
return useRequest({
url: `/v2/mp/enum/purchaserType`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/purchaserType',
method: 'get',
})
}
+3 -3
View File
@@ -1,12 +1,12 @@
import { useRequest } from "@/use/useHttp"
import { useRequest } from '@/use/useHttp'
/**
* 颜色列表
* @returns
*/
export const FindColorListApi = () => {
return useRequest({
url: `/v2/mp/product/color/absorb/match`,
url: '/v2/mp/product/color/absorb/match',
method: 'get',
pagination: true
pagination: true,
})
}
+3 -3
View File
@@ -1,9 +1,9 @@
import { useRequest } from '@/use/useHttp'
//取色对比
// 取色对比
export const productabsorbcontrast = () => {
return useRequest({
url: `/v2/mp/product/color/absorb/contrast`,
url: '/v2/mp/product/color/absorb/contrast',
method: 'get',
})
}
@@ -14,7 +14,7 @@ export const productabsorbcontrast = () => {
*/
export const SelectProductListApi = () => {
return useRequest({
url: `/v2/mp/enum/product/list`,
url: '/v2/mp/enum/product/list',
method: 'get',
})
}
+4 -4
View File
@@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/
export const ColorListApi = () => {
return useRequest({
url: `/v2/mp/product/color/absorb/list`,
url: '/v2/mp/product/color/absorb/list',
method: 'get',
})
}
@@ -17,7 +17,7 @@ export const ColorListApi = () => {
*/
export const ColorDetailedApi = () => {
return useRequest({
url: `/v2/mp/product/texture`,
url: '/v2/mp/product/texture',
method: 'get',
})
}
@@ -28,7 +28,7 @@ export const ColorDetailedApi = () => {
*/
export const ColorSamplingSaveApi = () => {
return useRequest({
url: `/v2/mp/product/color/absorb`,
url: '/v2/mp/product/color/absorb',
method: 'put',
})
}
@@ -39,7 +39,7 @@ export const ColorSamplingSaveApi = () => {
*/
export const TextureSaveApi = () => {
return useRequest({
url: `/v2/mp/product/texture`,
url: '/v2/mp/product/texture',
method: 'put',
})
}
+31 -31
View File
@@ -1,44 +1,44 @@
import { useRequest } from "@/use/useHttp"
import { useRequest } from '@/use/useHttp'
//售后订单列表
// 售后订单列表
export const mpreturnApplyOrderlist = () => {
return useRequest({
url: `/v2/mp/returnApplyOrder/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/returnApplyOrder/list',
method: 'get',
})
}
//售后状态枚举
// 售后状态枚举
export const mpenumreturnStage = () => {
return useRequest({
url: `/v2/mp/enum/returnStage`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/returnStage',
method: 'get',
})
}
//退款类型枚举
// 退款类型枚举
export const mpenumreturnType = () => {
return useRequest({
url: `/v2/mp/enum/returnType`,
method: "get",
})
return useRequest({
url: '/v2/mp/enum/returnType',
method: 'get',
})
}
//售后详情
// 售后详情
export const mpreturnApplyOrder = () => {
return useRequest({
url: `/v2/mp/returnApplyOrder`,
method: "get",
})
return useRequest({
url: '/v2/mp/returnApplyOrder',
method: 'get',
})
}
//取消退货
// 取消退货
export const returnApplyOrdercancel = () => {
return useRequest({
url: `/v2/mp/returnApplyOrder/cancel`,
method: "post",
})
return useRequest({
url: '/v2/mp/returnApplyOrder/cancel',
method: 'post',
})
}
//售后确认上传附件
// 售后确认上传附件
export const returnApplyOrderuploadAccessory = () => {
return useRequest({
url: `/v2/mp/returnApplyOrder/uploadAccessory`,
method: "put",
})
return useRequest({
url: '/v2/mp/returnApplyOrder/uploadAccessory',
method: 'put',
})
}
+6 -6
View File
@@ -1,8 +1,8 @@
import { useRequest } from "@/use/useHttp"
//搜索商品
import { useRequest } from '@/use/useHttp'
// 搜索商品
export const mpproductlist = () => {
return useRequest({
url: `/v2/mp/product/list`,
method: "get",
})
return useRequest({
url: '/v2/mp/product/list',
method: 'get',
})
}
+3 -3
View File
@@ -15,7 +15,7 @@ import { useRequest } from '@/use/useHttp'
*/
export const ShoppingCartDeleteApi = () => {
return useRequest({
url: `/v2/mp/shoppingCart/productColor`,
url: '/v2/mp/shoppingCart/productColor',
method: 'delete',
})
}
@@ -25,7 +25,7 @@ export const ShoppingCartDeleteApi = () => {
*/
export const ShoppingCartListApi = () => {
return useRequest({
url: `/v2/mp/shoppingCart/productColor`,
url: '/v2/mp/shoppingCart/productColor',
method: 'get',
})
}
@@ -35,7 +35,7 @@ export const ShoppingCartListApi = () => {
*/
export const AdjestShoppingCartApi = () => {
return useRequest({
url: `/v2/mp/shoppingCart/productColor`,
url: '/v2/mp/shoppingCart/productColor',
method: 'put',
})
}
+8 -8
View File
@@ -1,4 +1,4 @@
import { useRequest } from "@/use/useHttp"
import { useRequest } from '@/use/useHttp'
/**
* 销售类型下拉列表
@@ -6,18 +6,18 @@ import { useRequest } from "@/use/useHttp"
*/
export const EnumSalesTypeApi = () => {
return useRequest({
url: `/v2/mp/enum/saleType`,
url: '/v2/mp/enum/saleType',
method: 'get',
})
}
/**
* 营销部门下拉列表
* @returns
* @returns
*/
export const EnumMarketingDepartmentApi = () => {
return useRequest({
url: `/v2/mp/enum/saleDepartment/list`,
method: "get"
})
export const EnumMarketingDepartmentApi = () => {
return useRequest({
url: '/v2/mp/enum/saleDepartment/list',
method: 'get',
})
}
+7 -7
View File
@@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/
export const SaleOrderDataFormApi = () => {
return useRequest({
url: `/v2/mp/saleOrderDataForm`,
url: '/v2/mp/saleOrderDataForm',
method: 'get',
})
}
@@ -17,7 +17,7 @@ export const SaleOrderDataFormApi = () => {
*/
export const ProductRankApi = () => {
return useRequest({
url: `/v2/mp/saleOrderDataForm/product/list`,
url: '/v2/mp/saleOrderDataForm/product/list',
method: 'get',
})
}
@@ -28,7 +28,7 @@ export const ProductRankApi = () => {
*/
export const PurchaserRankApi = () => {
return useRequest({
url: `/v2/mp/saleOrderDataForm/purchaser/list`,
url: '/v2/mp/saleOrderDataForm/purchaser/list',
method: 'get',
})
}
@@ -39,7 +39,7 @@ export const PurchaserRankApi = () => {
*/
export const SupplierRankApi = () => {
return useRequest({
url: `/v2/mp/saleOrderDataForm/supplier/list`,
url: '/v2/mp/saleOrderDataForm/supplier/list',
method: 'get',
})
}
@@ -50,15 +50,15 @@ export const SupplierRankApi = () => {
*/
export const SalesmanRankApi = () => {
return useRequest({
url: `/v2/mp/saleOrderDataForm/saleUser/list`,
url: '/v2/mp/saleOrderDataForm/saleUser/list',
method: 'get',
})
}
//获取排行指标枚举
// 获取排行指标枚举
export const SaleOrderDataFormdataFormStatus = () => {
return useRequest({
url: `/v2/mp/saleOrderDataForm/dataFormStatus`,
url: '/v2/mp/saleOrderDataForm/dataFormStatus',
method: 'get',
})
}
+4 -4
View File
@@ -1,15 +1,15 @@
import { useRequest } from '@/use/useHttp'
//提货类型
// 提货类型
export const EnumTakeGoodsOrderTypeList = () => {
return useRequest({
url: `/v2/mp/enum/takeGoodsOrderType/list`,
url: '/v2/mp/enum/takeGoodsOrderType/list',
method: 'get',
})
}
//tabs枚举
// tabs枚举
export const EnumTakeGoodsOrderStatus = () => {
return useRequest({
url: `/v2/mp/enum/takeGoodsOrderStatus/list`,
url: '/v2/mp/enum/takeGoodsOrderStatus/list',
method: 'get',
})
}
+12 -12
View File
@@ -1,44 +1,44 @@
import { useRequest } from '@/use/useHttp'
import { CAP_HTML_TO_IMAGE_BASE_URL } from '@/common/constant'
//列表
// 列表
export const TakeGoodsOrderList = () => {
return useRequest({
url: `/v2/mp/takeGoodsOrder/list`,
url: '/v2/mp/takeGoodsOrder/list',
method: 'get',
})
}
//拒收提货
// 拒收提货
export const TakeGoodsOrderRefuse = () => {
return useRequest({
url: `/v2/mp/takeGoodsOrder/refuse`,
url: '/v2/mp/takeGoodsOrder/refuse',
method: 'put',
})
}
//审核提货单
// 审核提货单
export const TakeGoodsOrderAudit = () => {
return useRequest({
url: `/v2/mp/takeGoodsOrder/audit`,
url: '/v2/mp/takeGoodsOrder/audit',
method: 'put',
})
}
//详情
// 详情
export const TakeGoodsOrder = () => {
return useRequest({
url: `/v2/mp/takeGoodsOrder`,
url: '/v2/mp/takeGoodsOrder',
method: 'get',
})
}
//邀请码
// 邀请码
export const UserInvitationInfoRecord = () => {
return useRequest({
url: `/v2/mp/user/invitationInfoRecord`,
url: '/v2/mp/user/invitationInfoRecord',
method: 'get',
})
}
//生成二维码
// 生成二维码
export const GenBarCodeOrQrCode = () => {
return useRequest({
url: `/xima-caphtml/genBarcodeOrQrCode`,
url: '/xima-caphtml/genBarcodeOrQrCode',
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: 'post',
})