guoxiaohuan 4 years ago
parent
commit
fb70da807a
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/views/other/gcfz2.vue

+ 9 - 9
src/views/other/gcfz2.vue

@@ -52,10 +52,10 @@
                 </el-table-column>
                 <el-table-column prop label='库存变化' align='center'>
                     <el-table-column prop label='新增(间)'>
-                        <template slot-scope='{row}'>{{row.xzkf||'--'}}</template>
+                        <template slot-scope='{row}'>{{row.xzkf||row.xzkf=='0'?row.xzkf:'--'}}</template>
                     </el-table-column>
                     <el-table-column prop label='减少(间)'>
-                        <template slot-scope='{row}'>{{row.jskf||'--'}}</template>
+                        <template slot-scope='{row}'>{{row.jskf||row.jskf=='0'?row.jskf:'--'}}</template>
                     </el-table-column>
                 </el-table-column>
                 <el-table-column prop label='区域(㎡)'>
@@ -100,19 +100,19 @@ export default {
             cg: {
                 dateVal: '',
                 floors: '全部',
-                searVal: ''
+                searVal: '',
             },
             allArr: [
                 {
                     id: '全部',
-                    name: '全部'
-                }
+                    name: '全部',
+                },
             ],
-            floorSelect2: []
+            floorSelect2: [],
         }
     },
     computed: {
-        ...mapGetters(['floorSelect'])
+        ...mapGetters(['floorSelect']),
     },
     props: ['bgjlTable', 'total', 'page', 'size', 'loading'],
     components: { Select },
@@ -129,13 +129,13 @@ export default {
         },
         indexMethod(index) {
             return (this.page - 1) * this.size + index + 1
-        }
+        },
     },
     mounted() {
         if (this.floorSelect.length > 0) {
             this.floorSelect2 = this.allArr.concat(this.floorSelect)
         }
-    }
+    },
 }
 </script>
 <style lang="less" scoped>