Browse Source

ssssss

master
pengjun 2 years ago
parent
commit
bcaf0abefb
  1. 26
      src/components/common/LocalConfig.vue
  2. 6
      src/components/customerOrg/customerOrgTree.vue
  3. 94
      src/components/patientRegister/PatientRegisterEdit.vue
  4. 5
      src/router/index.js
  5. 19
      src/views/Home.vue
  6. 2
      src/views/doctorCheck/doctorCheck.vue
  7. 23
      src/views/login/Login.vue
  8. 4
      src/views/report/chargeAsbitem.vue
  9. 3
      src/views/report/checkStatus.vue
  10. 4
      src/views/report/unCheckAsbitem.vue

26
src/components/common/LocalConfig.vue

@ -4,11 +4,22 @@
浏览器 /<span class="contenttitleBold">本地设置</span> 浏览器 /<span class="contenttitleBold">本地设置</span>
</div> </div>
<el-tabs tab-position="left" :style="`margin-top: 5px;height: ${window.pageHeight - 150}px;`"> <el-tabs tab-position="left" :style="`margin-top: 5px;height: ${window.pageHeight - 150}px;`">
<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.normal.isDevTool" size="small" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane>
<el-tab-pane label="检验条码"> <el-tab-pane label="检验条码">
<el-form label-width="100px" size="medium"> <el-form label-width="100px" size="medium">
<el-row> <el-row>
<el-col :span="24">
<el-form-item label="预览上移">
<el-col :span="24">
<el-form-item label="预览上移">
<el-input type="number" v-model="LocalConfig.lisLabel.MarginTop" size="small" /> <el-input type="number" v-model="LocalConfig.lisLabel.MarginTop" size="small" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -24,7 +35,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form>
</el-form>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -43,6 +54,9 @@ export default {
data() { data() {
return { return {
LocalConfig: { LocalConfig: {
normal: {
isDevTool: false, //
},
lisLabel: { // lisLabel: { //
MarginTop: 56, // MarginTop: 56, //
}, },
@ -63,7 +77,7 @@ export default {
this.LocalConfigInit = deepCopy(this.LocalConfig) this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try { try {
this.LocalConfig = JSON.parse(LocalConfig) || this.LocalConfig
this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
} catch (error) { } catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error) console.log('window.localStorage.getItem("LocalConfig")', error)
} }
@ -76,9 +90,9 @@ export default {
methods: { methods: {
btnOk() { btnOk() {
window.localStorage.setItem("LocalConfig",JSON.stringify(this.LocalConfig))
window.localStorage.setItem("LocalConfig", JSON.stringify(this.LocalConfig))
}, },
}, },
watch: { watch: {

6
src/components/customerOrg/customerOrgTree.vue

@ -10,11 +10,7 @@
@node-click="treeclick" highlight-current ref="customerOrgTree"> @node-click="treeclick" highlight-current ref="customerOrgTree">
<span class="custom-tree-node" slot-scope="{ node, data }"> <span class="custom-tree-node" slot-scope="{ node, data }">
<div> <div>
<span class="treeicons">
<!-- <i
class="el-icon-document-remove"
v-if="data.parentId == null"
></i> -->
<span class="treeicons">
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png" v-if="data.parentId == null"/> <img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png" v-if="data.parentId == null"/>
</span> </span>
<span <span

94
src/components/patientRegister/PatientRegisterEdit.vue

@ -1491,6 +1491,7 @@ export default {
isBuildImage: 'N', isBuildImage: 'N',
IsUploadPdf: 'N', IsUploadPdf: 'N',
preViewCanPrint: 'N', preViewCanPrint: 'N',
BusinessCode:this.form.id,
Parameters: [ Parameters: [
{ Name: 'printer', Value: user }, { Name: 'printer', Value: user },
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
@ -1499,8 +1500,7 @@ export default {
if (isPreview) { if (isPreview) {
//
//this.multipleSelection.forEach((item,index) =>{
/*
postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.form.id}`) postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.form.id}`)
.then((res) => { .then((res) => {
if (res.code != -1) { if (res.code != -1) {
@ -1512,26 +1512,39 @@ export default {
.catch(err => { .catch(err => {
this.$message.warning({ showClose: true, message: err}); this.$message.warning({ showClose: true, message: err});
}); });
// });
} else {
postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.form.id}`)
.then((res) => {
if (res.code != -1) {
toOutShell.ReportTable = res.data;
console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
return this.$peisAPI.print(JSON.stringify(toOutShell));
*/
this.$peisAPI.printPre(JSON.stringify(toOutShell))
.then(res => {
console.log('this.$peisAPI.printPre',res)
if (JSON.parse(res).code < 0) {
this.$message.warning({ showClose: true, message: JSON.parse(res).message });
} }
}) })
.catch((err) => {
console.log('打印指引单错误', err)
this.$message.warning({ showClose: true, message: `${err}` });
});
} else {
// postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.form.id}`)
// .then((res) => {
// if (res.code != -1) {
// toOutShell.ReportTable = res.data;
// console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
// return this.$peisAPI.print(JSON.stringify(toOutShell));
// }
// })
this.$peisAPI.print(JSON.stringify(toOutShell))
.then(res => { .then(res => {
//console.log('this.$peisAPI.print',res)
if (JSON.parse(res).code >= 0) {
if (JSON.parse(res).code < 0) {
this.$message.warning({ showClose: true, message: JSON.parse(res).message });
}else{
// //
return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id]) return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id])
} }
}) })
.then(res => { .then(res => {
if (res.code != -1) {
if (res && res.code > -1) {
let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id) let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id)
if (lfind > -1) { if (lfind > -1) {
if (this.patientRegister.prList[lfind].guidePrintTimes) { if (this.patientRegister.prList[lfind].guidePrintTimes) {
@ -1540,6 +1553,8 @@ export default {
this.patientRegister.prList[lfind].guidePrintTimes = 1; this.patientRegister.prList[lfind].guidePrintTimes = 1;
} }
} }
}else{
this.$message.warning({ showClose: true, message: res.message});
} }
}) })
.catch(err => { .catch(err => {
@ -1551,6 +1566,8 @@ export default {
// //
async lisRequest() { async lisRequest() {
this.$message.warning({ showClose: true, message: '开发中……'});
/*
let isPrintLisRequest = false let isPrintLisRequest = false
let res = null let res = null
if (this.form.id.length < 1) { if (this.form.id.length < 1) {
@ -1590,6 +1607,7 @@ export default {
} }
// //
this.lisPrint('0003', false); this.lisPrint('0003', false);
*/
}, },
// //
@ -1609,6 +1627,7 @@ export default {
ReportCode, token, ReportCode, token,
isBuildImage: 'N', isBuildImage: 'N',
IsUploadPdf: 'N', IsUploadPdf: 'N',
BusinessCode:this.form.id,
Parameters: [ Parameters: [
{ Name: 'printer', Value: user }, { Name: 'printer', Value: user },
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
@ -1617,45 +1636,38 @@ export default {
if (isPreview) { if (isPreview) {
//http://140.143.162.39:9529/api/app/printreport/getlisrequestreport?PatientRegisterId=3a0d2e90-da68-3746-6775-bf17e5f9b295
//this.multipleSelection.forEach((item,index) =>{
postapi(`/api/app/printreport/getlisrequestreport?PatientRegisterId=${this.form.id}`)
.then((res) => {
if (res.code != -1) {
toOutShell.ReportTable = { lisRequest: res.data };
console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
return this.$peisAPI.printPre(JSON.stringify(toOutShell));
this.$peisAPI.printPre(JSON.stringify(toOutShell))
.then(res => {
let lres = JSON.parse(res)
console.log('this.$peisAPI.printPre',lres)
if (lres.code < 0) {
console.log('打印检验条码错误',lres.message)
this.$message.warning({ showClose: true, message: lres.message });
} }
}) })
.catch(err => {
this.$message.warning({ showClose: true, message: err});
.catch((err) => {
console.log('打印检验条码错误', err)
this.$message.warning({ showClose: true, message: `${err}` });
}); });
// });
} else { } else {
postapi(`/api/app/printreport/getlisrequestreport?PatientRegisterId=${this.form.id}`)
.then((res) => {
if (res.code != -1) {
toOutShell.ReportTable = { lisRequest: res.data };
console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
return this.$peisAPI.print(JSON.stringify(toOutShell));
this.$peisAPI.print(JSON.stringify(toOutShell))
.then(res => {
let lres = JSON.parse(res)
if (res && lres.code > -1) {
return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: this.form.id })
}else{
this.$message.warning({ showClose: true, message: lres.message });
} }
}) })
.then(res => { .then(res => {
if (res.code != -1) {
// /api/app/lisrequest/updatelisrequestisprint
// {
// "operateType": 0, 1.PatientRegisterId 2.LisRequestId
// "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
// }
return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: this.form.id })
if(res && res.code < 0){
this.$message.error({ showClose: true, message: `更新条码打印状态失败,原因:${res.message}` });
} }
}) })
.catch(err => { .catch(err => {
this.$message.warning({ showClose: true, message: err});
this.$message.warning({ showClose: true, message: `${err}`});
}); });
} }
}, },

5
src/router/index.js

@ -570,10 +570,11 @@ const router = new VueRouter({
routes, routes,
}); });
router.beforeEach((to, form, next) => {
router.beforeEach((to, from, next) => {
console.log('to,form',to, from)
let token = window.sessionStorage.getItem("token"); let token = window.sessionStorage.getItem("token");
let tokentype = window.sessionStorage.getItem("tokentype"); let tokentype = window.sessionStorage.getItem("tokentype");
if (to.path === "/login") {
if (to.path == "/login") {
if (token != null) { if (token != null) {
next({ next({
path: "/", path: "/",

19
src/views/Home.vue

@ -78,8 +78,8 @@
<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="toggleDevTools">调试工具</el-dropdown-item>
<el-dropdown-item @click.native="localSet">本地设置</el-dropdown-item>
<el-dropdown-item v-if="LocalConfig.normal.isDevTool" @click.native="toggleDevTools">调试工具</el-dropdown-item>
<el-dropdown-item @click.native="clientConfigShow">客户端参数</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>
<!-- <!--
@ -132,6 +132,7 @@ import router from "@/router";
import { getapi, postapi } from "@/api/api"; import { getapi, postapi } from "@/api/api";
import { mapState } from "vuex"; import { mapState } from "vuex";
import { getTreeNode, madeTree } from "../utlis/tree"; import { getTreeNode, madeTree } from "../utlis/tree";
import { deepCopy } from "@/utlis/proFunc";
import LocalConfig from "../components/common/LocalConfig.vue"; import LocalConfig from "../components/common/LocalConfig.vue";
export default { export default {
@ -161,6 +162,12 @@ export default {
{ required: true, message: "请输入新密码", trigger: "blur" }, { required: true, message: "请输入新密码", trigger: "blur" },
], ],
}, },
LocalConfig: {
normal: { //
isDevTool: false, //
}
},
LocalConfigInit:{},
}; };
}, },
computed: { computed: {
@ -182,6 +189,14 @@ export default {
// //
this.getUserAllPriv() this.getUserAllPriv()
// this.getUserMenuPriv() // this.getUserMenuPriv()
this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try {
this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error)
}
}, },
methods: { methods: {
// //

2
src/views/doctorCheck/doctorCheck.vue

@ -115,7 +115,7 @@ export default {
} else { } else {
let LocalConfig = window.localStorage.getItem("LocalConfig") || null let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try { try {
this.LocalConfig = JSON.parse(LocalConfig) || this.LocalConfig
this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
} catch (error) { } catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error) console.log('window.localStorage.getItem("LocalConfig")', error)
} }

23
src/views/login/Login.vue

@ -3,7 +3,7 @@
<div style="display: flex;justify-content: space-between;padding-top: 5px;"> <div style="display: flex;justify-content: space-between;padding-top: 5px;">
<div></div> <div></div>
<div style="display: flex;"> <div style="display: flex;">
<i class="el-icon-setting" @click="toggleDevTools" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
<i class="el-icon-setting" v-if="LocalConfig.normal.isDevTool" @click="toggleDevTools" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
<i class="el-icon-minus" @click="btnMin" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i> <i class="el-icon-minus" @click="btnMin" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
<i class="el-icon-copy-document" @click="btnMax" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i> <i class="el-icon-copy-document" @click="btnMax" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
<i class="el-icon-close" @click="btnClose" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i> <i class="el-icon-close" @click="btnClose" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
@ -60,6 +60,7 @@
<script> <script>
import { writetoken } from "@/utlis/istoken"; import { writetoken } from "@/utlis/istoken";
import { deepCopy } from "@/utlis/proFunc";
import axios from "axios"; import axios from "axios";
export default { export default {
@ -80,11 +81,25 @@ export default {
//{ min: 3, max: 8, message: " 3 8 ", trigger: "blur" }, //{ min: 3, max: 8, message: " 3 8 ", trigger: "blur" },
], ],
}, },
LocalConfig: {
normal: { //
isDevTool: false, //
}
},
LocalConfigInit:{}
}; };
}, },
async mounted() {
await this.getSysConfig()
created() {
this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try {
this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error)
}
},
async mounted() {
await this.getSysConfig()
}, },
methods: { methods: {

4
src/views/report/chargeAsbitem.vue

@ -361,5 +361,7 @@ export default {
font-weight: 400; font-weight: 400;
font-family: "NotoSansSC-Regular"; font-family: "NotoSansSC-Regular";
} }
::v-deep .el-icon-search:before {
color: #00F;
}
</style> </style>

3
src/views/report/checkStatus.vue

@ -363,5 +363,8 @@ export default {
font-weight: 400; font-weight: 400;
font-family: "NotoSansSC-Regular"; font-family: "NotoSansSC-Regular";
} }
::v-deep .el-icon-search:before {
color: #00F;
}
</style> </style>

4
src/views/report/unCheckAsbitem.vue

@ -333,5 +333,7 @@ export default {
font-family: "NotoSansSC-Regular"; font-family: "NotoSansSC-Regular";
} }
::v-deep .el-icon-search:before {
color: #00F;
}
</style> </style>
Loading…
Cancel
Save