| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -9,13 +9,20 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-option v-for="item in customerOrgGroup" :key="item.id" :label="item.displayName" :value="item.id" /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          </el-select> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <br /><el-radio v-model="groupBatch.payTypeFlag" label="0">个人支付</el-radio> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <br /><el-radio v-model="groupBatch.payTypeFlag" label="1">单位支付</el-radio> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <br /><el-radio v-model="groupBatch.payTypeFlag" label="2">免费</el-radio> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div style="display: flex;margin: 10px 0;"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-tooltip class="item" content="支付方式只针对调整分组后新添加的组合项目起作用" placement="top"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              支付方式 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          </el-tooltip> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <div style="margin-left: 5px;"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-radio v-model="groupBatch.payTypeFlag" label="0">个人支付</el-radio> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <br /><el-radio v-model="groupBatch.payTypeFlag" label="1">单位支付</el-radio> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <br /><el-radio v-model="groupBatch.payTypeFlag" label="2">免费</el-radio> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <br /><el-checkbox v-model="groupBatch.isReserveAddAsbitem">保留加做项目(包括不属于原分组的、没有设置分组的)</el-checkbox> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-checkbox v-model="groupBatch.isReserveAddAsbitem">保留加做项目(包括不属于原分组的、没有设置分组的)</el-checkbox> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div style="display: flex;margin-top: 5px;justify-content:space-between;"> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -65,10 +72,11 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        payTypeFlag: "1", //0:个人付费,1:单位付费 2:免费 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        isReserveAddAsbitem: true, //是否保留加做项目 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      groupBatchInit:{}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      groupBatchInit: {}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  created() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    this.groupBatchInit = deepCopy(this.groupBatch) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -120,24 +128,45 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.$message.warning("请选择分组"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      let isContinue = true  // 遇到错误是否继续 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.elProgress.display = true; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.elProgress.percentage = 0; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      for (let i = 0; i < this.multipleSelection.length; i++) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (!isContinue) break; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        groupBatch.patientRegisterId = this.multipleSelection[i].id; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        try { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          await postapi( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            "/api/app/patientregister/updatepatientregistercustomerorggroup", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            groupBatch | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } catch (error) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          console.log(error); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // 旧接口:/api/app/patientregister/updatepatientregistercustomerorggroup          | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          let res = await postapi("/api/app/patientregister/BatchUpdateCustomerOrgGroup", groupBatch); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (res.code == -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            try { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              await this.$confirm(`人员 ${this.multipleSelection[i].patientName} 调整分组失败, 是否继续操作其他人员?`, "提示", { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                confirmButtonText: "是", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                cancelButtonText: "否", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                type: "warning", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } catch (error) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              console.log(error) // 取消 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              isContinue = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } catch (err) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          try { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            await this.$confirm(`人员 ${this.multipleSelection[i].patientName} 调整分组失败, 是否继续操作其他人员?`, "提示", { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              confirmButtonText: "是", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              cancelButtonText: "否", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              type: "warning", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } catch (error) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(error) // 取消 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            isContinue = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.elProgress.percentage = Math.floor( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          ((i + 1) * 100) / this.multipleSelection.length | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.elProgress.percentage = Math.floor(((i + 1) * 100) / this.multipleSelection.length); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      console.log("操作成功!"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // console.log("操作成功!"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.elProgress.display = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.dialogWin.PatientRegisterEditGroupBatch = false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // 操作成功后,刷新列表 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.patientRegister.query.times++ | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |