|
|
@@ -1041,6 +1041,34 @@ class PurchaseController extends BaseController
|
|
|
util::success($respond);
|
|
|
}
|
|
|
|
|
|
+ //获取合并采购单列表 ssh 20260519
|
|
|
+ public function actionMergeOrderList()
|
|
|
+ {
|
|
|
+ Yii::$app->params['pageSize'] = 9999;
|
|
|
+
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $mergeId = $get['mergeId'] ?? 0;
|
|
|
+ $ghsId = $get['ghsId'] ?? 0;
|
|
|
+ if (empty($mergeId)) {
|
|
|
+ util::fail('请选择采购单');
|
|
|
+ }
|
|
|
+ if (empty($ghsId)) {
|
|
|
+ util::fail('请选择供货商');
|
|
|
+ }
|
|
|
+ $ghsInfo = GhsClass::getGhsInfo($ghsId);
|
|
|
+ GhsClass::valid($ghsInfo, $this->shopId);
|
|
|
+ $where = [
|
|
|
+ 'ghsId' => $ghsId,
|
|
|
+ 'mergeId' => $mergeId,
|
|
|
+ ];
|
|
|
+ $respond = PurchaseService::getPurchaseList($where);
|
|
|
+ if (empty($respond['list'])) {
|
|
|
+ util::fail('请选择采购单');
|
|
|
+ }
|
|
|
+ $respond['shop'] = $this->shop->attributes;
|
|
|
+ util::success($respond);
|
|
|
+ }
|
|
|
+
|
|
|
//采购详情 ssh 2021.01.25
|
|
|
public function actionDetail()
|
|
|
{
|