|
|
@@ -39,10 +39,10 @@ class PurchaseController extends BaseController
|
|
|
if (empty($info)) {
|
|
|
util::fail('没有找到采购单');
|
|
|
}
|
|
|
- if (isset($info->mainId) == false || $info->mainId != $this->mainId) {
|
|
|
+ if (isset($info['mainId']) == false || $info['mainId'] != $this->mainId) {
|
|
|
util::fail('没有权限访问');
|
|
|
}
|
|
|
- $orderSn = $info->orderSn ?? '';
|
|
|
+ $orderSn = $info['orderSn'] ?? '';
|
|
|
$list = PurchaseItemClass::getAllByCondition(['orderSn' => $orderSn], null, '*');
|
|
|
if (!empty($list)) {
|
|
|
foreach ($list as $key => $item) {
|
|
|
@@ -54,7 +54,8 @@ class PurchaseController extends BaseController
|
|
|
$list[$key]['shortCover'] = $shortCover;
|
|
|
}
|
|
|
}
|
|
|
- util::success(['list' => $list, 'info' => $info]);
|
|
|
+ $info['product'] = $list;
|
|
|
+ util::success($info);
|
|
|
}
|
|
|
|
|
|
//虚拟供货商的采购 ssh 20230308
|