初始上传
This commit is contained in:
292
addon/cashier/config/cashier_auth.php
Executable file
292
addon/cashier/config/cashier_auth.php
Executable file
@@ -0,0 +1,292 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
return [
|
||||
[
|
||||
'name' => 'cashier',
|
||||
'title' => '收银',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'billing',
|
||||
'title' => '开单',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/billing/index',
|
||||
],
|
||||
[
|
||||
'name' => 'buycard',
|
||||
'title' => '售卡',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/buycard/index',
|
||||
],
|
||||
[
|
||||
'name' => 'recharge',
|
||||
'title' => '充值',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/recharge/index',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'goods_manage',
|
||||
'title' => '商品管理',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'goods_list',
|
||||
'title' => '查看',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/goods/goodslist',
|
||||
],
|
||||
[
|
||||
'name' => 'goods_set_status',
|
||||
'title' => '上下架',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/goods/setstatus',
|
||||
],
|
||||
[
|
||||
'name' => 'goods_edit',
|
||||
'title' => '库存价格修改',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/goods/editgoods',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'member_manage',
|
||||
'title' => '会员管理',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'member_list',
|
||||
'title' => '查看',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/member/list',
|
||||
],
|
||||
[
|
||||
'name' => 'member_add',
|
||||
'title' => '添加客户',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/member/addmember',
|
||||
],
|
||||
[
|
||||
'name' => 'member_edit',
|
||||
'title' => '客户信息编辑',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/member/editmember',
|
||||
],
|
||||
[
|
||||
'name' => 'member_send_coupon',
|
||||
'title' => '发放优惠券',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/member/sendcoupon',
|
||||
],
|
||||
[
|
||||
'name' => 'member_modify_point',
|
||||
'title' => '调整积分',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/member/modifypoint',
|
||||
],
|
||||
[
|
||||
'name' => 'member_modify_balance',
|
||||
'title' => '调整余额',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/member/modifybalance',
|
||||
],
|
||||
[
|
||||
'name' => 'member_modify_growth',
|
||||
'title' => '调整成长值',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/member/modifygrowth',
|
||||
],
|
||||
[
|
||||
'name' => 'member_handle',
|
||||
'title' => '办理会员',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/member/handlemember',
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'order_manage',
|
||||
'title' => '订单管理',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'order_list',
|
||||
'title' => '查看',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/order/orderlist',
|
||||
],
|
||||
[
|
||||
'name' => 'order_store_delivery',
|
||||
'title' => '订单自提',
|
||||
'type' => 'api',
|
||||
'url' => '/cashier/storeapi/order/storedelivery',
|
||||
],
|
||||
[
|
||||
'name' => 'order_local_delivery',
|
||||
'title' => '同城配送',
|
||||
'type' => 'api',
|
||||
'url' => '/cashier/storeapi/order/localdelivery',
|
||||
],
|
||||
[
|
||||
'name' => 'order_refund',
|
||||
'title' => '退款',
|
||||
'type' => 'api',
|
||||
'url' => '/cashier/storeapi/cashierorderrefund/refund',
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'refund_manage',
|
||||
'title' => '退款维权',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'order_refund_list',
|
||||
'title' => '查看',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/order/orderrefund',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'verify_manage',
|
||||
'title' => '核销',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'verify_index',
|
||||
'title' => '核销台',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/verify/index',
|
||||
],
|
||||
[
|
||||
'name' => 'verify_record',
|
||||
'title' => '核销记录',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/verify/list',
|
||||
],
|
||||
[
|
||||
'name' => 'verify_code_info',
|
||||
'title' => '查询核销码',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/verify/info',
|
||||
],
|
||||
[
|
||||
'name' => 'verify',
|
||||
'title' => '核销',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/verify/verify',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'change_shifts_record',
|
||||
'title' => '交班记录',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'change_shifts_record_list',
|
||||
'title' => '查看',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/index/change_shiftsrecord',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'user_manage',
|
||||
'title' => '员工管理',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'user_list',
|
||||
'title' => '查看',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/user/list',
|
||||
],
|
||||
[
|
||||
'name' => 'user_add',
|
||||
'title' => '添加员工',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/shopapi/user/adduser',
|
||||
],
|
||||
[
|
||||
'name' => 'user_edit',
|
||||
'title' => '编辑员工',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/shopapi/user/edituser',
|
||||
],
|
||||
[
|
||||
'name' => 'user_delete',
|
||||
'title' => '删除员工',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/shopapi/user/deleteuser',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'stat',
|
||||
'title' => '数据',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => []
|
||||
],
|
||||
[
|
||||
'name' => 'config',
|
||||
'title' => '设置',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'collectmoney_config_root',
|
||||
'title' => '收款设置',
|
||||
'type' => '',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'collectmoney_config',
|
||||
'title' => '查看',
|
||||
'type' => 'page',
|
||||
'url' => 'pages/collectmoney/config',
|
||||
],
|
||||
[
|
||||
'name' => 'set_collectmoney_config',
|
||||
'title' => '配置收款设置',
|
||||
'type' => 'api',
|
||||
'url' => 'cashier/storeapi/cashier/setcashiercollectmoneyconfig',
|
||||
],
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'promotion',
|
||||
'title' => '营销',
|
||||
'type' => 'page',
|
||||
'url' => '',
|
||||
'children' => [
|
||||
[
|
||||
'name' => 'coupon_list',
|
||||
'title' => '优惠券',
|
||||
'type' => '',
|
||||
'url' => 'pages/marketing/coupon_list',
|
||||
],
|
||||
]
|
||||
]
|
||||
];
|
||||
66
addon/cashier/config/diy_view.php
Executable file
66
addon/cashier/config/diy_view.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
return [
|
||||
|
||||
// 自定义模板页面类型,格式:[ 'title' => '页面类型名称', 'name' => '页面标识', 'path' => '页面路径', 'value' => '页面数据,json格式' ]
|
||||
'template' => [],
|
||||
|
||||
// 后台自定义组件——装修
|
||||
'util' => [
|
||||
[
|
||||
'name' => 'PaymentQrcode',
|
||||
'title' => '付款码',
|
||||
'type' => 'SYSTEM',
|
||||
'value' => '{"control":true}',
|
||||
'sort' => '10030',
|
||||
'support_diy_view' => 'DIY_VIEW_MEMBER_INDEX',
|
||||
'max_count' => 1,
|
||||
'icon' => 'iconfont iconfukuanma1',
|
||||
],
|
||||
],
|
||||
|
||||
// 自定义页面路径
|
||||
'link' => [
|
||||
// [
|
||||
// 'name' => 'PAYMENT_QRCODE',
|
||||
// 'title' => '付款码',
|
||||
// 'wap_url' => '/pages_tool/store/payment_qrcode',
|
||||
// 'parent' => 'MEMBER',
|
||||
// 'web_url' => '',
|
||||
// 'sort' => 0
|
||||
// ],
|
||||
[
|
||||
'name' => 'PAYMENT_PAY',
|
||||
'title' => '门店支付',
|
||||
'wap_url' => '/pages_tool/store/store_payment',
|
||||
'parent' => 'BASICS_LINK',
|
||||
'web_url' => '',
|
||||
'sort' => 0
|
||||
]
|
||||
],
|
||||
|
||||
// 自定义图标库
|
||||
'icon_library' => [],
|
||||
|
||||
// uni-app 组件,格式:[ 'name' => '组件名称/文件夹名称', 'path' => '文件路径/目录路径' ],多个逗号隔开,自定义组件名称前缀必须是diy-,也可以引用第三方组件
|
||||
'component' => [],
|
||||
|
||||
// uni-app 页面,多个逗号隔开
|
||||
'pages' => [],
|
||||
|
||||
// 模板信息,格式:'title' => '模板名称', 'name' => '模板标识', 'cover' => '模板封面图', 'preview' => '模板预览图', 'desc' => '模板描述'
|
||||
'info' => [],
|
||||
|
||||
// 主题风格配色,格式可以自由定义扩展,【在uni-app中通过:this.themeStyle... 获取定义的颜色字段,例如:this.themeStyle.main_color】
|
||||
'theme' => [],
|
||||
|
||||
// 自定义页面数据,格式:[ 'title' => '页面名称', 'name' => "页面标识", 'value' => [页面数据,json格式] ]
|
||||
'data' => []
|
||||
];
|
||||
62
addon/cashier/config/event.php
Executable file
62
addon/cashier/config/event.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
return [
|
||||
'bind' => [
|
||||
|
||||
],
|
||||
|
||||
'listen' => [
|
||||
'ShowPromotion' => [
|
||||
'addon\cashier\event\ShowPromotion'
|
||||
],
|
||||
'CashierOrderPayNotify' => [
|
||||
'addon\cashier\event\CashierOrderPayNotify'
|
||||
],
|
||||
'TradePayType' => [
|
||||
'addon\cashier\event\TradePayType'
|
||||
],
|
||||
'PayRefund' => [
|
||||
'addon\cashier\event\PayRefund'
|
||||
],
|
||||
'PrinterTemplateType' => [
|
||||
'addon\cashier\event\PrinterTemplateType',
|
||||
],
|
||||
'PrinterHtml' => [
|
||||
'addon\cashier\event\PrinterHtml',
|
||||
],
|
||||
'PrinterContent' => [
|
||||
'addon\cashier\event\PrinterContent',
|
||||
],
|
||||
'GetOrderModel' => [
|
||||
'addon\cashier\event\GetOrderModel'
|
||||
],
|
||||
'OrderGoodsRefund' => [
|
||||
'addon\cashier\event\OrderGoodsRefund'
|
||||
],
|
||||
'OrderFromList' => [
|
||||
'addon\cashier\event\OrderFromList'
|
||||
],
|
||||
'IncomeStatistics' => [
|
||||
'addon\cashier\event\IncomeStatistics'
|
||||
],
|
||||
'CronOrderDelete' => [
|
||||
'addon\cashier\event\CronOrderDelete'
|
||||
],
|
||||
'GetOrderType' => [
|
||||
'addon\cashier\event\GetOrderType'
|
||||
],
|
||||
'OrderPay' => [
|
||||
'addon\cashier\event\OrderPay'
|
||||
],
|
||||
],
|
||||
|
||||
'subscribe' => [
|
||||
],
|
||||
];
|
||||
21
addon/cashier/config/info.php
Executable file
21
addon/cashier/config/info.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
return [
|
||||
'name' => 'cashier',
|
||||
'title' => '收银台',
|
||||
'description' => '收银台',
|
||||
'type' => 'tool', //插件类型 system :系统插件 promotion:营销插件 tool:工具插件
|
||||
'status' => 1,
|
||||
'author' => '',
|
||||
'version' => '5.5.3',
|
||||
'version_no' => '553250709001',
|
||||
'content' => '',
|
||||
];
|
||||
106
addon/cashier/config/menu_shop.php
Executable file
106
addon/cashier/config/menu_shop.php
Executable file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
return [
|
||||
[
|
||||
'name' => 'STORE_USER_GROUP',
|
||||
'title' => '门店角色',
|
||||
'url' => 'cashier://shop/user/group',
|
||||
'is_show' => 1,
|
||||
'is_control' => 1,
|
||||
'parent' => 'USER_AUTH',
|
||||
'is_icon' => 0,
|
||||
'picture' => '',
|
||||
'picture_selected' => '',
|
||||
'sort' => 3,
|
||||
'child_list' => [
|
||||
[
|
||||
'name' => 'STORE_USER_GROUP_ADD',
|
||||
'title' => '添加角色',
|
||||
'url' => 'cashier://shop/user/addgroup',
|
||||
'is_show' => 0,
|
||||
'is_control' => 1,
|
||||
'is_icon' => 0,
|
||||
'picture' => '',
|
||||
'picture_selected' => '',
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'STORE_USER_GROUP_EDIT',
|
||||
'title' => '角色编辑',
|
||||
'url' => 'cashier://shop/user/editgroup',
|
||||
'is_show' => 0,
|
||||
'is_control' => 1,
|
||||
'is_icon' => 0,
|
||||
'picture' => '',
|
||||
'picture_selected' => '',
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'STORE_USER_GROUP_DELETE',
|
||||
'title' => '角色删除',
|
||||
'url' => 'cashier://shop/user/deletegroup',
|
||||
'is_show' => 0,
|
||||
'is_control' => 1,
|
||||
'is_icon' => 0,
|
||||
'picture' => '',
|
||||
'picture_selected' => '',
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'STORE_USER_GROUP_MODIFY_STATUS',
|
||||
'title' => '调整角色状态',
|
||||
'url' => 'cashier://shop/user/modifygroupstatus',
|
||||
'is_show' => 0,
|
||||
'is_control' => 1,
|
||||
'is_icon' => 0,
|
||||
'picture' => '',
|
||||
'picture_selected' => '',
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'CASHIER',
|
||||
'title' => '收银',
|
||||
'url' => 'cashier://shop/index/cashier',
|
||||
'is_show' => 1,
|
||||
'is_control' => 0,
|
||||
'is_icon' => 0,
|
||||
'picture' => 'icon12',
|
||||
'picture_selected' => '',
|
||||
'sort' => 12
|
||||
],
|
||||
[
|
||||
'name' => 'CASHIER_ORDER_LISTS',
|
||||
'title' => '收银订单',
|
||||
'url' => 'cashier://shop/order/lists',
|
||||
'parent' => 'ORDER_MANAGE',
|
||||
'is_show' => 1,
|
||||
'is_control' => 1,
|
||||
'sort' => 1,
|
||||
'is_icon' => 0,
|
||||
'picture' => '',
|
||||
'picture_selected' => '',
|
||||
'child_list' => [
|
||||
[
|
||||
'name' => 'CASHIER_ORDER_DETAIL',
|
||||
'title' => '订单详情',
|
||||
'url' => 'cashier://shop/order/detail',
|
||||
'sort' => 1,
|
||||
'is_show' => 0,
|
||||
'type' => 'button',
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user