| 
					
					
						
							
						
					
					
				 | 
				@ -9,13 +9,20 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				            <el-option v-for="item in customerOrgGroup" :key="item.id" :label="item.displayName" :value="item.id" /> | 
				 | 
				 | 
				            <el-option v-for="item in customerOrgGroup" :key="item.id" :label="item.displayName" :value="item.id" /> | 
			
		
		
	
		
			
				 | 
				 | 
				          </el-select> | 
				 | 
				 | 
				          </el-select> | 
			
		
		
	
		
			
				 | 
				 | 
				        </div> | 
				 | 
				 | 
				        </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> | 
			
		
		
	
		
			
				 | 
				 | 
				        <div> | 
				 | 
				 | 
				        <div> | 
			
		
		
	
		
			
				 | 
				 | 
				          <br /><el-checkbox v-model="groupBatch.isReserveAddAsbitem">保留加做项目(包括不属于原分组的、没有设置分组的)</el-checkbox> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          <el-checkbox v-model="groupBatch.isReserveAddAsbitem">保留加做项目(包括不属于原分组的、没有设置分组的)</el-checkbox> | 
			
		
		
	
		
			
				 | 
				 | 
				        </div> | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				      </div> | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				      <div style="display: flex;margin-top: 5px;justify-content:space-between;"> | 
				 | 
				 | 
				      <div style="display: flex;margin-top: 5px;justify-content:space-between;"> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -65,10 +72,11 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				        payTypeFlag: "1", //0:个人付费,1:单位付费 2:免费 | 
				 | 
				 | 
				        payTypeFlag: "1", //0:个人付费,1:单位付费 2:免费 | 
			
		
		
	
		
			
				 | 
				 | 
				        isReserveAddAsbitem: true, //是否保留加做项目 | 
				 | 
				 | 
				        isReserveAddAsbitem: true, //是否保留加做项目 | 
			
		
		
	
		
			
				 | 
				 | 
				      }, | 
				 | 
				 | 
				      }, | 
			
		
		
	
		
			
				 | 
				 | 
				      groupBatchInit:{}, | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      groupBatchInit: {}, | 
			
		
		
	
		
			
				 | 
				 | 
				    }; | 
				 | 
				 | 
				    }; | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				  created() { | 
				 | 
				 | 
				  created() { | 
			
		
		
	
		
			
				 | 
				 | 
				    this.groupBatchInit = deepCopy(this.groupBatch) | 
				 | 
				 | 
				    this.groupBatchInit = deepCopy(this.groupBatch) | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -90,7 +98,7 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
		
			
				 | 
				 | 
				  methods: { | 
				 | 
				 | 
				  methods: { | 
			
		
		
	
		
			
				 | 
				 | 
				    moment, dddw, deepCopy, | 
				 | 
				 | 
				    moment, dddw, deepCopy, | 
			
		
		
	
		
			
				 | 
				 | 
				     | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				    //获取单位分组 /api/app/customer-org-group/in-customer-org-id/3a0c0444-d7a0-871f-4074-19faf1655caf | 
				 | 
				 | 
				    //获取单位分组 /api/app/customer-org-group/in-customer-org-id/3a0c0444-d7a0-871f-4074-19faf1655caf | 
			
		
		
	
		
			
				 | 
				 | 
				    getCustomerOrgGroup(customerOrgRegisterId) { | 
				 | 
				 | 
				    getCustomerOrgGroup(customerOrgRegisterId) { | 
			
		
		
	
		
			
				 | 
				 | 
				      this.customerOrgGroup = [] | 
				 | 
				 | 
				      this.customerOrgGroup = [] | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -120,24 +128,45 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				        this.$message.warning("请选择分组"); | 
				 | 
				 | 
				        this.$message.warning("请选择分组"); | 
			
		
		
	
		
			
				 | 
				 | 
				        return; | 
				 | 
				 | 
				        return; | 
			
		
		
	
		
			
				 | 
				 | 
				      } | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      let isContinue = true  // 遇到错误是否继续 | 
			
		
		
	
		
			
				 | 
				 | 
				      this.elProgress.display = true; | 
				 | 
				 | 
				      this.elProgress.display = true; | 
			
		
		
	
		
			
				 | 
				 | 
				      this.elProgress.percentage = 0; | 
				 | 
				 | 
				      this.elProgress.percentage = 0; | 
			
		
		
	
		
			
				 | 
				 | 
				      for (let i = 0; i < this.multipleSelection.length; i++) { | 
				 | 
				 | 
				      for (let i = 0; i < this.multipleSelection.length; i++) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        if (!isContinue) break; | 
			
		
		
	
		
			
				 | 
				 | 
				        groupBatch.patientRegisterId = this.multipleSelection[i].id; | 
				 | 
				 | 
				        groupBatch.patientRegisterId = this.multipleSelection[i].id; | 
			
		
		
	
		
			
				 | 
				 | 
				        try { | 
				 | 
				 | 
				        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.dialogWin.PatientRegisterEditGroupBatch = false | 
			
		
		
	
		
			
				 | 
				 | 
				      // 操作成功后,刷新列表 | 
				 | 
				 | 
				      // 操作成功后,刷新列表 | 
			
		
		
	
		
			
				 | 
				 | 
				      this.patientRegister.query.times++ | 
				 | 
				 | 
				      this.patientRegister.query.times++ | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |