曹睿
2025-04-23 863490a56ebc6675587d163faacf2bf4ef03fa50
src/pages/production/twist/receive/monofil.vue
@@ -14,7 +14,7 @@
          </template>
        </CardTitle>
      </template>
      <MonofilCard v-for="(item, index) in cardList" v-model:value="item" :key="index" />
      <MonofilCard v-for="(item, index) in cardList" :key="index" :data="item" />
      <template #bottom>
        <view class="flex justify-center items-center">
          <wd-button block>
@@ -35,7 +35,6 @@
import ManageApi from "@/api/product/manage";
import TwistApi from "@/api/product/twist";
import zPaging from "@/components/z-paging/z-paging.vue";
import { useMessage } from "wot-design-uni";
// import { useZebraScan } from "@/hooks/useZebraScan";
// const { init, start, stop, triggerScan } = useZebraScan();
@@ -43,7 +42,6 @@
const pagingRef = ref();
const scanRef = ref();
const cardList = ref<any[]>([]);
const message = useMessage();
const getScanCode = async (code: any) => {
  console.log("自定义扫描的结果回调函数:", code);
@@ -53,11 +51,6 @@
  const { data } = await TwistApi.getScarn({
    outPutId: codeArr[1],
  });
  // console.log("单丝编号", data);
  // message.alert({
  //   title: "单丝编号",
  //   msg: JSON.stringify(data),
  // });
  pagingRef.value.complete([data]);
};