|
|
@@ -24,6 +24,25 @@ class GhsController extends BaseController
|
|
|
'zs' => ['name' => '金店', 'num' => 0, 'amount' => 0, 'key' => 'zs'],
|
|
|
];
|
|
|
|
|
|
+ //是否屏蔽 ssh 20230226
|
|
|
+ public function actionChangeDelStatus()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $ghsId = $get['ghsId'] ?? 0;
|
|
|
+ $delStatus = $get['delStatus'] ?? 0;
|
|
|
+ $ghs = GhsClass::getById($ghsId, true);
|
|
|
+ if (empty($ghs)) {
|
|
|
+ util::fail('没有找到供货商');
|
|
|
+ }
|
|
|
+ $ownMainId = $ghs->ownMainId ?? 0;
|
|
|
+ if ($ownMainId != $this->mainId) {
|
|
|
+ util::fail('没有权限操作');
|
|
|
+ }
|
|
|
+ $ghs->delStatus = $delStatus;
|
|
|
+ $ghs->save();
|
|
|
+ util::complete('操作成功');
|
|
|
+ }
|
|
|
+
|
|
|
//获取供货商物流 ssh 20230105
|
|
|
public function actionGetAllWl()
|
|
|
{
|