|  |  | @ -3,7 +3,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <el-form :model="formData" :rules="formRules" ref="dataForm"> |  |  |  |     <el-form :model="formData" :rules="formRules" ref="dataForm"> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-card style="margin-top: -30px"> |  |  |  |       <el-card style="margin-top: -30px"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-button-group style="display: flex"> |  |  |  |         <el-button-group style="display: flex"> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button type="primary" @click.native="submitUpload" style="margin: 0 60px 10px auto; height: 35px" |  |  |  |           <el-button type="primary" @click.native="submitUpload()" style="margin: 0 60px 10px auto; height: 35px" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                      :loading="loading">提交 |  |  |  |                      :loading="loading">提交 | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-button> |  |  |  |           </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-button-group> |  |  |  |         </el-button-group> | 
			
		
	
	
		
		
			
				
					|  |  | @ -97,49 +97,41 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         <!--                    </el-col>--> |  |  |  |         <!--                    </el-col>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <!--                </el-row>--> |  |  |  |         <!--                </el-row>--> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | <!--        <el-row>--> |  |  |  |         <el-row> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--          <el-col :span="3">--> |  |  |  |           <el-col :span="3"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--            <div class="ao-text">--> |  |  |  |             <div class="ao-text"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              <span>文件:</span>--> |  |  |  |               <span>文件:</span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--            </div>--> |  |  |  |             </div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--          </el-col>--> |  |  |  |           </el-col> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--          <el-col :span="8">--> |  |  |  |           <el-col :span="8"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--            <el-form-item>--> |  |  |  |             <el-form-item> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              <el-upload--> |  |  |  |               <el-upload | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :disabled="formData.auditStatus == 1"--> |  |  |  |                 :disabled="formData.auditStatus == 1" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                class="upload-demo"--> |  |  |  |                 class="upload-demo" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                ref="upload"--> |  |  |  |                 ref="upload" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :action="this.uploadUrl"--> |  |  |  |                 :action="this.uploadUrl" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :on-preview="uploadHandlePreview"--> |  |  |  |                 :on-preview="uploadHandlePreview" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :on-remove="uploadHandleRemove"--> |  |  |  |                 :on-remove="uploadHandleRemove" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :headers="headers"--> |  |  |  |                 :headers="headers" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :on-exceed="uploadHandleExceed"--> |  |  |  |                 :on-exceed="uploadHandleExceed" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                accept=".jpg,.png"--> |  |  |  |                 accept=".jpg,.png" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :on-change="uploadOnchange"--> |  |  |  |                 :on-change="uploadOnchange" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :on-success="uploadHandleSuccess"--> |  |  |  |                 :on-success="uploadHandleSuccess" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :on-error="uploadHandleError"--> |  |  |  |                 :on-error="uploadHandleError" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :file-list="fileList"--> |  |  |  |                 :file-list="fileList" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :data="{type:'image2'}"--> |  |  |  |                 :data="{type:'image2'}" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                :auto-upload="true">--> |  |  |  |                 :auto-upload="true"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                <el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">--> |  |  |  |                 <el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                  {{ choiceFile }}--> |  |  |  |                   {{ choiceFile }} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                </el-button>--> |  |  |  |                 </el-button> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--                <div>只能上传 jpg,png 文件,且不超过 3 MB</div>--> |  |  |  |                 <div>只能上传 jpg,png 文件,且不超过 3 MB</div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              </el-upload>--> |  |  |  |               </el-upload> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              <!–                            <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"–>--> |  |  |  |               <!--                            <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              <!–                                       style="text-align:right"–>--> |  |  |  |               <!--                                       style="text-align:right"--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              <!–                            >文件预览–>--> |  |  |  |               <!--                            >文件预览--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              <!–                            </el-button–>--> |  |  |  |               <!--                            </el-button--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--              <!–                            >–>--> |  |  |  |               <!--                            >--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <!--            </el-form-item>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | <!--          </el-col>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | <!--        </el-row>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row gutter="20" class="el-row" type="flex"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11" class="el-col"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item label="文件:" prop="filePath"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               <cusEditor ref="editorRef" style="width:90vh;height: 100%;overflow: auto; " :content="formData.filePath" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                          :type="`image2`"/> |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-row> |  |  |  |         </el-row> | 
			
		
	
	
		
		
			
				
					|  |  | @ -208,8 +200,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   components: { |  |  |  |   components: { | 
			
		
	
		
		
			
				
					
					|  |  |  |     // draggable, |  |  |  |     draggable, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     // ElImageViewer |  |  |  |     ElImageViewer | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   methods: { |  |  |  |   methods: { | 
			
		
	
		
		
			
				
					
					|  |  |  |     submitUpload() { |  |  |  |     submitUpload() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -238,13 +230,23 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     onConfirmSubmit(val) { |  |  |  |     onConfirmSubmit(val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.repeatUpload = val; |  |  |  |       this.formData.repeatUpload = val; | 
			
		
	
		
		
			
				
					
					|  |  |  |       console.log(this.formData) |  |  |  |       console.log(this.formData) | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.onSubmit(); |  |  |  |       if (this.$isNotBlank(this.formData.filePath)) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       // this.formData.repeatUpload = val; |  |  |  |         if (this.$refs.upload.uploadFiles.length > 0) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       // if (this.$isNotBlank(this.formData.filePath)) { |  |  |  |           this.$refs.upload.submit(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       //     this.onSubmit(); |  |  |  |           this.onSubmit(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       //   }else { |  |  |  |         } else { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       //   this.$message.warning(`请选择文件`); |  |  |  |           this.onSubmit(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       // } |  |  |  |         } | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         console.log(this.$refs.upload.uploadFiles.length); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (this.$refs.upload.uploadFiles.length > 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.$refs.upload.submit(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.$message.warning(`请选择文件`); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     onSubmit() { |  |  |  |     onSubmit() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -260,10 +262,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.formData.manufacturerIdFk = this.inputQuery.manufacturerIdFk; |  |  |  |         this.formData.manufacturerIdFk = this.inputQuery.manufacturerIdFk; | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.formData.productIdFk = this.inputQuery.productId; |  |  |  |         this.formData.productIdFk = this.inputQuery.productId; | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.formData.auditStatus != 1){ |  |  |  |       if (this.formData.auditStatus != 1) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         this.formData.auditStatus = "6"; |  |  |  |         this.formData.auditStatus = "6"; | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.formData.filePath = this.$refs.editorRef.html |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.editTye == 1) { |  |  |  |       if (this.editTye == 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         insertCompanyCert(this.formData).then(response => { |  |  |  |         insertCompanyCert(this.formData).then(response => { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |