|
|
@@ -293,25 +293,6 @@ class OrderItemController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //重选花材 ssh 2021.3.2
|
|
|
- public function actionReset()
|
|
|
- {
|
|
|
- $post = Yii::$app->request->post();
|
|
|
- $id = $post['id'] ?? 0;
|
|
|
- $product = $post['product'] ?? '[]';
|
|
|
- $product = json_decode($product, true);
|
|
|
- //检查花材是否都是同家门店的
|
|
|
- ProductClass::valid($product, $this->mainId);
|
|
|
-
|
|
|
- $info = OrderService::getOrderInfo($id);
|
|
|
- OrderClass::valid($info, $this->shopId);
|
|
|
-
|
|
|
- //添加修改花材
|
|
|
- $orderSn = $info['orderSn'] ?? '';
|
|
|
- OrderItemClass::replaceItem($orderSn, $product);
|
|
|
- util::complete();
|
|
|
- }
|
|
|
-
|
|
|
//修改花材时获取订单花材和花材基本信息的组合 ssh 20210809
|
|
|
public function actionGetOrderProduct()
|
|
|
{
|