ZN
15 小时以前 533d1e4ae9ffeafdd9ff65ddcefd7bd005f7d78c
feat(生产管理): 增强BOM信息展示并调整工序配置

- 在BOM选择下拉框中同时显示编号和名称,格式为“编号 - 名称”
- 在工艺路线列表、详情页和BOM管理页面新增BOM名称字段
- 将工序配置中的“是否质检”改为“是否报工”开关
- 移除工序列表中的“是否质检”列显示
已修改7个文件
52 ■■■■ 文件已修改
src/views/productionManagement/processRoute/Edit.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/processRoute/New.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/processRoute/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/processRoute/processRouteItem/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productStructure/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionProcess/New.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionProcess/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/processRoute/Edit.vue
@@ -46,7 +46,7 @@
            <el-option
                v-for="item in bomOptions"
                :key="item.id"
                :label="item.bomNo || `BOM-${item.id}`"
                :label="(item.bomNo || '') + (item.bomName ? ' - ' + item.bomName : '') || `BOM-${item.id}`"
                :value="item.id"
            />
          </el-select>
src/views/productionManagement/processRoute/New.vue
@@ -46,7 +46,7 @@
            <el-option
                v-for="item in bomOptions"
                :key="item.id"
                :label="item.bomNo || `BOM-${item.id}`"
                :label="(item.bomNo || '') + (item.bomName ? ' - ' + item.bomName : '') || `BOM-${item.id}`"
                :value="item.id"
            />
          </el-select>
src/views/productionManagement/processRoute/index.vue
@@ -84,6 +84,10 @@
    prop: "bomNo",
  },
  {
    label: "BOM名称",
    prop: "bomName",
  },
  {
    label: "描述",
    prop: "description",
  },
@@ -175,6 +179,7 @@
      productName: row.productName || '',
      model: row.model || '',
      bomNo: row.bomNo || '',
      bomName: row.bomName || '',
      description: row.description || '',
      type: 'route',
    }
src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -37,6 +37,14 @@
            <span class="info-value">{{ routeInfo.bomNo || '-' }}</span>
          </div>
        </div>
        <div class="info-item">
          <div class="info-label-wrapper">
            <span class="info-label">BOM名称</span>
          </div>
          <div class="info-value-wrapper">
            <span class="info-value">{{ routeInfo.bomName || '-' }}</span>
          </div>
        </div>
        <div class="info-item full-width" v-if="routeInfo.description">
          <div class="info-label-wrapper">
            <span class="info-label">描述</span>
@@ -329,6 +337,7 @@
    productName: route.query.productName || '',
    model: route.query.model || '',
    bomNo: route.query.bomNo || '',
    bomName: route.query.bomName || '',
    description: route.query.description || ''
  };
};
src/views/productionManagement/productStructure/index.vue
@@ -21,6 +21,9 @@
    <el-dialog v-model="dialogVisible" :title="operationType === 'add' ? '新增BOM' : '编辑BOM'" width="600px"
      @close="closeDialog">
      <el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
        <el-form-item label="BOM名称" prop="bomName">
          <el-input v-model="form.bomName" placeholder="请输入BOM名称" clearable />
        </el-form-item>
        <el-form-item label="产品名称" prop="productModelId">
          <el-button type="primary" @click="showProductSelectDialog = true">
            {{ form.productName || '选择产品' }}
@@ -70,6 +73,11 @@
    dataType: 'slot',
    slot: "detail",
    minWidth: 140
  },
  {
    label: "BOM名称",
    prop: "bomName",
    minWidth: 160
  },
  {
    label: "产品名称",
@@ -151,6 +159,7 @@
const data = reactive({
  form: {
    id: undefined,
    bomName: "",
    productName: "",
    productModelName: "",
    productModelId: "",
@@ -158,6 +167,7 @@
    version: ""
  },
  rules: {
    bomName: [{ required: true, message: "请输入BOM名称", trigger: "blur" }],
    productModelId: [{ required: true, message: "请选择产品", trigger: "change" }],
    version: [{ required: true, message: "请输入版本号", trigger: "blur" }]
  }
@@ -202,6 +212,7 @@
  operationType.value = 'add';
  Object.assign(form.value, {
    id: undefined,
    bomName: "",
    productName: "",
    productModelName: "",
    productModelId: "",
@@ -216,6 +227,7 @@
  operationType.value = 'edit';
  Object.assign(form.value, {
    id: row.id,
    bomName: row.bomName || "",
    productName: row.productName || "",
    productModelName: row.productModelName || "",
    productModelId: row.productModelId || "",
src/views/productionManagement/productionProcess/New.vue
@@ -45,9 +45,12 @@
            <template #append>元</template>
          </el-input>
        </el-form-item>
        <el-form-item label="是否质检" prop="isQuality">
          <el-switch v-model="formState.isQuality" :active-value="true" inactive-value="false"/>
        <el-form-item label="是否报工" prop="isReportWork">
          <el-switch v-model="formState.isReportWork" :active-value="true" :inactive-value="false"/>
        </el-form-item>
        <!-- <el-form-item label="是否质检" prop="isQuality">
          <el-switch v-model="formState.isQuality" :active-value="true" inactive-value="false"/>
        </el-form-item> -->
        <el-form-item label="备注" prop="remark">
          <el-input v-model="formState.remark" type="textarea" />
        </el-form-item>
@@ -82,6 +85,7 @@
  remark: '',
  salaryQuota:  '',
  isQuality: false,
  isReportWork: false,
});
const isShow = computed({
src/views/productionManagement/productionProcess/index.vue
@@ -106,13 +106,13 @@
      label: "工资定额",
      prop: "salaryQuota",
    },
    {
      label: "是否质检",
      prop: "isQuality",
      formatData: (params) => {
        return params ? "是" : "否";
      },
    },
    // {
    //   label: "是否报工",
    //   prop: "isReportWork",
    //   formatData: (params) => {
    //     return params ? "是" : "否";
    //   },
    // },
    {
      label: "备注",
      prop: "remark",