thienhungho / yii2-warehouse-management
Yii2 仓库管理系统
v1.0.8
2018-12-13 00:50 UTC
Requires
- thienhungho/yii2-app-core: *
- thienhungho/yii2-employee-management: *
- thienhungho/yii2-supplier-management: *
- yiisoft/yii2: ~2.0.9
README
为 Yii2 开发的仓库管理系统
安装
这是一个示例,可能包含无法正常工作的源代码。此源代码包含针对丢失许可的防护功能。
通过 composer 安装此扩展是首选方式。
运行以下命令:
php composer.phar require --prefer-dist thienhungho/yii2-warehouse-management "*"
或者
"thienhungho/yii2-warehouse-management": "*"
将以下内容添加到您的 composer.json
文件的 require 部分中。
配置
将模块 WarehouseManage 添加到您的 AppConfig
文件中。
... 'modules' => [ ... /** * Supplier Manage */ 'supplier-manage' => [ 'class' => 'thienhungho\SupplierManagement\modules\SupplierManage\SupplierManageModules', ], /** * Supplier Manage */ 'employee-manage' => [ 'class' => 'thienhungho\EmployeeManagement\modules\EmployeeManage\EmployeeManageModules', ], /** * Supplier Manage */ 'warehouse-manage' => [ 'class' => 'thienhungho\WarehouseManagement\modules\WarehouseManage\WarehouseManageModule', ], /** * Supplier Manage */ 'warehouse-voucher-manage' => [ 'class' => 'thienhungho\WarehouseManagement\modules\WarehouseVoucherManage\WarehouseVoucherManageModules', ], ... ], ...
迁移
在终端中运行以下命令进行数据库迁移
yii migrate/up --migrationPath=@vendor/thienhungho/yii2-warehouse-management/migrations
或使用命名空间迁移(至少需要 Yii 2.0.10)
// Add namespace to console config: 'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationNamespaces' => [ 'thienhungho\WarehouseManagement\migrations\namespaced', ], ], ],
然后运行
yii migrate/up
模块
WarehouseBase,WarehouseManage,WarehouseVoucherManage,
功能
常量
模型
Warehouse,WarehouseProduct,WarehouseVoucher,WarehouseVoucherItems