Bläddra i källkod

成本VA添加默认国家

yuanrf 1 år sedan
förälder
incheckning
55340edb7b
1 ändrade filer med 15 tillägg och 2 borttagningar
  1. 15 2
      src/components/Finance/Cost.vue

+ 15 - 2
src/components/Finance/Cost.vue

@@ -2995,7 +2995,9 @@ export default {
                 this.$message.error('程序异常!');
                 return;
             }
-
+            if(this.grouptitleinfo.visitCountry.indexOf('、') != -1){
+                this.dialogSearchInput = this.grouptitleinfo.visitCountry;
+            }
 
             var dataC = this.dialogColumn.filter(x => x.index == buttonIndex);
             if (dataC.length == 0) {
@@ -5796,7 +5798,18 @@ export default {
         filterdialogSearchInput() {
             var that = this;
             return this.dialogTableData.filter(function (x) {
-                return x.city.indexOf(that.dialogSearchInput) != -1 || x.country.indexOf(that.dialogSearchInput) != -1;
+                var fliterWhere = [];
+                if(that.dialogSearchInput.split('、') != -1){
+                    fliterWhere = that.dialogSearchInput.split('、');
+                }else{
+                    fliterWhere = [that.dialogSearchInput];
+                }
+
+                for(var i = 0;i < fliterWhere.length;i++){
+                    if(x.city.indexOf(fliterWhere[i]) != -1 || x.country.indexOf(fliterWhere[i]) != -1){
+                        return x;
+                    }
+                }
             })
         },
         columnWidth() {