初始上传

This commit is contained in:
2026-04-04 17:27:12 +08:00
parent 4d80d28eb4
commit b7e11774ee
11191 changed files with 1588469 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php
return [
'store/shopapi/store/settlement/index' => 'ADDON_STORE_SHOP_STORE_SETTLEMENT',//门店结算列表
'store/shopapi/store/settlement/info' => 'ADDON_STORE_SHOP_STORE_SETTLEMENT_INFO',//结算详情
'store/shopapi/store/settlement/settlement' => 'ADDON_STORE_SHOP_STORE_SETTLEMENT_SETTLEMENT',//门店结算
'store/shopapi/store/settlement/detail' => 'ADDON_STORE_SHOP_STORE_SETTLEMENT_INFO',//结算详情
];

View File

@@ -0,0 +1,108 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* =========================================================
*/
return [
[
'name' => 'store_settlement',
'title' => '门店结算',
'type' => 'page',
'parent' => 'stat',
'url' => 'pages/store/settlement',
'children' => [
[
'name' => 'settlement_record',
'title' => '结算记录',
'type' => 'page',
'url' => 'pages/store/settlement_record',
],
[
'name' => 'settlement_apply',
'title' => '申请结算',
'type' => 'api',
'url' => 'store/storeapi/withdraw/apply',
]
]
],
[
'name' => 'store_config_root',
'title' => '门店设置',
'type' => 'page',
'url' => 'pages/store/index',
'parent' => 'config',
'children' => [
[
'name' => 'store_config',
'title' => '门店设置',
'type' => 'page',
'url' => 'pages/store/config',
],
[
'name' => 'store_operate_config',
'title' => '运营设置',
'type' => 'page',
'url' => 'pages/store/operate',
]
]
],
[
'name' => 'printer_config',
'title' => '小票打印',
'type' => 'page',
'url' => 'pages/printer/list',
'parent' => 'config',
'children' => [
[
'name' => 'add_printer',
'title' => '添加打印机',
'type' => 'api',
'url' => 'printer/storeapi/printer/add',
],
[
'name' => 'edit_printer',
'title' => '编辑打印机',
'type' => 'api',
'url' => 'printer/storeapi/printer/edit',
],
[
'name' => 'delete_printer',
'title' => '删除打印机',
'type' => 'api',
'url' => 'printer/storeapi/printer/deleteprinter',
],
]
],
[
'name' => 'store_deliver_config',
'title' => '配送员',
'type' => 'page',
'url' => 'pages/store/deliver',
'parent' => 'config',
'children' => [
[
'name' => 'add_deliver',
'title' => '添加配送员',
'type' => 'api',
'url' => 'printer/storeapi/printer/adddeliver',
],
[
'name' => 'edit_deliver',
'title' => '编辑配送员',
'type' => 'api',
'url' => 'printer/storeapi/printer/editdeliver',
],
[
'name' => 'delete_deliver',
'title' => '删除配送员',
'type' => 'api',
'url' => 'cashier/storeapi/store/deletedeliver',
],
]
],
];

81
addon/store/config/diy_view.php Executable file
View File

@@ -0,0 +1,81 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* =========================================================
*/
return [
// 自定义模板页面类型,格式:[ 'title' => '页面类型名称', 'name' => '页面标识', 'path' => '页面路径', 'value' => '页面数据json格式' ]
'template' => [
[
'title' => '门店主页',
'name' => 'DIY_STORE',
'path' => '/pages/index/index',
'value' => '',
'rule' => [
'support' => [ '', 'DIY_STORE' ],
'util_type' => [ 'SYSTEM' ] // 组件类型
],
'sort' => 4
],
],
// 后台自定义组件——装修
'util' => [
[
'name' => 'StoreShow',
'title' => '门店展示',
'type' => 'SYSTEM',
'value' => '{"style":1, "styleName": "风格一"}',
'sort' => '10061',
'support_diy_view' => '',
'max_count' => 1,
'icon' => 'iconfont icondianpu'
],
[
'name' => 'StoreLabel',
'title' => '门店标签',
'type' => 'SYSTEM',
'value' => '{"style":{"fontSize":"60","iconBgColor":[],"iconBgColorDeg":0,"iconBgImg":"","bgRadius":0,"iconColor":["#000000"],"iconColorDeg":0},"sources":"initial","labelIds":[],"icon":"","contentStyle":"style-1","previewList":{},"fontSize":14,"fontWeight":"normal","count":3}',
'sort' => '10062',
'support_diy_view' => '',
'max_count' => 0,
'icon' => 'iconfont iconmendianbiaoqian'
],
],
// 自定义页面路径
'link' => [
[
'name' => 'STORE_LIST',
'title' => '门店列表',
'wap_url' => '/pages_tool/store/list',
'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' => [
]
];

81
addon/store/config/event.php Executable file
View File

@@ -0,0 +1,81 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* =========================================================
*/
return [
'bind' => [
],
'listen' => [
'ShowPromotion' => [
'addon\store\event\ShowPromotion'
],
'OrderCreateAfter' => [
'addon\store\event\OrderCreateAfter',
],
//订单关闭
'OrderClose' => [
'addon\store\event\OrderClose',
],
//订单完成
'OrderComplete' => [
'addon\store\event\OrderComplete',
'addon\store\event\StoreOrderSettlementCalculate'
],
//订单支付
'OrderPayAfter' => [
'addon\store\event\OrderPayAfter',
],
//门店结算
'StoreWithdrawPeriodCalc' => [
'addon\store\event\StoreWithdrawPeriodCalc'
],
//门店添加
'AddStore' => [
'addon\store\event\AddStore'
],
/**
* 商品编辑
*/
'GoodsEdit' => [
'addon\store\event\GoodsEdit'
],
'PointExchangeOrderCreate' => [
'addon\store\event\PointExchangeOrderCreate'
],
'GoodsSkuStock' => [
'addon\store\event\GoodsSkuStock'
],
/**
* 门店结算相关
*/
//订单项计算
'OrderGoodsCalculate' => [
'addon\store\event\OrderGoodsCalculate'
],
'OrderCreateCommonData' => [
'addon\store\event\OrderCreateCommonData'
],
'OrderRefundMoneyFinish' => [
'addon\store\event\StoreOrderRefundSettlementCalculate'
],
//转账结果通知
'PayTransferNotify' => [
'addon\store\event\WithdrawTransferNotify',
],
'PayTransferCheck' => [
'addon\store\event\WithdrawTransferCheck',
],
],
'subscribe' => [
],
];

21
addon/store/config/info.php Executable file
View File

@@ -0,0 +1,21 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* =========================================================
*/
return [
'name' => 'store',
'title' => '门店管理',
'description' => '门店管理功能',
'type' => 'tool', //插件类型 system :系统插件 promotion:营销插件 tool:工具插件
'status' => 1,
'author' => '',
'version' => '5.5.3',
'version_no' => '553250709001',
'content' => '',
];

300
addon/store/config/menu_shop.php Executable file
View File

@@ -0,0 +1,300 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* =========================================================
*/
return [
[
'name' => 'ADDON_STORE_BASE',
'title' => '门店',
'url' => 'store://shop/store/index',
'parent' => '',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 3,
'picture' => 'iconmendianzhuye',
'picture_selected' => '',
'child_list' => [
[
'name' => 'ADDON_STORE_INDEX',
'title' => '门店概况',
'url' => 'store://shop/store/index',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 1,
],
[
'name' => 'ADDON_STORE_MANAGE',
'title' => '门店管理',
'url' => 'store://shop/store/lists',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 2,
'child_list' => [
[
'name' => 'ADDON_STORE_MANAGE_LIST',
'title' => '门店列表',
'url' => 'store://shop/store/lists',
'is_show' => 1,
'parent' => 'CONFIG_BASE',
'is_control' => 1,
'is_icon' => 0,
'sort' => 1,
'picture' => 'app/shop/view/public/img/icon_new/store_new.png',
'picture_selected' => 'app/shop/view/public/img/icon_new/store_select.png',
'child_list' => [
[
'name' => 'STORE_ADD',
'title' => '添加门店',
'url' => 'store://shop/store/addstore',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 1,
'type' => 'button',
],
[
'name' => 'STORE_EDIT',
'title' => '基础设置',
'url' => 'store://shop/store/editstore',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 1,
'type' => 'button',
],
[
'name' => 'STORE_DELETE',
'title' => '删除门店',
'url' => 'store://shop/store/deletestore',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 1,
'type' => 'button',
],
[
'name' => 'STORE_FROZEN',
'title' => '关闭门店',
'url' => 'store://shop/store/frozenStore',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 1,
'type' => 'button',
],
[
'name' => 'STORE_MODIFY_PASSWORD',
'title' => '重置密码',
'url' => 'store://shop/store/modifyPassword',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 1,
'type' => 'button',
],
[
'name' => 'STORE_OPERATE',
'title' => '运营设置',
'url' => 'store://shop/store/operate',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 2,
'type' => 'button',
],
[
'name' => 'STORE_DELIVERY',
'title' => '同城配送',
'url' => 'store://shop/store/local',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 4,
'type' => 'button',
],
[
'name' => 'STORE_SETTLEMENT',
'title' => '结算设置',
'url' => 'store://shop/store/settlement',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 3,
'type' => 'button',
],
[
'name' => 'STORE_DELIVER',
'title' => '配送员',
'url' => 'store://shop/store/deliverlists',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 5,
'type' => 'button',
],
[
'name' => 'STORE_DELIVER_ADD',
'title' => '配送员添加',
'url' => 'store://shop/store/addDeliver',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 2,
'type' => 'button',
],
[
'name' => 'STORE_DELIVER_EDIT',
'title' => '配送员编辑',
'url' => 'store://shop/store/editDeliver',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 2,
'type' => 'button',
],
]
],
[
'name' => 'ADDON_STORE_CATEGORY',
'title' => '门店分类',
'url' => 'store://shop/store/category',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 2,
],
[
'name' => 'ADDON_STORE_TAG',
'title' => '门店标签',
'url' => 'store://shop/store/tag',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 3,
]
]
],
[
'name' => 'ADDON_STORE_SHOP_STORE_CONFIG',
'title' => '门店设置',
'url' => 'store://shop/config/index',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 3,
],
[
'name' => 'ADDON_STORE_SHOP_STORE_ACCOUNT',
'title' => '门店账户',
'url' => 'store://shop/account/lists',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 4,
'child_list' => [
[
'name' => 'ADDON_STORE_SHOP_STORE_ACCOUNT_EXPORT_ADD',
'title' => '账户导出',
'url' => 'store://shop/account/addexport',
'is_show' => 0,
'is_control' => 1,
'sort' => 1,
'type' => 'button',
],
[
'name' => 'ADDON_STORE_SHOP_STORE_ACCOUNT_EXPORT_LIST',
'title' => '导出记录',
'url' => 'store://shop/account/exportlist',
'is_show' => 0,
'is_control' => 1,
'sort' => 1,
'type' => 'button',
],
[
'name' => 'ADDON_STORE_SHOP_STORE_ACCOUNT_EXPORT_DELETE',
'title' => '导出删除',
'url' => 'store://shop/account/deleteexport',
'is_show' => 0,
'is_control' => 1,
'sort' => 1,
'type' => 'button',
],
]
],
[
'name' => 'ADDON_STORE_SHOP_STORE_WITHDRAW',
'title' => '门店结算',
'url' => 'store://shop/withdraw/lists',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 5,
'child_list' => [
[
'name' => 'ADDON_STORE_SHOP_STORE_WITHDRAW_INFO',
'title' => '结算详情',
'url' => 'store://shop/withdraw/detail',
'is_show' => 0,
'is_control' => 1,
'sort' => 1,
'type' => 'button',
],
]
],
]
],
[
'name' => 'STORE_STAT',
'title' => '门店数据',
'parent' => 'STAT_SHOP',
'url' => 'store://shop/stat/store',
'picture' => '',
'picture_selected' => '',
'is_show' => 1,
],
[
'name' => 'STORE_DIY',
'title' => '门店装修',
'parent' => 'SHOP_DIY',
'url' => 'store://shop/store/diy',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 20,
'picture' => '',
'picture_selected' => '',
'child_list' => []
],
];

238
addon/store/config/menu_store.php Executable file
View File

@@ -0,0 +1,238 @@
<?php
// +----------------------------------------------------------------------
// | 平台端菜单设置
// +----------------------------------------------------------------------
return [
[
'name' => 'ADDON_STORE_INDEX',
'title' => '概况',
'url' => 'store://store/index/index',
'is_show' => 1,
'is_control' => 0,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/intro.png',
'sort' => 1,
],
[
'name' => 'ADDON_STORE_GOODS',
'title' => '商品管理',
'url' => 'store://store/goods/index',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/goods.png',
'sort' => 2,
],
[
'name' => 'STORE_STOCK_IMPORT',
'title' => '批量入库',
'url' => 'store://store/storestockimport/lists',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/stock_import.png',
'sort' => 3,
'child_list' => [
[
'name' => 'STORE_STOCK_IMPORT_DETAIL',
'title' => '详情',
'url' => 'store://store/storestockimport/detail',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'sort' => 2,
'child_list' => []
],
]
],
[
'name' => 'ADDON_STORE_ORDER',
'title' => '订单管理',
'url' => 'store://store/order/lists',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/order.png',
'sort' => 4,
'child_list' => [
[
'name' => 'ADDON_STORE_ORDER_MANAGE',
'title' => '订单列表',
'url' => 'store://store/order/lists',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 1,
'child_list' => [
[
'name' => 'ADDON_STORE_ORDER_DETAIL',
'title' => '自提订单详情',
'url' => 'store://store/order/detail',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'picture' => '',
'picture_selected' => '',
'sort' => 1,
],
],
],
[
'name' => 'ADDON_STORE_ORDER_VERIFY',
'title' => '核销台',
'url' => 'store://store/verify/verifycard',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 2,
'child_list' => []
],
]
],
[
'name' => 'ADDON_STORE_CASH',
'title' => '收银台',
'url' => 'store://store/cash/cash',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/sellte.png',
'sort' => 5,
'child_list' => []
],
[
'name' => 'ADDON_STORE_ACCOUNT',
'title' => '结算管理',
'url' => 'store://store/settlement/index',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/settlement.png',
'sort' => 6,
'child_list' => []
],
[
'name' => 'ADDON_STORE_MEMBER',
'title' => '会员管理',
'url' => 'store://store/member/index',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/member.png',
'sort' => 7,
'child_list' => [
[
'name' => 'ADDON_STORE_MEMBER_INDEX',
'title' => '会员概况',
'url' => 'store://store/member/index',
'sort' => 1,
'is_show' => 1
],
[
'name' => 'ADDON_STORE_MEMBER_LIST',
'title' => '会员列表',
'url' => 'store://store/member/lists',
'sort' => 2,
'is_show' => 1,
'child_list' => [
[
'name' => 'ADDON_STORE_MEMBER_DETAIL',
'title' => '会员详情',
'url' => 'store://store/member/detail',
'sort' => 1,
'is_show' => 0
]
]
],
]
],
[
'name' => 'ADDON_STORE_USER',
'title' => '员工管理',
'url' => 'store://store/user/index',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/user.png',
'sort' => 8,
'child_list' => [
[
'name' => 'ADDON_STORE_USER_LIST',
'title' => '员工管理',
'url' => 'store://store/user/index',
'sort' => 1,
'is_show' => 1,
'child_list' => [
[
'name' => 'ADDON_STORE_USER_ADD',
'title' => '添加员工',
'url' => 'store://store/user/addUser',
'sort' => 1,
'is_show' => 0
],
[
'name' => 'ADDON_STORE_USER_EDIT',
'title' => '修改员工',
'url' => 'store://store/user/editUser',
'sort' => 1,
'is_show' => 0
],
]
],
[
'name' => 'ADDON_STORE_USERLOG',
'title' => '操作日志',
'url' => 'store://store/user/userlog',
'sort' => 2,
'is_show' => 1
],
[
'name' => 'ADDON_STORE_USER_GROUP',
'title' => '角色管理',
'url' => 'store://store/user/group',
'sort' => 3,
'is_show' => 1,
'child_list' => [
[
'name' => 'ADDON_STORE_USER_GROUP_ADD',
'title' => '添加角色',
'url' => 'store://store/user/addGroup',
'sort' => 1,
'is_show' => 0
],
[
'name' => 'ADDON_STORE_USER_GROUP_EDIT',
'title' => '修改角色',
'url' => 'store://store/user/editGroup',
'sort' => 1,
'is_show' => 0
],
]
],
]
],
[
'name' => 'ADDON_STORE_INFO',
'title' => '门店设置',
'url' => 'store://store/store/config',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/info.png',
'sort' => 9,
'child_list' => []
],
[
'name' => 'ADDON_STORE_DIY',
'title' => '主页装修',
'url' => 'store://store/diy/index',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'addon/store/store/view/public/img/store_icon/diy.png',
'sort' => 10,
'child_list' => []
]
];