|
|
@@ -17,10 +17,14 @@ class PurchaseController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
|
+ $confirm = $get['confirm'] ?? -1;
|
|
|
$shortOrderSn = $get['shortOrderSn'] ?? '';
|
|
|
$info = GhsClass::getGhsInfo($id);
|
|
|
GhsClass::valid($info, $this->shopId);
|
|
|
$where = ['ghsId' => $id, 'debt' => PurchaseOrderClass::DEBT_YES];
|
|
|
+ if ($confirm > -1) {
|
|
|
+ $where['confirm'] = $confirm;
|
|
|
+ }
|
|
|
$searchTime = $get['searchTime'] ?? '';
|
|
|
if (!empty($searchTime)) {
|
|
|
$startTime = $get['startTime'] ?? '';
|
|
|
@@ -36,4 +40,10 @@ class PurchaseController extends BaseController
|
|
|
util::success($respond);
|
|
|
}
|
|
|
|
|
|
+ //批量确认 ssh 20240518
|
|
|
+ public function actionBatchConfirm()
|
|
|
+ {
|
|
|
+ util::complete('确认成功');
|
|
|
+ }
|
|
|
+
|
|
|
}
|