| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741 |
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- import request from '@/plugins/request';
- /**
- *店员列表-获取门店
- */
- export function staffListInfo(data) {
- return request({
- url: 'merchant/store_list',
- method: 'get',
- params: data
- });
- }
- /**
- *订单-订单列表
- */
- export function orderList(data) {
- return request({
- url: `store/order/list`,
- method: 'get',
- params: data
- });
- }
- /**
- *订单-订单头部数据
- */
- export function orderChart(data) {
- return request({
- url: `store/order/chart`,
- method: 'get',
- params: data
- });
- }
- /**
- *订单-获取门店订单头部统计
- */
- export function orderHeader(data) {
- return request({
- url: `store/order/header`,
- method: 'get'
- });
- }
- /**
- *订单-充值订单列表
- */
- export function orderRecharge(data) {
- return request({
- url: `store/recharge`,
- method: 'get',
- params: data
- });
- }
- /**
- *订单-付费会员订单列表
- */
- export function orderVip(data) {
- return request({
- url: `store/vip_order`,
- method: 'get',
- params: data
- });
- }
- /**
- *订单-获取订单编辑表单
- */
- export function getOrdeDatas(id) {
- return request({
- url: `store/order/edit/${id}`,
- method: 'get'
- });
- }
- /**
- * 订单-获取快递公司
- */
- export function getExpressData(status) {
- return request({
- url: `order/express_list?status=` + status,
- method: 'get'
- })
- };
- /**
- * @description 发送货提交表单
- * @param {Number} param data.id {Number} 订单id
- * @param {Object} param data.datas {Object} 表单信息
- */
- export function putDelivery(data) {
- return request({
- url: `/order/delivery/${data.id}`,
- method: 'put',
- data: data.datas
- });
- };
- /**
- * @description 拆单发送货
- * @param {Number} param data.id {Number} 订单id
- * @param {Object} param data.datas {Object} 表单信息
- */
- export function splitDelivery(data) {
- return request({
- url: `/order/split_delivery/${data.id}`,
- method: 'put',
- data: data.datas
- });
- };
- /**
- * 电子面单模板
- * @param {com} data 快递公司编号
- */
- export function orderExpressTemp(data) {
- return request({
- url: '/order/express/temp',
- method: 'get',
- params: data
- });
- }
- /**
- * 订单时获取所有配送员列表
- */
- export function orderDeliveryList() {
- return request({
- url: '/order/delivery/list',
- method: 'get'
- });
- }
- // 面单默认配置信息
- export function orderSheetInfo() {
- return request({
- url: '/order/sheet_info',
- method: 'get'
- });
- }
- /**
- * @description 获取订单可拆分商品列表
- * @param {Object} param data {Object} 传值参数
- */
- export function splitCartInfo(id) {
- return request({
- url: `order/split_cart_info/${id}`,
- method: 'get'
- })
- };
- /**
- * @description 配送信息表单
- * @param {Number} param id {Number} 订单id
- */
- export function getDistribution(id) {
- return request({
- url: `store/order/distribution/${id}`,
- method: 'get'
- });
- };
- /**
- * @description 订单号核销
- */
- export function writeUpdate(id) {
- return request({
- url: `store/order/write_update/${id}`,
- method: 'put'
- });
- }
- /**
- * @description 订单物流信息
- * @param {Number} param id {Number} 订单id
- */
- export function getExpress(id) {
- return request({
- url: `/order/express/${id}`,
- method: 'get'
- });
- };
- /**
- * @description 订单表单详情数据
- * @param {Number} param id {Number} 订单id
- */
- export function getDataInfo(id) {
- return request({
- url: `store/order/info/${id}`,
- method: 'get'
- });
- };
- /**
- * @description 获取订单记录
- * @param {Number} param data.id {Number} 订单id
- * @param {String} param data.datas {String} 分页参数
- */
- export function getOrderRecord(data) {
- return request({
- url: `/order/status/${data.id}`,
- method: 'get',
- params: data.datas
- });
- };
- /**
- * @description 修改备注信息
- * @param {Number} param data.id {Number} 订单id
- * @param {String} param data.remark {String} 备注信息
- */
- export function putRemarkData(data) {
- return request({
- url: `order/remark/${data.id}`,
- method: 'put',
- data: data.remark
- });
- };
- /**
- * @description 修改充值备注信息
- * @param {Number} param data.id {Number} 订单id
- * @param {String} param data.remark {String} 备注信息
- */
- export function putRechargeRemarkData(data) {
- return request({
- url: `store/recharge/remark/${data.id}`,
- method: 'put',
- data: data.remark
- });
- };
- /**
- * @description 修改会员备注信息
- * @param {Number} param data.id {Number} 订单id
- * @param {String} param data.remark {String} 备注信息
- */
- export function putVipRemarkData(data) {
- return request({
- url: `store/vip/remark/${data.id}`,
- method: 'put',
- data: data.remark
- });
- };
- /**
- * @description 子订单列表---拆单
- * @param {Object} param data {Object} 传值参数
- */
- export function splitOrderList(id) {
- return request({
- url: `order/split_order/${id}`,
- method: 'get'
- })
- };
- /**
- * @description 售后订单
- * @param {Object} param data {Object} 传值参数
- */
- export function orderRefundList(data) {
- return request({
- url: 'refund/list',
- method: 'get',
- params: data
- })
- };
- /**
- * @description 获取退款表单数据
- * @param {Number} param id {Number} 订单id
- */
- export function getRefundFrom(id) {
- return request({
- url: `/order/refund/${id}`,
- method: 'get'
- });
- };
- /**
- * @description 获取不退款表单数据
- * @param {Number} param id {Number} 订单id
- */
- export function getnoRefund(id) {
- return request({
- url: `/order/no_refund/${id}`,
- method: 'get'
- });
- };
- /**
- * @description 获取退积分表单
- * @param {Number} param id {Number} 订单id
- */
- export function refundIntegral(id) {
- return request({
- url: `/order/refund_integral/${id}`,
- method: 'get'
- });
- };
- /**
- * @description 导出
- */
- export function orderExport(data,type) {
- return request({
- url: `store/order/export/${type}`,
- method: 'post',
- data
- });
- }
- /**
- *门店流水-获取列表
- */
- export function storeFinanceInfo(data) {
- return request({
- url: 'store/finance_flow/list',
- method: 'get',
- params:data
- });
- }
- /**
- *门店流水--备注
- */
- export function storeFinanceMarkApi(id,data) {
- return request({
- url: `store/finance_flow/mark/${id}`,
- method: 'put',
- params:data
- });
- }
- /**
- *门店流水--获取账单记录列表
- */
- export function storeFfundRecordApi(data) {
- return request({
- url: `store/finance_flow/fund_record`,
- method: 'get',
- params:data
- });
- }
- /**
- *门店流水--账单记录列表-账单详情
- */
- export function storeFfundRecordInfoApi(data) {
- return request({
- url: `store/finance_flow/fund_record_info`,
- method: 'get',
- params:data
- });
- }
- /**
- *门店流水--账单记录列表-账单下载
- */
- export function exportfundRecordApi(data) {
- return request({
- url: `/export/storeFinanceRecord`,
- method: 'get',
- params:data
- });
- }
- /**
- *转账申请-申请列表
- */
- export function storeExtractInfo(data) {
- return request({
- url: '/store/extract/list',
- method: 'get',
- params:data
- });
- }
- /**
- *转账申请-备注
- */
- export function storeExtractMarkApi(id,data) {
- return request({
- url: `store/extract/mark/${id}`,
- method: 'post',
- data
-
- });
- }
- /**
- *转账申请-审核
- */
- export function storeExtractVerifyApi(id,data) {
- return request({
- url: `store/extract/verify/${id}`,
- method: 'post',
- data
-
- });
- }
- /**
- *转账申请-转账
- */
- export function storepaying(id) {
- return request({
- url: `store/extract/transfer/${id}`,
- method: 'get'
-
- });
- }
- /**
- *转账申请-设置
- */
- export function headerListApi (data) {
- return request({
- url: 'store/finance/header_basics',
- method: 'get',
- params: data
- });
- }
- /**
- *转账申请-设置-表单
- */
- export function dataFromApi (data,url) {
- return request({
- url: url,
- // url: '/setting/config/edit_basics',
- method: 'get',
- params: data
- });
- }
- /**
- *门店列表-获取列表数据
- */
- export function storeListApi (data) {
- return request({
- url: 'store/store',
- method: 'get',
- params: data
- });
- }
- /**
- * @description 门店列表 -- 门店修改信息;
- */
- export function storeGetInfoApi (id) {
- return request({
- url: `store/store/get_info/${id}`,
- method: 'get'
- });
- }
- /**
- * @description 门店设置 获取省市区街道
- */
- export function cityApi (data) {
- return request({
- url: 'city',
- method: 'get',
- params: data
- });
- }
- /**
- * @description 门店设置 获取当前登录门店信息
- */
- export function storeUpdateApi (id,data) {
- return request({
- url: `store/store/${id}`,
- method: 'post',
- data
- });
- }
- /**
- * @description 门店设置 获取地图key
- */
- export function keyApi () {
- return request({
- url: 'store/store/address',
- method: 'get'
- });
- }
- /**
- * 店设置 进入门店
- */
- export function storeLogin (id) {
- return request({
- url: `store/store/login/${id}`,
- method: 'get'
- });
- }
- /**
- * 门店设置 修改营业状态
- */
- export function storeSetShowApi (id,type) {
- return request({
- url: `store/store/set_show/${id}/${type}`,
- method: 'put'
- });
- }
- /**
- 门店订单 分配
- */
- export function storeShareApi (data) {
- return request({
- url: `store/share/order`,
- method: 'post',
- params: data
- });
- }
- export function headerApi (data) {
- return request({
- url: 'store/home/header',
- method: 'get',
- params:data
- });
- }
- export function orderCharts (data) {
- return request({
- url: 'store/home/orderChart',
- method: 'get',
- params: data
- });
- }
- export function storeApi (data) {
- return request({
- url: 'store/home/store',
- method: 'get',
- params: data
- });
- }
- export function operateApi (data) {
- return request({
- url: 'store/home/operate',
- method: 'get',
- params: data
- });
- }
- export function resetApi (id) {
- return request({
- url: `store/store/reset_admin/${id}`,
- method: 'get'
- });
- }
- export function exportTableList (id,keyword,data) {
- return request({
- url: `export/storeFlowExport?store_id=${id}&keyword=${keyword}&data=${data}`,
- method: 'get'
- });
- }
- //分类列表
- export function storeCategory (data) {
- return request({
- url: `/store/category`,
- params: data,
- method: 'get'
- });
- }
- //添加、编辑表单
- export function categoryCreate (id) {
- return request({
- url: `/store/category/create/${id}`,
- method: 'get'
- });
- }
- //树形列表
- export function categoryTree (type) {
- return request({
- url: `/store/category/tree/${type}`,
- method: 'get'
- });
- }
- //修改状态
- export function categorySetShow (data) {
- return request({
- url: `/store/category/set_show/${data.id}/${data.is_show}`,
- method: 'PUT'
- });
- }
- //门店分类搜索列表
- export function cascaderList (type) {
- return request({
- url: `store/category/cascader_list/${type}`,
- method: 'get'
- });
- }
- //获取部门列表
- export function getDepartmentList () {
- return request({
- url: `work/department`,
- method: 'get'
- });
- }
- //编辑部门
- export function editDepartment(data) {
- return request({
- url: `work/editDepartment`,
- method: 'post',
- data
- });
- }
- //添加部门
- export function addDepartment(data) {
- return request({
- url: `work/addDepartment`,
- method: 'post',
- data
- });
- }
- //删除部门
- export function delDepartment(data) {
- return request({
- url: `work/deleteDepartment`,
- method: 'post',
- data
- });
- }
- //考勤组列表
- export function checkGroupList(data) {
- return request({
- url: `work/checkGroup`,
- method: 'post',
- data
- });
- }
- //员工列表
- export function getYgList(data) {
- return request({
- url: `work/member`,
- method: 'get',
- params:data
- })
- }
- //添加员工
- export function addYg(data) {
- return request({
- url: `work/add`,
- method: 'post',
- data
- })
- }
- //删除员工
- export function delYg(data) {
- return request({
- url: `work/delete`,
- method: 'post',
- data
- })
- }
- // 编辑员工
- export function editYg(data) {
- return request({
- url: `work/edit`,
- method: 'post',
- data
- })
- }
- //打卡规则列表
- export function checkRuleList(data) {
- return request({
- url: `work/checkRule`,
- method: 'post',
- data
- })
- }
- //添加打卡规则
- export function addCheckRule(data) {
- return request({
- url: `work/addCheckRule`,
- method: 'post',
- data
- })
- }
- //班次列表
- export function getClasses(data) {
- return request({
- url: `work/checkClasses`,
- method: 'get',
- params: data
- })
- }
|