From 880eabb761ed0873ea0aa5437faf9638100f1ee4 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Tue, 16 Jul 2024 11:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/call/index.js | 13 --- src/api/clue/afterSale.js | 39 ------- src/api/clue/clueCache.js | 11 -- src/api/clue/clueField.js | 40 ------- src/api/clue/clueGetSet.js | 26 ----- src/api/clue/delivery.js | 21 ---- src/api/clue/followRecord.js | 20 ---- src/api/clue/index.js | 60 ---------- src/api/clue/orderField.js | 40 ------- src/api/clue/payment.js | 39 ------- src/api/clue/settle.js | 16 --- src/api/clue/sign.js | 31 ----- src/api/clue/skill.js | 26 ----- src/api/clue/source.js | 31 ----- src/api/mall/product/brand.ts | 61 ---------- src/api/mall/product/category.ts | 69 ----------- src/api/mall/product/index.js | 33 ------ src/api/mall/product/productField.js | 44 ------- src/api/mall/product/property.ts | 107 ------------------ src/api/mall/purchase/index.js | 29 ----- src/api/mall/trade/delivery/express/index.ts | 40 ------- .../trade/delivery/expressTemplate/index.ts | 54 --------- src/api/mall/warehouse/index.js | 49 -------- src/api/school/class/index.js | 54 --------- src/api/school/place/index.js | 43 ------- src/api/school/sch/index.js | 37 ------ 26 files changed, 1033 deletions(-) delete mode 100644 src/api/call/index.js delete mode 100644 src/api/clue/afterSale.js delete mode 100644 src/api/clue/clueCache.js delete mode 100644 src/api/clue/clueField.js delete mode 100644 src/api/clue/clueGetSet.js delete mode 100644 src/api/clue/delivery.js delete mode 100644 src/api/clue/followRecord.js delete mode 100644 src/api/clue/index.js delete mode 100644 src/api/clue/orderField.js delete mode 100644 src/api/clue/payment.js delete mode 100644 src/api/clue/settle.js delete mode 100644 src/api/clue/sign.js delete mode 100644 src/api/clue/skill.js delete mode 100644 src/api/clue/source.js delete mode 100644 src/api/mall/product/brand.ts delete mode 100644 src/api/mall/product/category.ts delete mode 100644 src/api/mall/product/index.js delete mode 100644 src/api/mall/product/productField.js delete mode 100644 src/api/mall/product/property.ts delete mode 100644 src/api/mall/purchase/index.js delete mode 100644 src/api/mall/trade/delivery/express/index.ts delete mode 100644 src/api/mall/trade/delivery/expressTemplate/index.ts delete mode 100644 src/api/mall/warehouse/index.js delete mode 100644 src/api/school/class/index.js delete mode 100644 src/api/school/place/index.js delete mode 100644 src/api/school/sch/index.js diff --git a/src/api/call/index.js b/src/api/call/index.js deleted file mode 100644 index a987a27..0000000 --- a/src/api/call/index.js +++ /dev/null @@ -1,13 +0,0 @@ -import request from '@/config/axios' - -export default { - callLogin(data) { - return request.post({ url: '/call-api/openapi/V2.0.4/agentLogin', data }) - }, - callUserStatus(data) { - return request.post({ url: '/call-api/openapi/V2.0.4/getAgentStatus', data }) - }, - callNumber(data) { - return request.post({ url: '/call-api/openapi/V2.0.4/callNumber', data }) - } -} diff --git a/src/api/clue/afterSale.js b/src/api/clue/afterSale.js deleted file mode 100644 index 1321ec8..0000000 --- a/src/api/clue/afterSale.js +++ /dev/null @@ -1,39 +0,0 @@ -import request from '@/config/axios' - -// 查询(精简)列表 -export const getAfterSaleList = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-after-sale/list', params }) -} - -// 查询(精简)列表 -export const getAfterSalePage = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-after-sale/page', params }) -} - -// 新增 -export const createAfterSale = async (data) => { - return await request.post({ - url: '/admin-api/crm/sign-after-sale/create', - data, - isSubmitForm: true - }) -} - -// 审核 -export const auditAfterSale = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-after-sale/check', data }) -} - -export const batchAuditAfterSale = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-after-sale/batch/check', data }) -} - -// 撤销 -export const cancelApplyAfterSale = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-after-sale/revoke', params: data }) -} - -// 查询详情 -export const getAfterSaleDetail = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-after-sale/get', params }) -} diff --git a/src/api/clue/clueCache.js b/src/api/clue/clueCache.js deleted file mode 100644 index 9c9349e..0000000 --- a/src/api/clue/clueCache.js +++ /dev/null @@ -1,11 +0,0 @@ -import request from '@/config/axios' - -// 查询用户配置 -export const getClueCache = async (params) => { - return await request.get({ url: '/admin-api/crm/param-user-setting/get-by-user', params }) -} - -// 保存用户配置 -export const setClueCache = async (data) => { - return await request.post({ url: '/admin-api/crm/param-user-setting/save', data }) -} diff --git a/src/api/clue/clueField.js b/src/api/clue/clueField.js deleted file mode 100644 index 0aaa2b9..0000000 --- a/src/api/clue/clueField.js +++ /dev/null @@ -1,40 +0,0 @@ -import request from '@/config/axios' - -// 创建 -export const createField = (data) => { - return request.post({ url: '/admin-api/crm/param/create', data: { ...data, module: 1 } }) -} - -// 更新 -export const updateField = (data) => { - return request.put({ url: '/admin-api/crm/param/update', data }) -} - -// 删除 -export const deleteField = (id) => { - return request.delete({ url: `/admin-api/crm/param/delete?id=${id}` }) -} - -// 获得 -export const getField = (id) => { - return request.get({ url: `/admin-api/crm/param/get?id=${id}` }) -} - -// 获得精简信息列表 -export const getSimpleFieldList = () => { - return request.get({ url: '/admin-api/crm/param/simple-list', params: { module: 1 } }) -} - -// 获取自定义字段 -export const getDiyFieldList = () => { - return request.get({ url: '/admin-api/crm/param/get-diy-param', params: { module: 1 } }) -} - -// 状态修改 -export const updateFieldStatus = (signParamId, status) => { - const data = { - signParamId, - status - } - return request.put({ url: '/admin-api/crm/param/status/update', data: data }) -} diff --git a/src/api/clue/clueGetSet.js b/src/api/clue/clueGetSet.js deleted file mode 100644 index 1877b27..0000000 --- a/src/api/clue/clueGetSet.js +++ /dev/null @@ -1,26 +0,0 @@ -import request from '@/config/axios' - -// 线索获取规则 -export const getClueGainRuleList = () => { - return request.get({ url: '/admin-api/crm/sch-clue-gain-rule/list' }) -} - -// 删除 -export const deleteClueGainRule = (id) => { - return request.delete({ url: `/admin-api/crm/sch-clue-gain-rule/delete?id=${id}` }) -} - -// 线索获取规则保存 -export const saveClueGainRule = (data) => { - return request.put({ url: '/admin-api/crm/sch-clue-gain-rule/batchUpdate', data }) -} - -// 线索规则 -export const getClueDistributeRuleByUser = (params) => { - return request.get({ url: '/admin-api/crm/sch-clue-distribution-rule/queryByUserId', params }) -} - -// 删除 -export const deleteClueDistributeRule = (id) => { - return request.delete({ url: `/admin-api/crm/sch-clue-gain-rule/delete?id=${id}` }) -} diff --git a/src/api/clue/delivery.js b/src/api/clue/delivery.js deleted file mode 100644 index ca8d19b..0000000 --- a/src/api/clue/delivery.js +++ /dev/null @@ -1,21 +0,0 @@ -import request from '@/config/axios' - -// 查询(精简)列表 -export const getDeliveryList = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-send/list', params }) -} - -// 查询分页列表 -export const getDeliveryPage = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-send/page', params }) -} - -// 新增 -export const createDelivery = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-send/create', data, isSubmitForm: true }) -} - -// 查询详情 -export const getDeliveryDetail = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-send/get', params }) -} diff --git a/src/api/clue/followRecord.js b/src/api/clue/followRecord.js deleted file mode 100644 index 6fa0c34..0000000 --- a/src/api/clue/followRecord.js +++ /dev/null @@ -1,20 +0,0 @@ -import request from '@/config/axios' - -// 查询(精简)列表 -export const getFollowList = async (params) => { - return await request.get({ url: '/admin-api/crm/clue-follow-record/list', params }) -} - -// 新增 -export const createFollow = async (data) => { - return await request.post({ - url: '/admin-api/crm/clue-follow-record/create', - data: data, - isSubmitForm: true - }) -} - -// 删除 -export const deleteFollow = async (id) => { - return await request.delete({ url: '/admin-api/crm/clue-follow-record/delete?id=' + id }) -} diff --git a/src/api/clue/index.js b/src/api/clue/index.js deleted file mode 100644 index 774909e..0000000 --- a/src/api/clue/index.js +++ /dev/null @@ -1,60 +0,0 @@ -import request from '@/config/axios' - -// 查询(精简)列表 -export const getSimpleClueList = async () => { - return await request.get({ url: '/admin-api/crm/sch-clue/list-all-simple' }) -} - -// 查询列表 -export const getCluePage = async (params) => { - return await request.get({ url: '/admin-api/crm/sch-clue/page', params }) -} - -// 查询详情 -export const getClue = async (id) => { - return await request.get({ url: '/admin-api/crm/sch-clue/get?id=' + id }) -} - -// 新增 -export const createClue = async (data) => { - return await request.post({ - url: '/admin-api/crm/sch-clue/create', - data: data, - isSubmitForm: true - }) -} - -// 修改 -export const updateClue = async (params) => { - return await request.put({ url: '/admin-api/crm/sch-clue/update', data: params }) -} - -// 删除 -export const deleteClue = async (id) => { - return await request.delete({ url: '/admin-api/crm/sch-clue/delete?id=' + id }) -} - -// 释放 -export const releaseClue = async (data) => { - return await request.put({ url: '/admin-api/crm/sch-clue/public/save', data }) -} - -// 通用查询数量 -export const getClueCount = async () => { - return await request.get({ url: '/admin-api/crm/sch-clue/get-clue-num' }) -} - -// 获取操作记录 -export const getOpearateRecord = async (params) => { - return await request.get({ url: '/admin-api/crm/clue-operate-record/list', params }) -} - -// 获取公海线索 -export const getPublicClue = async (data) => { - return await request.put({ url: '/admin-api/crm/sch-clue/public/save', data }) -} - -// 获得线索跟进用户信息 -export const getFollowUserList = async (params) => { - return await request.get({ url: '/admin-api/crm/sch-clue/get-follow-user', params }) -} diff --git a/src/api/clue/orderField.js b/src/api/clue/orderField.js deleted file mode 100644 index 9f63dd2..0000000 --- a/src/api/clue/orderField.js +++ /dev/null @@ -1,40 +0,0 @@ -import request from '@/config/axios' - -// 创建 -export const createField = (data) => { - return request.post({ url: '/admin-api/crm/param/create', data: { ...data, module: 2 } }) -} - -// 更新 -export const updateField = (data) => { - return request.put({ url: '/admin-api/crm/param/update', data }) -} - -// 删除 -export const deleteField = (id) => { - return request.delete({ url: `/admin-api/crm/param/delete?id=${id}` }) -} - -// 获得 -export const getField = (id) => { - return request.get({ url: `/admin-api/crm/param/get?id=${id}` }) -} - -// 获得精简信息列表 -export const getSimpleFieldList = () => { - return request.get({ url: '/admin-api/crm/param/simple-list', params: { module: 2 } }) -} - -// 获取自定义字段 -export const getDiyFieldList = () => { - return request.get({ url: '/admin-api/crm/param/get-diy-param', params: { module: 2 } }) -} - -// 状态修改 -export const updateFieldStatus = (signParamId, status) => { - const data = { - signParamId, - status - } - return request.put({ url: '/admin-api/crm/param/status/update', data: data }) -} diff --git a/src/api/clue/payment.js b/src/api/clue/payment.js deleted file mode 100644 index f67ca24..0000000 --- a/src/api/clue/payment.js +++ /dev/null @@ -1,39 +0,0 @@ -import request from '@/config/axios' - -// 查询(精简)列表 -export const getPaymentList = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-pay-record/list', params }) -} - -// 查询(精简)列表 -export const getPaymentPage = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-pay-record/page', params }) -} - -// 新增 -export const createPayment = async (data) => { - return await request.post({ - url: '/admin-api/crm/sign-pay-record/create', - data, - isSubmitForm: true - }) -} - -// 审核 -export const auditPayment = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-pay-record/check', data }) -} - -export const batchAuditPayment = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-pay-record/batch/check', data }) -} - -// 撤销 -export const cancelApplyPayment = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-pay-record/revoke', params: data }) -} - -// 查询详情 -export const getPaymentDetail = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-pay-record/get', params }) -} diff --git a/src/api/clue/settle.js b/src/api/clue/settle.js deleted file mode 100644 index c6614e5..0000000 --- a/src/api/clue/settle.js +++ /dev/null @@ -1,16 +0,0 @@ -import request from '@/config/axios' - -// 查询列表 -export const getSettlePage = async (params) => { - return await request.get({ url: '/admin-api/crm/sign-settlement/page', params }) -} - -// 查询详情 -export const getSettle = async (id) => { - return await request.get({ url: '/admin-api/crm/sign-settlement/get?id=' + id }) -} - -// 批量结算 -export const batchSaveSettle = async (data) => { - return await request.post({ url: '/admin-api/crm/sign-settlement/batch/save', data }) -} diff --git a/src/api/clue/sign.js b/src/api/clue/sign.js deleted file mode 100644 index 2dc80f2..0000000 --- a/src/api/clue/sign.js +++ /dev/null @@ -1,31 +0,0 @@ -import request from '@/config/axios' - -// 查询列表 -export const getSignPage = async (params) => { - return await request.get({ url: '/admin-api/crm/sign/page', params }) -} - -// 查询详情 -export const getSign = async (id) => { - return await request.get({ url: '/admin-api/crm/sign/get?id=' + id }) -} - -// 新增 -export const createSign = async (data) => { - return await request.post({ url: '/admin-api/crm/sign/create', data: data, isSubmitForm: true }) -} - -// 取消登记 -export const cancelDeal = async (id) => { - return await request.delete({ url: '/admin-api/crm/sign/delete?id=' + id }) -} - -// 新增支出 -export const signAddPay = async (data) => { - return await request.post({ url: '/admin-api/crm/sign/extra-pay/save', data: data }) -} - -// 查询支出 -export const getSignExtraPayList = async (params) => { - return await request.get({ url: '/admin-api/crm/sign/extra-pay/get', params }) -} diff --git a/src/api/clue/skill.js b/src/api/clue/skill.js deleted file mode 100644 index 3ee5c68..0000000 --- a/src/api/clue/skill.js +++ /dev/null @@ -1,26 +0,0 @@ -import request from '@/config/axios' - -// 获得列表 -export const getSkillPage = (params) => { - return request.get({ url: '/admin-api/crm/skill/page', params }) -} - -// 创建 -export const createSkill = (data) => { - return request.post({ url: '/admin-api/crm/skill/create', data, isSubmitForm: true }) -} - -// 更新 -export const updateSkill = (data) => { - return request.put({ url: '/admin-api/crm/skill/update', data }) -} - -// 删除 -export const deleteSkill = (id) => { - return request.delete({ url: `/admin-api/crm/skill/delete?id=${id}` }) -} - -// 获得 -export const getSkill = (id) => { - return request.get({ url: `/admin-api/crm/skill/get?id=${id}` }) -} diff --git a/src/api/clue/source.js b/src/api/clue/source.js deleted file mode 100644 index afeb22a..0000000 --- a/src/api/clue/source.js +++ /dev/null @@ -1,31 +0,0 @@ -import request from '@/config/axios' - -// 查询(精简)列表 -export const getSimpleSourceList = async () => { - return await request.get({ url: '/admin-api/crm/source/list' }) -} - -// 查询列表 -export const getSourcePage = async (params) => { - return await request.get({ url: '/admin-api/crm/source/list', params }) -} - -// 查询详情 -export const getSource = async (id) => { - return await request.get({ url: '/admin-api/crm/source/get?id=' + id }) -} - -// 新增 -export const createSource = async (data) => { - return await request.post({ url: '/admin-api/crm/source/create', data: data, isSubmitForm: true }) -} - -// 修改 -export const updateSource = async (params) => { - return await request.put({ url: '/admin-api/crm/source/update', data: params }) -} - -// 删除 -export const deleteSource = async (id) => { - return await request.delete({ url: '/admin-api/crm/source/delete?id=' + id }) -} diff --git a/src/api/mall/product/brand.ts b/src/api/mall/product/brand.ts deleted file mode 100644 index 9191677..0000000 --- a/src/api/mall/product/brand.ts +++ /dev/null @@ -1,61 +0,0 @@ -import request from '@/config/axios' - -/** - * 商品品牌 - */ -export interface BrandVO { - /** - * 品牌编号 - */ - id?: number - /** - * 品牌名称 - */ - name: string - /** - * 品牌图片 - */ - picUrl: string - /** - * 品牌排序 - */ - sort?: number - /** - * 品牌描述 - */ - description?: string - /** - * 开启状态 - */ - status: number -} - -// 创建商品品牌 -export const createBrand = (data: BrandVO) => { - return request.post({ url: '/admin-api/crm/erp-product-brand/create', data, isSubmitForm: true }) -} - -// 更新商品品牌 -export const updateBrand = (data: BrandVO) => { - return request.put({ url: '/admin-api/crm/erp-product-brand/update', data }) -} - -// 删除商品品牌 -export const deleteBrand = (id: number) => { - return request.delete({ url: `/admin-api/crm/erp-product-brand/delete?id=${id}` }) -} - -// 获得商品品牌 -export const getBrand = (id: number) => { - return request.get({ url: `/admin-api/crm/erp-product-brand/get?id=${id}` }) -} - -// 获得商品品牌列表 -export const getBrandParam = (params: PageParam) => { - return request.get({ url: '/admin-api/crm/erp-product-brand/page', params }) -} - -// 获得商品品牌精简信息列表 -export const getSimpleBrandList = () => { - return request.get({ url: '/admin-api/crm/erp-product-brand/simple-list' }) -} diff --git a/src/api/mall/product/category.ts b/src/api/mall/product/category.ts deleted file mode 100644 index efc85f5..0000000 --- a/src/api/mall/product/category.ts +++ /dev/null @@ -1,69 +0,0 @@ -import request from '@/config/axios' - -/** - * 产品分类 - */ -export interface CategoryVO { - /** - * 分类编号 - */ - id?: number - /** - * 父分类编号 - */ - parentId?: number - /** - * 分类名称 - */ - name: string - /** - * 移动端分类图 - */ - picUrl: string - /** - * PC 端分类图 - */ - bigPicUrl?: string - /** - * 分类排序 - */ - sort: number - /** - * 开启状态 - */ - status: number -} - -// 创建商品分类 -export const createCategory = (data: CategoryVO) => { - return request.post({ - url: '/admin-api/crm/erp-product-category/create', - data, - isSubmitForm: true - }) -} - -// 更新商品分类 -export const updateCategory = (data: CategoryVO) => { - return request.put({ url: '/admin-api/crm/erp-product-category/update', data }) -} - -// 删除商品分类 -export const deleteCategory = (id: number) => { - return request.delete({ url: `/admin-api/crm/erp-product-category/delete?id=${id}` }) -} - -// 获得商品分类 -export const getCategory = (id: number) => { - return request.get({ url: `/admin-api/crm/erp-product-category/get?id=${id}` }) -} - -// 获得商品分类列表 -export const getCategoryList = (params: any) => { - return request.get({ url: '/admin-api/crm/erp-product-category/list', params }) -} - -// 获得商品分类列表 -export const getCategorySimpleList = (params: any) => { - return request.get({ url: '/admin-api/crm/erp-product-category/simple-list', params }) -} diff --git a/src/api/mall/product/index.js b/src/api/mall/product/index.js deleted file mode 100644 index 80c9a98..0000000 --- a/src/api/mall/product/index.js +++ /dev/null @@ -1,33 +0,0 @@ -import request from '@/config/axios' -// 查询列表 -export const getProductPage = async (params) => { - return await request.get({ url: '/admin-api/crm/erp-product/page', params }) -} - -// 查询详情 -export const getProduct = async (id) => { - return await request.get({ url: '/admin-api/crm/erp-product/get?id=' + id }) -} - -// 新增 -export const createProduct = async (data) => { - return await request.post({ - url: '/admin-api/crm/erp-product/create', - data: data, - isSubmitForm: true - }) -} - -// 修改 -export const updateProduct = async (params) => { - return await request.put({ url: '/admin-api/crm/erp-product/update', data: params }) -} - -// 删除 -export const deleteProduct = async (id) => { - return await request.delete({ url: '/admin-api/crm/erp-product/delete?id=' + id }) -} - -export const getSimpleProductList = async () => { - return await request.get({ url: '/admin-api/crm/erp-product/simple-list' }) -} diff --git a/src/api/mall/product/productField.js b/src/api/mall/product/productField.js deleted file mode 100644 index f740e90..0000000 --- a/src/api/mall/product/productField.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/config/axios' - -// 创建 -export const createField = (data) => { - return request.post({ - url: '/admin-api/crm/param/create', - data: { ...data, module: 3 }, - isSubmitForm: true - }) -} - -// 更新 -export const updateField = (data) => { - return request.put({ url: '/admin-api/crm/param/update', data }) -} - -// 删除 -export const deleteField = (id) => { - return request.delete({ url: `/admin-api/crm/param/delete?id=${id}` }) -} - -// 获得 -export const getField = (id) => { - return request.get({ url: `/admin-api/crm/param/get?id=${id}` }) -} - -// 获得精简信息列表 -export const getSimpleFieldList = () => { - return request.get({ url: '/admin-api/crm/param/simple-list', params: { module: 3 } }) -} - -// 获取自定义字段 -export const getDiyFieldList = () => { - return request.get({ url: '/admin-api/crm/param/get-diy-param', params: { module: 3 } }) -} - -// 状态修改 -export const updateFieldStatus = (signParamId, status) => { - const data = { - signParamId, - status - } - return request.put({ url: '/admin-api/crm/param/status/update', data: data }) -} diff --git a/src/api/mall/product/property.ts b/src/api/mall/product/property.ts deleted file mode 100644 index b2c2ce5..0000000 --- a/src/api/mall/product/property.ts +++ /dev/null @@ -1,107 +0,0 @@ -import request from '@/config/axios' - -/** - * 商品属性 - */ -export interface PropertyVO { - id?: number - /** 名称 */ - name: string - /** 备注 */ - remark?: string -} - -/** - * 属性值 - */ -export interface PropertyValueVO { - id?: number - /** 属性项的编号 */ - propertyId?: number - /** 名称 */ - name: string - /** 备注 */ - remark?: string -} - -/** - * 商品属性值的明细 - */ -export interface PropertyValueDetailVO { - /** 属性项的编号 */ - propertyId: number // 属性的编号 - /** 属性的名称 */ - propertyName: string - /** 属性值的编号 */ - valueId: number - /** 属性值的名称 */ - valueName: string -} - -// ------------------------ 属性项 ------------------- - -// 创建属性项 -export const createProperty = (data: PropertyVO) => { - return request.post({ - url: '/admin-api/crm/erp-product-property/create', - data, - isSubmitForm: true - }) -} - -// 更新属性项 -export const updateProperty = (data: PropertyVO) => { - return request.put({ url: '/product/property/update', data }) -} - -// 删除属性项 -export const deleteProperty = (id: number) => { - return request.delete({ url: `/product/property/delete?id=${id}` }) -} - -// 获得属性项 -export const getProperty = (id: number): Promise => { - return request.get({ url: `/product/property/get?id=${id}` }) -} - -// 获得属性项分页 -export const getPropertyPage = (params: PageParam) => { - return request.get({ url: '/product/property/page', params }) -} - -// 获得属性项列表 -export const getPropertyList = (params: any) => { - return request.get({ url: '/product/property/list', params }) -} - -// 获得属性项列表 -export const getPropertyListAndValue = (data: any) => { - return request.post({ url: '/product/property/get-value-list', data }) -} - -// ------------------------ 属性值 ------------------- - -// 获得属性值分页 -export const getPropertyValuePage = (params: PageParam & any) => { - return request.get({ url: '/product/property/value/page', params }) -} - -// 获得属性值 -export const getPropertyValue = (id: number): Promise => { - return request.get({ url: `/product/property/value/get?id=${id}` }) -} - -// 创建属性值 -export const createPropertyValue = (data: PropertyValueVO) => { - return request.post({ url: '/admin-api/crm/erp-product-property-value/create', data }) -} - -// 更新属性值 -export const updatePropertyValue = (data: PropertyValueVO) => { - return request.put({ url: '/product/property/value/update', data }) -} - -// 删除属性值 -export const deletePropertyValue = (id: number) => { - return request.delete({ url: `/product/property/value/delete?id=${id}` }) -} diff --git a/src/api/mall/purchase/index.js b/src/api/mall/purchase/index.js deleted file mode 100644 index ea5e0a9..0000000 --- a/src/api/mall/purchase/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import request from '@/config/axios' -// 查询列表 -export const getPurchasePage = async (params) => { - return await request.get({ url: '/admin-api/crm/erp-purchase/page', params }) -} - -// 新增 -export const createPurchase = async (data) => { - return await request.post({ - url: '/admin-api/crm/erp-purchase/create', - data: data, - isSubmitForm: true - }) -} - -// 修改 -export const updatePurchase = async (params) => { - return await request.put({ url: '/admin-api/crm/erp-purchase/update', data: params }) -} - -// 删除 -export const deletePurchase = async (id) => { - return await request.delete({ url: '/admin-api/crm/erp-purchase/delete?id=' + id }) -} - -// 审核 -export const auditPurchase = async (data) => { - return await request.post({ url: '/admin-api/crm/erp-purchase/audit', data }) -} diff --git a/src/api/mall/trade/delivery/express/index.ts b/src/api/mall/trade/delivery/express/index.ts deleted file mode 100644 index 95429a4..0000000 --- a/src/api/mall/trade/delivery/express/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import request from '@/config/axios' - -export interface DeliveryExpressVO { - id: number - code: string - name: string - logo: string - sort: number - status: number -} - -// 查询快递公司列表 -export const getDeliveryExpressPage = async (params: PageParam) => { - return await request.get({ url: '/trade/delivery/express/page', params }) -} - -// 查询快递公司详情 -export const getDeliveryExpress = async (id: number) => { - return await request.get({ url: '/trade/delivery/express/get?id=' + id }) -} - -// 新增快递公司 -export const createDeliveryExpress = async (data: DeliveryExpressVO) => { - return await request.post({ url: '/trade/delivery/express/create', data }) -} - -// 修改快递公司 -export const updateDeliveryExpress = async (data: DeliveryExpressVO) => { - return await request.put({ url: '/trade/delivery/express/update', data }) -} - -// 删除快递公司 -export const deleteDeliveryExpress = async (id: number) => { - return await request.delete({ url: '/trade/delivery/express/delete?id=' + id }) -} - -// 导出快递公司 Excel -export const exportDeliveryExpressApi = async (params) => { - return await request.download({ url: '/trade/delivery/express/export-excel', params }) -} diff --git a/src/api/mall/trade/delivery/expressTemplate/index.ts b/src/api/mall/trade/delivery/expressTemplate/index.ts deleted file mode 100644 index 9414c84..0000000 --- a/src/api/mall/trade/delivery/expressTemplate/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/config/axios' - -export interface DeliveryExpressTemplateVO { - id: number - name: string - chargeMode: number - sort: number - templateCharge: ExpressTemplateChargeVO[] - templateFree: ExpressTemplateFreeVO[] -} - -export declare type ExpressTemplateChargeVO = { - areaIds: number[] - startCount: number - startPrice: number - extraCount: number - extraPrice: number -} - -export declare type ExpressTemplateFreeVO = { - areaIds: number[] - freeCount: number - freePrice: number -} - -// 查询快递运费模板列表 -export const getDeliveryExpressTemplatePage = async (params: PageParam) => { - return await request.get({ url: '/trade/delivery/express-template/page', params }) -} - -// 查询快递运费模板详情 -export const getDeliveryExpressTemplate = async (id: number) => { - return await request.get({ url: '/trade/delivery/express-template/get?id=' + id }) -} - -// 新增快递运费模板 -export const createDeliveryExpressTemplate = async (data: DeliveryExpressTemplateVO) => { - return await request.post({ url: '/trade/delivery/express-template/create', data }) -} - -// 修改快递运费模板 -export const updateDeliveryExpressTemplate = async (data: DeliveryExpressTemplateVO) => { - return await request.put({ url: '/trade/delivery/express-template/update', data }) -} - -// 删除快递运费模板 -export const deleteDeliveryExpressTemplate = async (id: number) => { - return await request.delete({ url: '/trade/delivery/express-template/delete?id=' + id }) -} - -// 导出快递运费模板 Excel -export const exportDeliveryExpressTemplateApi = async (params) => { - return await request.download({ url: '/trade/delivery/express-template/export-excel', params }) -} diff --git a/src/api/mall/warehouse/index.js b/src/api/mall/warehouse/index.js deleted file mode 100644 index 40a863a..0000000 --- a/src/api/mall/warehouse/index.js +++ /dev/null @@ -1,49 +0,0 @@ -import request from '@/config/axios' -// 查询列表 -export const getWarehousePage = async (params) => { - return await request.get({ url: '/admin-api/crm/erp-warehouse/page', params }) -} - -// 新增 -export const createWarehouse = async (data) => { - return await request.post({ - url: '/admin-api/crm/erp-warehouse/create', - data: data, - isSubmitForm: true - }) -} - -// 修改 -export const updateWarehouse = async (params) => { - return await request.put({ url: '/admin-api/crm/erp-warehouse/update', data: params }) -} - -// 删除 -export const deleteWarehouse = async (id) => { - return await request.delete({ url: '/admin-api/crm/erp-warehouse/delete?id=' + id }) -} - -// 获取仓库 -export const getWarehouse = async (id) => { - return await request.get({ url: '/admin-api/crm/erp-warehouse/get?id=' + id }) -} - -// 获取仓库列表 -export const getSimpleWarehouseList = async () => { - return await request.get({ url: '/admin-api/crm/erp-warehouse/simple-list' }) -} - -// 获取库存 -export const getInventoryList = async (params) => { - return await request.get({ url: '/admin-api/crm/erp-inventory/page', params }) -} - -// 获取库存变动记录 -export const getInventoryRecord = async (params) => { - return await request.get({ url: '/admin-api/crm/erp-inventory-record/page', params }) -} - -// 获取剩余库存 -export const getRemainInventoryList = async (params) => { - return await request.get({ url: '/admin-api/crm/erp-inventory-detail/list', params }) -} diff --git a/src/api/school/class/index.js b/src/api/school/class/index.js deleted file mode 100644 index 0331cf0..0000000 --- a/src/api/school/class/index.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/config/axios' - -// 查询列表-分页 -export const getClassTypePage = async (params) => { - return await request.get({ url: '/admin-api/crm/sch-class-type/page', params }) -} - -export const getClassTypeList = async (params) => { - return await request.get({ url: '/admin-api/crm/sch-class-type/list', params }) -} - -// 查询详情 -export const getClassType = async (id) => { - return await request.get({ url: '/admin-api/crm/sch-class-type/get?id=' + id }) -} - -// 新增 -export const createClassType = async (data) => { - return await request.post({ - url: '/admin-api/crm/sch-class-type/create', - data: data, - isSubmitForm: true - }) -} - -// 修改 -export const updateClassType = async (params) => { - return await request.put({ url: '/admin-api/crm/sch-class-type/update', data: params }) -} - -// 删除 -export const deleteClassType = async (id) => { - return await request.delete({ url: '/admin-api/crm/sch-class-type/delete?id=' + id }) -} - -// 修改状态 -export const updateClassTypeStatus = async (data) => { - return request.put({ url: '/admin-api/crm/sch-class-type/status/update', data }) -} - -// 批量修改状态 -export const batchUpdateClassTypeStatus = async (data) => { - return request.put({ url: '/admin-api/crm/sch-class-type/status/batch-update', data }) -} - -// 批量删除 -export const batchDeleteClassType = async (ids) => { - return await request.delete({ url: '/admin-api/crm/sch-class-type/batch-delete?ids=' + ids }) -} - -// 获取提成结算参数 -export const getCommissionParams = async () => { - return await request.get({ url: '/admin-api/crm/sch-class-type/get-percentage-param' }) -} diff --git a/src/api/school/place/index.js b/src/api/school/place/index.js deleted file mode 100644 index b469cdc..0000000 --- a/src/api/school/place/index.js +++ /dev/null @@ -1,43 +0,0 @@ -import request from '@/config/axios' - -// 查询列表-分页 -export const getPlacePage = async (params) => { - return await request.get({ url: '/admin-api/crm/sch-place/page', params }) -} - -// 查询列表-不分页 -export const getPlaceList = async (params) => { - return await request.get({ url: '/admin-api/crm/sch-place/list', params }) -} - -// 查询详情 -export const getPlace = async (id) => { - return await request.get({ url: '/admin-api/crm/sch-place/get?id=' + id }) -} - -// 新增 -export const createPlace = async (data) => { - return await request.post({ - url: '/admin-api/crm/sch-place/create', - data: data, - isSubmitForm: true - }) -} - -// 修改 -export const updatePlace = async (params) => { - return await request.put({ url: '/admin-api/crm/sch-place/update', data: params }) -} - -// 删除 -export const deletePlace = async (id) => { - return await request.delete({ url: '/admin-api/crm/sch-place/delete?id=' + id }) -} - -export const updatePlaceStatus = async (placeId, status) => { - const data = { - placeId, - status - } - return request.put({ url: '/admin-api/crm/sch-place/status/update', data: data }) -} diff --git a/src/api/school/sch/index.js b/src/api/school/sch/index.js deleted file mode 100644 index 22f4b5d..0000000 --- a/src/api/school/sch/index.js +++ /dev/null @@ -1,37 +0,0 @@ -import request from '@/config/axios' -// 查询列表 -export const getSchoolPage = async (params) => { - return await request.get({ url: '/admin-api/crm/sch-school/page', params }) -} - -// 查询详情 -export const getSchool = async (id) => { - return await request.get({ url: '/admin-api/crm/sch-school/get?id=' + id }) -} - -// 新增 -export const createSchool = async (data) => { - return await request.post({ - url: '/admin-api/crm/sch-school/create', - data: data, - isSubmitForm: true - }) -} - -// 修改 -export const updateSchool = async (params) => { - return await request.put({ url: '/admin-api/crm/sch-school/update', data: params }) -} - -// 删除 -export const deleteSchool = async (id) => { - return await request.delete({ url: '/admin-api/crm/sch-school/delete?id=' + id }) -} - -export const updateSchoolStatus = async (schoolId, status) => { - const data = { - schoolId, - status - } - return request.put({ url: '/admin-api/crm/sch-school/status/update', data: data }) -}