| | |
| | | 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); |