瀏覽代碼

Merge branch 'master' of http://132.232.92.186:3000/XinXiBu/oa-system

yuanrf 1 年之前
父節點
當前提交
b626773076
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20 0
      src/components/Finance/Cost.vue

+ 20 - 0
src/components/Finance/Cost.vue

@@ -2598,6 +2598,26 @@ export default {
         };
     },
     watch: {
+        costTypeHotelNumbers:{
+            handler(val){
+                for(var i=0;i<val.length;i++){
+                    console.log(val[i]);
+                    if(val[i].tbr==''){
+                        val[i].tbr=0
+                    }
+                    if(val[i].sgr==''){
+                        val[i].sgr=0
+                    }
+                    if(val[i].jses==''){
+                        val[i].jses=0
+                    }
+                    if(val[i].suite==''){
+                        val[i].suite=0
+                    }
+                }
+            },
+            deep:true
+        },
         'tableData.length': {
             handler(newValue, oldValue) {
                 if (newValue !== oldValue) {