ソースを参照

fix:客户管理导出修改

ly 9 ヶ月 前
コミット
0531846736

+ 1 - 1
src/views/business/crm/company/ExportColumn.vue

@@ -107,7 +107,7 @@ const defaultColumns = ref([
     label: "所属区域",
   },
   {
-    field: "taxNo",
+    field: "socialCreditCode",
     label: "税号",
   },
   {

+ 17 - 1
src/views/business/crm/company/index.vue

@@ -87,7 +87,7 @@
       <el-table-column label="所属区域" prop="provinceCode" :resizable="false" min-width="150" align="center">
         <template #default="scope">
           <span>{{
-            scope.row.province + "-" + scope.row.city + "-" + scope.row.district
+              provinceCodeFormat(scope.row)
             }}</span>
         </template>
       </el-table-column>
@@ -402,5 +402,21 @@
   const handleMigration = (falg) =>{
     migrationViewRef.value.open(falg);
   }
+  const provinceCodeFormat = (row)=>{
+    const array = [];
+    if(row.province !== undefined && row.province.length > 0 ){
+      array.push(row.province);
+    }
+    if(row.city !== undefined && row.city.length > 0 ){
+      array.push(row.city);
+    }
+    if(row.district !== undefined && row.district.length > 0 ){
+      array.push(row.district);
+    }
+    // array.push(row.province || "");
+    // array.push(row.city|| "");
+    // array.push(row.district|| "");
+    return array.join('-');
+  }
 </script>
 <style scope></style>