cylinderDetails.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <!-- 钢瓶详情 -->
  3. <view>
  4. <u-navbar title="钢瓶详情" autoBack placeholder></u-navbar>
  5. <view>
  6. <view class="card_quickmark" v-for="(item,index) in list" :key="index">
  7. <view class="quickmark_title width_quick">{{item.title}} {{cylinderInformation[`${item.key}`]}}</view>
  8. <!-- <view class="quickmark_title width_quick">{{item.title}}</view>
  9. <view class="quickmark_title">{{cylinderInformation[`${item.key}`]}}</view> -->
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. list: [{
  19. key: 'inner_code',
  20. title: '单位内编码:',
  21. }, {
  22. key: 'uid',
  23. title: '高频编码:',
  24. }, {
  25. key: 'status',
  26. title: '钢瓶状态:',
  27. }, {
  28. key: 'pro_variety',
  29. title: '设备品种:',
  30. }, {
  31. key: 'pro_name',
  32. title: '产品名称:',
  33. }, {
  34. key: 'pro_no',
  35. title: '气瓶生产编号:',
  36. }, {
  37. key: 'fill_media',
  38. title: '充装介质:',
  39. }, {
  40. key: 'make_unit',
  41. title: '制造单位:',
  42. }, {
  43. key: 'make_time',
  44. title: '生产日期:',
  45. }, {
  46. key: 'work_pressure',
  47. title: '公称工作压口(MPa):',
  48. }, {
  49. key: 'volume',
  50. title: '容积(L):',
  51. }, {
  52. key: 'check_time',
  53. title: '最近一次检验日期:',
  54. }, {
  55. key: 'next_check_time',
  56. title: '下次检验日期:',
  57. }, {
  58. key: 'pro_uuid',
  59. title: '产品唯一性编码:',
  60. }],
  61. cylinderInformation: {},
  62. }
  63. },
  64. onLoad(opent) {
  65. this.getList(opent.inner_code)
  66. },
  67. mounted() {},
  68. methods: {
  69. getList(inner_code) {
  70. this.$api.get('/api/gas-cylinder/' + inner_code).then(res => {
  71. if(res.code == 200){
  72. this.cylinderInformation = res.data
  73. }
  74. })
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss">
  80. .card_quickmark {
  81. display: inline-flex !important;
  82. word-break: break-all;
  83. width: calc(100% - 40rpx);
  84. margin: 10rpx 20rpx;
  85. }
  86. .width_quick {
  87. flex: none;
  88. }
  89. .quickmark_title {
  90. width: 100%;
  91. word-wrap: break-word;
  92. color: #249acc;
  93. font-size: 30rpx;
  94. margin-right: 10rpx;
  95. }
  96. </style>