|
|
@@ -3,15 +3,7 @@
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
use App\Components\AsyncResponse;
|
|
|
-use App\Order;
|
|
|
-use App\PrintPart;
|
|
|
-use App\PrintPartImage;
|
|
|
-use App\PrintTemplate;
|
|
|
-use App\Services\PrintPartService;
|
|
|
-use Illuminate\Database\Eloquent\Builder;
|
|
|
-use Illuminate\Http\RedirectResponse;
|
|
|
use Illuminate\Http\Request;
|
|
|
-use Illuminate\Support\Facades\Http;
|
|
|
|
|
|
class PrintPartController extends Controller
|
|
|
{
|
|
|
@@ -19,21 +11,10 @@ class PrintPartController extends Controller
|
|
|
|
|
|
public function create(Request $request)
|
|
|
{
|
|
|
- $imgPrintPart = app(PrintPartService::class)->getImagePart();
|
|
|
- return view('maintenance.expressPrinting.part.create',compact('imgPrintPart'));
|
|
|
+ // 废弃
|
|
|
+ //$imgPrintPart = app(PrintPartService::class)->getImagePart();
|
|
|
+ //return view('maintenance.expressPrinting.part.create',compact('imgPrintPart'));
|
|
|
}
|
|
|
|
|
|
- public function storeApi(Request $request): RedirectResponse
|
|
|
- {
|
|
|
- PrintPart::query()->create($request->all());
|
|
|
- $this->success('添加成功');
|
|
|
- }
|
|
|
-
|
|
|
- public function destroyApi(Request $request)
|
|
|
- {
|
|
|
- $printPart = PrintPart::query()->find($request['id']);
|
|
|
- $printPart->delete();
|
|
|
- $this->success('删除成功');
|
|
|
- }
|
|
|
|
|
|
}
|