添加经销商部分表
parent
c3f1882814
commit
78d38d9c29
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
namespace App\Admin\Actions\Grid;
|
||||
|
||||
use App\Admin\Forms\UserResetAccountPassword as UserResetAccountPasswordForm;
|
||||
use Dcat\Admin\Grid\RowAction;
|
||||
use Dcat\Admin\Widgets\Modal;
|
||||
|
||||
class UserResetAccountPassword extends RowAction
|
||||
{
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title;
|
||||
}
|
||||
return '<i class="feather grid-action-icon icon-repeat"></i> 安全密码 ';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model|Authenticatable|HasPermissions|null $user
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function authorize($user): bool
|
||||
{
|
||||
return $user->can('dcat.admin.users.reset_account_password');
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
$form = UserResetAccountPasswordForm::make()->payload(['id'=>$this->getKey()]);
|
||||
return Modal::make()
|
||||
->lg()
|
||||
->title($this->title())
|
||||
->body($form)
|
||||
->button($this->title());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
<?php
|
||||
|
||||
namespace App\Admin\Controllers;
|
||||
|
||||
use App\Admin\Repositories\DealerProduct;
|
||||
use Carbon\Carbon;
|
||||
use Dcat\Admin\Admin;
|
||||
use Dcat\Admin\Form;
|
||||
use Dcat\Admin\Grid;
|
||||
use Dcat\Admin\Grid\Column;
|
||||
use Dcat\Admin\Http\Controllers\AdminController;
|
||||
use Dcat\Admin\Show;
|
||||
|
||||
class DealerProductController extends AdminController
|
||||
{
|
||||
/**
|
||||
* Make a grid builder.
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
protected function grid()
|
||||
{
|
||||
return Grid::make(new DealerProduct(), function (Grid $grid) {
|
||||
$grid->column('id')->sortable();
|
||||
$grid->column('name');
|
||||
$grid->column('subtitle');
|
||||
$grid->column('cover')->image(80, 80);
|
||||
// $grid->column('images');
|
||||
// $grid->column('description');
|
||||
$grid->column('price')->prepend('¥');
|
||||
// $grid->column('stock');
|
||||
// $grid->column('sales_count');
|
||||
$grid->column('is_sale')->if(function () {
|
||||
return Admin::user()->can('dcat.admin.dealer_products.edit');
|
||||
})
|
||||
->then(function (Column $column) {
|
||||
$column->switch();
|
||||
})
|
||||
->else(function (Column $column) {
|
||||
$column->bool();
|
||||
});
|
||||
$grid->column('created_at')->sortable();
|
||||
/** 操作 **/
|
||||
//新增
|
||||
if (Admin::user()->can('dcat.admin.dealer_products.create')) {
|
||||
$grid->disableCreateButton(false);
|
||||
}
|
||||
//修改
|
||||
// $grid->showQuickEditButton(Admin::user()->can('dcat.admin.product_spus.edit'));
|
||||
//删除以及自定义操作
|
||||
$grid->actions(function (Grid\Displayers\Actions $actions) {
|
||||
$actions->disableEdit(Admin::user()->cannot('dcat.admin.dealer_products.edit'));
|
||||
$actions->disableDelete(Admin::user()->cannot('dcat.admin.dealer_products.destroy'));
|
||||
});
|
||||
$grid->filter(function (Grid\Filter $filter) {
|
||||
$filter->panel();
|
||||
$filter->equal('name')->width(3);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a show builder.
|
||||
*
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return Show
|
||||
*/
|
||||
protected function detail($id)
|
||||
{
|
||||
return Show::make($id, new DealerProduct(), function (Show $show) {
|
||||
$show->field('id');
|
||||
$show->field('name');
|
||||
$show->field('subtitle');
|
||||
$show->field('cover');
|
||||
$show->field('images');
|
||||
$show->field('description');
|
||||
$show->field('price');
|
||||
$show->field('stock');
|
||||
$show->field('sales_count');
|
||||
$show->field('is_sale');
|
||||
$show->field('created_at');
|
||||
$show->field('updated_at');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a form builder.
|
||||
*
|
||||
* @return Form
|
||||
*/
|
||||
protected function form()
|
||||
{
|
||||
return Form::make(new DealerProduct(), function (Form $form) {
|
||||
$form->display('id');
|
||||
$form->text('name')->required();
|
||||
$form->text('subtitle');
|
||||
$form->divider();
|
||||
$form->image('cover')
|
||||
->move('dealer-products/cover/'.Carbon::now()->toDateString())
|
||||
->saveFullUrl()
|
||||
->removable(false)
|
||||
->retainable()
|
||||
->autoUpload();
|
||||
$form->multipleImage('images')
|
||||
->move('dealer-products/'.Carbon::now()->toDateString())
|
||||
->saveFullUrl()
|
||||
->removable(false)
|
||||
->retainable()
|
||||
->autoUpload();
|
||||
$form->editor('description');
|
||||
$form->currency('price')->symbol('¥');
|
||||
// $form->text('stock');
|
||||
// $form->text('sales_count');
|
||||
$form->switch('is_sale');
|
||||
|
||||
$form->display('created_at');
|
||||
$form->display('updated_at');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ use App\Admin\Actions\Grid\DisableUser;
|
|||
use App\Admin\Actions\Grid\EnableUser;
|
||||
use App\Admin\Actions\Grid\Frozen;
|
||||
use App\Admin\Actions\Grid\UserEditAgent;
|
||||
use App\Admin\Actions\Grid\UserResetAccountPassword;
|
||||
use App\Admin\Actions\Grid\UserResetPassword;
|
||||
use App\Admin\Actions\Show\UserDisableBonus;
|
||||
use App\Admin\Actions\Show\UserEditBank;
|
||||
|
|
@ -128,6 +129,11 @@ class UserController extends AdminController
|
|||
if (Admin::user()->can('dcat.admin.users.reset_password')) {
|
||||
$actions->append(new UserResetPassword());
|
||||
}
|
||||
|
||||
// 重置用户账户密码
|
||||
if (Admin::user()->can('dcat.admin.users.reset_account_password')) {
|
||||
$actions->append(new UserResetAccountPassword());
|
||||
}
|
||||
});
|
||||
|
||||
$grid->filter(function (Grid\Filter $filter) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
|
||||
namespace App\Admin\Forms;
|
||||
|
||||
use App\Exceptions\BizException;
|
||||
use App\Models\User;
|
||||
use Dcat\Admin\Contracts\LazyRenderable;
|
||||
use Dcat\Admin\Traits\LazyWidget;
|
||||
use Dcat\Admin\Widgets\Form;
|
||||
|
||||
class UserResetAccountPassword extends Form implements LazyRenderable
|
||||
{
|
||||
use LazyWidget;
|
||||
|
||||
/**
|
||||
* @param Model|Authenticatable|HasPermissions|null $user
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function authorize($user): bool
|
||||
{
|
||||
return $user->can('dcat.admin.users.reset_account_password');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the form request.
|
||||
*
|
||||
* @param array $input
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(array $input)
|
||||
{
|
||||
$id = $this->payload['id'] ?? 0;
|
||||
$user = User::findOrFail($id);
|
||||
|
||||
if (!$user->wallet) {
|
||||
throw new BizException('该用户还未设置安全密码');
|
||||
}
|
||||
$user->wallet?->update([
|
||||
'password' => $input['password'],
|
||||
]);
|
||||
// $user->tokens()->delete();
|
||||
|
||||
return $this->response()
|
||||
->success(__('admin.update_succeeded'))
|
||||
->refresh();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a form here.
|
||||
*/
|
||||
public function form()
|
||||
{
|
||||
$this->password('password')->required();
|
||||
// 设置错误信息
|
||||
$this->password('password_confirm')->same('password', '两次密码输入不一致')->required();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace App\Admin\Repositories;
|
||||
|
||||
use App\Models\DealerProduct as Model;
|
||||
use Dcat\Admin\Repositories\EloquentRepository;
|
||||
|
||||
class DealerProduct extends EloquentRepository
|
||||
{
|
||||
/**
|
||||
* Model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $eloquentClass = Model::class;
|
||||
}
|
||||
|
|
@ -161,6 +161,10 @@ Route::group([
|
|||
|
||||
$router->get('import-job-logs', 'ImportJobLogController@index')->name('import_job_logs.index');
|
||||
|
||||
|
||||
//经销商
|
||||
$router->resource('dealer-products', 'DealerProductController')->names('dealer_products');
|
||||
|
||||
/** api接口 **/
|
||||
$router->get('api/product-categories', 'ProductCategoryController@categories')->name('api.product_categories');
|
||||
$router->get('api/product-group-details', 'ProductGroupController@details')->name('api.product_group_details');
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DealerOrder extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DealerOrderProduct extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Casts\JsonArray;
|
||||
use Dcat\Admin\Traits\HasDateTimeFormatter;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DealerProduct extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasDateTimeFormatter;
|
||||
|
||||
protected $casts = [
|
||||
'images' => JsonArray::class,
|
||||
];
|
||||
|
||||
public function lvlRules()
|
||||
{
|
||||
return $this->hasMany(DealerProductLvlRule::class, 'product_id');
|
||||
}
|
||||
|
||||
public function saleRules()
|
||||
{
|
||||
return $this->hasMany(DealerProductSaleRule::class, 'product_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DealerProductLvlRule extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DealerProductSaleRule extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DealerUserProduct extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DealerUserProductLog extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDealerProductsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dealer_products', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->comment('商品名称');
|
||||
$table->string('subtitle')->nullable()->comment('商品副标题');
|
||||
$table->string('cover')->nullable()->comment('封面图');
|
||||
$table->json('images')->nullable()->comment('商品图片');
|
||||
$table->text('description')->nullable()->comment('商品详情');
|
||||
$table->unsignedDecimal('price', 10, 2)->default(0.00)->comment('销售价格:元');
|
||||
$table->integer('stock')->unsigned()->default(0)->comment('库存');
|
||||
$table->integer('sales_count')->unsigned()->default(0)->comment('销量');
|
||||
$table->unsignedTinyInteger('is_sale')->default(0)->comment('是否在售');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dealer_products');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDealerOrdersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dealer_orders', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('sn')->comment('订单编号');
|
||||
$table->unsignedBigInteger('user_id')->comment('下单用户');
|
||||
$table->unsignedBigInteger('consignor_id')->nullable()->comment('发货用户');
|
||||
$table->unsignedDecimal('total_amount', 10, 2)->default(0.00)->comment('订单价格');
|
||||
$table->unsignedTinyInteger('state')->default(0)->comment('状态:0待接单,1待打款,2待收款,3待发货,4待收货,5已完成,9已取消');
|
||||
$table->unsignedTinyInteger('settle_state')->default(0)->comment('结算状态:0待处理,1已生成,2已结算');
|
||||
$table->string('consignee_name')->nullable()->comment('收货人姓名');
|
||||
$table->string('consignee_telephone')->nullable()->comment('收货人联系方式');
|
||||
$table->string('consignee_zone')->nullable()->comment('收货人所在地区');
|
||||
$table->string('consignee_address')->nullable()->comment('收货人详细地址');
|
||||
$table->text('pay_info')->nullable()->comment('收款信息;用户确认打款时存入');
|
||||
$table->string('pay_image')->nullable()->comment('打款凭证');
|
||||
$table->timestamp('pay_time')->nullable()->comment('支付时间');
|
||||
$table->timestamp('paied_time')->nullable()->comment('确认收款时间');
|
||||
$table->timestamp('shipping_time')->nullable()->comment('发货时间');
|
||||
$table->timestamp('shippinged_time')->nullable()->comment('确认收货时间');
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['user_id', 'state']);
|
||||
$table->index('state');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dealer_orders');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDealerOrderProductsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dealer_order_products', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('order_id')->comment('订单ID');
|
||||
$table->unsignedBigInteger('product_id')->comment('商品ID');
|
||||
$table->string('name')->comment('商品名称');
|
||||
$table->string('subtitle')->nullable()->comment('商品副标题');
|
||||
$table->string('cover')->nullable()->comment('封面图');
|
||||
$table->unsignedDecimal('price', 10, 2)->default(0.00)->comment('销售价格:元');
|
||||
$table->unsignedDecimal('sale_price', 10, 2)->default(0.00)->comment('成交价格:元');
|
||||
$table->integer('qty')->unsigned()->default(0)->comment('数量');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dealer_order_products');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDealerProductLvlRulesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dealer_product_lvl_rules', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('product_id')->default(0)->comment('商品ID');
|
||||
$table->unsignedDecimal('sale_price', 10, 2)->default(0.00)->comment('销售价格:元');
|
||||
$table->unsignedDecimal('min_order_amount', 10, 2)->default(0.00)->comment('最低进货价');
|
||||
$table->unsignedTinyInteger('lvl')->default(0)->comment('等级');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dealer_product_lvl_rules');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDealerProductSaleRulesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dealer_product_sale_rules', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('product_id')->default(0)->comment('商品ID');
|
||||
$table->unsignedDecimal('price', 10, 2)->default(0.00)->comment('销售价格:元');
|
||||
$table->unsignedInteger('qty')->default(0)->comment('达到指定数量');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dealer_product_sale_rules');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDealerUserProductsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dealer_user_products', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('user_id')->comment('用户ID');
|
||||
$table->unsignedBigInteger('product_id')->comment('商品ID');
|
||||
$table->unsignedInteger('stock')->default(0)->comment('库存');
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['user_id', 'product_id']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dealer_user_products');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDealerUserProductLogsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dealer_user_product_logs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('user_id')->comment('用户ID');
|
||||
$table->unsignedBigInteger('product_id')->comment('商品ID');
|
||||
$table->unsignedTinyInteger('type')->default(0)->comment('变动类型');
|
||||
$table->unsignedInteger('qty')->default(0)->comment('变动数量');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dealer_user_product_logs');
|
||||
}
|
||||
}
|
||||
|
|
@ -284,6 +284,43 @@ class AdminMenuSeeder extends Seeder
|
|||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' =>'批零管理',
|
||||
'icon' => 'fa fa-skyatlas',
|
||||
'uri' =>'',
|
||||
'children' => [
|
||||
[
|
||||
'title' =>'经销商管理',
|
||||
'icon' => '',
|
||||
'uri' => 'dealer-users',
|
||||
],
|
||||
[
|
||||
'title' =>'商品管理',
|
||||
'icon' => '',
|
||||
'uri' => 'dealer-products',
|
||||
],
|
||||
[
|
||||
'title' => '订单管理',
|
||||
'icon' => '',
|
||||
'uri' => 'dealer-orders',
|
||||
],
|
||||
[
|
||||
'title' =>'渠道补贴',
|
||||
'icon'=>'',
|
||||
'uri' => '',
|
||||
],
|
||||
[
|
||||
'title' =>'进货补贴',
|
||||
'icon' => '',
|
||||
'uri' => '',
|
||||
],
|
||||
[
|
||||
'title'=>'管理津贴',
|
||||
'icon' => '',
|
||||
'uri' => '',
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' => '系统管理',
|
||||
'icon' => 'feather icon-settings',
|
||||
|
|
|
|||
|
|
@ -107,6 +107,27 @@ namespace Dcat\Admin {
|
|||
* @property Grid\Column|Collection use_day
|
||||
* @property Grid\Column|Collection use_end_at
|
||||
* @property Grid\Column|Collection use_start_at
|
||||
* @property Grid\Column|Collection price
|
||||
* @property Grid\Column|Collection product_id
|
||||
* @property Grid\Column|Collection qty
|
||||
* @property Grid\Column|Collection sale_price
|
||||
* @property Grid\Column|Collection consignee_address
|
||||
* @property Grid\Column|Collection consignee_name
|
||||
* @property Grid\Column|Collection consignee_telephone
|
||||
* @property Grid\Column|Collection consignee_zone
|
||||
* @property Grid\Column|Collection consignor_id
|
||||
* @property Grid\Column|Collection paied_time
|
||||
* @property Grid\Column|Collection pay_image
|
||||
* @property Grid\Column|Collection pay_info
|
||||
* @property Grid\Column|Collection pay_time
|
||||
* @property Grid\Column|Collection settle_state
|
||||
* @property Grid\Column|Collection shipping_time
|
||||
* @property Grid\Column|Collection shippinged_time
|
||||
* @property Grid\Column|Collection total_amount
|
||||
* @property Grid\Column|Collection lvl
|
||||
* @property Grid\Column|Collection min_order_amount
|
||||
* @property Grid\Column|Collection is_sale
|
||||
* @property Grid\Column|Collection sales_count
|
||||
* @property Grid\Column|Collection failed_reason
|
||||
* @property Grid\Column|Collection jobable_id
|
||||
* @property Grid\Column|Collection jobable_type
|
||||
|
|
@ -118,7 +139,6 @@ namespace Dcat\Admin {
|
|||
* @property Grid\Column|Collection agent_level
|
||||
* @property Grid\Column|Collection completed_at
|
||||
* @property Grid\Column|Collection rule
|
||||
* @property Grid\Column|Collection total_amount
|
||||
* @property Grid\Column|Collection total_sales_value
|
||||
* @property Grid\Column|Collection connection
|
||||
* @property Grid\Column|Collection exception
|
||||
|
|
@ -139,10 +159,6 @@ namespace Dcat\Admin {
|
|||
* @property Grid\Column|Collection order_package_id
|
||||
* @property Grid\Column|Collection quantity
|
||||
* @property Grid\Column|Collection checked_at
|
||||
* @property Grid\Column|Collection consignee_address
|
||||
* @property Grid\Column|Collection consignee_name
|
||||
* @property Grid\Column|Collection consignee_telephone
|
||||
* @property Grid\Column|Collection consignee_zone
|
||||
* @property Grid\Column|Collection is_failed
|
||||
* @property Grid\Column|Collection last_news
|
||||
* @property Grid\Column|Collection shipping_code
|
||||
|
|
@ -352,6 +368,27 @@ namespace Dcat\Admin {
|
|||
* @method Grid\Column|Collection use_day(string $label = null)
|
||||
* @method Grid\Column|Collection use_end_at(string $label = null)
|
||||
* @method Grid\Column|Collection use_start_at(string $label = null)
|
||||
* @method Grid\Column|Collection price(string $label = null)
|
||||
* @method Grid\Column|Collection product_id(string $label = null)
|
||||
* @method Grid\Column|Collection qty(string $label = null)
|
||||
* @method Grid\Column|Collection sale_price(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_address(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_name(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_telephone(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_zone(string $label = null)
|
||||
* @method Grid\Column|Collection consignor_id(string $label = null)
|
||||
* @method Grid\Column|Collection paied_time(string $label = null)
|
||||
* @method Grid\Column|Collection pay_image(string $label = null)
|
||||
* @method Grid\Column|Collection pay_info(string $label = null)
|
||||
* @method Grid\Column|Collection pay_time(string $label = null)
|
||||
* @method Grid\Column|Collection settle_state(string $label = null)
|
||||
* @method Grid\Column|Collection shipping_time(string $label = null)
|
||||
* @method Grid\Column|Collection shippinged_time(string $label = null)
|
||||
* @method Grid\Column|Collection total_amount(string $label = null)
|
||||
* @method Grid\Column|Collection lvl(string $label = null)
|
||||
* @method Grid\Column|Collection min_order_amount(string $label = null)
|
||||
* @method Grid\Column|Collection is_sale(string $label = null)
|
||||
* @method Grid\Column|Collection sales_count(string $label = null)
|
||||
* @method Grid\Column|Collection failed_reason(string $label = null)
|
||||
* @method Grid\Column|Collection jobable_id(string $label = null)
|
||||
* @method Grid\Column|Collection jobable_type(string $label = null)
|
||||
|
|
@ -363,7 +400,6 @@ namespace Dcat\Admin {
|
|||
* @method Grid\Column|Collection agent_level(string $label = null)
|
||||
* @method Grid\Column|Collection completed_at(string $label = null)
|
||||
* @method Grid\Column|Collection rule(string $label = null)
|
||||
* @method Grid\Column|Collection total_amount(string $label = null)
|
||||
* @method Grid\Column|Collection total_sales_value(string $label = null)
|
||||
* @method Grid\Column|Collection connection(string $label = null)
|
||||
* @method Grid\Column|Collection exception(string $label = null)
|
||||
|
|
@ -384,10 +420,6 @@ namespace Dcat\Admin {
|
|||
* @method Grid\Column|Collection order_package_id(string $label = null)
|
||||
* @method Grid\Column|Collection quantity(string $label = null)
|
||||
* @method Grid\Column|Collection checked_at(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_address(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_name(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_telephone(string $label = null)
|
||||
* @method Grid\Column|Collection consignee_zone(string $label = null)
|
||||
* @method Grid\Column|Collection is_failed(string $label = null)
|
||||
* @method Grid\Column|Collection last_news(string $label = null)
|
||||
* @method Grid\Column|Collection shipping_code(string $label = null)
|
||||
|
|
@ -602,6 +634,27 @@ namespace Dcat\Admin {
|
|||
* @property Show\Field|Collection use_day
|
||||
* @property Show\Field|Collection use_end_at
|
||||
* @property Show\Field|Collection use_start_at
|
||||
* @property Show\Field|Collection price
|
||||
* @property Show\Field|Collection product_id
|
||||
* @property Show\Field|Collection qty
|
||||
* @property Show\Field|Collection sale_price
|
||||
* @property Show\Field|Collection consignee_address
|
||||
* @property Show\Field|Collection consignee_name
|
||||
* @property Show\Field|Collection consignee_telephone
|
||||
* @property Show\Field|Collection consignee_zone
|
||||
* @property Show\Field|Collection consignor_id
|
||||
* @property Show\Field|Collection paied_time
|
||||
* @property Show\Field|Collection pay_image
|
||||
* @property Show\Field|Collection pay_info
|
||||
* @property Show\Field|Collection pay_time
|
||||
* @property Show\Field|Collection settle_state
|
||||
* @property Show\Field|Collection shipping_time
|
||||
* @property Show\Field|Collection shippinged_time
|
||||
* @property Show\Field|Collection total_amount
|
||||
* @property Show\Field|Collection lvl
|
||||
* @property Show\Field|Collection min_order_amount
|
||||
* @property Show\Field|Collection is_sale
|
||||
* @property Show\Field|Collection sales_count
|
||||
* @property Show\Field|Collection failed_reason
|
||||
* @property Show\Field|Collection jobable_id
|
||||
* @property Show\Field|Collection jobable_type
|
||||
|
|
@ -613,7 +666,6 @@ namespace Dcat\Admin {
|
|||
* @property Show\Field|Collection agent_level
|
||||
* @property Show\Field|Collection completed_at
|
||||
* @property Show\Field|Collection rule
|
||||
* @property Show\Field|Collection total_amount
|
||||
* @property Show\Field|Collection total_sales_value
|
||||
* @property Show\Field|Collection connection
|
||||
* @property Show\Field|Collection exception
|
||||
|
|
@ -634,10 +686,6 @@ namespace Dcat\Admin {
|
|||
* @property Show\Field|Collection order_package_id
|
||||
* @property Show\Field|Collection quantity
|
||||
* @property Show\Field|Collection checked_at
|
||||
* @property Show\Field|Collection consignee_address
|
||||
* @property Show\Field|Collection consignee_name
|
||||
* @property Show\Field|Collection consignee_telephone
|
||||
* @property Show\Field|Collection consignee_zone
|
||||
* @property Show\Field|Collection is_failed
|
||||
* @property Show\Field|Collection last_news
|
||||
* @property Show\Field|Collection shipping_code
|
||||
|
|
@ -847,6 +895,27 @@ namespace Dcat\Admin {
|
|||
* @method Show\Field|Collection use_day(string $label = null)
|
||||
* @method Show\Field|Collection use_end_at(string $label = null)
|
||||
* @method Show\Field|Collection use_start_at(string $label = null)
|
||||
* @method Show\Field|Collection price(string $label = null)
|
||||
* @method Show\Field|Collection product_id(string $label = null)
|
||||
* @method Show\Field|Collection qty(string $label = null)
|
||||
* @method Show\Field|Collection sale_price(string $label = null)
|
||||
* @method Show\Field|Collection consignee_address(string $label = null)
|
||||
* @method Show\Field|Collection consignee_name(string $label = null)
|
||||
* @method Show\Field|Collection consignee_telephone(string $label = null)
|
||||
* @method Show\Field|Collection consignee_zone(string $label = null)
|
||||
* @method Show\Field|Collection consignor_id(string $label = null)
|
||||
* @method Show\Field|Collection paied_time(string $label = null)
|
||||
* @method Show\Field|Collection pay_image(string $label = null)
|
||||
* @method Show\Field|Collection pay_info(string $label = null)
|
||||
* @method Show\Field|Collection pay_time(string $label = null)
|
||||
* @method Show\Field|Collection settle_state(string $label = null)
|
||||
* @method Show\Field|Collection shipping_time(string $label = null)
|
||||
* @method Show\Field|Collection shippinged_time(string $label = null)
|
||||
* @method Show\Field|Collection total_amount(string $label = null)
|
||||
* @method Show\Field|Collection lvl(string $label = null)
|
||||
* @method Show\Field|Collection min_order_amount(string $label = null)
|
||||
* @method Show\Field|Collection is_sale(string $label = null)
|
||||
* @method Show\Field|Collection sales_count(string $label = null)
|
||||
* @method Show\Field|Collection failed_reason(string $label = null)
|
||||
* @method Show\Field|Collection jobable_id(string $label = null)
|
||||
* @method Show\Field|Collection jobable_type(string $label = null)
|
||||
|
|
@ -858,7 +927,6 @@ namespace Dcat\Admin {
|
|||
* @method Show\Field|Collection agent_level(string $label = null)
|
||||
* @method Show\Field|Collection completed_at(string $label = null)
|
||||
* @method Show\Field|Collection rule(string $label = null)
|
||||
* @method Show\Field|Collection total_amount(string $label = null)
|
||||
* @method Show\Field|Collection total_sales_value(string $label = null)
|
||||
* @method Show\Field|Collection connection(string $label = null)
|
||||
* @method Show\Field|Collection exception(string $label = null)
|
||||
|
|
@ -879,10 +947,6 @@ namespace Dcat\Admin {
|
|||
* @method Show\Field|Collection order_package_id(string $label = null)
|
||||
* @method Show\Field|Collection quantity(string $label = null)
|
||||
* @method Show\Field|Collection checked_at(string $label = null)
|
||||
* @method Show\Field|Collection consignee_address(string $label = null)
|
||||
* @method Show\Field|Collection consignee_name(string $label = null)
|
||||
* @method Show\Field|Collection consignee_telephone(string $label = null)
|
||||
* @method Show\Field|Collection consignee_zone(string $label = null)
|
||||
* @method Show\Field|Collection is_failed(string $label = null)
|
||||
* @method Show\Field|Collection last_news(string $label = null)
|
||||
* @method Show\Field|Collection shipping_code(string $label = null)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'labels' => [
|
||||
'DealerProduct' => '商品管理',
|
||||
'dealer-products' => '商品管理',
|
||||
],
|
||||
'fields' => [
|
||||
'name' => '商品名称',
|
||||
'subtitle' => '商品副标题',
|
||||
'cover' => '封面图',
|
||||
'images' => '商品图片',
|
||||
'description' => '商品详情',
|
||||
'price' => '销售价格',
|
||||
'stock' => '库存',
|
||||
'sales_count' => '销量',
|
||||
'is_sale' => '是否在售',
|
||||
],
|
||||
'options' => [
|
||||
],
|
||||
];
|
||||
Loading…
Reference in New Issue