Browse Source

Merge remote-tracking branch 'origin/develop' into develop

develop
李可松 4 years ago
parent
commit
d8db76f5aa
  1. 207
      app/AdminAgent/Controllers/WorkorderController.php
  2. 16
      app/AdminAgent/Repositories/Workorder.php
  3. 9
      app/AdminAgent/routes.php
  4. 10
      app/Models/Supplier.php
  5. 25
      app/Models/Workorder.php
  6. 16
      app/Models/WorkorderItem.php
  7. 18
      app/Traits/WorkorderTraits.php
  8. 40
      database/migrations/2021_09_07_141527_create_workorder_table.php
  9. 37
      database/migrations/2021_09_07_143126_create_workorder_item_table.php
  10. 516
      dcat_admin_ide_helper.php
  11. 19
      resources/lang/zh_CN/workorder.php

207
app/AdminAgent/Controllers/WorkorderController.php

@ -0,0 +1,207 @@
<?php
namespace App\AdminAgent\Controllers;
use App\AdminAgent\Repositories\Workorder;
use App\Models\AgentProductItem;
use App\Models\Guide;
use App\Models\Supplier;
use App\Models\WorkorderItem;
use App\Traits\DemandTraits;
use App\Traits\WorkorderTraits;
use Dcat\Admin\Admin;
use Dcat\Admin\Form;
use Dcat\Admin\Grid;
use Dcat\Admin\Layout\Content;
use Dcat\Admin\Show;
use Dcat\Admin\Http\Controllers\AdminController;
use Illuminate\Http\Request;
use App\Traits\ResponseHelper;
use Illuminate\Support\Facades\Validator;
class WorkorderController extends AdminController
{
use ResponseHelper;
/**
* Make a grid builder.
*
* @return Grid
*/
protected function grid()
{
return Grid::make(new Workorder(['publisher','point']), function (Grid $grid) {
$grid->model()
->where(['publisher_id' => Admin::user()->id,'publisher_type' => DemandTraits::$col[0]])
->orWhere(['point_id' => Admin::user()->id,'point_type' => DemandTraits::$col[0]]);
$grid->column('id')->sortable();
$grid->column('title');
$grid->column('content_modal','内容')->modal('详情',function ($modal) {
$modal->xl();
return $this->content;
});
$grid->column('publisher_type')->using(DemandTraits::$polymorphic);
$grid->column('publisher.name','发布人');
$grid->column('point_type')->using(DemandTraits::$polymorphic);
$grid->column('point.name','接收人');
$grid->column('status')
->using(WorkorderTraits::$stateText)
->dot(
[
1 => 'yellow',
2 => 'danger',
3 => 'success',
]);
$grid->column('close_time');
$grid->column('created_at');
$grid->column('updated_at')->sortable();
$grid->disableActions();
$grid->filter(function (Grid\Filter $filter) {
$filter->equal('id');
});
});
}
/**
* Make a show builder.
*
* @param mixed $id
*
* @return Show
*/
protected function detail($id)
{
return Show::make($id, new Workorder(), function (Show $show) {
$show->field('id');
$show->field('title');
$show->field('content');
$show->field('publisher_type');
$show->field('publisher_id');
$show->field('point_type');
$show->field('point_id');
$show->field('status');
$show->field('close_time');
$show->field('created_at');
$show->field('updated_at');
});
}
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
return Form::make(new Workorder(), function (Form $form) {
$form->display('id');
$form->text('title');
$form->textarea('content');
$form->select('point_type')
->when([1],function (Form $form) {
$form->select('supplier_id', '供应商')->options(function () {
$supplierIds = AgentProductItem::query()->where('agent_id',Admin::user()->id)->distinct()->pluck('supplier_id');
return Supplier::query()->whereIn('id',$supplierIds)->pluck('name','id');
});
})
->when([2],function (Form $form) {
$form->select('guide_id', '地接')->options(function () {
return Guide::query()->pluck('name','id');
});
})
->options([
1 => '供应商',
2 => '地接'
])
->default(1);
$form->hidden('point_id');
$form->hidden('publisher_type');
$form->hidden('publisher_id');
$form->saving(function (Form $form) {
// 判断是否是新增操作
if ($form->isCreating()) {
if ($form->point_type == 1) {
$form->point_id = $form->supplier_id;
} elseif ($form->point_type == 2) {
$form->point_id = $form->guide_id;
}
$form->deleteInput('supplier_id');
$form->deleteInput('guide_id');
$form->point_type = DemandTraits::$col[$form->point_type];
//发布人身份
$form->publisher_type = DemandTraits::$col[0];
$form->publisher_id = Admin::user()->id;
}
});
});
}
//图片上传
public function upload(Request $request)
{
$image = $request->file('image');
if (empty($image) || !$image->isValid()) {
return $this->error('您未上传任何文件');
}
$mime = $image->getMimeType();
if (!in_array($mime, ['image/jpeg', 'image/png', 'image/gif', 'image/pjpeg'])) {
return $this->error('上传图片格式错误');
}
$path = $request->image->store('images/workorder');
return $this->jsonSuccess(['path' => config('filesystems.disks.public.url') . '/' . $path]);
}
public function send(Request $request)
{
$validator = Validator::make(request()->all(), [
'workorder_id' => 'required|int',
'content' => 'required',
'type' => 'required|int',
], [
'*' => '参数异常',
]);
if ($validator->fails()) {
return $this->jsonFailValidated('数据不全:'.$validator->errors()->first());
}
$item = new WorkorderItem();
$item->workorder_id = request('workorder_id',0);
$item->content = request('content','');
$item->type = request('type',1);
$item->publisher_type = DemandTraits::$col[0];
$item->publisher_id = 1;
return $this->jsonSuccess($item->save());
}
public function render()
{
$validator = Validator::make(request()->all(), [
'workorder_id' => 'required|int',
], [
'*' => '参数异常',
]);
if ($validator->fails()) {
return $this->jsonFailValidated('数据不全:'.$validator->errors()->first());
}
$data = WorkorderItem::query()
->where('workorder_id',request('workorder_id',0))
->orderBy('created_at')
->get();
foreach ($data as &$v) {
if ($v->publisher_type == DemandTraits::$col[0]) {
$v->location = 'right';
} else {
$v->location = 'left';
}
}
return $this->jsonSuccess($data);
}
}

16
app/AdminAgent/Repositories/Workorder.php

@ -0,0 +1,16 @@
<?php
namespace App\AdminAgent\Repositories;
use App\Models\Workorder as Model;
use Dcat\Admin\Repositories\EloquentRepository;
class Workorder extends EloquentRepository
{
/**
* Model.
*
* @var string
*/
protected $eloquentClass = Model::class;
}

9
app/AdminAgent/routes.php

@ -9,7 +9,7 @@ Admin::routes();
Route::group([
'prefix' => config('admin.route.prefix'),
'namespace' => config('admin.route.namespace'),
'middleware' => config('admin.route.middleware'),
//'middleware' => config('admin.route.middleware'),
], function (Router $router) {
$router->get('/', 'HomeController@index');
@ -41,4 +41,11 @@ Route::group([
$router->resource('order_statistics', 'OrderStatisticsController');
$router->resource('user_statistics', 'UserStatisticsController');
$router->resource('product_statistics', 'ProductStatisticsController');
$router->resource('workorder', 'WorkorderController');
//api
$router->any('upload', 'WorkorderController@upload');
$router->any('send_message', 'WorkorderController@send');
$router->any('render', 'WorkorderController@render');
});

10
app/Models/Supplier.php

@ -38,4 +38,14 @@ class Supplier extends BaseModel
{
return $this->hasMany(AgentProductItem::class);
}
public function workoorder()
{
return $this->morphOne('App\Models\Workorder', 'publisher');
}
public function point()
{
return $this->morphOne('App\Models\Workorder', 'point');
}
}

25
app/Models/Workorder.php

@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
class Workorder extends Model
{
use HasDateTimeFormatter;
use SoftDeletes;
protected $table = 'workorder';
public function publisher()
{
return $this->morphTo();
}
public function point()
{
return $this->morphTo();
}
}

16
app/Models/WorkorderItem.php

@ -0,0 +1,16 @@
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
class WorkorderItem extends Model
{
use HasDateTimeFormatter;
use SoftDeletes;
protected $table = 'workorder_item';
}

18
app/Traits/WorkorderTraits.php

@ -0,0 +1,18 @@
<?php
namespace App\Traits;
trait WorkorderTraits
{
public static $state = [
1,
2,
3,
];
public static $stateText = [
1 => '待回复',
2 => '处理中',
3 => '已关闭',
];
}

40
database/migrations/2021_09_07_141527_create_workorder_table.php

@ -0,0 +1,40 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWorkorderTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('workorder', function (Blueprint $table) {
$table->increments('id');
$table->string('title')->default('')->comment('标题');
$table->string('content')->default('')->comment('内容');
$table->string('publisher_type')->default('')->comment('发布人类型');
$table->integer('publisher_id')->comment('发布人id');
$table->string('point_type')->default('')->comment('接收人类型');
$table->integer('point_id')->comment('接收人id');
$table->tinyInteger('status')->comment('状态 1 待回复 2 处理中 3 已关闭')->default(1);
$table->dateTime('close_time')->nullable()->comment('关闭时间')->default(null);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('workorder');
}
}

37
database/migrations/2021_09_07_143126_create_workorder_item_table.php

@ -0,0 +1,37 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWorkorderItemTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('workorder_item', function (Blueprint $table) {
$table->increments('id');
$table->string('content')->default('')->comment('内容');
$table->tinyInteger('type')->comment('类型 1文本 2图片');
$table->integer('workorder_id')->index()->comment('工单表id');
$table->string('publisher_type')->default('')->comment('回复人类型');
$table->integer('publisher_id')->comment('回复人id');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('workorder_item');
}
}

516
dcat_admin_ide_helper.php

@ -11,506 +11,518 @@ namespace Dcat\Admin {
use Illuminate\Support\Collection;
/**
* @property Grid\Column|Collection agent_id
* @property Grid\Column|Collection created_at
* @property Grid\Column|Collection desc
* @property Grid\Column|Collection id
* @property Grid\Column|Collection name
* @property Grid\Column|Collection picture
* @property Grid\Column|Collection tag
* @property Grid\Column|Collection updated_at
* @property Grid\Column|Collection content
* @property Grid\Column|Collection know
* @property Grid\Column|Collection product_id
* @property Grid\Column|Collection detail
* @property Grid\Column|Collection type
* @property Grid\Column|Collection version
* @property Grid\Column|Collection detail
* @property Grid\Column|Collection created_at
* @property Grid\Column|Collection updated_at
* @property Grid\Column|Collection is_enabled
* @property Grid\Column|Collection extension
* @property Grid\Column|Collection icon
* @property Grid\Column|Collection order
* @property Grid\Column|Collection parent_id
* @property Grid\Column|Collection order
* @property Grid\Column|Collection icon
* @property Grid\Column|Collection uri
* @property Grid\Column|Collection menu_id
* @property Grid\Column|Collection extension
* @property Grid\Column|Collection permission_id
* @property Grid\Column|Collection menu_id
* @property Grid\Column|Collection slug
* @property Grid\Column|Collection http_method
* @property Grid\Column|Collection http_path
* @property Grid\Column|Collection slug
* @property Grid\Column|Collection role_id
* @property Grid\Column|Collection user_id
* @property Grid\Column|Collection value
* @property Grid\Column|Collection avatar
* @property Grid\Column|Collection username
* @property Grid\Column|Collection password
* @property Grid\Column|Collection avatar
* @property Grid\Column|Collection remember_token
* @property Grid\Column|Collection username
* @property Grid\Column|Collection display
* @property Grid\Column|Collection sort
* @property Grid\Column|Collection agent_id
* @property Grid\Column|Collection picture
* @property Grid\Column|Collection status
* @property Grid\Column|Collection sort
* @property Grid\Column|Collection url
* @property Grid\Column|Collection display
* @property Grid\Column|Collection about
* @property Grid\Column|Collection buy_protocol
* @property Grid\Column|Collection reg_protocol
* @property Grid\Column|Collection agent_product_id
* @property Grid\Column|Collection buy_protocol
* @property Grid\Column|Collection supplier_id
* @property Grid\Column|Collection agent_cloud_pid
* @property Grid\Column|Collection category_id
* @property Grid\Column|Collection agent_product_id
* @property Grid\Column|Collection product_id
* @property Grid\Column|Collection product_ids
* @property Grid\Column|Collection price
* @property Grid\Column|Collection original_price
* @property Grid\Column|Collection sale
* @property Grid\Column|Collection stock
* @property Grid\Column|Collection channel_id
* @property Grid\Column|Collection deleted_at
* @property Grid\Column|Collection category_id
* @property Grid\Column|Collection guide_id
* @property Grid\Column|Collection verifier
* @property Grid\Column|Collection is_rec
* @property Grid\Column|Collection pictures
* @property Grid\Column|Collection know
* @property Grid\Column|Collection content
* @property Grid\Column|Collection deposit
* @property Grid\Column|Collection deposit_timeout
* @property Grid\Column|Collection earnest
* @property Grid\Column|Collection earnest_timeout
* @property Grid\Column|Collection guide_id
* @property Grid\Column|Collection is_cloud
* @property Grid\Column|Collection is_rec
* @property Grid\Column|Collection original_price
* @property Grid\Column|Collection pictures
* @property Grid\Column|Collection price
* @property Grid\Column|Collection product_ids
* @property Grid\Column|Collection sale
* @property Grid\Column|Collection stock
* @property Grid\Column|Collection verifier
* @property Grid\Column|Collection agent_cloud_pid
* @property Grid\Column|Collection deleted_at
* @property Grid\Column|Collection setting
* @property Grid\Column|Collection address
* @property Grid\Column|Collection appid
* @property Grid\Column|Collection appsecret
* @property Grid\Column|Collection company_name
* @property Grid\Column|Collection contact_phone
* @property Grid\Column|Collection director
* @property Grid\Column|Collection license_pic
* @property Grid\Column|Collection logo
* @property Grid\Column|Collection mchid
* @property Grid\Column|Collection mchkey
* @property Grid\Column|Collection company_name
* @property Grid\Column|Collection logo
* @property Grid\Column|Collection address
* @property Grid\Column|Collection license_pic
* @property Grid\Column|Collection director
* @property Grid\Column|Collection contact_phone
* @property Grid\Column|Collection rate
* @property Grid\Column|Collection agent_product_ids
* @property Grid\Column|Collection author
* @property Grid\Column|Collection image
* @property Grid\Column|Collection agent_product_ids
* @property Grid\Column|Collection pid
* @property Grid\Column|Collection template
* @property Grid\Column|Collection end_at
* @property Grid\Column|Collection tag
* @property Grid\Column|Collection start_at
* @property Grid\Column|Collection bidding_id
* @property Grid\Column|Collection bidding_user_id
* @property Grid\Column|Collection bidding_user_type
* @property Grid\Column|Collection end_at
* @property Grid\Column|Collection comment
* @property Grid\Column|Collection deadline
* @property Grid\Column|Collection demand_product_id
* @property Grid\Column|Collection images
* @property Grid\Column|Collection publisher_id
* @property Grid\Column|Collection publisher_type
* @property Grid\Column|Collection publisher_id
* @property Grid\Column|Collection state
* @property Grid\Column|Collection bidding_user_type
* @property Grid\Column|Collection bidding_user_id
* @property Grid\Column|Collection bidding_id
* @property Grid\Column|Collection images
* @property Grid\Column|Collection demand_product_id
* @property Grid\Column|Collection demand_id
* @property Grid\Column|Collection uuid
* @property Grid\Column|Collection connection
* @property Grid\Column|Collection queue
* @property Grid\Column|Collection payload
* @property Grid\Column|Collection exception
* @property Grid\Column|Collection failed_at
* @property Grid\Column|Collection payload
* @property Grid\Column|Collection queue
* @property Grid\Column|Collection uuid
* @property Grid\Column|Collection photo
* @property Grid\Column|Collection num
* @property Grid\Column|Collection order_id
* @property Grid\Column|Collection agent_cloud_price
* @property Grid\Column|Collection coupon_id
* @property Grid\Column|Collection mobile
* @property Grid\Column|Collection num
* @property Grid\Column|Collection order_no
* @property Grid\Column|Collection paid_at
* @property Grid\Column|Collection paid_money
* @property Grid\Column|Collection mobile
* @property Grid\Column|Collection pay_type
* @property Grid\Column|Collection coupon_id
* @property Grid\Column|Collection paid_money
* @property Grid\Column|Collection paid_at
* @property Grid\Column|Collection refund_info
* @property Grid\Column|Collection timeout
* @property Grid\Column|Collection verify_code
* @property Grid\Column|Collection timeout
* @property Grid\Column|Collection email
* @property Grid\Column|Collection token
* @property Grid\Column|Collection verify_mobile
* @property Grid\Column|Collection channels
* @property Grid\Column|Collection money
* @property Grid\Column|Collection desc
* @property Grid\Column|Collection transaction_id
* @property Grid\Column|Collection city
* @property Grid\Column|Collection country
* @property Grid\Column|Collection gender
* @property Grid\Column|Collection is_verify
* @property Grid\Column|Collection language
* @property Grid\Column|Collection nickname
* @property Grid\Column|Collection openid
* @property Grid\Column|Collection province
* @property Grid\Column|Collection unionid
* @property Grid\Column|Collection is_verify
* @property Grid\Column|Collection country
* @property Grid\Column|Collection province
* @property Grid\Column|Collection city
* @property Grid\Column|Collection gender
* @property Grid\Column|Collection language
* @property Grid\Column|Collection point_type
* @property Grid\Column|Collection point_id
* @property Grid\Column|Collection close_time
* @property Grid\Column|Collection workorder_id
*
* @method Grid\Column|Collection agent_id(string $label = null)
* @method Grid\Column|Collection created_at(string $label = null)
* @method Grid\Column|Collection desc(string $label = null)
* @method Grid\Column|Collection id(string $label = null)
* @method Grid\Column|Collection name(string $label = null)
* @method Grid\Column|Collection picture(string $label = null)
* @method Grid\Column|Collection tag(string $label = null)
* @method Grid\Column|Collection updated_at(string $label = null)
* @method Grid\Column|Collection content(string $label = null)
* @method Grid\Column|Collection know(string $label = null)
* @method Grid\Column|Collection product_id(string $label = null)
* @method Grid\Column|Collection detail(string $label = null)
* @method Grid\Column|Collection type(string $label = null)
* @method Grid\Column|Collection version(string $label = null)
* @method Grid\Column|Collection detail(string $label = null)
* @method Grid\Column|Collection created_at(string $label = null)
* @method Grid\Column|Collection updated_at(string $label = null)
* @method Grid\Column|Collection is_enabled(string $label = null)
* @method Grid\Column|Collection extension(string $label = null)
* @method Grid\Column|Collection icon(string $label = null)
* @method Grid\Column|Collection order(string $label = null)
* @method Grid\Column|Collection parent_id(string $label = null)
* @method Grid\Column|Collection order(string $label = null)
* @method Grid\Column|Collection icon(string $label = null)
* @method Grid\Column|Collection uri(string $label = null)
* @method Grid\Column|Collection menu_id(string $label = null)
* @method Grid\Column|Collection extension(string $label = null)
* @method Grid\Column|Collection permission_id(string $label = null)
* @method Grid\Column|Collection menu_id(string $label = null)
* @method Grid\Column|Collection slug(string $label = null)
* @method Grid\Column|Collection http_method(string $label = null)
* @method Grid\Column|Collection http_path(string $label = null)
* @method Grid\Column|Collection slug(string $label = null)
* @method Grid\Column|Collection role_id(string $label = null)
* @method Grid\Column|Collection user_id(string $label = null)
* @method Grid\Column|Collection value(string $label = null)
* @method Grid\Column|Collection avatar(string $label = null)
* @method Grid\Column|Collection username(string $label = null)
* @method Grid\Column|Collection password(string $label = null)
* @method Grid\Column|Collection avatar(string $label = null)
* @method Grid\Column|Collection remember_token(string $label = null)
* @method Grid\Column|Collection username(string $label = null)
* @method Grid\Column|Collection display(string $label = null)
* @method Grid\Column|Collection sort(string $label = null)
* @method Grid\Column|Collection agent_id(string $label = null)
* @method Grid\Column|Collection picture(string $label = null)
* @method Grid\Column|Collection status(string $label = null)
* @method Grid\Column|Collection sort(string $label = null)
* @method Grid\Column|Collection url(string $label = null)
* @method Grid\Column|Collection display(string $label = null)
* @method Grid\Column|Collection about(string $label = null)
* @method Grid\Column|Collection buy_protocol(string $label = null)
* @method Grid\Column|Collection reg_protocol(string $label = null)
* @method Grid\Column|Collection agent_product_id(string $label = null)
* @method Grid\Column|Collection buy_protocol(string $label = null)
* @method Grid\Column|Collection supplier_id(string $label = null)
* @method Grid\Column|Collection agent_cloud_pid(string $label = null)
* @method Grid\Column|Collection category_id(string $label = null)
* @method Grid\Column|Collection agent_product_id(string $label = null)
* @method Grid\Column|Collection product_id(string $label = null)
* @method Grid\Column|Collection product_ids(string $label = null)
* @method Grid\Column|Collection price(string $label = null)
* @method Grid\Column|Collection original_price(string $label = null)
* @method Grid\Column|Collection sale(string $label = null)
* @method Grid\Column|Collection stock(string $label = null)
* @method Grid\Column|Collection channel_id(string $label = null)
* @method Grid\Column|Collection deleted_at(string $label = null)
* @method Grid\Column|Collection category_id(string $label = null)
* @method Grid\Column|Collection guide_id(string $label = null)
* @method Grid\Column|Collection verifier(string $label = null)
* @method Grid\Column|Collection is_rec(string $label = null)
* @method Grid\Column|Collection pictures(string $label = null)
* @method Grid\Column|Collection know(string $label = null)
* @method Grid\Column|Collection content(string $label = null)
* @method Grid\Column|Collection deposit(string $label = null)
* @method Grid\Column|Collection deposit_timeout(string $label = null)
* @method Grid\Column|Collection earnest(string $label = null)
* @method Grid\Column|Collection earnest_timeout(string $label = null)
* @method Grid\Column|Collection guide_id(string $label = null)
* @method Grid\Column|Collection is_cloud(string $label = null)
* @method Grid\Column|Collection is_rec(string $label = null)
* @method Grid\Column|Collection original_price(string $label = null)
* @method Grid\Column|Collection pictures(string $label = null)
* @method Grid\Column|Collection price(string $label = null)
* @method Grid\Column|Collection product_ids(string $label = null)
* @method Grid\Column|Collection sale(string $label = null)
* @method Grid\Column|Collection stock(string $label = null)
* @method Grid\Column|Collection verifier(string $label = null)
* @method Grid\Column|Collection agent_cloud_pid(string $label = null)
* @method Grid\Column|Collection deleted_at(string $label = null)
* @method Grid\Column|Collection setting(string $label = null)
* @method Grid\Column|Collection address(string $label = null)
* @method Grid\Column|Collection appid(string $label = null)
* @method Grid\Column|Collection appsecret(string $label = null)
* @method Grid\Column|Collection company_name(string $label = null)
* @method Grid\Column|Collection contact_phone(string $label = null)
* @method Grid\Column|Collection director(string $label = null)
* @method Grid\Column|Collection license_pic(string $label = null)
* @method Grid\Column|Collection logo(string $label = null)
* @method Grid\Column|Collection mchid(string $label = null)
* @method Grid\Column|Collection mchkey(string $label = null)
* @method Grid\Column|Collection company_name(string $label = null)
* @method Grid\Column|Collection logo(string $label = null)
* @method Grid\Column|Collection address(string $label = null)
* @method Grid\Column|Collection license_pic(string $label = null)
* @method Grid\Column|Collection director(string $label = null)
* @method Grid\Column|Collection contact_phone(string $label = null)
* @method Grid\Column|Collection rate(string $label = null)
* @method Grid\Column|Collection agent_product_ids(string $label = null)
* @method Grid\Column|Collection author(string $label = null)
* @method Grid\Column|Collection image(string $label = null)
* @method Grid\Column|Collection agent_product_ids(string $label = null)
* @method Grid\Column|Collection pid(string $label = null)
* @method Grid\Column|Collection template(string $label = null)
* @method Grid\Column|Collection end_at(string $label = null)
* @method Grid\Column|Collection tag(string $label = null)
* @method Grid\Column|Collection start_at(string $label = null)
* @method Grid\Column|Collection bidding_id(string $label = null)
* @method Grid\Column|Collection bidding_user_id(string $label = null)
* @method Grid\Column|Collection bidding_user_type(string $label = null)
* @method Grid\Column|Collection end_at(string $label = null)
* @method Grid\Column|Collection comment(string $label = null)
* @method Grid\Column|Collection deadline(string $label = null)
* @method Grid\Column|Collection demand_product_id(string $label = null)
* @method Grid\Column|Collection images(string $label = null)
* @method Grid\Column|Collection publisher_id(string $label = null)
* @method Grid\Column|Collection publisher_type(string $label = null)
* @method Grid\Column|Collection publisher_id(string $label = null)
* @method Grid\Column|Collection state(string $label = null)
* @method Grid\Column|Collection bidding_user_type(string $label = null)
* @method Grid\Column|Collection bidding_user_id(string $label = null)
* @method Grid\Column|Collection bidding_id(string $label = null)
* @method Grid\Column|Collection images(string $label = null)
* @method Grid\Column|Collection demand_product_id(string $label = null)
* @method Grid\Column|Collection demand_id(string $label = null)
* @method Grid\Column|Collection uuid(string $label = null)
* @method Grid\Column|Collection connection(string $label = null)
* @method Grid\Column|Collection queue(string $label = null)
* @method Grid\Column|Collection payload(string $label = null)
* @method Grid\Column|Collection exception(string $label = null)
* @method Grid\Column|Collection failed_at(string $label = null)
* @method Grid\Column|Collection payload(string $label = null)
* @method Grid\Column|Collection queue(string $label = null)
* @method Grid\Column|Collection uuid(string $label = null)
* @method Grid\Column|Collection photo(string $label = null)
* @method Grid\Column|Collection num(string $label = null)
* @method Grid\Column|Collection order_id(string $label = null)
* @method Grid\Column|Collection agent_cloud_price(string $label = null)
* @method Grid\Column|Collection coupon_id(string $label = null)
* @method Grid\Column|Collection mobile(string $label = null)
* @method Grid\Column|Collection num(string $label = null)
* @method Grid\Column|Collection order_no(string $label = null)
* @method Grid\Column|Collection paid_at(string $label = null)
* @method Grid\Column|Collection paid_money(string $label = null)
* @method Grid\Column|Collection mobile(string $label = null)
* @method Grid\Column|Collection pay_type(string $label = null)
* @method Grid\Column|Collection coupon_id(string $label = null)
* @method Grid\Column|Collection paid_money(string $label = null)
* @method Grid\Column|Collection paid_at(string $label = null)
* @method Grid\Column|Collection refund_info(string $label = null)
* @method Grid\Column|Collection timeout(string $label = null)
* @method Grid\Column|Collection verify_code(string $label = null)
* @method Grid\Column|Collection timeout(string $label = null)
* @method Grid\Column|Collection email(string $label = null)
* @method Grid\Column|Collection token(string $label = null)
* @method Grid\Column|Collection verify_mobile(string $label = null)
* @method Grid\Column|Collection channels(string $label = null)
* @method Grid\Column|Collection money(string $label = null)
* @method Grid\Column|Collection desc(string $label = null)
* @method Grid\Column|Collection transaction_id(string $label = null)
* @method Grid\Column|Collection city(string $label = null)
* @method Grid\Column|Collection country(string $label = null)
* @method Grid\Column|Collection gender(string $label = null)
* @method Grid\Column|Collection is_verify(string $label = null)
* @method Grid\Column|Collection language(string $label = null)
* @method Grid\Column|Collection nickname(string $label = null)
* @method Grid\Column|Collection openid(string $label = null)
* @method Grid\Column|Collection province(string $label = null)
* @method Grid\Column|Collection unionid(string $label = null)
* @method Grid\Column|Collection is_verify(string $label = null)
* @method Grid\Column|Collection country(string $label = null)
* @method Grid\Column|Collection province(string $label = null)
* @method Grid\Column|Collection city(string $label = null)
* @method Grid\Column|Collection gender(string $label = null)
* @method Grid\Column|Collection language(string $label = null)
* @method Grid\Column|Collection point_type(string $label = null)
* @method Grid\Column|Collection point_id(string $label = null)
* @method Grid\Column|Collection close_time(string $label = null)
* @method Grid\Column|Collection workorder_id(string $label = null)
*/
class Grid {}
class MiniGrid extends Grid {}
/**
* @property Show\Field|Collection agent_id
* @property Show\Field|Collection created_at
* @property Show\Field|Collection desc
* @property Show\Field|Collection id
* @property Show\Field|Collection name
* @property Show\Field|Collection picture
* @property Show\Field|Collection tag
* @property Show\Field|Collection updated_at
* @property Show\Field|Collection content
* @property Show\Field|Collection know
* @property Show\Field|Collection product_id
* @property Show\Field|Collection detail
* @property Show\Field|Collection type
* @property Show\Field|Collection version
* @property Show\Field|Collection detail
* @property Show\Field|Collection created_at
* @property Show\Field|Collection updated_at
* @property Show\Field|Collection is_enabled
* @property Show\Field|Collection extension
* @property Show\Field|Collection icon
* @property Show\Field|Collection order
* @property Show\Field|Collection parent_id
* @property Show\Field|Collection order
* @property Show\Field|Collection icon
* @property Show\Field|Collection uri
* @property Show\Field|Collection menu_id
* @property Show\Field|Collection extension
* @property Show\Field|Collection permission_id
* @property Show\Field|Collection menu_id
* @property Show\Field|Collection slug
* @property Show\Field|Collection http_method
* @property Show\Field|Collection http_path
* @property Show\Field|Collection slug
* @property Show\Field|Collection role_id
* @property Show\Field|Collection user_id
* @property Show\Field|Collection value
* @property Show\Field|Collection avatar
* @property Show\Field|Collection username
* @property Show\Field|Collection password
* @property Show\Field|Collection avatar
* @property Show\Field|Collection remember_token
* @property Show\Field|Collection username
* @property Show\Field|Collection display
* @property Show\Field|Collection sort
* @property Show\Field|Collection agent_id
* @property Show\Field|Collection picture
* @property Show\Field|Collection status
* @property Show\Field|Collection sort
* @property Show\Field|Collection url
* @property Show\Field|Collection display
* @property Show\Field|Collection about
* @property Show\Field|Collection buy_protocol
* @property Show\Field|Collection reg_protocol
* @property Show\Field|Collection agent_product_id
* @property Show\Field|Collection buy_protocol
* @property Show\Field|Collection supplier_id
* @property Show\Field|Collection agent_cloud_pid
* @property Show\Field|Collection category_id
* @property Show\Field|Collection agent_product_id
* @property Show\Field|Collection product_id
* @property Show\Field|Collection product_ids
* @property Show\Field|Collection price
* @property Show\Field|Collection original_price
* @property Show\Field|Collection sale
* @property Show\Field|Collection stock
* @property Show\Field|Collection channel_id
* @property Show\Field|Collection deleted_at
* @property Show\Field|Collection category_id
* @property Show\Field|Collection guide_id
* @property Show\Field|Collection verifier
* @property Show\Field|Collection is_rec
* @property Show\Field|Collection pictures
* @property Show\Field|Collection know
* @property Show\Field|Collection content
* @property Show\Field|Collection deposit
* @property Show\Field|Collection deposit_timeout
* @property Show\Field|Collection earnest
* @property Show\Field|Collection earnest_timeout
* @property Show\Field|Collection guide_id
* @property Show\Field|Collection is_cloud
* @property Show\Field|Collection is_rec
* @property Show\Field|Collection original_price
* @property Show\Field|Collection pictures
* @property Show\Field|Collection price
* @property Show\Field|Collection product_ids
* @property Show\Field|Collection sale
* @property Show\Field|Collection stock
* @property Show\Field|Collection verifier
* @property Show\Field|Collection agent_cloud_pid
* @property Show\Field|Collection deleted_at
* @property Show\Field|Collection setting
* @property Show\Field|Collection address
* @property Show\Field|Collection appid
* @property Show\Field|Collection appsecret
* @property Show\Field|Collection company_name
* @property Show\Field|Collection contact_phone
* @property Show\Field|Collection director
* @property Show\Field|Collection license_pic
* @property Show\Field|Collection logo
* @property Show\Field|Collection mchid
* @property Show\Field|Collection mchkey
* @property Show\Field|Collection company_name
* @property Show\Field|Collection logo
* @property Show\Field|Collection address
* @property Show\Field|Collection license_pic
* @property Show\Field|Collection director
* @property Show\Field|Collection contact_phone
* @property Show\Field|Collection rate
* @property Show\Field|Collection agent_product_ids
* @property Show\Field|Collection author
* @property Show\Field|Collection image
* @property Show\Field|Collection agent_product_ids
* @property Show\Field|Collection pid
* @property Show\Field|Collection template
* @property Show\Field|Collection end_at
* @property Show\Field|Collection tag
* @property Show\Field|Collection start_at
* @property Show\Field|Collection bidding_id
* @property Show\Field|Collection bidding_user_id
* @property Show\Field|Collection bidding_user_type
* @property Show\Field|Collection end_at
* @property Show\Field|Collection comment
* @property Show\Field|Collection deadline
* @property Show\Field|Collection demand_product_id
* @property Show\Field|Collection images
* @property Show\Field|Collection publisher_id
* @property Show\Field|Collection publisher_type
* @property Show\Field|Collection publisher_id
* @property Show\Field|Collection state
* @property Show\Field|Collection bidding_user_type
* @property Show\Field|Collection bidding_user_id
* @property Show\Field|Collection bidding_id
* @property Show\Field|Collection images
* @property Show\Field|Collection demand_product_id
* @property Show\Field|Collection demand_id
* @property Show\Field|Collection uuid
* @property Show\Field|Collection connection
* @property Show\Field|Collection queue
* @property Show\Field|Collection payload
* @property Show\Field|Collection exception
* @property Show\Field|Collection failed_at
* @property Show\Field|Collection payload
* @property Show\Field|Collection queue
* @property Show\Field|Collection uuid
* @property Show\Field|Collection photo
* @property Show\Field|Collection num
* @property Show\Field|Collection order_id
* @property Show\Field|Collection agent_cloud_price
* @property Show\Field|Collection coupon_id
* @property Show\Field|Collection mobile
* @property Show\Field|Collection num
* @property Show\Field|Collection order_no
* @property Show\Field|Collection paid_at
* @property Show\Field|Collection paid_money
* @property Show\Field|Collection mobile
* @property Show\Field|Collection pay_type
* @property Show\Field|Collection coupon_id
* @property Show\Field|Collection paid_money
* @property Show\Field|Collection paid_at
* @property Show\Field|Collection refund_info
* @property Show\Field|Collection timeout
* @property Show\Field|Collection verify_code
* @property Show\Field|Collection timeout
* @property Show\Field|Collection email
* @property Show\Field|Collection token
* @property Show\Field|Collection verify_mobile
* @property Show\Field|Collection channels
* @property Show\Field|Collection money
* @property Show\Field|Collection desc
* @property Show\Field|Collection transaction_id
* @property Show\Field|Collection city
* @property Show\Field|Collection country
* @property Show\Field|Collection gender
* @property Show\Field|Collection is_verify
* @property Show\Field|Collection language
* @property Show\Field|Collection nickname
* @property Show\Field|Collection openid
* @property Show\Field|Collection province
* @property Show\Field|Collection unionid
* @property Show\Field|Collection is_verify
* @property Show\Field|Collection country
* @property Show\Field|Collection province
* @property Show\Field|Collection city
* @property Show\Field|Collection gender
* @property Show\Field|Collection language
* @property Show\Field|Collection point_type
* @property Show\Field|Collection point_id
* @property Show\Field|Collection close_time
* @property Show\Field|Collection workorder_id
*
* @method Show\Field|Collection agent_id(string $label = null)
* @method Show\Field|Collection created_at(string $label = null)
* @method Show\Field|Collection desc(string $label = null)
* @method Show\Field|Collection id(string $label = null)
* @method Show\Field|Collection name(string $label = null)
* @method Show\Field|Collection picture(string $label = null)
* @method Show\Field|Collection tag(string $label = null)
* @method Show\Field|Collection updated_at(string $label = null)
* @method Show\Field|Collection content(string $label = null)
* @method Show\Field|Collection know(string $label = null)
* @method Show\Field|Collection product_id(string $label = null)
* @method Show\Field|Collection detail(string $label = null)
* @method Show\Field|Collection type(string $label = null)
* @method Show\Field|Collection version(string $label = null)
* @method Show\Field|Collection detail(string $label = null)
* @method Show\Field|Collection created_at(string $label = null)
* @method Show\Field|Collection updated_at(string $label = null)
* @method Show\Field|Collection is_enabled(string $label = null)
* @method Show\Field|Collection extension(string $label = null)
* @method Show\Field|Collection icon(string $label = null)
* @method Show\Field|Collection order(string $label = null)
* @method Show\Field|Collection parent_id(string $label = null)
* @method Show\Field|Collection order(string $label = null)
* @method Show\Field|Collection icon(string $label = null)
* @method Show\Field|Collection uri(string $label = null)
* @method Show\Field|Collection menu_id(string $label = null)
* @method Show\Field|Collection extension(string $label = null)
* @method Show\Field|Collection permission_id(string $label = null)
* @method Show\Field|Collection menu_id(string $label = null)
* @method Show\Field|Collection slug(string $label = null)
* @method Show\Field|Collection http_method(string $label = null)
* @method Show\Field|Collection http_path(string $label = null)
* @method Show\Field|Collection slug(string $label = null)
* @method Show\Field|Collection role_id(string $label = null)
* @method Show\Field|Collection user_id(string $label = null)
* @method Show\Field|Collection value(string $label = null)
* @method Show\Field|Collection avatar(string $label = null)
* @method Show\Field|Collection username(string $label = null)
* @method Show\Field|Collection password(string $label = null)
* @method Show\Field|Collection avatar(string $label = null)
* @method Show\Field|Collection remember_token(string $label = null)
* @method Show\Field|Collection username(string $label = null)
* @method Show\Field|Collection display(string $label = null)
* @method Show\Field|Collection sort(string $label = null)
* @method Show\Field|Collection agent_id(string $label = null)
* @method Show\Field|Collection picture(string $label = null)
* @method Show\Field|Collection status(string $label = null)
* @method Show\Field|Collection sort(string $label = null)
* @method Show\Field|Collection url(string $label = null)
* @method Show\Field|Collection display(string $label = null)
* @method Show\Field|Collection about(string $label = null)
* @method Show\Field|Collection buy_protocol(string $label = null)
* @method Show\Field|Collection reg_protocol(string $label = null)
* @method Show\Field|Collection agent_product_id(string $label = null)
* @method Show\Field|Collection buy_protocol(string $label = null)
* @method Show\Field|Collection supplier_id(string $label = null)
* @method Show\Field|Collection agent_cloud_pid(string $label = null)
* @method Show\Field|Collection category_id(string $label = null)
* @method Show\Field|Collection agent_product_id(string $label = null)
* @method Show\Field|Collection product_id(string $label = null)
* @method Show\Field|Collection product_ids(string $label = null)
* @method Show\Field|Collection price(string $label = null)
* @method Show\Field|Collection original_price(string $label = null)
* @method Show\Field|Collection sale(string $label = null)
* @method Show\Field|Collection stock(string $label = null)
* @method Show\Field|Collection channel_id(string $label = null)
* @method Show\Field|Collection deleted_at(string $label = null)
* @method Show\Field|Collection category_id(string $label = null)
* @method Show\Field|Collection guide_id(string $label = null)
* @method Show\Field|Collection verifier(string $label = null)
* @method Show\Field|Collection is_rec(string $label = null)
* @method Show\Field|Collection pictures(string $label = null)
* @method Show\Field|Collection know(string $label = null)
* @method Show\Field|Collection content(string $label = null)
* @method Show\Field|Collection deposit(string $label = null)
* @method Show\Field|Collection deposit_timeout(string $label = null)
* @method Show\Field|Collection earnest(string $label = null)
* @method Show\Field|Collection earnest_timeout(string $label = null)
* @method Show\Field|Collection guide_id(string $label = null)
* @method Show\Field|Collection is_cloud(string $label = null)
* @method Show\Field|Collection is_rec(string $label = null)
* @method Show\Field|Collection original_price(string $label = null)
* @method Show\Field|Collection pictures(string $label = null)
* @method Show\Field|Collection price(string $label = null)
* @method Show\Field|Collection product_ids(string $label = null)
* @method Show\Field|Collection sale(string $label = null)
* @method Show\Field|Collection stock(string $label = null)
* @method Show\Field|Collection verifier(string $label = null)
* @method Show\Field|Collection agent_cloud_pid(string $label = null)
* @method Show\Field|Collection deleted_at(string $label = null)
* @method Show\Field|Collection setting(string $label = null)
* @method Show\Field|Collection address(string $label = null)
* @method Show\Field|Collection appid(string $label = null)
* @method Show\Field|Collection appsecret(string $label = null)
* @method Show\Field|Collection company_name(string $label = null)
* @method Show\Field|Collection contact_phone(string $label = null)
* @method Show\Field|Collection director(string $label = null)
* @method Show\Field|Collection license_pic(string $label = null)
* @method Show\Field|Collection logo(string $label = null)
* @method Show\Field|Collection mchid(string $label = null)
* @method Show\Field|Collection mchkey(string $label = null)
* @method Show\Field|Collection company_name(string $label = null)
* @method Show\Field|Collection logo(string $label = null)
* @method Show\Field|Collection address(string $label = null)
* @method Show\Field|Collection license_pic(string $label = null)
* @method Show\Field|Collection director(string $label = null)
* @method Show\Field|Collection contact_phone(string $label = null)
* @method Show\Field|Collection rate(string $label = null)
* @method Show\Field|Collection agent_product_ids(string $label = null)
* @method Show\Field|Collection author(string $label = null)
* @method Show\Field|Collection image(string $label = null)
* @method Show\Field|Collection agent_product_ids(string $label = null)
* @method Show\Field|Collection pid(string $label = null)
* @method Show\Field|Collection template(string $label = null)
* @method Show\Field|Collection end_at(string $label = null)
* @method Show\Field|Collection tag(string $label = null)
* @method Show\Field|Collection start_at(string $label = null)
* @method Show\Field|Collection bidding_id(string $label = null)
* @method Show\Field|Collection bidding_user_id(string $label = null)
* @method Show\Field|Collection bidding_user_type(string $label = null)
* @method Show\Field|Collection end_at(string $label = null)
* @method Show\Field|Collection comment(string $label = null)
* @method Show\Field|Collection deadline(string $label = null)
* @method Show\Field|Collection demand_product_id(string $label = null)
* @method Show\Field|Collection images(string $label = null)
* @method Show\Field|Collection publisher_id(string $label = null)
* @method Show\Field|Collection publisher_type(string $label = null)
* @method Show\Field|Collection publisher_id(string $label = null)
* @method Show\Field|Collection state(string $label = null)
* @method Show\Field|Collection bidding_user_type(string $label = null)
* @method Show\Field|Collection bidding_user_id(string $label = null)
* @method Show\Field|Collection bidding_id(string $label = null)
* @method Show\Field|Collection images(string $label = null)
* @method Show\Field|Collection demand_product_id(string $label = null)
* @method Show\Field|Collection demand_id(string $label = null)
* @method Show\Field|Collection uuid(string $label = null)
* @method Show\Field|Collection connection(string $label = null)
* @method Show\Field|Collection queue(string $label = null)
* @method Show\Field|Collection payload(string $label = null)
* @method Show\Field|Collection exception(string $label = null)
* @method Show\Field|Collection failed_at(string $label = null)
* @method Show\Field|Collection payload(string $label = null)
* @method Show\Field|Collection queue(string $label = null)
* @method Show\Field|Collection uuid(string $label = null)
* @method Show\Field|Collection photo(string $label = null)
* @method Show\Field|Collection num(string $label = null)
* @method Show\Field|Collection order_id(string $label = null)
* @method Show\Field|Collection agent_cloud_price(string $label = null)
* @method Show\Field|Collection coupon_id(string $label = null)
* @method Show\Field|Collection mobile(string $label = null)
* @method Show\Field|Collection num(string $label = null)
* @method Show\Field|Collection order_no(string $label = null)
* @method Show\Field|Collection paid_at(string $label = null)
* @method Show\Field|Collection paid_money(string $label = null)
* @method Show\Field|Collection mobile(string $label = null)
* @method Show\Field|Collection pay_type(string $label = null)
* @method Show\Field|Collection coupon_id(string $label = null)
* @method Show\Field|Collection paid_money(string $label = null)
* @method Show\Field|Collection paid_at(string $label = null)
* @method Show\Field|Collection refund_info(string $label = null)
* @method Show\Field|Collection timeout(string $label = null)
* @method Show\Field|Collection verify_code(string $label = null)
* @method Show\Field|Collection timeout(string $label = null)
* @method Show\Field|Collection email(string $label = null)
* @method Show\Field|Collection token(string $label = null)
* @method Show\Field|Collection verify_mobile(string $label = null)
* @method Show\Field|Collection channels(string $label = null)
* @method Show\Field|Collection money(string $label = null)
* @method Show\Field|Collection desc(string $label = null)
* @method Show\Field|Collection transaction_id(string $label = null)
* @method Show\Field|Collection city(string $label = null)
* @method Show\Field|Collection country(string $label = null)
* @method Show\Field|Collection gender(string $label = null)
* @method Show\Field|Collection is_verify(string $label = null)
* @method Show\Field|Collection language(string $label = null)
* @method Show\Field|Collection nickname(string $label = null)
* @method Show\Field|Collection openid(string $label = null)
* @method Show\Field|Collection province(string $label = null)
* @method Show\Field|Collection unionid(string $label = null)
* @method Show\Field|Collection is_verify(string $label = null)
* @method Show\Field|Collection country(string $label = null)
* @method Show\Field|Collection province(string $label = null)
* @method Show\Field|Collection city(string $label = null)
* @method Show\Field|Collection gender(string $label = null)
* @method Show\Field|Collection language(string $label = null)
* @method Show\Field|Collection point_type(string $label = null)
* @method Show\Field|Collection point_id(string $label = null)
* @method Show\Field|Collection close_time(string $label = null)
* @method Show\Field|Collection workorder_id(string $label = null)
*/
class Show {}

19
resources/lang/zh_CN/workorder.php

@ -0,0 +1,19 @@
<?php
return [
'labels' => [
'Workorder' => '工单',
'workorder' => '工单',
],
'fields' => [
'title' => '标题',
'content' => '内容',
'publisher_type' => '发布人类型',
'publisher_id' => '发布人id',
'point_type' => '接收人类型',
'point_id' => '接收人id',
'status' => '状态',
'close_time' => '关闭时间',
],
'options' => [
],
];
Loading…
Cancel
Save