|
|
@ -1,26 +1,24 @@ |
|
|
|
<template> |
|
|
|
<view class="" style="background-color: #fff;"> |
|
|
|
|
|
|
|
<!-- <item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty"></item-qty> --> |
|
|
|
<item-compare-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowStdPack="false"> |
|
|
|
</item-compare-qty> |
|
|
|
<view class='split_line'></view> |
|
|
|
<view class="" v-for="(item,index) in dataContent.subList"> |
|
|
|
<u-swipe-action ref="swipeAction" v-if="index ==0" :class="item.scaned?'scan_view':''"> |
|
|
|
<u-swipe-action-item |
|
|
|
:right-options="(item.scaned&&isEdit)?editAndRemoveOptions : item.scaned? removeOptions:options" |
|
|
|
@click="swipeClick($event,item)"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div style="flex: 1;"> |
|
|
|
<batch v-if="item.batch" :batch="item.batch"></batch> |
|
|
|
<location v-if="item.fromLocationCode" title="来源库位" :locationCode="item.fromLocationCode"> |
|
|
|
</location> |
|
|
|
<to-location v-if="item.toLocationCode" title="目标库位" :locationCode="item.toLocationCode"> |
|
|
|
</to-location> |
|
|
|
</div> |
|
|
|
<text style="font-size: 30rpx;color: #2979ff; " @click="copy(item)" v-if="isDevlement()">复制</text> |
|
|
|
</div> |
|
|
|
</u-swipe-action-item> |
|
|
|
<u-swipe-action ref="swipeAction" v-if="index ==0" |
|
|
|
:options="(item.scaned&&isEdit)?editAndRemoveOptions : item.scaned? removeOptions:options" |
|
|
|
@click="(...event)=>swipeClick(event,item)" |
|
|
|
:class="item.scaned?'scan_view':''"> |
|
|
|
<view style="display: flex;"> |
|
|
|
<view style="flex: 1;"> |
|
|
|
<batch v-if="item.batch" :batch="item.batch"></batch> |
|
|
|
<location v-if="item.fromLocationCode" title="来源库位" :locationCode="item.fromLocationCode"> |
|
|
|
</location> |
|
|
|
<to-location v-if="item.toLocationCode" title="目标库位" :locationCode="item.toLocationCode"> |
|
|
|
</to-location> |
|
|
|
</view> |
|
|
|
<text style="font-size: 30rpx;color: #2979ff; " @click="copy(item)" v-if="isDevlement()">复制</text> |
|
|
|
</view> |
|
|
|
</u-swipe-action> |
|
|
|
</view> |
|
|
|
|
|
|
@ -70,7 +68,7 @@ const props = defineProps({ |
|
|
|
default: true |
|
|
|
} |
|
|
|
}); |
|
|
|
const emit = defineEmits(['openDetail', 'remove']) |
|
|
|
const emit = defineEmits(['openDetail', 'remove','updateData']) |
|
|
|
|
|
|
|
const option = ref([]); |
|
|
|
const title = ref("推荐详情"); |
|
|
|