zhangwencui
3 天以前 a8809c3d35b66f4becc87ac8ac67503aa83c7359
src/views/productionManagement/productionReporting/Input.vue
@@ -24,10 +24,15 @@
<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,
  },
});
@@ -55,7 +60,7 @@
  },
  {
    label: '产品型号',
    prop: 'productModelName',
    prop: 'model',
  },
  {
    label: '投入数量',
@@ -79,6 +84,16 @@
};
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({