| 
					
				 | 
			
			
				@@ -0,0 +1,108 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <el-dialog 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    title="查看" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    width="70%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    :close-on-click-modal="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    :visible.sync="visible"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div style="margin-left: 20px;margin-right: 20px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <!-- 工作流 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div v-show="dataForm.workFlowBusinessExt"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-steps :active="dataForm.workFlowBusinessExt?dataForm.workFlowBusinessExt.workFlowProcessStepList.length + 2:0" align-center style="margin-bottom: 20px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template v-for="(item, i) in stepList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-step :icon="item.icon" :title="item.title" :description="item.description"></el-step> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-steps> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-collapse style="margin-bottom: 20px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-collapse-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <template slot="title"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <span style="color: red">审批日志(展开查看更多):</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <template v-for="(item, i) in logList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <div>{{++i}}:{{item.approverName}}  {{item.createTime}}  {{item.approvalValue}}</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-collapse-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-collapse> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <e-desc title="基本信息" column="3"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <e-desc-item label="工艺名称">{{dataForm.techName}}</e-desc-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <e-desc-item label="工艺版本">{{dataForm.techVersion}}</e-desc-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <e-desc-item label="产品">{{dataForm.productId}}</e-desc-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <e-desc-item label="备注" span="3">{{dataForm.notes}}</e-desc-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </e-desc> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <e-desc title="附件"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <upload-component :display="true" :display-title="false" :accept="'*'" :file-obj-list="fileList"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </e-desc> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <span slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-button @click="visible = false">返回</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import EDesc from '../common/e-desc' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import EDescItem from '../common/e-desc-item' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import { dealStepData, dealStepLogs } from '@/api/util' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import uploadComponent from '../common/upload-component' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import { getInfo } from '@/api/crafts' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    name: 'crafts-detail', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    components: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      EDesc, EDescItem, uploadComponent 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    data () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        visible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        id: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        dataForm: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        stepList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        logList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fileList: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      async init (id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.id = id || 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.dataForm = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.stepList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.logList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.fileList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.getDetails() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      getDetails () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        getInfo(this.id).then(({data}) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (data && data.code === '200') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.dataForm = data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 流程图展示 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (data.data.workFlowBusinessExt) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              dealStepData(data.data.workFlowBusinessExt.workFlowProcessStepList, this.stepList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              dealStepLogs(data.data.workFlowBusinessExt.processLogList, this.logList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 附件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (data.data.attachList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              data.data.attachList.forEach((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.fileList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  name: item.fileName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  url: item.url, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  id: item.url 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<style scoped> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.my-line{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  border-bottom: 1px solid #c0c4cc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  margin-bottom: 10px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.title{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  padding: 10px 0 ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</style> 
			 |