spring
2025-11-13 0d6e0f0efa92c9347884c83170ec8d47dd5f5ef4
fix: 扫码18层的单丝12层也能扫上。
已修改3个文件
20 ■■■■■ 文件已修改
src/pages/production/components/ProductionCard.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/monofil.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/steelCore/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/components/ProductionCard.vue
@@ -1,6 +1,6 @@
<template>
  <wd-row>
    <wd-col v-for="(item, index) in data" :key="index" :span="item.span ?? 12" class="my-1">
    <wd-col v-for="(item, index) in data" :key="index" :span="24" class="my-1">
      <view class="flex w-full h-[20px]">
        <view class="text-[#646874] pl-1 mr-3">{{ item.label }}</view>
        <view class="font-medium pr-1" :style="{ color: item.color ?? color }">
src/pages/production/twist/receive/monofil.vue
@@ -123,8 +123,20 @@
      toast.error("未找到当前选中的层");
      return;
    }
    // 解析扫码数据
    const scanData = JSON.parse(code.code);
    // 判断层级是否匹配
    if (scanData.layer && scanData.layer !== currentLayer.twistedLayer) {
      toast.error(
        `领用层级不对,当前层是:${currentLayer.twistedLayer},领用单丝层是:${scanData.layer}`
      );
      // return;
    }
    const { data } = await TwistApi.getScarn({
      outPutId: JSON.parse(code.code).id,
      outPutId: scanData.id,
      twistId: currentLayer.twistId,
    });
src/pages/production/twist/receive/steelCore/index.vue
@@ -232,4 +232,8 @@
  display: flex;
  justify-content: space-between;
}
:deep(.wd-button__content) {
  color: #0d867f;
}
</style>