| | |
| | | </template> |
| | | </CardTitle> |
| | | </template> |
| | | <MonofilCard v-for="(item, index) in cardList" :key="index" /> |
| | | <MonofilCard v-for="(item, index) in cardList" v-model:value="item" :key="index" /> |
| | | <template #bottom> |
| | | <view class="flex justify-center items-center"> |
| | | <wd-button block> |
| | |
| | | const message = useMessage(); |
| | | |
| | | const getScanCode = async (code: any) => { |
| | | let parseData = code.trim(); |
| | | console.log("自定义扫描的结果回调函数:", parseData); |
| | | let codeArr = parseData.split(","); |
| | | console.log("自定义扫描的结果回调函数:", code); |
| | | // let parseData = code.trim(); |
| | | let codeArr = code.code.split(","); |
| | | console.log("sb:", codeArr); |
| | | const { data } = await TwistApi.getScarn({ |
| | | outPutId: codeArr[1], |
| | | }); |
| | | console.log("单丝编号", data); |
| | | message.alert({ |
| | | title: "单丝编号", |
| | | msg: JSON.stringify(data), |
| | | }); |
| | | // console.log("单丝编号", data); |
| | | // message.alert({ |
| | | // title: "单丝编号", |
| | | // msg: JSON.stringify(data), |
| | | // }); |
| | | pagingRef.value.complete([data]); |
| | | }; |
| | | |
| | | const openScan = () => { |