equipment-date.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view style="padding-top: 50rpx">
  3. <view class="mx3 my2 p3 bg-color-white" style="border-radius: 16rpx">
  4. <equipment-line title="保险公司" :content="infoData.bxgs" />
  5. <equipment-line title="交保单号" :content="infoData.jbdh" />
  6. <equipment-line title="商保单号" :content="infoData.sbdh" />
  7. <equipment-line title="上牌日期" :content="infoData.spDate" />
  8. <equipment-line title="交保到期日" :content="infoData.jbdDate" />
  9. <equipment-line title="商保到期日" :content="infoData.sbdDate" />
  10. <equipment-line title="首保日期" :content="infoData.sbDate" />
  11. <equipment-line title="购置日期" :content="infoData.buyDate" />
  12. <equipment-line title="投用日期" :content="infoData.startDate" />
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. detailId: "",
  21. infoData: {},
  22. };
  23. },
  24. onLoad(options) {
  25. this.detailId = options.detailId;
  26. this.initData();
  27. },
  28. methods: {
  29. initData() {
  30. this.$Http
  31. .fetchSbInfo({
  32. id: this.detailId,
  33. })
  34. .then((res) => {
  35. this.infoData = res.data;
  36. });
  37. this.statusMap = this.$DictCache.getLabelByValueMapByType(
  38. this.$DictCache.TYPE.SB_INFO_STATUS
  39. );
  40. },
  41. },
  42. };
  43. </script>
  44. <style lang="less">
  45. page {
  46. background-color: #f4f4f4;
  47. }
  48. </style>