|
|
@@ -183,8 +183,8 @@ class OrderService extends BaseService
|
|
|
$payWay = dict::getDict('payWay', 'debtPay');
|
|
|
}
|
|
|
//销售单的自取还是配送字段 与 采购单的转换
|
|
|
- $sendType = $data['sendType'] ?? OrderClass::SEND_TYPE_MYSELF;
|
|
|
- $getType = $sendType == OrderClass::SEND_TYPE_NO ? PurchaseClass::GET_TYPE_SELF_GET : PurchaseClass::GET_TYPE_SEND;
|
|
|
+ $sendType = $data['sendType'] ?? OrderClass::SEND_TYPE_CAR_GET;
|
|
|
+ $getType = $sendType == OrderClass::SEND_TYPE_THIRD_SEND ? PurchaseClass::GET_TYPE_SEND : PurchaseClass::GET_TYPE_SELF_GET;
|
|
|
|
|
|
//零售采购单时没有传price字段,供货商可以改价会传price字段,这里转成userPrice以便采购单识别使用改的价还是花材原价!
|
|
|
$currentProduct = $data['product'];
|
|
|
@@ -222,6 +222,7 @@ class OrderService extends BaseService
|
|
|
'cgStyle' => dict::getDict('cgStyle', 'ghs'),
|
|
|
'debt' => $purchaseDebt,
|
|
|
'getType' => $getType,
|
|
|
+ 'sendType' => $sendType,
|
|
|
'remark' => $remark,
|
|
|
'xj' => $xj,
|
|
|
'discount' => 1,
|