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: { state: {
changepassword: '',//用户密码 changepassword: '',//用户密码
set: "qqqq", set: "qqqq",
importexcel: {
},
router: { router: {
path: '', path: '',
}, },

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

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

33
src/views/doctorCheck/personnelBatch.vue

@ -177,11 +177,31 @@
</span> </span>
</el-dialog> </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> </div>
</template> </template>
<script> <script>
import ExcelJS from "exceljs"; import ExcelJS from "exceljs";
import { postapi, getapi } from "@/api/api"; import { postapi, getapi } from "@/api/api";
import { mapState } from "vuex";
export default { export default {
data() { data() {
return { return {
@ -205,25 +225,34 @@ export default {
dialogVisible3: false, dialogVisible3: false,
dialogVisible4: false, dialogVisible4: false,
dialogVisible5: false, dialogVisible5: false,
dialogVisible6: false,
startRow: 2, // startRow - 1 startRow: 2, // startRow - 1
importData: [], // importData: [], //
tableDataCol: [], // {excelCol,apiCol,label} tableDataCol: [], // {excelCol,apiCol,label}
tableData: [], // tableData: [], //
formrow: {}, formrow: {},
departmentdata: [], // departmentdata: [], //
object: {},
}; };
}, },
computed: {
...mapState(["importexcel"]),
},
methods: { methods: {
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( postapi(
"/api/app/patientregister/createpatientregisterexcel", "/api/app/patientregister/createpatientregisterexcel",
this.form this.form
).then((res) => { ).then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.object = this.form;
this.importexcel = this.form;
this.dialogVisible6 = true;
this.dialogVisible5 = false;
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
} }
console.log(res); console.log(res);
@ -245,6 +274,8 @@ export default {
splices() { splices() {
if (this.nameType == 1) { if (this.nameType == 1) {
this.nameType = "同名病人提示"; this.nameType = "同名病人提示";
console.log(this.nameType);
console.log(this.form.nameType);
} }
console.log(this.nameType); console.log(this.nameType);
}, },

Loading…
Cancel
Save