|
|
|
@ -177,11 +177,31 @@ |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<!-- --> |
|
|
|
<!-- dialogVisible6 --> |
|
|
|
<el-dialog |
|
|
|
title="批量预约登记提示" |
|
|
|
:visible.sync="dialogVisible6" |
|
|
|
width="50%" |
|
|
|
> |
|
|
|
<div> |
|
|
|
<div>成功导入的数据</div> |
|
|
|
{{ object }} |
|
|
|
姓名 {{ object.姓名 }} |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisible6 = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="dialogVisible6 = false" |
|
|
|
>确 定</el-button |
|
|
|
> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<!-- --> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import ExcelJS from "exceljs"; |
|
|
|
import { postapi, getapi } from "@/api/api"; |
|
|
|
import { mapState } from "vuex"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -205,25 +225,34 @@ export default { |
|
|
|
dialogVisible3: false, |
|
|
|
dialogVisible4: false, |
|
|
|
dialogVisible5: false, |
|
|
|
dialogVisible6: false, |
|
|
|
startRow: 2, //数据开始行,标题行为 startRow - 1 ; |
|
|
|
importData: [], //导入原始数据 |
|
|
|
tableDataCol: [], //导入原始数据 {excelCol,apiCol,label} |
|
|
|
tableData: [], //导入原始数据 分析后 表格数据 |
|
|
|
formrow: {}, |
|
|
|
departmentdata: [], //单位分组 |
|
|
|
object: {}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(["importexcel"]), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
submitto() { |
|
|
|
if (this.form.customerOrgId == undefined) { |
|
|
|
this.$message.warning("请选择单位"); |
|
|
|
} 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); |
|
|
|
@ -245,6 +274,8 @@ export default { |
|
|
|
splices() { |
|
|
|
if (this.nameType == 1) { |
|
|
|
this.nameType = "同名病人提示"; |
|
|
|
console.log(this.nameType); |
|
|
|
console.log(this.form.nameType); |
|
|
|
} |
|
|
|
console.log(this.nameType); |
|
|
|
}, |
|
|
|
|