- Deleted `data-table-actions.vue` component as it is no longer needed. - Removed `CuttingResultPriceItem` type and related properties from `cutting.ts`. - Updated routes in `web.php` to eliminate stock verification routes and permissions. - Removed `StockTest.php` file and its associated tests for stock verification and management. - Adjusted `CuttingTest.php` to reflect changes in cutting results handling and removed references to product variants.
49 lines
1.4 KiB
Vue
49 lines
1.4 KiB
Vue
<script setup lang="ts">
|
|
import { Head } from '@inertiajs/vue3';
|
|
import BackButton from '@/components/button/BackButton.vue';
|
|
import AdminLayout from '@/layouts/AdminLayout.vue';
|
|
import { index, store } from '@/routes/admin/manage/cuttings';
|
|
import type {
|
|
CuttingMaterialCartItem,
|
|
CuttingRawMaterialCatalogItem,
|
|
CuttingResultCartItem,
|
|
} from '@/types/cutting';
|
|
import type { EnumOption } from '@/types/raw-material';
|
|
import CuttingPosForm from './form/CuttingPosForm.vue';
|
|
|
|
defineProps<{
|
|
rawMaterialCatalog: CuttingRawMaterialCatalogItem[];
|
|
draftMaterials: CuttingMaterialCartItem[];
|
|
draftResults: CuttingResultCartItem[];
|
|
units: EnumOption[];
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<Head title="Tambah Cutting" />
|
|
|
|
<AdminLayout>
|
|
<div
|
|
class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"
|
|
>
|
|
<div class="space-y-1">
|
|
<h2 class="text-2xl font-bold tracking-tight">
|
|
Tambah Cutting
|
|
</h2>
|
|
</div>
|
|
|
|
<BackButton :href="index.url()" />
|
|
</div>
|
|
|
|
<CuttingPosForm
|
|
:raw-material-catalog="rawMaterialCatalog"
|
|
:draft-materials="draftMaterials"
|
|
:draft-results="draftResults"
|
|
:units="units"
|
|
:submit-url="store.url()"
|
|
method="post"
|
|
submit-label="Simpan"
|
|
/>
|
|
</AdminLayout>
|
|
</template>
|