<template>
  <view class="">
    <u-popup v-model="show" mode="bottom">
      <detail-common-info :dataContent="dataContent" @onClose="closePopup">
        <view class="">
          <view class="uni-flex uni-column">
            <view class="item">
              <text class="item_title">销售订单号 : </text>
              <text class="text_wrap">{{ dataContent.SoNumber }} </text>
            </view>
            <view class="item">
              <text class="item_title">销售订单行 : </text>
              <text class="text_wrap">{{ dataContent.SoLine }} </text>
            </view>
          </view>
        </view>
      </detail-common-info>
    </u-popup>
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import detailCommonInfo from '@/mycomponents/detail/detailCommonInfo.vue'

const dataContent = ref({})
const show = ref(false)
const openPopup = (val) => {
  dataContent.value = val
  setTimeout((res) => {
    show.value = true
  }, 100)
}
const closePopup = () => {
  show.value = false
}
defineExpose({
  openPopup,
  closePopup
})
</script>

<style></style>
