huminmin
16 小时以前 a197a3ef35867da9859453831756d29365c961f6
显示料号
已修改13个文件
78 ■■■■■ 文件已修改
src/views/basicData/product/ProductSelectDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/processRoute/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/processRoute/processRouteItem/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productStructure/Detail/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productStructure/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionCosting/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionOrder/Detail/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionOrder/New.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionOrder/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/Input.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/components/Detail.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrder/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/product/ProductSelectDialog.vue
@@ -23,6 +23,7 @@
      <el-table-column prop="productName" label="产品大类" min-width="160" />
      <el-table-column prop="model" label="型号名称" min-width="200" />
      <el-table-column prop="unit" label="单位" min-width="160" />
      <el-table-column prop="materialCode" label="料号" min-width="100" />
    </el-table>
    <div class="mt-3 flex justify-end">
src/views/productionManagement/processRoute/index.vue
@@ -80,6 +80,10 @@
    prop: "model",
  },
  {
    label: "料号",
    prop: "materialCode",
  },
  {
    label: "BOM编号",
    prop: "bomNo",
  },
@@ -174,6 +178,7 @@
      processRouteCode: row.processRouteCode || '',
      productName: row.productName || '',
      model: row.model || '',
      materialCode: row.materialCode || '',
      bomNo: row.bomNo || '',
      description: row.description || '',
      type: 'route',
src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -31,6 +31,14 @@
        </div>
        <div class="info-item">
          <div class="info-label-wrapper">
            <span class="info-label">料号</span>
          </div>
          <div class="info-value-wrapper">
            <span class="info-value">{{ routeInfo.materialCode || '-' }}</span>
          </div>
        </div>
        <div class="info-item">
          <div class="info-label-wrapper">
            <span class="info-label">BOM编号</span>
          </div>
          <div class="info-value-wrapper">
@@ -81,6 +89,7 @@
      </el-table-column>
      <el-table-column label="产品名称" prop="productName" min-width="160" />
      <el-table-column label="规格名称" prop="model" min-width="140" />
      <el-table-column label="料号" prop="materialCode" min-width="140" />
      <el-table-column label="单位" prop="unit" width="100" />
      <el-table-column label="是否质检" prop="isQuality" width="100">
        <template #default="scope">
@@ -246,6 +255,7 @@
  processRouteCode: '',
  productName: '',
  model: '',
  materialCode: '',
  bomNo: '',
  description: ''
});
@@ -328,6 +338,7 @@
    processRouteCode: route.query.processRouteCode || '',
    productName: route.query.productName || '',
    model: route.query.model || '',
    materialCode: route.query.materialCode || '',
    bomNo: route.query.bomNo || '',
    description: route.query.description || ''
  };
src/views/productionManagement/productStructure/Detail/index.vue
@@ -53,6 +53,8 @@
                  </el-form-item>
                </template>
              </el-table-column>
              <el-table-column prop="materialCode"
                               label="料号" />
              <el-table-column prop="processName"
                               label="消耗工序">
                <template #default="{ row, $index }">
@@ -145,6 +147,8 @@
                       prop="productName" />
      <el-table-column label="规格型号"
                       prop="model" />
      <el-table-column label="料号"
                       prop="materialCode" />
    </el-table>
    <product-select-dialog v-if="dataValue.showProductDialog"
                           v-model:model-value="dataValue.showProductDialog"
@@ -195,6 +199,7 @@
  const routeProductModelName = computed(
    () => route.query.productModelName || ""
  );
  const routeMaterialCode = computed(() => route.query.materialCode || "");
  const routeOrderId = computed(() => route.query.orderId);
  const pageType = computed(() => route.query.type);
  const isOrderPage = computed(
@@ -216,6 +221,7 @@
    {
      productName: "",
      model: "",
      materialCode: "",
      bomNo: "",
    },
  ]);
@@ -270,7 +276,8 @@
    if (isTopLevel) {
      if (
        productData.productName === tableData[0].productName &&
        productData.model === tableData[0].model
        productData.model === tableData[0].model &&
        productData.materialCode === tableData[0].materialCode
      ) {
        //  查找是否已经有其他顶层行已经是这个产品
        const hasOther = dataValue.dataList.some(
@@ -294,6 +301,7 @@
      if (item.tempId === dataValue.currentRowName) {
        item.productName = productData.productName;
        item.model = productData.model;
        item.materialCode = productData.materialCode;
        item.productModelId = productData.id;
        item.unit = productData.unit || "";
        return;
@@ -306,6 +314,7 @@
    if (item.tempId === tempId) {
      item.productName = productData.productName;
      item.model = productData.model;
      item.materialCode = productData.materialCode;
      item.productModelId = productData.id;
      item.unit = productData.unit || "";
      return true;
@@ -507,6 +516,7 @@
    // 从路由参数回显数据
    tableData[0].productName = routeProductName.value as string;
    tableData[0].model = routeProductModelName.value as string;
    tableData[0].materialCode = routeMaterialCode.value as string;
    tableData[0].bomNo = routeBomNo.value as string;
    // 订单情况下禁用编辑
src/views/productionManagement/productStructure/index.vue
@@ -83,6 +83,11 @@
    minWidth: 140
  },
  {
    label: "料号",
    prop: "materialCode",
    minWidth: 100
  },
  {
    label: "版本号",
    prop: "version",
    width: 100
@@ -422,6 +427,7 @@
      id: row.id,
      bomNo: row.bomNo || '',
      productName: row.productName || '',
      materialCode: row.materialCode || '',
      productModelName: row.productModelName || ''
    }
  });
src/views/productionManagement/productionCosting/index.vue
@@ -102,6 +102,11 @@
        prop: "productModelName",
    minWidth: 100,
    },
  {
    label: "料号",
    prop: "materialCode",
    minWidth: 100,
  },
    {
        label: "单位",
        prop: "unit",
src/views/productionManagement/productionOrder/Detail/index.vue
@@ -11,6 +11,7 @@
          <span class="mr12">生产批号:{{ header.lotNo || "-" }}</span>
          <span class="mr12">产品名称:{{ header.productCategory || "-" }}</span>
          <span class="mr12">规格:{{ header.specificationModel || "-" }}</span>
          <span class="mr12">料号:{{ header.materialCode || "-" }}</span>
        </div>
      </div>
    </el-card>
@@ -204,6 +205,7 @@
  lotNo: route.query.lotNo,
  productCategory: route.query.productCategory,
  specificationModel: route.query.specificationModel,
  materialCode: route.query.materialCode,
}));
// 工序数据(接口替换)
src/views/productionManagement/productionOrder/New.vue
@@ -31,6 +31,13 @@
        </el-form-item>
        <el-form-item
            label="料号"
            prop="materialCode"
        >
          <el-input v-model="formState.materialCode"  disabled />
        </el-form-item>
        <el-form-item
            label="单位"
            prop="unit"
        >
@@ -128,6 +135,7 @@
  routeId: undefined,
  productName: "",
  productModelName: "",
  materialCode: "",
  unit: "",
  priority: undefined,
  quantity: 0,
@@ -161,6 +169,7 @@
    productName: "",
    productModelName: "",
    unit: "",
    materialCode: "",
    priority: priority_type.value && priority_type.value.length > 0 ? priority_type.value[2].value : undefined,
    quantity: '',
    lotNo: "",
@@ -177,6 +186,7 @@
    formState.value.productModelName = product.model;
    formState.value.productModelId = product.id;
    formState.value.unit = product.unit;
    formState.value.materialCode = product.materialCode || "";
    showProductSelectDialog.value = false;
    fetchRouteOptions( product.id);
    // 触发表单验证更新
src/views/productionManagement/productionOrder/index.vue
@@ -168,6 +168,11 @@
      width: '120px',
    },
    {
      label: "料号",
      prop: "materialCode",
      width: '120px',
    },
    {
      label: "工艺路线编号",
      prop: "processRouteCode",
      width: '200px',
@@ -399,6 +404,7 @@
          processRouteCode: data.processRouteCode || "",
          productName: data.productName || "",
          model: data.model || "",
          materialCode: data.materialCode || "",
          bomNo: data.bomNo || "",
          description: data.description || "",
          orderId,
@@ -419,6 +425,7 @@
        bomNo: row.bomNo || "",
        productName: row.productCategory || "",
        productModelName: row.specificationModel || "",
        materialCode: row.materialCode || "",
        orderId: row.id,
        type: "order",
      },
@@ -435,6 +442,7 @@
        lotNo: row.lotNo || "",
        productCategory: row.productCategory || "",
        specificationModel: row.specificationModel || "",
        materialCode: row.materialCode || "",
      },
    });
  };
src/views/productionManagement/productionReporting/Input.vue
@@ -67,6 +67,10 @@
    prop: 'model',
  },
  {
    label: '投入料号',
    prop: 'materialCode',
  },
  {
    label: '投入数量',
    prop: 'quantity',
  },
src/views/productionManagement/productionReporting/components/Detail.vue
@@ -56,6 +56,7 @@
      <el-descriptions-item label="工单编号">{{ row.workOrderNo || '-' }}</el-descriptions-item>
      <el-descriptions-item label="产品名称">{{ row.productName || '-' }}</el-descriptions-item>
      <el-descriptions-item label="产品规格型号">{{ row.productModelName || '-' }}</el-descriptions-item>
      <el-descriptions-item label="料号">{{ row.materialCode || '-' }}</el-descriptions-item>
      <el-descriptions-item label="产出数量">{{ row.quantity  || '-' }}</el-descriptions-item>
      <el-descriptions-item label="报废数量">{{ row.scrapQty || '-' }}</el-descriptions-item>
      <el-descriptions-item label="单位">{{ row.unit || '-' }}</el-descriptions-item>
src/views/productionManagement/productionReporting/index.vue
@@ -231,6 +231,11 @@
    width: 120,
  },
  {
    label: "料号",
    prop: "materialCode",
    width: 120,
  },
  {
    label: "产出数量",
    prop: "quantity",
    width: 120,
src/views/productionManagement/workOrder/index.vue
@@ -110,6 +110,10 @@
              <span class="info-label">产品规格</span>
              <span class="info-value">{{ transferCardRowData.model }}</span>
            </div>
            <div class="info-item">
              <span class="info-label">料号</span>
              <span class="info-value">{{ transferCardRowData.materialCode }}</span>
            </div>
            <!-- <div class="info-item">
              <span class="info-label">工单状态</span>
              <span class="info-value">{{ 
@@ -330,6 +334,10 @@
    prop: "model",
  },
  {
    label: "料号",
    prop: "materialCode",
  },
  {
    label: "单位",
    prop: "unit",
  },