<template>
  <view> </view>
</template>

<script setup>
onLoad(options => {
  // 根据交付物id获取上传记录
  (async function getHistory() {
    try {
      const param = { deliverId: options.deliverId };
      const data = await uni.$u.api.getDeliverHistory(param);
      name.value = data.deliverName;
      listRef.value = data.deliverRecordList;
      console.log(data);
    } catch (error) {
      console.log('error: ', error);
      uni.$ui.showToast('获取交付物历史失败');
    }
  }());
});
</script>

<style lang="scss"></style>
