| 
					
				 | 
			
			
				@@ -18,9 +18,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-button type="primary" class="btn" @click="toInsert1"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <i class="el-icon-plus"></i>新增特殊车牌 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-button type="primary" @click="exportData()" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ><i class="el-icon-download"></i>导出(Excel)</el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-button type="primary" @click="exportAllExcel()" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ><i class="el-icon-download"></i>导出(Excel)</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="table"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <dilTable 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,7 +76,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       options: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // first请求数据的地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         requestUrl: "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      noSettleDetailsColumn: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      exportAllList:[] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -114,6 +115,135 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.selectLoading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    exportAllExcel() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isKuang = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.tableloading = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.selectLoading = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (this.textInput) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (getCookie("orgCode") == "chengyunshang") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.axios.post("/api/v1/rms/getCapacityList?apiId=397&carrierSSOId=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            getCookie("userId") + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&con=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.textInput + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&i=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(res.data.data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllList = res.data.data.list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.noSettleDetailsColumn=res.data.data.columnData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllReportToExcel( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.tableTitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.exportAllList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.noSettleDetailsColumn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else if (getCookie("orgCode") == "baohua") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.axios.post("/api/v1/rms/getCapacityList?apiId=397&carrierSSOId=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            getCookie("userId") + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.textInput + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&i=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(res.data.data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllList = res.data.data.list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.noSettleDetailsColumn=res.data.data.columnData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllReportToExcel( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.tableTitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.exportAllList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.noSettleDetailsColumn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.axios.post("/api/v1/rms/getCapacityList?apiId=397&carrierSSOId=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            null + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&con=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.textInput + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&i=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(res.data.data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllList = res.data.data.list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.noSettleDetailsColumn=res.data.data.columnData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllReportToExcel( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.tableTitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.exportAllList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.noSettleDetailsColumn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (getCookie("orgCode") == "chengyunshang") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.axios.post("/api/v1/rms/getCapacityList?apiId=397&carrierSSOId=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            getCookie("userId") + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&i=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(res.data.data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllList = res.data.data.list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.noSettleDetailsColumn=res.data.data.columnData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllReportToExcel( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.tableTitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.exportAllList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.noSettleDetailsColumn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else if (getCookie("orgCode") == "baohua") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.axios.post("/api/v1/rms/getCapacityList?apiId=397&carrierSSOId=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            getCookie("userId") + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&i=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(res.data.data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllList = res.data.data.list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.noSettleDetailsColumn=res.data.data.columnData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllReportToExcel( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.tableTitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.exportAllList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.noSettleDetailsColumn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.axios.post("/api/v1/rms/getCapacityList?apiId=397&carrierSSOId=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            null + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "&i=" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(res.data.data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllList = res.data.data.list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.noSettleDetailsColumn=res.data.data.columnData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.exportAllReportToExcel( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.tableTitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.exportAllList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.noSettleDetailsColumn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //导出excel 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    exportAllReportToExcel(tableTitle, dataArr, columnData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      var title = tableTitle 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let tHeader = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let filterVal = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      columnData.forEach(e1 => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (tHeader.indexOf(e1.label) === -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          tHeader.push(e1.label) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (filterVal.indexOf(e1.prop) === -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          filterVal.push(e1.prop) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //导出为excel 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.downloadLoading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      require.ensure([], () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          export_json_to_excel 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } = require('@/assets/excel/Export2Excel.js') //这里必须使用绝对路径,使用@/+存放export2Excel的路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // let list = this.$refs.excelDom.dataTabel; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let data = dataArr.map(v => filterVal.map(j => v[j])) //3.formatJson格式转换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        export_json_to_excel(tHeader, data, title) // (title)导出的表格名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onclick() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.isKuang = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.tableloading = true; 
			 |