|
|
@@ -3,6 +3,7 @@
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
use App\Components\AsyncResponse;
|
|
|
+use App\OracleDOCASNDetail;
|
|
|
use App\OracleDOCASNHeader;
|
|
|
use App\Services\HandInStorageService;
|
|
|
use Carbon\Carbon;
|
|
|
@@ -55,8 +56,11 @@ class HandInStorageController extends Controller
|
|
|
$customerid=OracleDOCASNHeader::query()->where('asnno',$asnno)->value('customerid');
|
|
|
$qualityStatus=$handInStorageService->getQualityStatus();
|
|
|
$attributeLocations=$handInStorageService->getAttributeLocation();
|
|
|
+ $asnQty=$handInStorageService->getAsnQty($asnno);
|
|
|
return view('store.handInStorage.receiveDetailPage')
|
|
|
- ->with(['asnno'=>$asnno,'customerid'=>$customerid,'qualityStatus'=>$qualityStatus,'attributeLocations'=>$attributeLocations]);
|
|
|
+ ->with(['asn_expectedqty'=>$asnQty->expectedqty,'asn_receivedqty'=>$asnQty->receivedqty,
|
|
|
+ 'asnno'=>$asnno,'customerid'=>$customerid,
|
|
|
+ 'qualityStatus'=>$qualityStatus,'attributeLocations'=>$attributeLocations]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -113,8 +117,10 @@ class HandInStorageController extends Controller
|
|
|
if ($handInStorageService->checkForwardingLoc($info)===1)$this->error('请维护拣货位');
|
|
|
try {
|
|
|
$result = $handInStorageService->fluxHandIn($info);
|
|
|
- if ($result)$this->success("收货成功");
|
|
|
- else $this->error("收货失败");
|
|
|
+ if ($result){
|
|
|
+ $asnQty=$handInStorageService->getAsnQty($info['asnno']);
|
|
|
+ $this->success($asnQty);
|
|
|
+ } else $this->error("收货失败");
|
|
|
} catch (\Exception $e) {
|
|
|
app('LogService')->log(__METHOD__,'error_'.__FUNCTION__,json_encode($info).'|catch:'.$e->getMessage());
|
|
|
}
|