pengjun 2 years ago
parent
commit
ce2b82430e
  1. 6
      src/components/doctorCheck/PatientRegisterList.vue
  2. 15
      src/components/patientRegister/PatientRegisterList.vue
  3. 15
      src/views/login/Login.vue

6
src/components/doctorCheck/PatientRegisterList.vue

@ -1,14 +1,14 @@
<template> <template>
<div> <div>
<!-- 查询条件 --> <!-- 查询条件 -->
<div style="display: flex; flex-wrap: wrap; width: 100%;height:140px; " >
<div style="display: flex; flex-wrap: wrap; width: 100%;height:142px; " >
<div v-if="winAbsolute" style="position: absolute;top:3px;right:0px;"> <div v-if="winAbsolute" style="position: absolute;top:3px;right:0px;">
<el-tooltip content="关闭人员列表窗口" placement="bottom" effect="light"> <el-tooltip content="关闭人员列表窗口" placement="bottom" effect="light">
<i class="el-icon-close" @click="doctorCheck.doctorCheckDialogVisible = false;sumDoctorCheck.sumDoctorCheckDialogVisible = false;" <i class="el-icon-close" @click="doctorCheck.doctorCheckDialogVisible = false;sumDoctorCheck.sumDoctorCheckDialogVisible = false;"
style="font-size: 24px;color: red;cursor:pointer;"></i> style="font-size: 24px;color: red;cursor:pointer;"></i>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="query" style="display: flex;">
<div class="query" style="display: flex;padding-top: 2px;">
<el-input placeholder="请选择体检单位" v-model="patientRegister.query.cusOrgOCX" style="width:238px;" size="small" disabled> <el-input placeholder="请选择体检单位" v-model="patientRegister.query.cusOrgOCX" style="width:238px;" size="small" disabled>
</el-input> </el-input>
<el-button icon="el-icon-search" @click="report.dialogCusOrgOCX = true" style="font-size: 20px;height:30px;min-width:30px; padding: 5px 5px;" size="small"></el-button> <el-button icon="el-icon-search" @click="report.dialogCusOrgOCX = true" style="font-size: 20px;height:30px;min-width:30px; padding: 5px 5px;" size="small"></el-button>
@ -56,7 +56,7 @@
</div> </div>
<!-- 人员列表 --> <!-- 人员列表 -->
<el-table :data="dataList" border width="100%" :height="winAbsolute ? (window.pageHeight - 42 - 120 - 30) : (window.pageHeight - 42 - 120)" row-key="id" size="small"
<el-table :data="dataList" border width="100%" :height="winAbsolute ? (window.pageHeight - 44 - 120 - 30) : (window.pageHeight - 44 - 120)" row-key="id" size="small"
highlight-current-row @row-click="rowClick" @row-dblclick="rowDblclick" ref="dataList" style="border-radius:10px;"> highlight-current-row @row-click="rowClick" @row-dblclick="rowDblclick" ref="dataList" style="border-radius:10px;">
<el-table-column prop="customerOrgParentName" label="单位" width="120"> <el-table-column prop="customerOrgParentName" label="单位" width="120">

15
src/components/patientRegister/PatientRegisterList.vue

@ -405,7 +405,6 @@ export default {
if (isPreview) { if (isPreview) {
// //
//this.multipleSelection.forEach((item,index) =>{ //this.multipleSelection.forEach((item,index) =>{
postapi( postapi(
`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.multipleSelection[0].id}` `/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.multipleSelection[0].id}`
) )
@ -426,7 +425,8 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.$message.warning(err);
console.log('打印指引单', err)
this.$message.warning({ showClose: true, message: err });
}); });
// }); // });
} else { } else {
@ -441,22 +441,21 @@ export default {
if (resPrintData.code == -1) continue if (resPrintData.code == -1) continue
toOutShell.ReportTable = resPrintData.data toOutShell.ReportTable = resPrintData.data
resPeisAPI = await this.$peisAPI.print(JSON.stringify(toOutShell)); resPeisAPI = await this.$peisAPI.print(JSON.stringify(toOutShell));
console.log('壳返回结果',resPeisAPI)
if (JSON.parse(resPeisAPI).code < 0) continue if (JSON.parse(resPeisAPI).code < 0) continue
resPrintTimes = postapi("api/app/patientregister/updatepatientregisterguideprinttimesmany", [this.multipleSelection[i].id]);
resPrintTimes = await postapi("/api/app/patientregister/updatepatientregisterguideprinttimesmany", [this.multipleSelection[i].id]);
if (resPrintTimes.code == -1) continue if (resPrintTimes.code == -1) continue
lfind = arrayExistObj(this.tableData, "id", this.multipleSelection[i].id); lfind = arrayExistObj(this.tableData, "id", this.multipleSelection[i].id);
if (lfind > -1) { if (lfind > -1) {
if (this.tableData[lfind].guidePrintTimes) { if (this.tableData[lfind].guidePrintTimes) {
this.tableData[lfind].guidePrintTimes =
Number(
this.tableData[lfind].guidePrintTimes
) + 1;
this.tableData[lfind].guidePrintTimes = Number(this.tableData[lfind].guidePrintTimes) + 1;
} else { } else {
this.tableData[lfind].guidePrintTimes = 1; this.tableData[lfind].guidePrintTimes = 1;
} }
} }
} catch (error) { } catch (error) {
this.$message.error(error)
console.log('打印指引单', `${error}`)
this.$message.warning({ showClose: true, message: error });
} }
this.elProgress.percentage = Math.floor( this.elProgress.percentage = Math.floor(

15
src/views/login/Login.vue

@ -3,9 +3,10 @@
<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-minus" @click="btnMin" style="padding-right: 5px;"></i>
<i class="el-icon-copy-document" @click="btnMax" style="padding-right: 5px;"></i>
<i class="el-icon-close" @click="btnClose" style="padding-right: 5px;"></i>
<i class="el-icon-setting" @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-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>
</div> </div>
</div> </div>
<div class="box"> <div class="box">
@ -91,6 +92,14 @@ export default {
} }
}, },
methods: { methods: {
//
toggleDevTools() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
return
}
this.$peisAPI.toggleDevTools();
},
btnMin(){ btnMin(){
if(!this.$peisAPI) { if(!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")

Loading…
Cancel
Save