spring
4 天以前 6361501810a76b6809162cac99b0d9c1faba3715
src/views/productionManagement/workOrderManagement/index.vue
@@ -163,6 +163,12 @@
        </span>
      </template>
    </el-dialog>
    <MaterialDialog
      v-model="materialDialogVisible"
      :row-data="currentMaterialOrderRow"
      @refresh="getList"
    />
    
    <FilesDia ref="workOrderFilesRef" />
  </div>
@@ -181,6 +187,7 @@
  import QRCode from "qrcode";
  import { getCurrentInstance, reactive, toRefs } from "vue";
  import FilesDia from "./components/filesDia.vue";
  import MaterialDialog from "./components/MaterialDialog.vue";
  const { proxy } = getCurrentInstance();
  const tableColumn = ref([
@@ -255,7 +262,7 @@
    },
    {
      label: "操作",
      width: "200",
      width: "260",
      align: "center",
      dataType: "action",
      fixed: "right",
@@ -278,6 +285,12 @@
            showReportDialog(row);
          },
          disabled: row => row.planQuantity <= 0,
        },
        {
          name: "物料",
          clickFun: row => {
            openMaterialDialog(row);
          },
        },
      ],
    },
@@ -396,6 +409,8 @@
  };
  
  const currentReportRowData = ref(null);
  const materialDialogVisible = ref(false);
  const currentMaterialOrderRow = ref(null);
  const page = reactive({
    current: 1,
    size: 100,
@@ -547,6 +562,11 @@
    reportDialogVisible.value = true;
  };
  const openMaterialDialog = row => {
    currentMaterialOrderRow.value = row;
    materialDialogVisible.value = true;
  };
  const handleReport = () => {
    reportFormRef.value?.validate(valid => {
      if (!valid) {