diff --git a/application/admin/form/Goods.php b/application/admin/form/Goods.php index 2e3f8c808..b931694fd 100644 --- a/application/admin/form/Goods.php +++ b/application/admin/form/Goods.php @@ -86,18 +86,30 @@ class Goods ], ], [ - 'label' => '商品类型', + 'label' => '商品分类', 'view_type' => 'field', - 'view_key' => 'site_type', - 'view_data_key' => 'name', - 'view_data' => lang('common_site_type_list'), + 'view_key' => 'category_text', 'search_config' => [ - 'form_type' => 'select', - 'where_type' => 'in', - 'data' => lang('common_site_type_list'), - 'data_key' => 'value', + 'form_type' => 'module', + 'template' => 'lib/module/goods_category', + 'form_name' => 'id', + 'where_type' => 'in', + 'where_handle_custom' => 'WhereValueGoodsCategory', + 'data' => GoodsService::GoodsCategoryAll(), + ], + ], + [ + 'label' => '品牌', + 'view_type' => 'field', + 'view_key' => 'brand_name', + 'search_config' => [ + 'form_type' => 'module', + 'template' => 'lib/module/category_brand', + 'form_name' => 'brand_id', + 'data' => BrandService::CategoryBrand(), + 'data_key' => 'id', 'data_name' => 'name', - 'is_multiple' => 1, + 'where_type' => 'in', ], ], [ @@ -176,6 +188,21 @@ class Goods 'is_multiple' => 1, ], ], + [ + 'label' => '商品类型', + 'view_type' => 'field', + 'view_key' => 'site_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_site_type_list'), + 'search_config' => [ + 'form_type' => 'select', + 'where_type' => 'in', + 'data' => lang('common_site_type_list'), + 'data_key' => 'value', + 'data_name' => 'name', + 'is_multiple' => 1, + ], + ], [ 'label' => '商品型号', 'view_type' => 'field', @@ -185,33 +212,6 @@ class Goods 'where_type' => 'like', ], ], - [ - 'label' => '商品分类', - 'view_type' => 'field', - 'view_key' => 'category_text', - 'search_config' => [ - 'form_type' => 'module', - 'template' => 'lib/module/goods_category', - 'form_name' => 'id', - 'where_type' => 'in', - 'where_handle_custom' => 'WhereValueGoodsCategory', - 'data' => GoodsService::GoodsCategoryAll(), - ], - ], - [ - 'label' => '品牌', - 'view_type' => 'field', - 'view_key' => 'brand_name', - 'search_config' => [ - 'form_type' => 'module', - 'template' => 'lib/module/category_brand', - 'form_name' => 'brand_id', - 'data' => BrandService::CategoryBrand(), - 'data_key' => 'id', - 'data_name' => 'name', - 'where_type' => 'in', - ], - ], [ 'label' => '生产地', 'view_type' => 'field', diff --git a/application/admin/view/default/site/attachment.html b/application/admin/view/default/site/attachment.html index 43e3a0fdc..e857ecbe6 100644 --- a/application/admin/view/default/site/attachment.html +++ b/application/admin/view/default/site/attachment.html @@ -11,15 +11,30 @@