| 
					
				 | 
			
			
				@@ -1,7 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-dialog 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      title="发起评审" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :title="!id ? '发起评审': display ? '评审详情' : '修改'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       width="70%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :close-on-click-modal="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :visible.sync="visible"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -82,9 +82,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             :limit="5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             :on-exceed="handleExceed" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             :auto-upload="false"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button slot="trigger" size="small" type="primary">选取文件</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">开始上传</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,最多5张图片,且每张图片不超过10M</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button slot="trigger" size="small" type="primary" v-show="!display">选取文件</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload" v-show="!display">开始上传</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div slot="tip" class="el-upload__tip" v-show="!display">只能上传jpg/png文件,最多5张图片,且每张图片不超过10M</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-upload> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-row> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-form> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -130,9 +130,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataRule: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           coCode: [{ required: true, message: '沟通编码不能为空', trigger: 'change' }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          reType: [{ required: true, message: '评审类别不能为空', trigger: 'change' }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          name: [{ required: true, message: '客户名称不能为空', trigger: 'blur' }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          cellName: [{ required: true, message: '联系人不能为空', trigger: 'blur' }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          reType: [{ required: true, message: '评审类别不能为空', trigger: 'change' }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // name: [{ required: true, message: '客户名称不能为空', trigger: 'blur' }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // cellName: [{ required: true, message: '联系人不能为空', trigger: 'blur' }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         display: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         uploadUrl: uploadUrl, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -152,6 +152,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       async init (id, disable) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.dataForm = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.display = disable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.fileList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.visible = true 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -171,6 +172,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         await geTreDetail(id).then(({data}) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (data && data.code === '200') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.dataForm = data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 附件显示 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.fileList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            data.data.attachList.forEach((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.fileList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                name: item.fileName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                url: item.url, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                id: item.url 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -216,6 +226,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       dataFormSubmit () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$refs['dataForm'].validate((valid) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let fList = this.fileList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (fList.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.dataForm.attachList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              for (let i = 0; i < fList.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.dataForm.attachList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  fileName: fList[i].name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  url: fList[i].url 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$http({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               url: this.$http.adornUrl(`/biz-service/flow/cusContractReview/submit`), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               method: 'post', 
			 |