equipment-insure.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.account" />
  5. <equipment-line title="名称" :content="infoData.name" />
  6. <equipment-line
  7. title="等级"
  8. :content="
  9. $BaseTool.Object.getField(firmProducerLevelMap, infoData.level)
  10. "
  11. />
  12. <equipment-line title="联系人" :content="infoData.contactPerson" />
  13. <equipment-line title="联系电话" :content="infoData.phone" />
  14. <equipment-line title="联系地址" :content="infoData.registerAddress" />
  15. <equipment-line title="备注" :content="infoData.remark" />
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. detailId: "",
  24. infoData: {},
  25. firmProducerLevelMap: {},
  26. };
  27. },
  28. onLoad(options) {
  29. this.detailId = options.detailId;
  30. this.initData();
  31. this.firmProducerLevelMap = this.$DictCache.getLabelByValueMapByType(
  32. this.$DictCache.TYPE.FIRM_PRODUCER_LEVEL
  33. );
  34. },
  35. methods: {
  36. initData() {
  37. this.$Http
  38. .fetchFirmProducer({
  39. id: this.detailId,
  40. })
  41. .then((res) => {
  42. this.infoData = res.data;
  43. });
  44. this.statusMap = this.$DictCache.getLabelByValueMapByType(
  45. this.$DictCache.TYPE.SB_INFO_STATUS
  46. );
  47. },
  48. },
  49. };
  50. </script>
  51. <style lang="less">
  52. page {
  53. background-color: #f4f4f4;
  54. }
  55. </style>