|  |  | @ -37,11 +37,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-button type="primary" icon="search" @click="allExport" v-if="selectType==0" |  |  |  |                         <el-button type="primary" icon="search" @click="allExport" v-if="selectType==0" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         >一键导出 |  |  |  |                         >一键导出 | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-button> |  |  |  |                         </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-button type="primary" icon="search" @click="uploadSMP" |  |  |  |                         <el-button type="primary" icon="search" @click="uploadSmp" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                                    v-if="selectType==1" |  |  |  |                                    v-if="selectType==1" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         >选中上传 |  |  |  |                         >选中上传 | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-button> |  |  |  |                         </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-button type="primary" icon="search" @click="uploadSMP" |  |  |  |                         <el-button type="primary" icon="search" @click="allUploadSmp" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                                    v-if="selectType==1" |  |  |  |                                    v-if="selectType==1" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         >一键上传 |  |  |  |                         >一键上传 | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-button> |  |  |  |                         </el-button> | 
			
		
	
	
		
		
			
				
					|  |  | @ -97,6 +97,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     import {selectIp} from "../../api/param/systemParamConfig"; |  |  |  |     import {selectIp} from "../../api/param/systemParamConfig"; | 
			
		
	
		
		
			
				
					
					|  |  |  |     import thrProductsDetail from "./ThrProductsDetail"; |  |  |  |     import thrProductsDetail from "./ThrProductsDetail"; | 
			
		
	
		
		
			
				
					
					|  |  |  |     import {exportExcel} from "../../api/thrsys/thrProductsExport" |  |  |  |     import {exportExcel} from "../../api/thrsys/thrProductsExport" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     import {thrProductUpload} from "../../api/thrsys/smp" | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     export default { |  |  |  |     export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         name: "thrProductsSelect", |  |  |  |         name: "thrProductsSelect", | 
			
		
	
	
		
		
			
				
					|  |  | @ -299,6 +300,33 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }); |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             uploadSmp() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 var selectData = this.multipleSelection; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 selectData.forEach((obj) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.filterQuery.thrProductsEntities.push(obj); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.allUploadSmp(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             allUploadSmp() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 thrProductUpload(this.filterQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (response.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                           this.$message.success(response.data); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             this.$emit("cancelDialog", true); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             this.$emit("cancelDialog", true); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         this.$message({ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             type: "error", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             message: "上传失败", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             selectExport() { |  |  |  |             selectExport() { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 var selectData = this.multipleSelection; |  |  |  |                 var selectData = this.multipleSelection; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 selectData.forEach((obj) => { |  |  |  |                 selectData.forEach((obj) => { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |