|
|
@@ -463,9 +463,9 @@ class PurchaseOrderController extends BaseController
|
|
|
|
|
|
$shop = $this->shop;
|
|
|
$bookSn = $shop->bookSn ?? 0;
|
|
|
- if(!empty($bookSn)){
|
|
|
+ if (!empty($bookSn)) {
|
|
|
if (empty($cgStaffId)) {
|
|
|
- util::fail('请选择采购人');
|
|
|
+ util::fail('请选择采购人哦');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -519,9 +519,9 @@ class PurchaseOrderController extends BaseController
|
|
|
$post['itemInfo'] = $ghsItemInfo;
|
|
|
//0稍后入库 1直接入库
|
|
|
$inType = $post['inType'] ?? PurchaseOrderClass::IN_TYPE_NOW;
|
|
|
-
|
|
|
- if ($inType == 1 && !empty($bookSn)) {
|
|
|
- util::fail('开启预订不能直接入库');
|
|
|
+ if (!empty($bookSn)) {
|
|
|
+ //如果是预订,直接转成待入库状态
|
|
|
+ $inType = PurchaseOrderClass::IN_TYPE_LATER;
|
|
|
}
|
|
|
$post['bookSn'] = $bookSn;
|
|
|
|