| 
					
				 | 
			
			
				@@ -54,7 +54,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-button type="primary" @click="bitchCancelSubmitList" icon="close">批量取消提交</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-button type="primary" @click="push" icon="export">推送</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-button type="primary" icon="download" @click="handleExportXls('装箱单-面辅料')">装箱单面辅料导出</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <a-upload  name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"  @change="handleImportExcel" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <a-upload  name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader"   @change="handleImportExcel" :customRequest="uploadFlie" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-button type="primary" icon="import">导入-来源出运明细</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </a-upload> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          <a-button type="primary" @click="synchronization" icon="reload">同步</a-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -138,7 +138,7 @@ import moment from 'moment' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import addFabricDrawer from '@views/packing-list/packinglist-fabrics/addFabricDrawer.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import detailsFabricDrawer from '@views/packing-list/packinglist-fabrics/detailsFabricDrawer.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import editFabricDrawer from '@views/packing-list/packinglist-fabrics/editFabricDrawer.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { fabricList,fabricListId,deleteFabricList,submitList,cancelSubmit,bitchSubmit,bitchCancelSubmit,synchronizationData} from '@api/document/packing-list/packinglist-fabrics' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { fabricList,fabricListId,deleteFabricList,submitList,cancelSubmit,bitchSubmit,bitchCancelSubmit,synchronizationData,upload} from '@api/document/packing-list/packinglist-fabrics' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'FabricList', // 装箱单-面料 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -270,6 +270,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.getFabricList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 导入 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    uploadFlie(file) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const formData = new FormData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      formData.append('file', file.file) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      upload(formData).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getFabricList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message.error(res.message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      })}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //分页查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getFabricList(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.$nextTick(() => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -277,6 +288,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fabricList(this.queryParam).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.fabricListData = res.result.records; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.pagination = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               total: res.result.total, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               current: res.result.current, 
			 |