buhuazhen
2026-05-09 9b22062e208f65b9c344f5c5a8891aea9b304c0f
feat(生产订单): 在订单列表和合并下发表单中增加车间字段

- 在生产订单列表表格中添加"车间名称"列
- 在合并下发弹窗表单中为车间字段添加必填验证规则
- 在提交合并下发时增加车间选择的前端校验
已修改2个文件
18 ■■■■ 文件已修改
src/views/productionManagement/productionOrder/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionPlan/productionPlan/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionOrder/index.vue
@@ -361,6 +361,10 @@
      width: 120,
    },
    {
      label: "车间名称",
      prop: "workshopName",
    },
    {
      dataType: "action",
      label: "操作",
      align: "center",
src/views/productionPlan/productionPlan/index.vue
@@ -102,7 +102,7 @@
               destroy-on-close
               title="合并下发"
               width="600px">
      <el-form :model="mergeForm"
      <el-form :model="mergeForm" :rules="mergeFormRules"
               label-width="120px">
        <el-row :gutter="20">
          <el-col :span="10">
@@ -131,7 +131,7 @@
                           @change="onBlur"
                           style="width: 100%" />
        </el-form-item>
        <el-form-item label="车间">
        <el-form-item label="车间" prop="workshopId" required>
          <el-select v-model="mergeForm.workshopId"
                     placeholder="请选择车间"
                     clearable
@@ -467,6 +467,12 @@
    total: 0,
  });
  const selectedRows = ref([]);
  const mergeFormRules = {
    workshopId: [
      { required: true, message: '请选择车间', trigger: 'change' }
    ]
  }
  // 产品类别汇总统计数据
  const categorySummary = ref([]);
@@ -812,6 +818,10 @@
      ElMessage.warning("请输入生产数量");
      return;
    }
    if(!mergeForm.workshopId){
      ElMessage.warning("请选择车间");
      return;
    }
    console.log(sumAssignedQuantity.value, "sumAssignedQuantity");
    // 验证totalAssignedQuantity不能大于总方数