|
|
@ -1,22 +1,23 @@ |
|
|
|
<template> |
|
|
|
<view class="" style="background-color: #fff;"> |
|
|
|
<uni-collapse ref="collapse1" @change=""> |
|
|
|
<uni-collapse ref="collapse1"> |
|
|
|
<uni-collapse-item :open="true"> |
|
|
|
<template v-slot:title> |
|
|
|
<uni-swipe-action > |
|
|
|
<uni-swipe-action> |
|
|
|
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions"> |
|
|
|
<item-qty :dataContent="dataContent" |
|
|
|
:isShowBalance="true" :isShowBalanceQty="isShowBalanceQty"></item-qty> |
|
|
|
<item-qty :dataContent="dataContent" :isShowBalance="true" |
|
|
|
:isShowBalanceQty="isShowBalanceQty"></item-qty> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
|
</template> |
|
|
|
<view class='split_line'></view> |
|
|
|
<view class="" v-for="(detail,index) in dataContent.subList" :key="index"> |
|
|
|
<uni-swipe-action > |
|
|
|
<uni-swipe-action> |
|
|
|
<uni-swipe-action-item @click="swipeClick($event,detail,index)" |
|
|
|
:right-options="detail.scaned?scanOptions:detailOptions"> |
|
|
|
<balance :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus" |
|
|
|
:isShowPack="true" :isShowFromLocation="isShowFromLocation" :isShowToLocation="isShowToLocation"> |
|
|
|
:isShowPack="true" :isShowFromLocation="isShowFromLocation" |
|
|
|
:isShowToLocation="isShowToLocation"> |
|
|
|
</balance> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
@ -26,7 +27,7 @@ |
|
|
|
</uni-collapse> |
|
|
|
<balance-qty-edit ref="balanceQtyEdit" @confirm="confirm"></balance-qty-edit> |
|
|
|
<record-detail-popup ref="recordDetailPopup"></record-detail-popup> |
|
|
|
<!-- <balance-detail-popup ref="balanceDetailPopup"></balance-detail-popup> --> |
|
|
|
<!-- <balance-detail-popup ref="balanceDetailPopup"></balance-detail-popup> --> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -90,19 +91,23 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
|
|
|
|
dataContent: { |
|
|
|
handler(newName, oldName) { |
|
|
|
if (this.dataContent.subList.length > 0) { |
|
|
|
if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) { |
|
|
|
this.$nextTick(res => { |
|
|
|
this.$refs.collapse1.resize() |
|
|
|
}) |
|
|
|
} |
|
|
|
this.$nextTick(res => { |
|
|
|
setTimeout(() => { |
|
|
|
if (this.$refs.collapse1) { |
|
|
|
this.$refs.collapse1.resize(); |
|
|
|
} |
|
|
|
}, 500) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
immediate: true, |
|
|
|
deep: true |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
data() { |
|
|
@ -176,4 +181,4 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<style> |
|
|
|
</style> |
|
|
|
</style> |