liyong
2025-04-25 14eef62db43d4d1b7a5bada04032faaecffecb9e
feat: 单丝扫码
已修改3个文件
22 ■■■■■ 文件已修改
src/pages/mine/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/components/MonofilCard.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/monofil.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/mine/index.vue
@@ -104,7 +104,7 @@
    </view> -->
    <!-- 常用工具 -->
    <view class="card-container">
    <!-- <view class="card-container">
      <view class="card-header">
        <view class="card-title">
          <wd-icon name="tools" size="18" :color="themeStore.primaryColor" />
@@ -161,10 +161,10 @@
          <view class="tool-label">我的钱包</view>
        </view>
      </view>
    </view>
    </view> -->
    <!-- 推荐服务 -->
    <view class="card-container">
    <!-- <view class="card-container">
      <view class="card-header">
        <view class="card-title">
          <wd-icon name="star" size="18" :color="themeStore.primaryColor" />
@@ -209,11 +209,11 @@
          <wd-icon name="arrow-right" size="14" color="#999" />
        </view>
      </view>
    </view>
    </view> -->
    <view v-if="isLogin" class="logout-btn-container">
    <!-- <view v-if="isLogin" class="logout-btn-container">
      <wd-button class="logout-btn" @click="handleLogout">退出登录</wd-button>
    </view>
    </view> -->
    <wd-toast />
  </view>
src/pages/production/twist/components/MonofilCard.vue
@@ -2,7 +2,7 @@
  <wd-card>
    <wd-cell-group :border="true">
      <wd-cell title="单丝编号" :value="data.monofilamentNumber" />
      <wd-cell title="长度" :value="data.oneLength" />
      <wd-cell title="长度" :value="data.amount" />
    </wd-cell-group>
  </wd-card>
</template>
src/pages/production/twist/receive/monofil.vue
@@ -54,17 +54,21 @@
  const { data } = await TwistApi.getScarn({
    outPutId: codeArr[1],
  });
  const exists = cardList.value.some((item) => item.id === data.id);
  const exists = cardList.value.some((item) => item.monofilamentNumber === data.monofilamentNumber);
  if (!exists) {
    const { id, outPutId, wireId, ...rest } = data;
    const { id, outPutId, wireId, oneLength, ...rest } = data;
    console.log("sb", {
      wireId: paramsId.value,
      outputId: id,
      amount: oneLength,
      ongLength: oneLength,
      ...rest,
    });
    cardList.value.push({
      wireId: paramsId.value,
      outputId: id,
      amount: oneLength,
      ongLength: oneLength,
      ...rest,
    });
    pagingRef.value.complete(cardList.value);