| | |
| | | |
| | | use app\common\model\settings\Setting; |
| | | use app\supplier\model\product\Product as ProductModel; |
| | | use app\common\model\product\Category as CategoryModel; |
| | | use app\supplier\model\product\Category as CategoryModel; |
| | | use app\supplier\service\ProductService; |
| | | use app\supplier\model\supplier\Supplier as SupplierModel; |
| | | use app\supplier\controller\Controller; |
| | | use think\facade\Cache; |
| | | |
| | | /** |
| | | * 商品管理控制器 |
| | |
| | | $model = new ProductModel; |
| | | $list = $model->getList(array_merge(['status' => -1, 'shop_supplier_id' => $this->getSupplierId()], $this->postData())); |
| | | // 商品分类 |
| | | $category = CategoryModel::getCacheTree(); |
| | | $category = CategoryModel::getSupplierCacheTree($this->getSupplierId()); |
| | | |
| | | // 数量 |
| | | $product_count = [ |
| | | 'sell' => $model->getCount('sell', $this->getSupplierId()), |