123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?php
- namespace App\Http\Controllers\Api;
- use App\Service\ReportFormsService;
- use Illuminate\Http\Request;
- class ReportFormsController extends BaseController
- {
- //生产进度
- public function productionReport(Request $request){
- $service = new ReportFormsService();
- list($status,$data) = $service->productionReport($request->all());
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- //班组
- public function teamReport(Request $request){
- $service = new ReportFormsService();
- list($status,$data) = $service->teamReport($request->all());
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- //班组 详情
- public function teamReportDetail(Request $request){
- $service = new ReportFormsService();
- list($status,$data) = $service->teamReportDetail($request->all());
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- //不良品
- public function badGoodsReport(Request $request){
- $service = new ReportFormsService();
- list($status,$data) = $service->badGoodsReport($request->all());
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- //不良品 详情
- public function badGoodsReportDetail(Request $request){
- $service = new ReportFormsService();
- list($status,$data) = $service->badGoodsReportDetail($request->all());
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- //不良品原因
- public function badGoodsReasonReport(Request $request){
- $service = new ReportFormsService();
- list($status,$data) = $service->badGoodsReasonReport($request->all());
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- //不良品原因详情
- public function badGoodsReasonReportDetail(Request $request){
- $service = new ReportFormsService();
- list($status,$data) = $service->badGoodsReasonReportDetail($request->all());
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- }
|