|
@ -1,12 +1,12 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="" style="background-color: #fff;"> |
|
|
<view class="" style="background-color: #fff;"> |
|
|
<uni-collapse ref="collapse1" @change=""> |
|
|
<uni-collapse ref="collapse1"> |
|
|
<uni-collapse-item :open="true"> |
|
|
<uni-collapse-item :open="true"> |
|
|
<template v-slot:title> |
|
|
<template v-slot:title> |
|
|
<uni-swipe-action> |
|
|
<uni-swipe-action> |
|
|
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions"> |
|
|
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions"> |
|
|
<item-qty :dataContent="dataContent" |
|
|
<item-qty :dataContent="dataContent" :isShowBalance="true" |
|
|
:isShowBalance="true" :isShowBalanceQty="isShowBalanceQty"></item-qty> |
|
|
:isShowBalanceQty="isShowBalanceQty"></item-qty> |
|
|
</uni-swipe-action-item> |
|
|
</uni-swipe-action-item> |
|
|
</uni-swipe-action> |
|
|
</uni-swipe-action> |
|
|
</template> |
|
|
</template> |
|
@ -16,7 +16,8 @@ |
|
|
<uni-swipe-action-item @click="swipeClick($event,detail,index)" |
|
|
<uni-swipe-action-item @click="swipeClick($event,detail,index)" |
|
|
:right-options="detail.scaned?scanOptions:detailOptions"> |
|
|
:right-options="detail.scaned?scanOptions:detailOptions"> |
|
|
<balance :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus" |
|
|
<balance :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus" |
|
|
:isShowPack="true" :isShowFromLocation="isShowFromLocation" :isShowToLocation="isShowToLocation"> |
|
|
:isShowPack="true" :isShowFromLocation="isShowFromLocation" |
|
|
|
|
|
:isShowToLocation="isShowToLocation"> |
|
|
</balance> |
|
|
</balance> |
|
|
</uni-swipe-action-item> |
|
|
</uni-swipe-action-item> |
|
|
</uni-swipe-action> |
|
|
</uni-swipe-action> |
|
@ -90,19 +91,23 @@ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
|
|
|
|
|
|
dataContent: { |
|
|
dataContent: { |
|
|
handler(newName, oldName) { |
|
|
handler(newName, oldName) { |
|
|
if (this.dataContent.subList.length > 0) { |
|
|
if (this.dataContent.subList.length > 0) { |
|
|
if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) { |
|
|
|
|
|
this.$nextTick(res => { |
|
|
this.$nextTick(res => { |
|
|
this.$refs.collapse1.resize() |
|
|
setTimeout(() => { |
|
|
}) |
|
|
if (this.$refs.collapse1) { |
|
|
|
|
|
this.$refs.collapse1.resize(); |
|
|
} |
|
|
} |
|
|
|
|
|
}, 500) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
immediate: true, |
|
|
immediate: true, |
|
|
deep: true |
|
|
deep: true |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
data() { |
|
|
data() { |
|
|