Ver código fonte

1. 土建系统,增加 重要维修及重要维保 入口,
2. 土建系统的 重要维修及重要维保 页面,接口不送onlyMainAsset字段(与PC端保持一致)

yunxing 4 anos atrás
pai
commit
b97579e3cf

+ 8 - 0
src/views/equipmentFacilities/MaintenanceRecordView.vue

@@ -201,6 +201,10 @@ export default {
         onlyMainAsset: true, //仅查询重要维修/维保
         ismodel: this.isParts, //是否更换配件
       };
+      // 土建系统,不上送onlyMainAsset字段
+      if(this.smsxt == '1008'){
+        delete getParams.onlyMainAsset
+      }
       //查询关键字(重要事项记录)
       if (this.$refs.repair && this.$refs.repair.keyword) {
         getParams.keyword = `${this.$refs.repair.keyword}:matters`;
@@ -319,6 +323,10 @@ export default {
         onlyMainAsset: true, //仅查询重要维修/维保
         ismodel: this.isParts, //是否更换配件
       };
+      // 土建系统,不上送onlyMainAsset字段
+      if(this.smsxt == '1008'){
+        delete getParams.onlyMainAsset
+      }
       //查询关键字(重要事项记录)
       if (this.$refs.maintenance && this.$refs.maintenance.keyword) {
         getParams.keyword = `${this.$refs.maintenance.keyword}:matters`;

+ 10 - 1
src/views/equipmentFacilities/index.vue

@@ -39,7 +39,15 @@
                     @click.native='goToEquipment(item)'
                 />
                 <!-- 更多主要设备,有moreCardList时才显示 -->
-                <m-card class='card' :type='4' name unit v-if='moreCardList.length &&  !showMoreCardList' :total='0' @click.native='goToMoreEquipment' />
+                <m-card
+                    class='card'
+                    :type='4'
+                    name
+                    unit
+                    v-if='moreCardList.length &&  !showMoreCardList'
+                    :total='0'
+                    @click.native='goToMoreEquipment'
+                />
                 <m-card
                     v-show='moreCardList.length && showMoreCardList'
                     class='card'
@@ -175,6 +183,7 @@ export default {
                     // { text: '建筑立面图', dataType: 'img', typecode: '2026', count: '无' },
                     { text: '建筑立面图', dataType: 'img', typecode: ['2026', '2027', '2028', '2029'], count: '无' },
                     { text: '楼层分布', dataType: 'floor' },
+                    { text: '重要维修及重要维保', dataType: 'wxwb' },
                     { text: '其他事项', dataType: 'otherMatter' },
                 ],
             },