| 
					
					
						
							
						
					
					
				 | 
				@ -13,26 +13,49 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				      </div> | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				      <div style="margin-left: 20px"> | 
				 | 
				 | 
				      <div style="margin-left: 20px"> | 
			
		
		
	
		
			
				 | 
				 | 
				        <span>单位体检次数:</span> | 
				 | 
				 | 
				        <span>单位体检次数:</span> | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-select v-model="customerOrgRegister" placeholder="次数" style="width: 60px; margin-left: 10px" size="small" | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          @change="changeTimes" value-key="id"> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          <el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes" :value="item.id" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <el-select v-model="customerOrgRegisterId" placeholder="次数" style="width: 60px; margin-left: 10px" size="small" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          value-key="id"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            :value="item.id" /> | 
			
		
		
	
		
			
				 | 
				 | 
				        </el-select> | 
				 | 
				 | 
				        </el-select> | 
			
		
		
	
		
			
				 | 
				 | 
				      </div> | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				      <div style="margin-left: 10px"> | 
				 | 
				 | 
				      <div style="margin-left: 10px"> | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-button class="commonbutton" @click="btnImport">开始导入</el-button> | 
				 | 
				 | 
				        <el-button class="commonbutton" @click="btnImport">开始导入</el-button> | 
			
		
		
	
		
			
				 | 
				 | 
				      </div> | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				    </div> | 
				 | 
				 | 
				    </div> | 
			
		
		
	
		
			
				 | 
				 | 
				    <div> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				      <el-table :data="tableData" ref="customerOrgGroups" style="margin-top: 2px" row-key="id" border height="240px" | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        size="small" highlight-current-row :row-class-name="handleRowClassName" @row-click="rowClick"> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-table-column type="index" label="序号" width="40" align="center" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-table-column prop="importSuccessNum" label="导入成功数" min-width="60" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-table-column prop="importErrorNum" label="导入错误数" min-width="60" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-table-column prop="deleteSuccessNum" label="删除成功数" min-width="60" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-table-column prop="deleteErrorNum" label="删除错误数" min-width="60" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-table-column prop="importErrorMessages" label="导入错误信息" min-width="200" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-table-column prop="deleteErrorMessages" label="删除错误信息" min-width="200" /> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				      </el-table> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    <div style="margin-top: 15px; height: 240px;overflow-y: auto;"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      <div style="display: flex;justify-content: space-between;"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <span>导入成功数:</span> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <div>{{ importState.importSuccessNum }}</div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <span>导入错误数:</span> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <div>{{ importState.importErrorNum }}</div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <div></div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      <div style="margin-top: 5px; display: flex;justify-content: space-between;"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <span>删除成功数:</span> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <div>{{ importState.deleteSuccessNum }}</div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <span>删除错误数:</span> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <div>{{ importState.deleteErrorNum }}</div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <div></div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      <div style="margin-top: 5px;"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <span>导入错误信息:</span> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <el-input type="textarea" v-model="importState.importErrorMessages" size="small" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          :autosize="{ minRows: 3, maxRows: 3 }"></el-input> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      <div style="margin-top: 5px;"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <span>删除错误信息:</span> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <el-input type="textarea" v-model="importState.deleteErrorMessages" size="small" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          :autosize="{ minRows: 3, maxRows: 3 }"></el-input> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				    </div> | 
				 | 
				 | 
				    </div> | 
			
		
		
	
		
			
				 | 
				 | 
				  </div> | 
				 | 
				 | 
				  </div> | 
			
		
		
	
		
			
				 | 
				 | 
				</template> | 
				 | 
				 | 
				</template> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -67,7 +90,14 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				      customerOrgId: "", //当前选中的体检单位id | 
				 | 
				 | 
				      customerOrgId: "", //当前选中的体检单位id | 
			
		
		
	
		
			
				 | 
				 | 
				      customerOrgRegisterList: [], //体检次数列表 | 
				 | 
				 | 
				      customerOrgRegisterList: [], //体检次数列表 | 
			
		
		
	
		
			
				 | 
				 | 
				      customerOrgRegisterId: '', //体检次数 | 
				 | 
				 | 
				      customerOrgRegisterId: '', //体检次数 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      importState: { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        importSuccessNum: "", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        importErrorNum: "", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        deleteSuccessNum: "", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        deleteErrorNum: "", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        importErrorMessages: "", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        deleteErrorMessages: "" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      }, | 
			
		
		
	
		
			
				 | 
				 | 
				    }; | 
				 | 
				 | 
				    }; | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
		
			
				 | 
				 | 
				  computed: { | 
				 | 
				 | 
				  computed: { | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -90,10 +120,6 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				    dddw, | 
				 | 
				 | 
				    dddw, | 
			
		
		
	
		
			
				 | 
				 | 
				    deepCopy, | 
				 | 
				 | 
				    deepCopy, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				    //选中颜色 | 
				 | 
				 | 
				    //选中颜色 | 
			
		
		
	
		
			
				 | 
				 | 
				    handleRowClassName({ row, rowIndex }) { | 
				 | 
				 | 
				    handleRowClassName({ row, rowIndex }) { | 
			
		
		
	
		
			
				 | 
				 | 
				      // highLightBg 为 'selected'的高亮 | 
				 | 
				 | 
				      // highLightBg 为 'selected'的高亮 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -142,13 +168,7 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				    changeCustomerOrg(v) { | 
				 | 
				 | 
				    changeCustomerOrg(v) { | 
			
		
		
	
		
			
				 | 
				 | 
				      if (!v) { | 
				 | 
				 | 
				      if (!v) { | 
			
		
		
	
		
			
				 | 
				 | 
				        this.customerOrgRegisterList = []; | 
				 | 
				 | 
				        this.customerOrgRegisterList = []; | 
			
		
		
	
		
			
				 | 
				 | 
				        this.customerOrgRegister = {}; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        this.customerOrgGroups = []; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        this.isDrag = false; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        this.form.id = ""; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        setTimeout(() => { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          this.dataTransOpts.refresh.customer_org_group_detail.M++; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        }, 20); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        this.customerOrgRegisterId = "";  | 
			
		
		
	
		
			
				 | 
				 | 
				        return; | 
				 | 
				 | 
				        return; | 
			
		
		
	
		
			
				 | 
				 | 
				      } | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				      getapi( | 
				 | 
				 | 
				      getapi( | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -157,32 +177,30 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				        if (res.code != -1) { | 
				 | 
				 | 
				        if (res.code != -1) { | 
			
		
		
	
		
			
				 | 
				 | 
				          this.customerOrgRegisterList = res.data; | 
				 | 
				 | 
				          this.customerOrgRegisterList = res.data; | 
			
		
		
	
		
			
				 | 
				 | 
				          if (res.data.length > 0) { | 
				 | 
				 | 
				          if (res.data.length > 0) { | 
			
		
		
	
		
			
				 | 
				 | 
				            this.customerOrgRegister = res.data[res.data.length - 1]; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.getCustomerOrgGroup(this.customerOrgRegister.id); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            this.customerOrgRegisterId = res.data[res.data.length - 1].id; | 
			
		
		
	
		
			
				 | 
				 | 
				          } else { | 
				 | 
				 | 
				          } else { | 
			
		
		
	
		
			
				 | 
				 | 
				            this.customerOrgRegister = {}; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.customerOrgGroups = []; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.isDrag = false; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            this.customerOrgRegisterId = ''; | 
			
		
		
	
		
			
				 | 
				 | 
				          } | 
				 | 
				 | 
				          } | 
			
		
		
	
		
			
				 | 
				 | 
				        } | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				      }); | 
				 | 
				 | 
				      }); | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				    //选择体检次数 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				    changeTimes(v) { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				      this.getCustomerOrgGroup(v.id); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				    // 开始导入 | 
				 | 
				 | 
				    // 开始导入 | 
			
		
		
	
		
			
				 | 
				 | 
				    btnImport() { | 
				 | 
				 | 
				    btnImport() { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      if (!this.customerOrgRegisterId) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        this.$message.warning({ showClose: true, message: '请选择体检次数' }) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        return | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				      let body = { | 
				 | 
				 | 
				      let body = { | 
			
		
		
	
		
			
				 | 
				 | 
				        customerOrgRegisterId: this.customerOrgRegisterId | 
				 | 
				 | 
				        customerOrgRegisterId: this.customerOrgRegisterId | 
			
		
		
	
		
			
				 | 
				 | 
				      } | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				      postapi('/api/app/patientregister/CreatePatientRegisterFromCustomerOrgInterface', body) | 
				 | 
				 | 
				      postapi('/api/app/patientregister/CreatePatientRegisterFromCustomerOrgInterface', body) | 
			
		
		
	
		
			
				 | 
				 | 
				        .then(res => { | 
				 | 
				 | 
				        .then(res => { | 
			
		
		
	
		
			
				 | 
				 | 
				          if (res.code > -1) { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            // | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          if (res.code > -1 && res.data) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            this.importState = res.data | 
			
		
		
	
		
			
				 | 
				 | 
				          } | 
				 | 
				 | 
				          } | 
			
		
		
	
		
			
				 | 
				 | 
				        }) | 
				 | 
				 | 
				        }) | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				    }, | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -193,6 +211,19 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  //监听事件() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  watch: { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    "dataTransOpts.plus.ImportOrgData": { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      // immediate:true, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      handler(newVal, oldVal) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //console.log(`watch 职业病 newVal: ${newVal}, oldVal: ${oldVal} `); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        if (newVal != oldVal) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          this.importState = {} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  }, | 
			
		
		
	
		
			
				 | 
				 | 
				}; | 
				 | 
				 | 
				}; | 
			
		
		
	
		
			
				 | 
				 | 
				</script> | 
				 | 
				 | 
				</script> | 
			
		
		
	
		
			
				 | 
				 | 
				<style scoped> | 
				 | 
				 | 
				<style scoped> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |