| 
					
					
						
							
						
					
					
				 | 
				@ -167,11 +167,11 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				      </el-table> | 
				 | 
				 | 
				      </el-table> | 
			
		
		
	
		
			
				 | 
				 | 
				      <div style="margin-top: 20px"> | 
				 | 
				 | 
				      <div style="margin-top: 20px"> | 
			
		
		
	
		
			
				 | 
				 | 
				        <div v-for="(item, index) in tableData" :key="index"></div> | 
				 | 
				 | 
				        <div v-for="(item, index) in tableData" :key="index"></div> | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-button @click="setCurrent(tableData[0])">全选</el-button> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-button @click="setCurrent()">取消选择</el-button> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <el-button @click="setCurrent(tableData)">全选</el-button> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <el-button @click="setCurrents()">取消选择</el-button> | 
			
		
		
	
		
			
				 | 
				 | 
				      </div> | 
				 | 
				 | 
				      </div> | 
			
		
		
	
		
			
				 | 
				 | 
				      <span slot="footer" class="dialog-footer"> | 
				 | 
				 | 
				      <span slot="footer" class="dialog-footer"> | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-button @click="dialogVisible4 = false">上一步</el-button> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <!-- <el-button @click="dialogVisible4 = false">上一步</el-button> --> | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-button @click="back4">上一步</el-button> | 
				 | 
				 | 
				        <el-button @click="back4">上一步</el-button> | 
			
		
		
	
		
			
				 | 
				 | 
				        <el-button type="primary" @click="tablenext">下一步</el-button> | 
				 | 
				 | 
				        <el-button type="primary" @click="tablenext">下一步</el-button> | 
			
		
		
	
		
			
				 | 
				 | 
				      </span> | 
				 | 
				 | 
				      </span> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -239,24 +239,53 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				    ...mapState(["importexcel"]), | 
				 | 
				 | 
				    ...mapState(["importexcel"]), | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
		
			
				 | 
				 | 
				  methods: { | 
				 | 
				 | 
				  methods: { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    setCurrents() {}, | 
			
		
		
	
		
			
				 | 
				 | 
				    submitto() { | 
				 | 
				 | 
				    submitto() { | 
			
		
		
	
		
			
				 | 
				 | 
				      if (this.form.customerOrgId == undefined) { | 
				 | 
				 | 
				      if (this.form.customerOrgId == undefined) { | 
			
		
		
	
		
			
				 | 
				 | 
				        this.$message.warning("请选择单位"); | 
				 | 
				 | 
				        this.$message.warning("请选择单位"); | 
			
		
		
	
		
			
				 | 
				 | 
				      } else { | 
				 | 
				 | 
				      } else { | 
			
		
		
	
		
			
				 | 
				 | 
				        // this.form = Object.assign(this.form, this.formrow); | 
				 | 
				 | 
				        // this.form = Object.assign(this.form, this.formrow); | 
			
		
		
	
		
			
				 | 
				 | 
				        postapi( | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          "/api/app/patientregister/createpatientregisterexcel", | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          this.form | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				        ).then((res) => { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          if (res.code == 1) { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.object = this.form; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.importexcel = this.form; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.dialogVisible6 = true; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.dialogVisible5 = false; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            this.$message.success(res.data.msg); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          } | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				          console.log(res); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //xunh循环 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        this.tableData.forEach((item) => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          item.customerOrgId = this.form.customerOrgId; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          postapi( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            "/api/app/patientregister/createpatientregisterexcel", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            item | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          ).then((res) => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            if (res.code == 1) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              this.object = this.form; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              this.importexcel = this.form; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              this.dialogVisible6 = true; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              this.dialogVisible5 = false; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              // this.$message.success(res.data.msg); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            } else { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              this.$confirm("导入出错, 是否继续?", "提示", { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                confirmButtonText: "确定", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                cancelButtonText: "取消", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                type: "warning", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              }).then((res) => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                let targettitle = res.Message;               | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                this.$message.warning(res.Message); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          }); | 
			
		
		
	
		
			
				 | 
				 | 
				        }); | 
				 | 
				 | 
				        }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        // .then((rut) => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //   this.tableData.forEach((item) => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //     postapi( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //       "/api/app/patientregister/createpatientregisterexcel", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //       item | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //     ).then((rut) => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //       if (rut.code == 1) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //         this.$message.success(rut.data.msg); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //       } else { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //         this.$message.warning(rut.Message); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //       } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //     }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        //   }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        // }); | 
			
		
		
	
		
			
				 | 
				 | 
				        console.log(this.form); | 
				 | 
				 | 
				        console.log(this.form); | 
			
		
		
	
		
			
				 | 
				 | 
				      } | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				      console.log(this.form.customerOrgId); | 
				 | 
				 | 
				      console.log(this.form.customerOrgId); | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -338,9 +367,15 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				    setCurrent(row) { | 
				 | 
				 | 
				    setCurrent(row) { | 
			
		
		
	
		
			
				 | 
				 | 
				      console.log(row); | 
				 | 
				 | 
				      console.log(row); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      // row.forEach(item=>{ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      //   console.log(item,'22222'); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      // }) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      // toggleRowSelection | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      // setCurrentRow | 
			
		
		
	
		
			
				 | 
				 | 
				      this.$refs.singleTable.setCurrentRow(row); | 
				 | 
				 | 
				      this.$refs.singleTable.setCurrentRow(row); | 
			
		
		
	
		
			
				 | 
				 | 
				      console.log(row, column, "event", "cell"); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				      console.log(this.$refs.singleTable); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      // console.log(row, column, "event", "cell"); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      // console.log(this.$refs.singleTable); | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				    handleCurrentChange(val) { | 
				 | 
				 | 
				    handleCurrentChange(val) { | 
			
		
		
	
		
			
				 | 
				 | 
				      this.currentRow = val; | 
				 | 
				 | 
				      this.currentRow = val; | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |