| | |
| | | <MonofilCard v-for="(item, index) in cardList" :key="index" :data="item" /> |
| | | <template #bottom> |
| | | <view class="flex justify-center items-center"> |
| | | <wd-button block> |
| | | <text class="text-[#fff]" @click="save">保存</text> |
| | | <wd-button block @click="save"> |
| | | <text class="text-[#fff]">保存</text> |
| | | </wd-button> |
| | | </view> |
| | | </template> |
| | |
| | | }); |
| | | const exists = cardList.value.some((item) => item.id === data.id); |
| | | if (!exists) { |
| | | cardList.value.push(data); |
| | | const { id, outPutId, wireId, ...rest } = data; |
| | | console.log("sb", { |
| | | wireId: paramsId.value, |
| | | outputId: id, |
| | | ...rest, |
| | | }); |
| | | cardList.value.push({ |
| | | wireId: paramsId.value, |
| | | outputId: id, |
| | | ...rest, |
| | | }); |
| | | pagingRef.value.complete(cardList.value); |
| | | } else { |
| | | toast.error("该单丝已领用,请勿重复扫码"); |