src/views/productionManagement/workOrderManagement/index.vue
@@ -172,6 +172,7 @@
      <template #footer>
        <span class="dialog-footer">
          <el-button type="primary"
                     :loading="reportSubmitting"
                     @click="handleReport">确定</el-button>
          <el-button @click="reportDialogVisible = false">取消</el-button>
        </span>
@@ -316,6 +317,7 @@
  const transferCardQrUrl = ref("");
  const transferCardRowData = ref(null);
  const reportDialogVisible = ref(false);
  const reportSubmitting = ref(false);
  const workOrderFilesRef = ref(null);
  const reportFormRef = ref(null);
  const userOptions = ref([]);
@@ -575,6 +577,9 @@
  };
  const handleReport = () => {
    if (reportSubmitting.value) {
      return;
    }
    reportFormRef.value?.validate(valid => {
      if (!valid) {
        return false;
@@ -642,6 +647,8 @@
        productMainId: reportForm.productMainId,
      };
      reportSubmitting.value = true;
      addProductMain(params)
        .then(res => {
          proxy.$modal.msgSuccess("报工成功");
@@ -652,6 +659,9 @@
          // ElMessageBox.alert("报工失败", "提示", {
          //   confirmButtonText: "确定",
          // });
        })
        .finally(() => {
          reportSubmitting.value = false;
        });
    });
  };