<template>
  <view class="" style="background: white">
    <u-collapse ref="collapse1" @change="">
      <u-collapse-item :open="true">
        <view class="split_line"></view>
        <template v-slot:title>
          <itemQty :dataContent="dataContent" :isShowBalance="true" style="width;100%; padding: 0px 20rpx"></itemQty>
        </template>

        <view v-for="(item, index) in dataContent.list">
          <balance :dataContent="item" :isShowFromLocation="false" :isShowPack="isShowPack" :isShowStdPack="false"> </balance>
        </view>
      </u-collapse-item>
    </u-collapse>
  </view>
</template>

<script setup lang="ts">
import itemQty from '@/mycomponents/item/itemQty.vue'
import balance from '@/mycomponents/balance/balance.vue'

const props = defineProps({
  dataContent: {
    type: Object,
    default: {}
  },
  isShowPack: {
    type: Boolean,
    default: true
  },
  isShowBatch: {
    type: Boolean,
    default: true
  },
  isShowLocation: {
    type: Boolean,
    default: true
  },
  isShowStdPack: {
    type: Boolean,
    default: true
  }
})
</script>

<style></style>
