Browse Source

数量的判断

zhulizhen1111 4 years ago
parent
commit
78158223f5

+ 9 - 11
src/views/equipment/table/eqDetaileDialog.vue

@@ -56,7 +56,7 @@
                 <template slot-scope='{row}'>{{row.assetnum || '--'}}</template>
             </el-table-column>
             <el-table-column prop='sl' label='数量' width='100'>
-                <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
             </el-table-column>
             <el-table-column prop='sbglgs' label='管理归属' show-overflow-tooltip resizable>
                 <template slot-scope='{row}'>{{row.sbglgs || '--'}}</template>
@@ -242,11 +242,11 @@ export default {
                 delete data.keyword
             }
             let postParams = {
-                type_code: this.row.type_code
-                // manufacturer: this.row.manufacturer,
-                // sbxh: this.row.sbxh,
-                // // floor: '--',
-                // brand: '--'
+                classstructureid: this.row.classstructureid,
+                type_code: this.row.type_code,
+                manufacturer: this.row.manufacturer || '--',
+                sbxh: this.row.sbxh || '--',
+                brand: this.row.brand || '--'
             }
             //下拉筛选
             if (this.floor) {
@@ -266,12 +266,10 @@ export default {
         }
     },
     watch: {
-        'row.type_code': {
+        row: {
             handler(newV, oldV) {
-                if (newV != oldV) {
-                    this.queryTableList()
-                    this.tabFind()
-                }
+                this.queryTableList()
+                this.tabFind()
             },
             deep: true
         }

+ 1 - 1
src/views/equipment/table/eqListTable.vue

@@ -37,7 +37,7 @@
                 <template slot-scope='{row}'>{{row.type_name || '--'}}</template>
             </el-table-column>
             <el-table-column prop='sl' label='数量' width='100'>
-                <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
             </el-table-column>
             <el-table-column prop='brand' label='品牌'>
                 <template slot-scope='{row}'>{{row.brand || '--'}}</template>

+ 1 - 1
src/views/equipment/table/otherTable.vue

@@ -50,7 +50,7 @@
                     <template slot-scope='{row}'>{{row.content || '--'}}</template>
                 </el-table-column>
                 <el-table-column prop='sl' label='数量'>
-                    <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                    <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
                 </el-table-column>
             </el-table-column>
             <el-table-column prop='zfje' label='金额(万元)'>

+ 2 - 2
src/views/equipment/table/standTable.vue

@@ -38,7 +38,7 @@
             </el-table-column>
             <!-- sbjc -->
             <el-table-column prop='sl' label='数量' width='100'>
-                <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
             </el-table-column>
             <el-table-column prop='brand' label='品牌'>
                 <template slot-scope='{row}'>{{row.brand || '--'}}</template>
@@ -99,7 +99,7 @@ export default {
     },
     methods: {
         rowHandle(row) {
-            //console.log(row)
+            console.log(row)
             this.innerVisible = true
             this.row = row
         },

+ 1 - 1
src/views/equipment/table/tjTable.vue

@@ -19,7 +19,7 @@
                 <template slot-scope='{row}'>{{row.category || '--'}}</template>
             </el-table-column>
             <el-table-column prop='sl' label='数量' width='100'>
-                <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
             </el-table-column>
             <el-table-column prop='brand' label='品牌'>
                 <template slot-scope='{row}'>{{row.brand || '--'}}</template>

+ 1 - 1
src/views/equipment/table/wbTable.vue

@@ -84,7 +84,7 @@
                     <template slot-scope='{row}'>{{row.model || '--'}}</template>
                 </el-table-column>
                 <el-table-column prop='sl' label='数量'>
-                    <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                    <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
                 </el-table-column>
                 <el-table-column prop='cost' label='费用(万元)'>
                     <template slot-scope='{row}'>{{row.cost || '--'}}</template>

+ 1 - 1
src/views/equipment/table/wxTable.vue

@@ -92,7 +92,7 @@
                     <template slot-scope='{row}'>{{row.model || '--'}}</template>
                 </el-table-column>
                 <el-table-column prop='sl' label='数量'>
-                    <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                    <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
                 </el-table-column>
                 <el-table-column prop='cost' label='费用(万元)'>
                     <template slot-scope='{row}'>{{number_format(row.cost,2) || '--'}}</template>

+ 1 - 1
src/views/equipment/table/zwTable.vue

@@ -75,7 +75,7 @@
                 <template slot-scope='{row}'>{{row.xm || '--'}}</template>
             </el-table-column>
             <el-table-column prop='sl' label='数量' show-overflow-tooltip resizable>
-                <template slot-scope='{row}'>{{row.sl || '--'}}</template>
+                <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
             </el-table-column>
             <el-table-column prop='ssfasm' label='实施方案说明' show-overflow-tooltip resizable>
                 <template slot-scope='{row}'>{{row.ssfasm || '--'}}</template>