| | |
| | | |
| | | <script setup> |
| | | import {ref, computed, onMounted} from "vue"; |
| | | import { productionProductInputListPage } from "@/api/productionManagement/productionProductInput"; |
| | | |
| | | const props = defineProps({ |
| | | visible: { |
| | | type: Boolean, |
| | | required: true, |
| | | }, |
| | | productionProductMainId: { |
| | | type: Number, |
| | | required: true, |
| | | }, |
| | | }); |
| | |
| | | }, |
| | | { |
| | | label: '产品型号', |
| | | prop: 'productModelName', |
| | | prop: 'model', |
| | | }, |
| | | { |
| | | label: '投入数量', |
| | |
| | | }; |
| | | |
| | | const fetchData = () => { |
| | | tableLoading.value = true; |
| | | const params = { productMainId: props.productionProductMainId, ...page }; |
| | | |
| | | productionProductInputListPage(params).then(res => { |
| | | tableLoading.value = false; |
| | | data.value = res.data.records; |
| | | page.total = res.data.total; |
| | | }).catch(err => { |
| | | tableLoading.value = false; |
| | | }) |
| | | }; |
| | | |
| | | defineExpose({ |