|
|
@ -3,13 +3,15 @@ |
|
|
|
<uni-collapse ref="collapse1" @change=""> |
|
|
|
<uni-collapse-item :open="true"> |
|
|
|
<template v-slot:title> |
|
|
|
<item-compare-qty :dataContent="dataContent" :handleQty="Number(dataContent.handleQty)"> |
|
|
|
<item-compare-qty :dataContent="dataContent" :handleQty="Number(dataContent.handleQty)" :isShowStdPack="false"> |
|
|
|
</item-compare-qty> |
|
|
|
</template> |
|
|
|
<u-line></u-line> |
|
|
|
<view class="" v-for="(item,index) in dataContent.subList"> |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
|
<uni-swipe-action-item @click="swipeClick($event,item)" |
|
|
|
:right-options="item.scaned?scanOptions:detailOptions"> |
|
|
|
:right-options="item.scaned?scanOptions:detailOptions" |
|
|
|
style='padding:0px 0px 5px 0px;align-items: center;'> |
|
|
|
<recommend :detail="item" :isShowToLocation="false"> |
|
|
|
</recommend> |
|
|
|
</uni-swipe-action-item> |
|
|
@ -36,7 +38,7 @@ |
|
|
|
} from '@/common/array.js'; |
|
|
|
|
|
|
|
export default { |
|
|
|
emits: ['openDetail',"updateData"], |
|
|
|
emits: ['openDetail', "updateData"], |
|
|
|
components: { |
|
|
|
itemCompareQty, |
|
|
|
recommend, |
|
|
@ -78,7 +80,7 @@ |
|
|
|
return { |
|
|
|
option: [], |
|
|
|
showItem: {}, |
|
|
|
locatonItem:{}, |
|
|
|
locatonItem: {}, |
|
|
|
editItem: {}, |
|
|
|
detailOptions: [], |
|
|
|
scanOptions: [] |
|
|
@ -101,7 +103,7 @@ |
|
|
|
this.detail(item) |
|
|
|
} else if (e.content.text == "编辑") { |
|
|
|
this.edit(item) |
|
|
|
} else if (e.content.text == "库位") { |
|
|
|
} else if (e.content.text == "库位") { |
|
|
|
this.showLocation(item) |
|
|
|
} else if (e.content.text == "移除") { |
|
|
|
this.remove(item) |
|
|
@ -139,7 +141,7 @@ |
|
|
|
}, |
|
|
|
//扫描源库位 |
|
|
|
getLocation(location, code) { |
|
|
|
this.locatonItem.toLocationCode =code; |
|
|
|
this.locatonItem.toLocationCode = code; |
|
|
|
this.$emit('updateData') |
|
|
|
}, |
|
|
|
} |
|
|
|