Browse Source

导入报表

master
mch 2 years ago
parent
commit
518aca8053
  1. 3
      src/store/index.js
  2. 14
      src/views/basic-dictionary/ResultStatus.vue
  3. 33
      src/views/doctorCheck/personnelBatch.vue

3
src/store/index.js

@ -9,6 +9,9 @@ export default new Vuex.Store({
state: {
changepassword: '',//用户密码
set: "qqqq",
importexcel: {
},
router: {
path: '',
},

14
src/views/basic-dictionary/ResultStatus.vue

@ -141,7 +141,7 @@
style="
width: 85%;
position: absolute;
top: 0px;
top: 0px;h
margin-left: 10px;
"
></el-input>
@ -292,7 +292,6 @@ export default {
this.form.dataInputFontColor = parseInt(hexColor, 16);
},
//
dataInputBackgroundColorchange(v) {
var hexColor = v;
@ -302,7 +301,11 @@ export default {
//
reportFontColorchange(v) {
var hexColor = v;
console.log('form.reportFontColor16',hexColor,this.form.reportFontColor16);
console.log(
"form.reportFontColor16",
hexColor,
this.form.reportFontColor16
);
hexColor = hexColor.substring(1);
this.form.reportFontColor = parseInt(hexColor, 16);
},
@ -321,10 +324,9 @@ export default {
},
//
reportFontColor1(v) {
console.log('v',v);
console.log("v", v);
this.form.reportFontColor16 = "#" + Number(v).toString(16);
console.log('this.form.reportFontColor16',this.form.reportFontColor16);
console.log("this.form.reportFontColor16", this.form.reportFontColor16);
},
//
reportBackgroundColorchange1(v) {

33
src/views/doctorCheck/personnelBatch.vue

@ -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);
},

Loading…
Cancel
Save