| | |
| | | <template> |
| | | <wd-row> |
| | | <wd-col v-for="(item, index) in data" :key="index" :span="item.span ?? 12" class="my-1"> |
| | | <wd-col v-for="(item, index) in data" :key="index" :span="24" class="my-1"> |
| | | <view class="flex w-full h-[20px]"> |
| | | <view class="text-[#646874] pl-1 mr-3">{{ item.label }}</view> |
| | | <view class="font-medium pr-1" :style="{ color: item.color ?? color }"> |
| | |
| | | toast.error("未找到当前选中的层"); |
| | | return; |
| | | } |
| | | |
| | | // 解析扫码数据 |
| | | const scanData = JSON.parse(code.code); |
| | | |
| | | // 判断层级是否匹配 |
| | | if (scanData.layer && scanData.layer !== currentLayer.twistedLayer) { |
| | | toast.error( |
| | | `领用层级不对,当前层是:${currentLayer.twistedLayer},领用单丝层是:${scanData.layer}` |
| | | ); |
| | | // return; |
| | | } |
| | | |
| | | const { data } = await TwistApi.getScarn({ |
| | | outPutId: JSON.parse(code.code).id, |
| | | outPutId: scanData.id, |
| | | twistId: currentLayer.twistId, |
| | | }); |
| | | |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | :deep(.wd-button__content) { |
| | | color: #0d867f; |
| | | } |
| | | </style> |