dev-cl
parent
77134be7ff
commit
880eabb761
@ -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 }) |
||||
} |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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}` }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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}` }) |
||||
} |
@ -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 }) |
||||
} |
@ -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' }) |
||||
} |
@ -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 }) |
||||
} |
@ -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' }) |
||||
} |
@ -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 }) |
||||
} |
@ -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<PropertyVO> => { |
||||
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<PropertyValueVO> => { |
||||
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}` }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
@ -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' }) |
||||
} |
@ -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 }) |
||||
} |
@ -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 }) |
||||
} |
Loading…
Reference in new issue