| 
					
				 | 
			
			
				@@ -108,6 +108,31 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 :show-tooltip-when-overflow="true" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 label="来源"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                header-align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                width="120" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                label="原材料材质报告"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <el-button :disabled="!scope.row.attachTextureList || scope.row.attachTextureList.length === 0" type="text" size="small" @click="attachDetails(scope.row.attachTextureList)">查看</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                header-align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                label="原厂合格证"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <el-button :disabled="!scope.row.attachCertificateList || scope.row.attachCertificateList.length === 0" type="text" size="small" @click="attachDetails(scope.row.attachCertificateList)">查看</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                header-align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                label="复验报告"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <el-button :disabled="!scope.row.attachReviewList || scope.row.attachReviewList.length === 0" type="text" size="small" @click="attachDetails(scope.row.attachReviewList)">查看</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 prop="expirationTime" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 header-align="center" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -138,6 +163,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <span slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button @click="onChose">取消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <attach-detail-dialog ref="attachDetail" v-if="attachVisible" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- </el-dialog> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -148,14 +174,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import { getBoundDetails } from '@/api/warehouse' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import { dealStepData, dealStepLogs } from '@/api/util' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import ApproveComponent from '../common/approve-component' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import AttachDetailDialog from '@/views/modules/common/attach-detail-dialog' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     name: 'stock-order-detail', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     components: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      EDesc, EDescItem, ApproveComponent 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      AttachDetailDialog, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      EDesc, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      EDescItem, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ApproveComponent 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     data () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         visible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        attachVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         isFlow: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataForm: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataList: [], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -165,6 +196,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       onChose () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.attachVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$emit('onChose') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       async init (id, businessType) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -202,6 +234,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       approveFinished () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.onChose() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$emit('approveFinished') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 附件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      attachDetails (attachList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.attachVisible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.attachDetail.init(attachList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 |