修复bug
This commit is contained in:
@@ -12,13 +12,16 @@ use common\models\DrugStoreDrug;
|
||||
use common\models\DrugStoreRelations;
|
||||
use common\models\ExpressCompanies;
|
||||
use common\models\ExpressNos;
|
||||
use common\models\FundWater;
|
||||
use common\models\Log;
|
||||
use common\models\ProductOrder;
|
||||
use common\models\Store;
|
||||
use common\services\ExportService;
|
||||
use GuzzleHttp\Client;
|
||||
use moonland\phpexcel\Excel;
|
||||
use yii\db\Exception;
|
||||
use yii\helpers\Json;
|
||||
use yii\web\Response;
|
||||
use yii\web\UploadedFile;
|
||||
|
||||
/**
|
||||
@@ -696,6 +699,30 @@ class WareController extends BaseAdminController
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @doc-name 导出药品价格
|
||||
*/
|
||||
public function actionExportDrugByWareStore()
|
||||
{
|
||||
\Yii::$app->response->format = Response::FORMAT_RAW;
|
||||
$params = \Yii::$app->request->post();
|
||||
$parameter['header'] = ['药品ID', '药品名称', '供货价', '建议零售价', '销售价格'];
|
||||
$parameter['data'] = DrugStoreRelations::inventory($params, \Yii::$app->user->identity->store_id);
|
||||
ExportService::ExportByCors($parameter);
|
||||
}
|
||||
/**
|
||||
* @doc-name 导出药品价格
|
||||
*/
|
||||
public function actionExportDrugByWare()
|
||||
{
|
||||
\Yii::$app->response->format = Response::FORMAT_RAW;
|
||||
$params = \Yii::$app->request->post();
|
||||
$parameter['header'] = ['药品ID', '药品名称', '供货价', '建议零售价'];
|
||||
$parameter['data'] = DrugStoreDrug::inventory($params, \Yii::$app->user->identity->store_id);
|
||||
ExportService::ExportByCors($parameter);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @doc-name 仓库药品列表 - 门店
|
||||
* @doc-param int status 状态1下架2上架 / optional
|
||||
|
||||
Reference in New Issue
Block a user