Browse Source

group

master
pengjun 2 years ago
parent
commit
226dd6e4d1
  1. 56
      src/components/common/LocalConfig.vue
  2. 15
      src/components/patientRegister/PatientLis.vue
  3. 9
      src/components/patientRegister/patientRegisterQuery.vue
  4. 11
      src/views/Home.vue
  5. 1658
      src/views/customerOrg/patientRegisterImport240409.vue
  6. 6
      src/views/customerOrg/patientRegisterRecover.vue
  7. 6
      src/views/customerOrg/patientRegisterRefuse.vue
  8. 6
      src/views/customerOrg/patientRegisterSign.vue
  9. 16
      src/views/doctorCheck/doctorCheck.vue

56
src/components/common/LocalConfig.vue

@ -1,37 +1,72 @@
<template> <template>
<div> <div>
<el-tabs tab-position="left" style="height: 100px;">
<div class="contenttitle">
浏览器 /<span class="contenttitleBold">本地设置</span>
</div>
<el-tabs tab-position="left" :style="`margin-top: 5px;height: ${window.pageHeight - 150}px;`">
<el-tab-pane label="检验条码"> <el-tab-pane label="检验条码">
检验条码
<el-form label-width="100px" size="medium">
<el-row>
<el-col :span="24">
<el-form-item label="预览上移">
<el-input type="number" v-model="LocalConfig.lisLabel.MarginTop" size="small" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="医生诊台"> <el-tab-pane label="医生诊台">
医生诊台
<el-form label-width="100px" size="medium">
<el-row>
<el-col :span="24">
<el-form-item label="是否显示图片">
<el-checkbox v-model="LocalConfig.doctorCheck.isCheckPicture" size="small" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div style="margin-left: 150px;margin-top: 5px;">
<div style="margin: 10px; display: flex;justify-content: space-between;">
<div></div>
<el-button type="primary" @click="btnOk" class="commonbutton" size="small">确定</el-button> <el-button type="primary" @click="btnOk" class="commonbutton" size="small">确定</el-button>
<el-button type="primary" @click="btnCancel" class="commonbutton" size="small">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { deepCopy } from "@/utlis/proFunc";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default { export default {
data() { data() {
return { return {
LocalConfig: {}
LocalConfig: {
lisLabel: { //
MarginTop: 56, //
},
doctorCheck: { //
isCheckPicture: false, //
}
},
LocalConfigInit: {},
}; };
}, },
computed: { computed: {
...mapState(["dict", "dialogWin"]),
...mapState(["window", "dict", "dialogWin"]),
}, },
// //
created() { created() {
this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try {
this.LocalConfig = JSON.parse(LocalConfig) || this.LocalConfig
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error)
}
}, },
// //
@ -41,12 +76,9 @@ export default {
methods: { methods: {
btnOk() { btnOk() {
this.dialogWin.LocalConfig = false
window.localStorage.setItem("LocalConfig",JSON.stringify(this.LocalConfig))
}, },
btnCancel() {
this.dialogWin.LocalConfig = false
},
}, },
watch: { watch: {

15
src/components/patientRegister/PatientLis.vue

@ -109,8 +109,8 @@
<el-tabs v-model="tabChoosed" style="margin-top: -22px;"> <el-tabs v-model="tabChoosed" style="margin-top: -22px;">
<!-- 给合项目 --> <!-- 给合项目 -->
<el-tab-pane label="预览" name="1"> <el-tab-pane label="预览" name="1">
<embed :src="lisLabel" type="application/pdf" width="100%" style="margin-top: -56px;"
:height="(window.pageHeight < 600 ? 119 : Math.floor((window.pageHeight - 243) / 3)) + 56" />
<embed :src="lisLabel" type="application/pdf" width="100%" :style="`margin-top: ${-LocalConfig.lisLabel.MarginTop}px;`"
:height="(window.pageHeight < 600 ? 119 : Math.floor((window.pageHeight - 243) / 3)) + LocalConfig.lisLabel.MarginTop" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -257,6 +257,11 @@ export default {
printPre: 0, printPre: 0,
lisLabel: '', // data:application/pdf;base64, lisLabel: '', // data:application/pdf;base64,
LocalConfig: {
lisLabel: {
MarginTop: 56, // px
}
}
}; };
}, },
@ -266,6 +271,12 @@ export default {
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName))
this.loadOptsInit = Object.assign({}, this.loadOpts) this.loadOptsInit = Object.assign({}, this.loadOpts)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try {
this.LocalConfig = JSON.parse(LocalConfig) || this.LocalConfig
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error)
}
}, },
// //

9
src/components/patientRegister/patientRegisterQuery.vue

@ -167,13 +167,13 @@ export default {
// //
readIdCard() { readIdCard() {
if (!this.$peisAPI) { if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
return return
} }
this.$peisAPI.peopleIcCard().then(res => { this.$peisAPI.peopleIcCard().then(res => {
console.log('peopleIcCard', res) console.log('peopleIcCard', res)
let lres = JSON.parse(res) let lres = JSON.parse(res)
if (lres.code >= 0) {
if (lres.code > -1) {
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation) let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation)
// this.form.patientName = idNos.Name // this.form.patientName = idNos.Name
// this.form.birthDate = idNos.birthDate // this.form.birthDate = idNos.birthDate
@ -186,8 +186,13 @@ export default {
this.patientRegister.query.patientName = idNos.Name this.patientRegister.query.patientName = idNos.Name
this.patientRegister.query.sex = idNos.sexId this.patientRegister.query.sex = idNos.sexId
this.patientRegister.query.idCardNo = idNos.IDCode this.patientRegister.query.idCardNo = idNos.IDCode
} else {
this.$message.error({ showClose: true, message: lres.message })
} }
}) })
.catch(err => {
this.$message.error({ showClose: true, message: `读取身份证失败,原因:${err}` })
})
}, },
}, },

11
src/views/Home.vue

@ -74,8 +74,10 @@
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="logout">退出登录</el-dropdown-item> <el-dropdown-item @click.native="logout">退出登录</el-dropdown-item>
<el-dropdown-item @click.native="editpassword">修改密码</el-dropdown-item> <el-dropdown-item @click.native="editpassword">修改密码</el-dropdown-item>
<el-dropdown-item @click.native="localSet">本地设置</el-dropdown-item> <el-dropdown-item @click.native="localSet">本地设置</el-dropdown-item>
<el-dropdown-item @click.native="toggleDevTools">调试工具</el-dropdown-item> <el-dropdown-item @click.native="toggleDevTools">调试工具</el-dropdown-item>
<el-dropdown-item @click.native="clientConfigShow">客户端参数</el-dropdown-item>
<el-dropdown-item @click.native="windowMin">最小化</el-dropdown-item> <el-dropdown-item @click.native="windowMin">最小化</el-dropdown-item>
<el-dropdown-item @click.native="windowMax">最大化</el-dropdown-item> <el-dropdown-item @click.native="windowMax">最大化</el-dropdown-item>
<el-dropdown-item @click.native="windowClose">关闭</el-dropdown-item> <el-dropdown-item @click.native="windowClose">关闭</el-dropdown-item>
@ -293,6 +295,15 @@ export default {
} }
this.$peisAPI.toggleDevTools(); this.$peisAPI.toggleDevTools();
}, },
//
clientConfigShow(){
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
return
}
this.$peisAPI.clientConfigShow();
},
// //
windowMin() { windowMin() {
if (!this.$peisAPI) { if (!this.$peisAPI) {

1658
src/views/customerOrg/patientRegisterImport240409.vue
File diff suppressed because it is too large
View File

6
src/views/customerOrg/patientRegisterRecover.vue

@ -155,9 +155,9 @@ export default {
}); });
// //
getapi("/api/app/customer-org-group").then((res) => {
if (res.code == 1) {
this.dict.customerOrgGroupAll = res.data.items;
getapi("/api/app/customerorggroup/getlistinfilter").then((res) => {
if (res.code > -1) {
this.dict.customerOrgGroupAll = res.data;
} }
}); });

6
src/views/customerOrg/patientRegisterRefuse.vue

@ -140,9 +140,9 @@ export default {
}); });
// //
getapi("/api/app/customer-org-group").then((res) => {
if (res.code == 1) {
this.dict.customerOrgGroupAll = res.data.items;
getapi("/api/app/customerorggroup/getlistinfilter").then((res) => {
if (res.code > -1) {
this.dict.customerOrgGroupAll = res.data;
} }
}); });

6
src/views/customerOrg/patientRegisterSign.vue

@ -149,9 +149,9 @@ export default {
}); });
// //
getapi("/api/app/customer-org-group").then((res) => {
if (res.code == 1) {
this.dict.customerOrgGroupAll = res.data.items;
getapi("/api/app/customerorggroup/getlistinfilter").then((res) => {
if (res.code > -1) {
this.dict.customerOrgGroupAll = res.data;
} }
}); });

16
src/views/doctorCheck/doctorCheck.vue

@ -88,6 +88,12 @@ export default {
peoplePhoto: '', // peoplePhoto: '', //
activeName: 'asbitem', activeName: 'asbitem',
isCheckPicture: true, // isCheckPicture: true, //
LocalConfig: {
doctorCheck: { //
isCheckPicture: false, //
}
},
}; };
}, },
@ -106,6 +112,16 @@ export default {
console.log("this.$peisAPI.getIsCheckPicture()", res) console.log("this.$peisAPI.getIsCheckPicture()", res)
if (res) this.isCheckPicture = res.toUpperCase() == 'Y' ? true : false if (res) this.isCheckPicture = res.toUpperCase() == 'Y' ? true : false
}) })
} else {
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try {
this.LocalConfig = JSON.parse(LocalConfig) || this.LocalConfig
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error)
}
this.isCheckPicture = this.LocalConfig.doctorCheck.isCheckPicture
console.log('this.LocalConfig.doctorCheck.isCheckPicture', this.LocalConfig.doctorCheck.isCheckPicture)
} }
}, },

Loading…
Cancel
Save