Browse Source

用友接口

hfxc226 2 năm trước cách đây
mục cha
commit
0e5efa8e46
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      src/views/sb/count/SbPositionCount.vue

+ 5 - 5
src/views/sb/count/SbPositionCount.vue

@@ -71,7 +71,7 @@
         </a-col>
         <a-col :span="18" class="gutter-box">
           <a-row :gutter="[20,20]">
-            <a-col :span="6" v-for="position in sbPositionData" v-show="position.type === 2 && position.parentId === parentId" :key="position.id" @click="selectCountByUseTypeGroup(position)">
+            <a-col :span="6" v-for="position in sbPositionData" v-show="position.type === 2 && position.parentId === parentId" :key="position.id" @click="selectCountByPositionGroupBySbType(position)">
               <div class="gutter-btn gutter-color " :class="code==position.code?'opt_option':''">
                 <div style="font-size:32px">{{ position.name }}</div>
                 <div style="font-size:16px">3楼</div>
@@ -86,7 +86,7 @@
           <!-- <div class="title">报修数据</div> -->
           <div>
             <a-descriptions :column="6" bordered>
-              <a-descriptions-item v-for="item in typeData" :key="item.id" :label="BaseTool.Object.getField(useTypeMap,item.useType)">{{ item.num }}台</a-descriptions-item>
+              <a-descriptions-item v-for="item in typeData" :key="item.id" :label="item.typeName">{{ item.num }}台</a-descriptions-item>
             </a-descriptions>
           </div>
         </div>
@@ -100,7 +100,7 @@
 
 import {
   selectCountByPositionGroup,
-  selectCountByUseTypeGroup
+  selectCountByPositionGroupBySbType
 } from '@/api/sb/count'
 
 export default {
@@ -158,9 +158,9 @@ export default {
       this.code = null
       this.typeData = []
     },
-    selectCountByUseTypeGroup (position) {
+    selectCountByPositionGroupBySbType (position) {
       this.code = position.code
-      selectCountByUseTypeGroup(position).then(res => {
+      selectCountByPositionGroupBySbType(position).then(res => {
         this.typeData = res.data
       })
     },