From 14eef62db43d4d1b7a5bada04032faaecffecb9e Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期五, 25 四月 2025 14:20:23 +0800
Subject: [PATCH] feat: 单丝扫码
---
src/pages/production/twist/receive/monofil.vue | 8 ++++++--
src/pages/mine/index.vue | 12 ++++++------
src/pages/production/twist/components/MonofilCard.vue | 2 +-
3 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
index 04fb976..b3b93ab 100644
--- a/src/pages/mine/index.vue
+++ b/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>
diff --git a/src/pages/production/twist/components/MonofilCard.vue b/src/pages/production/twist/components/MonofilCard.vue
index e5e5ada..6771b56 100644
--- a/src/pages/production/twist/components/MonofilCard.vue
+++ b/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>
diff --git a/src/pages/production/twist/receive/monofil.vue b/src/pages/production/twist/receive/monofil.vue
index c325c60..efdb44e 100644
--- a/src/pages/production/twist/receive/monofil.vue
+++ b/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);
--
Gitblit v1.9.3