|
@@ -35,7 +35,8 @@ class ProductController extends BaseController
|
|
|
|
|
|
|
|
//获取所有当前供应商的分类 (全部、常用)
|
|
//获取所有当前供应商的分类 (全部、常用)
|
|
|
//根据分类组装分类下的花材信息
|
|
//根据分类组装分类下的花材信息
|
|
|
- $classIds = ItemClassClass::getGhsItemClassAll($this->sjId);
|
|
|
|
|
|
|
+ //中央ID
|
|
|
|
|
+ $classIds = ItemClassClass::getGhsItemClassAll($this->mainId);
|
|
|
|
|
|
|
|
$where['mainId'] = $this->mainId;
|
|
$where['mainId'] = $this->mainId;
|
|
|
if ($py) {
|
|
if ($py) {
|
|
@@ -702,7 +703,7 @@ class ProductController extends BaseController
|
|
|
public function actionGeneratePriceTable()
|
|
public function actionGeneratePriceTable()
|
|
|
{
|
|
{
|
|
|
$level = Yii::$app->request->get('level', 0);
|
|
$level = Yii::$app->request->get('level', 0);
|
|
|
- $respond = ProductService::generatePriceTable($this->sjId, $this->shopId, $level);
|
|
|
|
|
|
|
+ $respond = ProductService::generatePriceTable($this->sjId, $this->shopId, $level,$this->mainId);
|
|
|
$file = $respond['file'] ?? '';
|
|
$file = $respond['file'] ?? '';
|
|
|
$shortFile = $respond['shortFile'] ?? '';
|
|
$shortFile = $respond['shortFile'] ?? '';
|
|
|
$fileUrl = Yii::$app->params['ghsHost'] . $file;
|
|
$fileUrl = Yii::$app->params['ghsHost'] . $file;
|
|
@@ -712,7 +713,7 @@ class ProductController extends BaseController
|
|
|
//下载条形码 linqh 20211227
|
|
//下载条形码 linqh 20211227
|
|
|
public function actionGenerateBarcodeTable()
|
|
public function actionGenerateBarcodeTable()
|
|
|
{
|
|
{
|
|
|
- $respond = ProductService::generateBarcodeTable($this->sjId, $this->shopId);
|
|
|
|
|
|
|
+ $respond = ProductService::generateBarcodeTable($this->sjId, $this->shopId,$this->mainId);
|
|
|
$file = $respond['file'] ?? '';
|
|
$file = $respond['file'] ?? '';
|
|
|
$shortFile = $respond['shortFile'] ?? '';
|
|
$shortFile = $respond['shortFile'] ?? '';
|
|
|
$fileUrl = Yii::$app->params['ghsHost'] . $file;
|
|
$fileUrl = Yii::$app->params['ghsHost'] . $file;
|