| 
					
				 | 
			
			
				@@ -101,7 +101,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 表单区域 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <syCottonYarn-modal ref="modalForm" @ok="modalFormOk"  @close="getList"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <sy-cotton-yarn-detail-modal ref="syCottonYarnDetailModal"></sy-cotton-yarn-detail-modal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <sy-cotton-yarn-detail-modal ref="syCottonYarnDetailModal" @close="getList"></sy-cotton-yarn-detail-modal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </a-card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -210,44 +210,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.queryParam={} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.getList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      async handleEdit(record,data){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var zhuId = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        await getAction('/oa/syCottonYarn/queryById', {id:record.id}).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if(res.success){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             if(data == '0'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               this.$refs.modalForm.formState=res.result //编辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               this.$refs.syCottonYarnDetailModal.formState=res.result //详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            zhuId = res.result.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$message.warning(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        getAction(this.url.editListUrl, {id:zhuId}).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if(res.success){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(data == '0'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.$refs.modalForm.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.$refs.modalForm.defultMethods = 'edit' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              res.result.map(item =>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              if(item.orderDate !==''&& item.orderDate){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.orderDate = moment(item.orderDate) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$refs.modalForm.syCottonYarnBTable.dataSource = res.result 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$refs.syCottonYarnDetailModal.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              res.result.map(item =>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              if(item.orderDate !==''&& item.orderDate){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.orderDate = moment(item.orderDate) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$refs.syCottonYarnDetailModal.syCottonYarnBTable.dataSource = res.result 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$message.warning(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       handleEdit(record,data){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(data == '0'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           this.$refs.modalForm.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$refs.modalForm.getHeaderList(record.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           this.$refs.syCottonYarnDetailModal.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           this.$refs.syCottonYarnDetailModal.getHeaderList(record.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |