初始上传
This commit is contained in:
24
addon/cashier/source/os/api/address.js
Executable file
24
addon/cashier/source/os/api/address.js
Executable file
@@ -0,0 +1,24 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取地址数据
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getAreaList(params) {
|
||||
return request.post('/cashier/storeapi/address/arealist', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过经纬度查询地址信息(地址名称)
|
||||
*/
|
||||
export function getTranAddressInfo(position) {
|
||||
return request.post('/cashier/storeapi/address/tranaddressinfo', {data: {latlng: position}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过地址名称查询详细地址信息(经纬度)
|
||||
* @param {Object} name
|
||||
*/
|
||||
export function getAddressByName(name) {
|
||||
return request.post('/cashier/storeapi/address/getaddressbyname', {data: {address: name}})
|
||||
}
|
||||
9
addon/cashier/source/os/api/card.js
Executable file
9
addon/cashier/source/os/api/card.js
Executable file
@@ -0,0 +1,9 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取卡项列表(分页)
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getCardList(params) {
|
||||
return request.post('/cashier/storeapi/card/page', {data: params})
|
||||
}
|
||||
121
addon/cashier/source/os/api/config.js
Executable file
121
addon/cashier/source/os/api/config.js
Executable file
@@ -0,0 +1,121 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/************************************整体设置+系统权限相关*******************************/
|
||||
/**
|
||||
* 获取收款设置
|
||||
*/
|
||||
export function getCollectMoneyConfig() {
|
||||
return request.post('/cashier/storeapi/cashier/getcashiercollectmoneyconfig')
|
||||
}
|
||||
|
||||
/**
|
||||
* 收款设置
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function setCollectMoneyConfig(params) {
|
||||
return request.post('/cashier/storeapi/cashier/setcashiercollectmoneyconfig', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测页面是否有权限
|
||||
* @param {Object} page
|
||||
*/
|
||||
export function checkPageAuth(page) {
|
||||
return request.post('/cashier/storeapi/store/checkpageauth', {data: {page}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测是否有新版本
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function checkUpdate(params) {
|
||||
return request.post('/cashier/storeapi/appversion/checkupdate', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取插件是否存在
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getAddonIsExist(params) {
|
||||
return request.post('/storeapi/addon/addonisexit')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取默认图
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getDefaultImg(params) {
|
||||
return request.post('/cashier/storeapi/cashier/defaultimg')
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置收银台主题风格配置
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function setThemeConfig(params) {
|
||||
return request.post('/cashier/storeapi/cashier/setThemeConfig', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取收银台主题风格配置
|
||||
*/
|
||||
export function getThemeConfig() {
|
||||
return request.post('/cashier/storeapi/config/getThemeConfig')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取收银台主题风格列表
|
||||
*/
|
||||
export function getThemeList() {
|
||||
return request.post('/cashier/storeapi/cashier/getThemeList')
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置收银台会员搜索方式配置
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function setMemberSearchWayConfig(params) {
|
||||
return request.post('/cashier/storeapi/config/setMemberSearchWayConfig', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取收银台会员搜索方式配置
|
||||
*/
|
||||
export function getMemberSearchWayConfig() {
|
||||
return request.post('/cashier/storeapi/config/getMemberSearchWayConfig')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取收银台订单消息推送-配置
|
||||
*/
|
||||
export function getOrderRemind() {
|
||||
return request.post('/cashier/storeapi/config/orderRemind')
|
||||
}
|
||||
|
||||
/**
|
||||
* 收银台消息推送-绑定门店
|
||||
*/
|
||||
export function pushBind(params) {
|
||||
return request.post('/cashier/storeapi/push/bind',{data:params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 收银台消息推送-更换绑定门店
|
||||
*/
|
||||
export function pushChangeBind(params) {
|
||||
return request.post('/cashier/storeapi/push/changebind',{data:params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 收银台消息推送-下线
|
||||
*/
|
||||
export function pushOffline() {
|
||||
return request.post('/cashier/storeapi/push/offline',{data:params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取收银台订单消息推送-服务状态
|
||||
*/
|
||||
export function getPushStatus() {
|
||||
return request.post('/cashier/storeapi/push/status')
|
||||
}
|
||||
41
addon/cashier/source/os/api/deliver.js
Executable file
41
addon/cashier/source/os/api/deliver.js
Executable file
@@ -0,0 +1,41 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取配送员列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getDeliverList(params) {
|
||||
return request.post('/cashier/storeapi/store/deliverlists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配送员详情
|
||||
* @param {Object} deliver_id
|
||||
*/
|
||||
export function getDeliverInfo(deliver_id) {
|
||||
return request.post('/cashier/storeapi/store/deliverinfo', {data: {deliver_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加配送员
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addDeliver(params) {
|
||||
return request.post('/cashier/storeapi/store/adddeliver', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑配送员
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editDeliver(params) {
|
||||
return request.post('/cashier/storeapi/store/editdeliver', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除配送员
|
||||
* @param {Object} deliver_id
|
||||
*/
|
||||
export function deleteDeliver(deliver_id) {
|
||||
return request.post('/cashier/storeapi/store/deletedeliver', {data: {deliver_id}})
|
||||
}
|
||||
124
addon/cashier/source/os/api/goods.js
Executable file
124
addon/cashier/source/os/api/goods.js
Executable file
@@ -0,0 +1,124 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 商品列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getGoodsList(params) {
|
||||
return request.post('/cashier/storeapi/goods/page', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品详情
|
||||
* @param {Object} goods_id
|
||||
*/
|
||||
export function getGoodsDetail(goods_id) {
|
||||
return request.post('/cashier/storeapi/goods/detail', {data: {goods_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑商品
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editGoods(params) {
|
||||
return request.post('/cashier/storeapi/goods/editgoods', {data: params})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 编辑商品
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function setGoodsLocalRestrictions(params) {
|
||||
return request.post('/cashier/storeapi/goods/setGoodsLocalRestrictions', {data: params})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过扫码事件查询会员信息
|
||||
* @param {Object} sku_no
|
||||
*/
|
||||
export function getGoodsInfoByCode(sku_no) {
|
||||
return request.post('/cashier/storeapi/goods/skuinfo', {data: {sku_no}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置商品状态
|
||||
* @param {Object} params
|
||||
*{ goods_id: arr.toString(), status: status}
|
||||
*/
|
||||
export function setGoodsStatus(params) {
|
||||
return request.post('/cashier/storeapi/goods/setstatus', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品分类
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getGoodsCategory(params) {
|
||||
return request.post('/cashier/storeapi/goods/category', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品分类[库存]
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getManageGoodsCategory(params = {}) {
|
||||
return request.post('/stock/storeapi/manage/getGoodsCategory', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目分类
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getServiceCategory(params) {
|
||||
return request.post('/cashier/storeapi/service/category', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getServiceList(params) {
|
||||
return request.post('/cashier/storeapi/service/page', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品项目多规格规格数据
|
||||
* @param {Object} goods_id
|
||||
*/
|
||||
export function getGoodsSkuList(goods_id) {
|
||||
return request.post('/cashier/storeapi/goods/skulist', {data: {goods_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电子秤信息
|
||||
*/
|
||||
export function getElectronicScaleInformation() {
|
||||
return request.post('/scale/storeapi/scale/cashierscale')
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品搜索条件
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getGoodsSceen(params = {}) {
|
||||
return request.post('/cashier/storeapi/goods/screen', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 规格选择
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getSkuListBySelect(params = {}) {
|
||||
return request.post('/cashier/storeapi/goods/getSkuListBySelect', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出打印价格标签数据
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function exportPrintPriceTagData(params = {}) {
|
||||
return request.post('/cashier/storeapi/goods/exportPrintPriceTagData', {data: params})
|
||||
}
|
||||
|
||||
26
addon/cashier/source/os/api/login.js
Executable file
26
addon/cashier/source/os/api/login.js
Executable file
@@ -0,0 +1,26 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取验证码
|
||||
* @param captcha_id
|
||||
* @returns {*}
|
||||
*/
|
||||
export function getCaptcha(captcha_id) {
|
||||
return request.post('/storeapi/captcha/captcha', {data: {captcha_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function login(params) {
|
||||
return request.post('/cashier/storeapi/login/login', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改密码
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function modifyPassword(params) {
|
||||
return request.post('/cashier/storeapi/user/modifypassword', {data: params})
|
||||
}
|
||||
48
addon/cashier/source/os/api/marketing.js
Executable file
48
addon/cashier/source/os/api/marketing.js
Executable file
@@ -0,0 +1,48 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/************************************优惠券*******************************/
|
||||
/**
|
||||
* 优惠券详情
|
||||
* @param {Object} coupon_type_id
|
||||
*/
|
||||
export function getCouponDetail(coupon_type_id) {
|
||||
return request.post('/coupon/storeapi/coupon/detail', {data: {coupon_type_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 优惠券详情领取记录
|
||||
* @param {Object} coupon_type_id
|
||||
*/
|
||||
export function getReceiveCouponPageList(coupon_type_id) {
|
||||
return request.post('/coupon/storeapi/membercoupon/getReceiveCouponPageList', {data: {coupon_type_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增优惠券
|
||||
*/
|
||||
export function addCoupon(params) {
|
||||
return request.post('/coupon/storeapi/coupon/add', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑优惠券
|
||||
*/
|
||||
export function editCoupon(params) {
|
||||
return request.post('/coupon/storeapi/coupon/edit', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭优惠券
|
||||
* @param {Object} coupon_type_id
|
||||
*/
|
||||
export function closeCoupon(coupon_type_id) {
|
||||
return request.post('/coupon/storeapi/coupon/close', {data: {coupon_type_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除优惠券
|
||||
* @param {Object} coupon_type_id
|
||||
*/
|
||||
export function deleteCoupon(coupon_type_id) {
|
||||
return request.post('/coupon/storeapi/coupon/delete', {data: {coupon_type_id}})
|
||||
}
|
||||
138
addon/cashier/source/os/api/member.js
Executable file
138
addon/cashier/source/os/api/member.js
Executable file
@@ -0,0 +1,138 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取会员信息
|
||||
* @param {Object} member_id
|
||||
*/
|
||||
export function getMemberInfoById(member_id) {
|
||||
return request.post('/cashier/storeapi/member/info', {data: {member_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员信息(通过search_text)
|
||||
* @param params
|
||||
* @returns {*}
|
||||
*/
|
||||
export function getMemberInfoBySearchMember(params) {
|
||||
return request.post('/cashier/storeapi/member/searchmember', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getMemberList(params) {
|
||||
return request.post('/cashier/storeapi/member/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员等级
|
||||
*/
|
||||
export function getMemberLevelList() {
|
||||
return request.post('/cashier/storeapi/memberlevel/lists')
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加会员
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addMember(params) {
|
||||
return request.post('/cashier/storeapi/member/addmember', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑会员
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editMember(params) {
|
||||
return request.post('/cashier/storeapi/member/editmember', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员卡包列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getMemberCardList(params) {
|
||||
return request.post('/cardservice/storeapi/membercard/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员卡包详情
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getMemberCardDetail(params) {
|
||||
return request.post('/cardservice/storeapi/membercard/detail', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取可发放优惠券列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getCouponTypeList(params) {
|
||||
return request.post('/coupon/storeapi/coupon/getStoreCouponTypeList', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 发放优惠券
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function sendMemberCoupon(params) {
|
||||
return request.post('/cashier/storeapi/member/sendCoupon', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调整会员积分
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function modifyMemberPoint(params) {
|
||||
return request.post('/cashier/storeapi/member/modifypoint', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调整会员余额
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function modifyMemberBalance(params) {
|
||||
return request.post('/cashier/storeapi/member/modifybalance', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调整会员成长值
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function modifyMemberGrowth(params) {
|
||||
return request.post('/cashier/storeapi/member/modifygrowth', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 办理会员卡
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function applyingMembershipCard(params) {
|
||||
return request.post('/cashier/storeapi/member/handleMember', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送短信验证码
|
||||
* @param {Object} member_id
|
||||
*/
|
||||
export function sendMemberVerifyCode(member_id) {
|
||||
return request.post('/cashier/storeapi/member/memberverifycode', {data: {member_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证短信验证码
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function checkMemberVerifyCode(params) {
|
||||
return request.post('/cashier/storeapi/member/checksmscode', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据手机号查询会员,支持模糊
|
||||
* @param params
|
||||
* @returns {*}
|
||||
*/
|
||||
export function searchMemberByMobile(params) {
|
||||
return request.post('/cashier/storeapi/member/searchMemberByMobile', {data: params})
|
||||
}
|
||||
55
addon/cashier/source/os/api/oder_pay.js
Executable file
55
addon/cashier/source/os/api/oder_pay.js
Executable file
@@ -0,0 +1,55 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 支付确认
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function cashierConfirm(params) {
|
||||
return request.post('/cashier/storeapi/cashierpay/confirm', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建支付单
|
||||
* @param {Object} out_trade_no
|
||||
*/
|
||||
export function addPayCashierPay(out_trade_no) {
|
||||
return request.post('/cashier/storeapi/cashierpay/createpay', {data: {out_trade_no}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付二维码
|
||||
* @param {Object} out_trade_no
|
||||
*/
|
||||
export function getPayQrcode(out_trade_no) {
|
||||
return request.post('/cashier/storeapi/cashierpay/payqrcode', {data: {out_trade_no}})
|
||||
}
|
||||
/**
|
||||
* 获取扫码枪配置
|
||||
* */
|
||||
export function getPayType() {
|
||||
return request.post('/cashier/storeapi/Cashierpay/payType')
|
||||
}
|
||||
|
||||
/**
|
||||
* 扫码枪支付
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function authCodepay(params) {
|
||||
return request.post('/pay/pay/authCodepay', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付信息
|
||||
* @param {Object} out_trade_no
|
||||
*/
|
||||
export function getCashierPayInfo(out_trade_no) {
|
||||
return request.post('/cashier/storeapi/cashierpay/info', {data: {out_trade_no}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 账号余额支付确认
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function checkPaymentCode(params) {
|
||||
return request.post('/cashier/storeapi/member/checkpaymentcode', {data: params})
|
||||
}
|
||||
129
addon/cashier/source/os/api/order.js
Executable file
129
addon/cashier/source/os/api/order.js
Executable file
@@ -0,0 +1,129 @@
|
||||
import request from '@/common/js/http'
|
||||
import util from '@/common/js/util'
|
||||
|
||||
/**
|
||||
* 订单列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getOrderList(params) {
|
||||
return request.post('/cashier/storeapi/cashierorder/lists', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单详情
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getOrderDetail(params) {
|
||||
return request.post('/cashier/storeapi/cashierorder/detail', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付信息
|
||||
* @param {Object} order_id
|
||||
*/
|
||||
export function getOrderInfoById(order_id) {
|
||||
return request.post('/cashier/storeapi/order/info', {
|
||||
data: {order_id}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单调价
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderAdjustPrice(params) {
|
||||
return request.post('/cashier/storeapi/cashierorder/adjustPrice', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单备注
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderRemark(params) {
|
||||
return request.post('/cashier/storeapi/cashierorder/orderRemark', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 提货
|
||||
* @param {Object} order_id
|
||||
*/
|
||||
export function orderStoreDelivery(order_id) {
|
||||
return request.post('/cashier/storeapi/order/storedelivery', {
|
||||
data: {order_id}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 本地配送
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderLocalDelivery(params) {
|
||||
return request.post('/cashier/storeapi/order/localdelivery', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单关闭
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderClose(params) {
|
||||
return request.post('/cashier/storeapi/order/close', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印小票
|
||||
* @param order_id
|
||||
* @returns {*}
|
||||
*/
|
||||
export function orderPrintTicket(order_id) {
|
||||
let params = {order_id:order_id};
|
||||
//追加打印机数据
|
||||
let local_config = util.getLocalConfig();
|
||||
params.printer_ids = local_config.printerSelectType == 'all' ? 'all' : local_config.printerSelectIds.toString();
|
||||
return request.post('/cashier/storeapi/cashierorder/printticket', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取物流公司
|
||||
*/
|
||||
export function getExpressCompanyList() {
|
||||
return request.post('/cashier/storeapi/order/expresscompany')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配送员列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getOrderDeliverList(params) {
|
||||
return request.post('/cashier/storeapi/order/deliverlist', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单删除
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderExpressDelivery(params) {
|
||||
return request.post('/cashier/storeapi/order/expressdelivery', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取筛选条件
|
||||
*/
|
||||
export function getorderCondition() {
|
||||
return request.post('/cashier/storeapi/order/condition')
|
||||
}
|
||||
41
addon/cashier/source/os/api/order_create.js
Executable file
41
addon/cashier/source/os/api/order_create.js
Executable file
@@ -0,0 +1,41 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 开单(计算)
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function calculate(params) {
|
||||
return request.post('/cashier/storeapi/cashierordercreate/calculate', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 开单(订单创建)
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function create(params) {
|
||||
return request.post('/cashier/storeapi/cashierordercreate/create', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 售卡(计算)
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function cardCalculate(params) {
|
||||
return request.post('/cashier/storeapi/cashierordercreate/cardcalculate', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 售卡(订单创建)
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function cardCreate(params) {
|
||||
return request.post('/cashier/storeapi/cashierordercreate/cardcreate', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付(计算)
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function payCalculate(params) {
|
||||
return request.post('/cashier/storeapi/cashierpay/paycalculate', {data: params})
|
||||
}
|
||||
89
addon/cashier/source/os/api/order_refund.js
Executable file
89
addon/cashier/source/os/api/order_refund.js
Executable file
@@ -0,0 +1,89 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 订单退款申请数据
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getRefundApplyData(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/getrefundapplydata', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单退款
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderRefund(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/refund', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 转账
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderRefundComplete(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/complete', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getOrderRefundLists(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/lists', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单详情
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getOrderRefundDetail(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/detail', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 同意维权
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderRefundAgree(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/agree', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 拒绝维权
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderRefundRefuse(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/refuse', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 买家退货接收,维权收货
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderRefundReceive(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/receive', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭维权
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function orderRefundClose(params) {
|
||||
return request.post('/cashier/storeapi/cashierorderrefund/close', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
41
addon/cashier/source/os/api/pendorder.js
Executable file
41
addon/cashier/source/os/api/pendorder.js
Executable file
@@ -0,0 +1,41 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 挂单
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addPendOrder(params) {
|
||||
return request.post('/cashier/storeapi/pendorder/add', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 取单
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editPendOrder(params) {
|
||||
return request.post('/cashier/storeapi/pendorder/edit', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改备注
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editPendOrderRemark(params) {
|
||||
return request.post('/cashier/storeapi/pendorder/updateremark', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取挂单
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getPendOrderList(params) {
|
||||
return request.post('/cashier/storeapi/pendorder/page', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除挂单
|
||||
* @param {Object} order_id
|
||||
*/
|
||||
export function deletePendOrder(order_id) {
|
||||
return request.post('/cashier/storeapi/pendorder/delete', {data: {order_id}})
|
||||
}
|
||||
61
addon/cashier/source/os/api/printer.js
Executable file
61
addon/cashier/source/os/api/printer.js
Executable file
@@ -0,0 +1,61 @@
|
||||
import request from '@/common/js/http'
|
||||
import util from '@/common/js/util'
|
||||
|
||||
/**
|
||||
* 获取打印机列表
|
||||
*/
|
||||
export function getPrinterList(params) {
|
||||
return request.post('/printer/storeapi/printer/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取打印机模板
|
||||
*/
|
||||
export function getTemplate() {
|
||||
return request.post('/printer/storeapi/printer/template')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取打印机详情
|
||||
*/
|
||||
export function getPrinterInfo(printer_id) {
|
||||
return request.post('/printer/storeapi/printer/info', {data: {printer_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除打印机
|
||||
*/
|
||||
export function deletePrinter(printer_id) {
|
||||
return request.post('/printer/storeapi/printer/deleteprinter', {data: {printer_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单类型
|
||||
*/
|
||||
export function getOrderType() {
|
||||
return request.post('/printer/storeapi/printer/getordertype')
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑打印机
|
||||
*/
|
||||
export function editPrinter(params) {
|
||||
return request.post('/printer/storeapi/printer/edit', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加打印机
|
||||
*/
|
||||
export function addPrinter(params) {
|
||||
return request.post('/printer/storeapi/printer/add', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印小票
|
||||
*/
|
||||
export function printTicket(params = {}) {
|
||||
//追加打印机数据
|
||||
let local_config = util.getLocalConfig();
|
||||
params.printer_ids = local_config.printerSelectType == 'all' ? 'all' : local_config.printerSelectIds.toString();
|
||||
return request.post('/cashier/storeapi/cashier/printticket', {data: params})
|
||||
}
|
||||
15
addon/cashier/source/os/api/promotion.js
Executable file
15
addon/cashier/source/os/api/promotion.js
Executable file
@@ -0,0 +1,15 @@
|
||||
import request from '@/common/js/http'
|
||||
/**
|
||||
* 获取推广二维码设置
|
||||
*/
|
||||
export function getAddonIsExist() {
|
||||
return request.post('/cashier/storeapi/Config/addonIsExist')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取推广二维码
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getPromotionQrcode(params) {
|
||||
return request.post('/cashier/storeapi/Promotion/getPromotionQrcode', {data: params})
|
||||
}
|
||||
35
addon/cashier/source/os/api/recharge.js
Executable file
35
addon/cashier/source/os/api/recharge.js
Executable file
@@ -0,0 +1,35 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取订单列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getOrderRechargeList(params) {
|
||||
return request.post('/cashier/storeapi/recharge/orderpage', {
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单详情
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getOrderRechargeDetail(params) {
|
||||
return request.post('/cashier/storeapi/recharge/orderdetail', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取充值基本配置
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getRechargeConfig(params) {
|
||||
return request.post('/cashier/storeapi/recharge/activity', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户充值
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addRecharge(params) {
|
||||
return request.post('/cashier/storeapi/cashierordercreate/rechargecreate', {data: params})
|
||||
}
|
||||
112
addon/cashier/source/os/api/reserve.js
Executable file
112
addon/cashier/source/os/api/reserve.js
Executable file
@@ -0,0 +1,112 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取预约配置
|
||||
*/
|
||||
export function getReserveConfig() {
|
||||
return request.post('/cardservice/storeapi/reserve/getConfig')
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存预约配置
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function setReserveConfig(params) {
|
||||
return request.post('/cardservice/storeapi/reserve/setConfig', {data: params})
|
||||
}
|
||||
|
||||
/********************** 预约 ***********************/
|
||||
|
||||
/**
|
||||
* 获取预约状态字典
|
||||
*/
|
||||
export function getReserveStatus() {
|
||||
return request.post('/cardservice/storeapi/reserve/status')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取预约记录(每周)
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getReserveWeekday(params) {
|
||||
return request.post('/cardservice/storeapi/reserve/getweekday', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取预约分页数据
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getReserveLists(params) {
|
||||
return request.post('/cardservice/storeapi/reserve/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取预约项目列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getAppointmentProjectList(params) {
|
||||
return request.post('/cardservice/storeapi/reserve/servicelist', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取员工列表
|
||||
*/
|
||||
export function getEmployeeList() {
|
||||
return request.post('/cardservice/storeapi/reserve/servicer')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取预约详情
|
||||
* @param reserve_id
|
||||
*/
|
||||
export function getReserveDetail(reserve_id) {
|
||||
return request.post('/cardservice/storeapi/reserve/detail', {data: {reserve_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加预约
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addReserve(params) {
|
||||
return request.post('/cardservice/storeapi/reserve/add', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑预约
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editReserve(params) {
|
||||
return request.post('/cardservice/storeapi/reserve/update', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消预约
|
||||
* @param reserve_id
|
||||
*/
|
||||
export function cancelReserve(reserve_id) {
|
||||
return request.post('/cardservice/storeapi/reserve/cancel', {data: reserve_id})
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约到店确认
|
||||
* @param reserve_id
|
||||
*/
|
||||
export function reserveToStore(reserve_id) {
|
||||
return request.post('/cardservice/storeapi/reserve/confirmToStore', {data: {reserve_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约确认
|
||||
* @param reserve_id
|
||||
*/
|
||||
export function reserveConfirm(reserve_id) {
|
||||
return request.post('/cardservice/storeapi/reserve/confirm', {data: {reserve_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约完成
|
||||
* @param reserve_id
|
||||
*/
|
||||
export function reserveComplete(reserve_id) {
|
||||
return request.post('/cardservice/storeapi/reserve/complete', {data: {reserve_id}})
|
||||
}
|
||||
43
addon/cashier/source/os/api/scale.js
Executable file
43
addon/cashier/source/os/api/scale.js
Executable file
@@ -0,0 +1,43 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取电子秤列表
|
||||
*/
|
||||
export function getScaleList(params) {
|
||||
return request.post('/scale/storeapi/scale/page', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电子秤详情
|
||||
*/
|
||||
export function getScaleDetail(params) {
|
||||
return request.post('/scale/storeapi/scale/detail', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电子秤
|
||||
*/
|
||||
export function deleteScale(params) {
|
||||
return request.post('/scale/storeapi/scale/delete', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电子秤品牌
|
||||
*/
|
||||
export function getScaleBrand() {
|
||||
return request.post('/scale/storeapi/scale/scaleBrand')
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑电子秤
|
||||
*/
|
||||
export function editScale(params) {
|
||||
return request.post('/scale/storeapi/scale/edit', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加电子秤
|
||||
*/
|
||||
export function addScale(params) {
|
||||
return request.post('/scale/storeapi/scale/add', {data: params})
|
||||
}
|
||||
67
addon/cashier/source/os/api/settlement.js
Executable file
67
addon/cashier/source/os/api/settlement.js
Executable file
@@ -0,0 +1,67 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取提现设置
|
||||
*/
|
||||
export function getWithdrawConfig() {
|
||||
return request.post('/store/storeapi/store/withdrawconfig')
|
||||
}
|
||||
|
||||
/**
|
||||
* 申请提现
|
||||
* @param {Object} money
|
||||
*/
|
||||
export function applyWithdraw(money) {
|
||||
return request.post('/store/storeapi/withdraw/apply', {data: {money}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 提现详情
|
||||
* @param {Object} withdraw_id
|
||||
*/
|
||||
export function withdrawDetail(withdraw_id) {
|
||||
return request.post('/store/storeapi/withdraw/detail', {data: {withdraw_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取提现方式
|
||||
*/
|
||||
export function getWithdrawScreen() {
|
||||
return request.post('/store/storeapi/withdraw/screen')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取提现列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getWithdrawPage(params) {
|
||||
return request.post('/store/storeapi/withdraw/page', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户筛选条件
|
||||
*/
|
||||
export function getAccountScreen() {
|
||||
return request.post('/store/storeapi/account/screen')
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户导出
|
||||
*/
|
||||
export function accountExport(params) {
|
||||
return request.post('/store/storeapi/account/export', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否可以新版本提现
|
||||
*/
|
||||
export function withdrawConfig() {
|
||||
return request.post('/wechatpay/api/transfer/getWithdrawConfig')
|
||||
}
|
||||
|
||||
/**
|
||||
* 提现二维码
|
||||
*/
|
||||
export function transferCode(params) {
|
||||
return request.post('/store/storeapi/withdraw/getTransferCode', {data: params})
|
||||
}
|
||||
22
addon/cashier/source/os/api/shifts.js
Executable file
22
addon/cashier/source/os/api/shifts.js
Executable file
@@ -0,0 +1,22 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 收银交班
|
||||
*/
|
||||
export function changeShifts(params = {}) {
|
||||
return request.post('/cashier/storeapi/cashier/changeshifts', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 数量统计
|
||||
*/
|
||||
export function getShiftsData() {
|
||||
return request.post('/cashier/storeapi/cashier/shiftsdata')
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出交班记录
|
||||
*/
|
||||
export function saleGoodsExport(params) {
|
||||
return request.post('/cashier/storeapi/cashier/changeShiftsSaleGoodsExport', {data: params})
|
||||
}
|
||||
29
addon/cashier/source/os/api/stat.js
Executable file
29
addon/cashier/source/os/api/stat.js
Executable file
@@ -0,0 +1,29 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 营业数据统计相关
|
||||
*/
|
||||
|
||||
/**
|
||||
* 获取整体统计
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getStatTotal(params) {
|
||||
return request.post('/cashier/storeapi/stat/statTotal', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当日统计
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getStatDay(params) {
|
||||
return request.post('/cashier/storeapi/stat/dayStatData', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当日统计
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getStatHour(params) {
|
||||
return request.post('/cashier/storeapi/stat/hourStatData', {data: params})
|
||||
}
|
||||
292
addon/cashier/source/os/api/stock.js
Executable file
292
addon/cashier/source/os/api/stock.js
Executable file
@@ -0,0 +1,292 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取库存商品列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getStockGoodsList(params) {
|
||||
return request.post('/stock/storeapi/manage/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品的库存流水
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getStockGoodsRecords(params) {
|
||||
return request.post('/stock/storeapi/manage/records', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单据类型
|
||||
*/
|
||||
export function getDocumentType() {
|
||||
return request.post('/stock/storeapi/manage/getDocumentType')
|
||||
}
|
||||
|
||||
/************************** 库存通用接口 ********************************/
|
||||
|
||||
/**
|
||||
* 出入库单据审核通过
|
||||
* @param document_id
|
||||
*/
|
||||
export function storageAgree(document_id) {
|
||||
return request.post('/stock/storeapi/storage/agree', {data: {document_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 入库单据审核拒绝
|
||||
* @param {Object} params 需要包括拒绝理由
|
||||
*/
|
||||
export function storageRefuse(params) {
|
||||
return request.post('/stock/storeapi/storage/refuse', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 出入库单据删除
|
||||
* @param {Object} document_id
|
||||
*/
|
||||
export function storageDelete(document_id) {
|
||||
return request.post('/stock/storeapi/storage/delete', {data: {document_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 库存回车查询单条商品
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getSkuListForStock(params) {
|
||||
return request.post('/stock/storeapi/manage/getskulist', {data: params})
|
||||
}
|
||||
|
||||
/************************** 入库接口 ********************************/
|
||||
/**
|
||||
* 获取入库单列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getStorageLists(params) {
|
||||
return request.post('/stock/storeapi/storage/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库单详情
|
||||
* @param document_id
|
||||
*/
|
||||
export function getStorageDetail(document_id) {
|
||||
return request.post('/stock/storeapi/storage/detail', {data: {document_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库单号
|
||||
*/
|
||||
export function getStorageDocumentNo() {
|
||||
return request.post('/stock/storeapi/storage/getDocumentNo')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库单编辑时详情
|
||||
* @param document_id
|
||||
*/
|
||||
export function getStorageDetailInEdit(document_id) {
|
||||
return request.post('/stock/storeapi/storage/editData', {data: {document_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 入库单编辑新增
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editStorage(params) {
|
||||
return request.post('/stock/storeapi/storage/stockin', {data: params})
|
||||
}
|
||||
|
||||
/************************** 出库接口 ********************************/
|
||||
|
||||
/**
|
||||
* 获取出库单列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getWastageLists(params) {
|
||||
return request.post('/stock/storeapi/wastage/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库单详情
|
||||
* @param document_id
|
||||
*/
|
||||
export function getWastageDetail(document_id) {
|
||||
return request.post('/stock/storeapi/wastage/detail', {data: {document_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库单号
|
||||
*/
|
||||
export function getWastageDocumentNo() {
|
||||
return request.post('/stock/storeapi/wastage/getDocumentNo')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库单编辑时详情
|
||||
* @param document_id
|
||||
*/
|
||||
export function getWastageDetailInEdit(document_id) {
|
||||
return request.post('/stock/storeapi/wastage/editData', {data: {document_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 出库单编辑新增
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editWastage(params) {
|
||||
return request.post('/stock/storeapi/wastage/stockout', {data: params})
|
||||
}
|
||||
|
||||
/************************** 调拨接口 ********************************/
|
||||
|
||||
/**
|
||||
* 获取调拨单列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getAllocateList(params) {
|
||||
return request.post('/stock/storeapi/allocate/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调拨单详情
|
||||
* @param {Object} allot_id
|
||||
*/
|
||||
export function getAllocateDetail(allot_id) {
|
||||
return request.post('/stock/storeapi/allocate/detail', {data: {allot_id: allot_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调拨单号
|
||||
*/
|
||||
export function getAllotNo() {
|
||||
return request.post('/stock/storeapi/allocate/getAllotNo')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调拨单编辑时详情
|
||||
* @param allot_id
|
||||
*/
|
||||
export function getAllocateDetailInEdit(allot_id) {
|
||||
return request.post('/stock/storeapi/allocate/editData', {data: {allot_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调拨门店列表(库存查询门店)
|
||||
*/
|
||||
export function getStoreLists() {
|
||||
return request.post('/stock/storeapi/store/lists')
|
||||
}
|
||||
|
||||
/**
|
||||
* 调拨单新增
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addAllocate(params) {
|
||||
return request.post('/stock/storeapi/allocate/addallocate', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调拨单编辑
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editAllocate(params) {
|
||||
return request.post('/stock/storeapi/allocate/editAllocate', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调拨单据删除
|
||||
* @param {Object} allot_id
|
||||
*/
|
||||
export function allocateDelete(allot_id) {
|
||||
return request.post('/stock/storeapi/allocate/delete', {data: {allot_id: allot_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调拨单据审核通过
|
||||
* @param {Object} allot_id
|
||||
*/
|
||||
export function allocateAgree(allot_id) {
|
||||
return request.post('/stock/storeapi/allocate/agree', {data: {allot_id: allot_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调拨单据审核拒绝
|
||||
* @param {Object} params 需要包括拒绝理由
|
||||
*/
|
||||
export function allocateRefuse(params) {
|
||||
return request.post('/stock/storeapi/allocate/refuse', {data: params})
|
||||
}
|
||||
|
||||
/************************** 库存盘点接口 ********************************/
|
||||
|
||||
/**
|
||||
* 获取盘点单列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getInventoryList(params) {
|
||||
return request.post('/stock/storeapi/check/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取盘点单详情
|
||||
* @param {Object} inventory_id
|
||||
*/
|
||||
export function getInventoryDetail(inventory_id) {
|
||||
return request.post('/stock/storeapi/check/detail', {data: {inventory_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取盘点单号
|
||||
*/
|
||||
export function getInventoryNo() {
|
||||
return request.post('/stock/storeapi/Check/getInventoryNo')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取盘点单编辑时详情
|
||||
* @param inventory_id
|
||||
*/
|
||||
export function getInventoryDetailInEdit(inventory_id) {
|
||||
return request.post('/stock/storeapi/check/editData', {data: {inventory_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 盘点单新增
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addInventory(params) {
|
||||
return request.post('/stock/storeapi/check/add', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 盘点单编辑
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editInventory(params) {
|
||||
return request.post('/stock/storeapi/check/edit', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 盘点单据删除
|
||||
* @param {Object} inventory_id
|
||||
*/
|
||||
export function inventoryDelete(inventory_id) {
|
||||
return request.post('stock/storeapi/check/delete', {data: {inventory_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 盘点单据审核通过
|
||||
* @param {Object} inventory_id
|
||||
*/
|
||||
export function inventoryAgree(inventory_id) {
|
||||
return request.post('/stock/storeapi/check/agree', {data: {inventory_id}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 盘点单据审核拒绝
|
||||
* @param {Object} params 需要包括拒绝理由
|
||||
*/
|
||||
export function inventoryRefuse(params) {
|
||||
return request.post('/stock/storeapi/check/refuse', {data: params})
|
||||
}
|
||||
37
addon/cashier/source/os/api/store.js
Executable file
37
addon/cashier/source/os/api/store.js
Executable file
@@ -0,0 +1,37 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取门店信息(当前)
|
||||
*/
|
||||
export function getStoreInfo() {
|
||||
return request.post('/cashier/storeapi/store/info')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取门店列表(当前用户有权限的)
|
||||
*/
|
||||
export function getStoreList() {
|
||||
return request.post('/cashier/storeapi/store/lists')
|
||||
}
|
||||
|
||||
/**
|
||||
* 门店编辑
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editStore(params) {
|
||||
return request.post('/store/storeapi/store/edit', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有门店标签
|
||||
*/
|
||||
export function getAllStoreLabel() {
|
||||
return request.post('/store/storeapi/store/label')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有的门店分类
|
||||
*/
|
||||
export function getAllStoreCategory() {
|
||||
return request.post('/store/storeapi/store/category')
|
||||
}
|
||||
57
addon/cashier/source/os/api/user.js
Executable file
57
addon/cashier/source/os/api/user.js
Executable file
@@ -0,0 +1,57 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取员工列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getUserList(params) {
|
||||
return request.post('/cashier/storeapi/user/lists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取员工详情
|
||||
* @param {Object} uid
|
||||
*/
|
||||
export function getUserDetail(uid) {
|
||||
var params = {};
|
||||
if (uid) params.uid = uid;
|
||||
return request.post('/cashier/storeapi/user/userinfo', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有用户组(角色)
|
||||
*/
|
||||
export function getAllGroups() {
|
||||
return request.post('/cashier/storeapi/user/group')
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加员工
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function addUser(params) {
|
||||
return request.post('/cashier/storeapi/user/adduser', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑员工
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function editUser(params) {
|
||||
return request.post('/cashier/storeapi/user/edituser', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工
|
||||
* @param {Object} uid
|
||||
*/
|
||||
export function deleteUser(uid) {
|
||||
return request.post('/cashier/storeapi/user/deleteuser', {data: {uid}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取门店用户权限
|
||||
*/
|
||||
export function getUserGroupAuth() {
|
||||
return request.post('/cashier/storeapi/user/usergroupauth')
|
||||
}
|
||||
33
addon/cashier/source/os/api/verify.js
Executable file
33
addon/cashier/source/os/api/verify.js
Executable file
@@ -0,0 +1,33 @@
|
||||
import request from '@/common/js/http'
|
||||
|
||||
/**
|
||||
* 获取核销码信息
|
||||
* @param {Object} code
|
||||
*/
|
||||
export function getVerifyInfo(code) {
|
||||
return request.post('/cashier/storeapi/verify/info', {data: {code: code}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 核销操作
|
||||
* @param {Object} code
|
||||
*/
|
||||
export function verifyCode(code) {
|
||||
return request.post('/cashier/storeapi/verify/verify', {data: {verify_code: code}})
|
||||
}
|
||||
|
||||
/**
|
||||
* 核销记录列表
|
||||
* @param {Object} params
|
||||
*/
|
||||
export function getVerifyRecordList(params) {
|
||||
return request.post('/cashier/storeapi/verify/recordlists', {data: params})
|
||||
}
|
||||
|
||||
/**
|
||||
* 核销记录列表
|
||||
* @param {Object} id
|
||||
*/
|
||||
export function getVerifyRecordDetail(id) {
|
||||
return request.post('/cashier/storeapi/verify/recordsdetail', {data: {id: id}})
|
||||
}
|
||||
Reference in New Issue
Block a user