zhangwencui
6 天以前 905cfed9b092caf16143e2a2a21bc740d268c1dc
产出数量字段名修改
已修改2个文件
64 ■■■■ 文件已修改
src/views/productionManagement/productionReporting/Output.vue 51 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrder/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/Output.vue
@@ -1,21 +1,18 @@
<template>
  <div>
    <el-dialog
        v-model="isShow"
    <el-dialog v-model="isShow"
        title="产出"
        @close="closeModal"
    >
      <PIMTable
          rowKey="id"
               @close="closeModal">
      <PIMTable rowKey="id"
          :column="tableColumn"
          :tableData="data"
          :page="page"
          :tableLoading="tableLoading"
          @pagination="pagination"
      ></PIMTable>
                @pagination="pagination"></PIMTable>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="closeModal">关闭</el-button>
          <el-button type="primary"
                     @click="closeModal">关闭</el-button>
        </div>
      </template>
    </el-dialog>
@@ -37,15 +34,15 @@
  },
});
const emit = defineEmits(['update:visible', 'completed']);
  const emit = defineEmits(["update:visible", "completed"]);
const page = reactive({
  current: 1,
  size: 100,
  total: 0
    total: 0,
});
const pagination = (obj) => {
  const pagination = obj => {
  page.current = obj.page;
  page.size = obj.limit;
  fetchData();
@@ -55,29 +52,29 @@
const tableColumn = [
  {
    label: '报工单号',
    prop: 'productNo',
      label: "报工单号",
      prop: "productNo",
  },
  {
    label: '产品型号',
    prop: 'model',
      label: "产品型号",
      prop: "model",
  },
  {
    label: '投入数量',
    prop: 'quantity',
      label: "产出数量",
      prop: "quantity",
  },
]
  ];
const isShow = computed({
  get() {
    return props.visible;
  },
  set(val) {
    emit('update:visible', val);
      emit("update:visible", val);
  },
});
const data = ref([])
  const data = ref([]);
const closeModal = () => {
  isShow.value = false;
@@ -87,13 +84,15 @@
  tableLoading.value = true;
  const params = { productMainId: props.productionProductMainId, ...page };
  productionProductOutputListPage(params).then(res => {
    productionProductOutputListPage(params)
      .then(res => {
    tableLoading.value = false;
    data.value = res.data.records;
    page.total = res.data.total;
  }).catch(err => {
    tableLoading.value = false;
  })
      .catch(err => {
        tableLoading.value = false;
      });
};
defineExpose({
@@ -102,6 +101,6 @@
});
onMounted(() => {
  fetchData()
})
    fetchData();
  });
</script>
src/views/productionManagement/workOrder/index.vue
@@ -164,7 +164,7 @@
      <el-form :model="reportForm"
               label-width="120px">
        <el-form-item label="待生产数量">
          <el-input v-model="reportForm.remainingQuantity"
          <el-input v-model="reportForm.planQuantity"
                    readonly
                    style="width: 300px" />
        </el-form-item>
@@ -231,6 +231,11 @@
      prop: "processName",
    },
    {
      label: "待生产数量",
      prop: "planQuantity",
      width: "140",
    },
    {
      label: "计划生产数量",
      prop: "quantity",
      width: "140",
@@ -294,7 +299,7 @@
  const transferCardRowData = ref(null);
  const reportDialogVisible = ref(false);
  const reportForm = reactive({
    remainingQuantity: 0,
    planQuantity: 0,
    quantity: 0,
    userName: "",
    workOrderId: "",
@@ -378,7 +383,7 @@
  const showReportDialog = row => {
    currentReportRowData.value = row;
    reportForm.remainingQuantity = 1;
    reportForm.planQuantity = row.planQuantity;
    reportForm.quantity = row.quantity;
    reportForm.productProcessRouteItemId = row.productProcessRouteItemId;
    reportForm.workOrderId = row.id;
@@ -396,7 +401,7 @@
      });
      return;
    }
    if (reportForm.quantity > reportForm.remainingQuantity) {
    if (reportForm.quantity > reportForm.planQuantity) {
      ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", {
        confirmButtonText: "确定",
      });