| 
					
				 | 
			
			
				@@ -118,7 +118,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-col :span="1.5"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="primary" plain icon="Delete" @click="handleImport" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button type="primary" plain icon="Plus" @click="handleImport" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             >导入</el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-col> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -222,12 +222,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :close-on-click-modal="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="el-upload__tip" slot="tip"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          type="warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          style="font-size: 13px; margin: 10px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          @click="importTemplate" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          >下载模板</el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <a :href="templateUrl" target="_blank" download="物料导入模版.xlsx"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type="warning"  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            style="font-size: 13px; margin: 10px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            下载模板 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-upload 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ref="uploadRef" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :limit="1" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -263,7 +265,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script setup name="ToolsMaterial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { reactive } from "vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { reactive, computed } from "vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import useInit from "./hooks/useInit"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import useSearchForm from "./hooks/useSearchForm.js"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import useSubmitForm from "./hooks/useSubmitForm.js"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -347,16 +349,17 @@ const upload = reactive({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   // 上传的地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   url: import.meta.env.VITE_APP_BASE_API + "/basis/detail/importData", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 模板下载地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const templateUrl = computed(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return import.meta.env.VITE_APP_BASE_PATH + "/物料导入模版.xlsx" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 导入 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const handleImport = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   upload.title = "物料导入"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   upload.open = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 下载模版 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const importTemplate = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  window.location.href =  import.meta.env.VITE_APP_BASE_PATH + "/物料导入模版.xlsx"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 文件上传中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const handleFileUploadProgress = (event, file, fileList) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   upload.isUploading = true; 
			 |