index.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <app-view class="wroutinapply-detail g-form">
  3. <template #header>
  4. <app-navbar title="提货详情" />
  5. </template>
  6. <div v-if="detail" class="wroutinapply-detail__container g-form__container">
  7. <CellGroup title="提货信息">
  8. <Cell title="商品" :value="detail.wrstandardname" />
  9. <Cell title="仓库" :value="detail.warehousename" />
  10. <Cell title="提货数量" :value="detail.qty" />
  11. <Cell title="提货方式" :value="detail.appointmentmodeldisplay" />
  12. <Cell title="联系人" :value="detail.contactname" />
  13. <Cell title="联系方式" :value="detail.contactnum" />
  14. <Cell title="目的地地址"
  15. :value="[detail.provincename, detail.cityname, detail.districtname, detail.address].join(' ')"
  16. v-if="detail.appointmentmodel === 1" />
  17. <Cell title="发票信息" title-style="flex:none" v-if="detail.appointmentremark">
  18. <template #value>
  19. <div style="white-space: pre-line">{{ detail.appointmentremark }}</div>
  20. </template>
  21. </Cell>
  22. <Cell title="提货状态" :value="getApplyStatusName(detail.applystatus)" />
  23. </CellGroup>
  24. </div>
  25. <div v-else>
  26. <Empty />
  27. </div>
  28. </app-view>
  29. </template>
  30. <script lang="ts" setup>
  31. import { shallowRef } from 'vue'
  32. import { useNavigation } from '@/hooks/navigation'
  33. import { CellGroup, Cell, Empty } from 'vant'
  34. import { getApplyStatusName } from "@/constants/order";
  35. const { route } = useNavigation()
  36. const item = route.params.item
  37. const detail = shallowRef<Model.WrOutInApplyRsp>()
  38. if (item) {
  39. detail.value = JSON.parse(item.toString())
  40. }
  41. </script>
  42. <style lang="less">@import './index.less';</style>