pengjun 3 months ago
parent
commit
d21a172c7e
  1. 2
      public/sysConfig.json
  2. 83
      src/components/patientRegister/PatientRegisterEdit.vue
  3. 58
      src/components/report/BtnReport.vue

2
public/sysConfig.json

@ -1,5 +1,5 @@
{
"apiurl": "http://192.168.0.188:9530",
"apiurl": "http://192.168.0.188:9527",
"softName": "神豚体检管理系统",
"pacsApi": "http://192.168.0.188:9530",
"dcmViewers": "https://app.mzaktj.com:4436",

83
src/components/patientRegister/PatientRegisterEdit.vue

@ -45,10 +45,15 @@
<el-input v-model="form.patientRegisterNo" disabled size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="档案号" prop="patientNo">
<el-input v-model="form.patientNo" disabled size="small"></el-input>
</el-form-item>
<el-col :span="5">
<el-form-item prop="patientNo">
<template slot="label">
<el-tooltip content="双击档案号标签,清除当前档案号,再在姓名或身份证号栏里敲回车可选择档案号(无档案号时则保存后生成新的档案号)" placement="top">
<div @dblclick="dbClearPatientNo">档案号</div>
</el-tooltip>
</template>
<el-input ref="patientNoInput" v-model="form.patientNo" disabled size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="体检次数" prop="medicalTimes">
@ -70,14 +75,14 @@
</el-row>
<el-row>
<el-col :span="5">
<!--autocomplete="off"-->
<el-form-item label="姓名" prop="patientName">
<el-input id="patientName" v-model="form.patientName" @change="changePatientName" size="small"
autocomplete="off"></el-input>
<el-input id="patientName" v-model="form.patientName" @change="changePatientName" data-col="patientName" size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="身份证号" prop="idNo">
<el-input v-model="form.idNo" placeholder="身份证号" @change="changeIdNo('N')" size="small"></el-input>
<el-input v-model="form.idNo" @change="changeIdNo('N')" size="small" data-col="idNo" ></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
@ -156,8 +161,7 @@
</el-col>
<el-col :span="3">
<el-form-item label="性激素期" prop="sexHormoneTermId">
<el-select v-model="form.sexHormoneTermId" placeholder="请选择" filterable clearable size="small"
:disabled="isComplete">
<el-select v-model="form.sexHormoneTermId" placeholder="请选择" filterable clearable size="small">
<el-option v-for="item in dict.sexHormoneTerm" :key="item.id" :label="item.displayName"
:value="item.id">
</el-option>
@ -237,7 +241,7 @@
:style="'width:' + Math.floor((window.pageWidth - 654) / 6) + 'px;'" @change="changeMedicalTimes"
value-key="id">
<el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes"
:value="item.id" :disabled="item.isComplete == 'Y'" />
:value="item.id" :disabled="item.isComplete == 'Y' ? true:false" />
</el-select>
</el-form-item>
</el-col>
@ -530,9 +534,6 @@
<el-button type="danger" class="commonbutton" @click="reMergeAsbitem">手动合并项目</el-button>
</div>
-->
<div v-show="checkPagePriv(pagePriv.privs, '全个人支付')" style="margin-top: 30px;">
<el-button type="primary" class="commonbutton" @click="btnPayTypeFlag('0')">全个人支付</el-button>
</div>
@ -788,7 +789,7 @@
<el-select v-model="customerOrgRegister" placeholder="次数" style="width: 60px; margin-left: 10px"
size="small" @change="changeTimes" value-key="id">
<el-option v-for="item in customerOrgRegisterListCopy" :key="item.id" :label="item.medicalTimes"
:value="item" :disabled="item.isComplete == 'Y'" />
:value="item" :disabled="item.isComplete == 'Y' ? true:false" />
</el-select>
</div>
</div>
@ -1114,6 +1115,9 @@ export default {
this.initFormData(this.dataTransOpts.tableS.patient_register.id)
// tab
this.enterToTab();
//
this.addDoubleClickListener()
},
computed: {
@ -1907,7 +1911,10 @@ export default {
this.patientChoosed = { id: '' } //
//
if (this.form.id || !param) return;
// if (this.form.id || !param) return;
//
if (this.form.patientNo || !param) return;
//// console.log(`/api/app/patient/in-filter?Filter=${param}`)
let body = {
@ -1944,6 +1951,27 @@ export default {
this.choosePatient()
},
//
addDoubleClickListener() {
// el-inputinput
console.log("addDoubleClickListener1")
const inputElement = this.$refs.patientNoInput.$el.querySelector('input')
if (inputElement) {
inputElement.addEventListener('dblclick', (event) => {
this.dbClearPatientNo()
})
console.log("addDoubleClickListener2")
}
},
//
//
dbClearPatientNo() {
console.log("dbClearPatientNo")
this.form.patientNo = ''
this.form.patientId = "00000000-0000-0000-0000-000000000000" //ID 00000-0000...
},
//
choosePatient() {
if (!this.patientChoosed.id) {
@ -2032,12 +2060,17 @@ export default {
} else {
body.age = Number(body.age)
}
// if(body.medicalTimes){
// body.medicalTimes = Number(body.medicalTimes)||1
// }else{
// body.medicalTimes = 1
// }
// // console.log('body',body)
// Invalid date
delete body.registerManType;
delete body.patientRegisterNo;
delete body.medicalTimes;
delete body.medicalTimes;
// delete body.completeFlag;
delete body.isMedicalStart;
delete body.patientNo;
@ -3367,7 +3400,7 @@ export default {
// "displayOrder": 1
this.dataTransOpts.tableM.register_check_asbitem = deepCopy(this.dataTransOpts.tableM.appoint_register_asbitem)
this.changeIdNo() //
this.changeIdNo('N') //
})
},
@ -3464,7 +3497,7 @@ export default {
//
if (this.form.customerOrgGroupId) this.changeCustomerOrgGroupId()
this.changeIdNo() //
this.changeIdNo('N') //
})
},
@ -3808,9 +3841,17 @@ export default {
event.preventDefault();
//
let placeholder = input.getAttribute('placeholder')
if (placeholder == '身份证号') this.changeIdNo()
let colName = input.getAttribute('data-col')
switch (colName) {
case "idNo":
this.changeIdNo('N')
break;
case "patientName":
this.changePatientName()
break;
default:
break;
}
//
for (let j = i + 1; j < inputs.length; j++) {
if (inputs[j].getAttribute('disabled') != "disabled") {

58
src/components/report/BtnReport.vue

@ -200,6 +200,7 @@ export default {
},
data() {
return {
medical_report_print_after_summary_check_is_audit:'N', // Y-N-
dialogGetReport: false,
dialogVisibleCheckHistory: false,
tabChoosed: "2",
@ -380,12 +381,22 @@ export default {
};
},
created() {},
created() {
//
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId:"medical_report_print_after_summary_check_is_audit" }
).then(res => {
if(res.code > -1){
this.medical_report_print_after_summary_check_is_audit = res.data.toUpperCase() || 'N'
}
});
},
//
mounted() {
this.dataTransOpts.tableS.patient_register.id = "";
// this.getPatientRegister(this.dataTransOpts.tableS.patient_register.patientRegisterNo)
},
computed: {
@ -789,6 +800,7 @@ export default {
let user = window.sessionStorage.getItem("user");
let toOutShell = {
ReportCode,
Templatecode:undefined,
token,
isBuildImage: "N",
IsUploadPdf: "N",
@ -817,23 +829,17 @@ export default {
],
};
//
if (rds[0].completeFlag != "3") toOutShell.preViewCanPrint = "N";
if (toOutShell.preViewCanPrint == "Y" && rds[0].isAudit == "N") {
let sysParmId = "medical_report_print_after_summary_check_is_audit";
let sysParam = await postapi(
"/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId }
);
if (sysParam.data.toUpperCase() == "Y")
toOutShell.preViewCanPrint = "N";
//
if(this.medical_report_print_after_summary_check_is_audit == 'Y'){
//if (rds[0].completeFlag != "3") toOutShell.preViewCanPrint = "N";
if (rds[0].isAudit == "N") toOutShell.preViewCanPrint = "N";
}
// let res = await postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.patientRegister.patientRegisterId}`)
// toOutShell.ReportTable = res.data
let JSONtoOutShell = JSON.stringify(toOutShell);
console.log("$peisAPI.printPre", JSONtoOutShell);
let JSONtoOutShell = JSON.stringify(toOutShell);
if (isPreview) {
console.log("$peisAPI.printPre", toOutShell,JSONtoOutShell);
this.$peisAPI
.printPre(JSONtoOutShell)
.then((res) => {
@ -856,16 +862,16 @@ export default {
toOutShell.ReportCode =
rd.isPatientOccupationalDisease == "Y" ? "0006" : "0005";
toOutShell.BusinessCode = rd.patientRegisterId;
if (rd.completeFlag != "3") toOutShell.preViewCanPrint = "N";
if (toOutShell.preViewCanPrint == "Y" && rd.isAudit == "N") {
let sysParmId = "medical_report_print_after_summary_check_is_audit";
let sysParam = await postapi(
"/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId }
);
if (sysParam.data.toUpperCase() == "Y")
toOutShell.preViewCanPrint = "N";
}
//
if(toOutShell.ReportCode == "0005" && rd.reportFormatTemplateId) toOutShell.Templatecode = rd.reportFormatTemplateId
//
if(this.medical_report_print_after_summary_check_is_audit == 'Y'){
//if (rd.completeFlag != "3") toOutShell.preViewCanPrint = "N";
if(rd.isAudit == "N") toOutShell.preViewCanPrint = "N";
}
if (toOutShell.preViewCanPrint == "N") {
this.$message.warning({
@ -874,8 +880,12 @@ export default {
});
continue;
}
JSONtoOutShell = JSON.stringify(toOutShell);
try {
JSONtoOutShell = JSON.stringify(toOutShell);
//
if(i == 0) console.log('this.$peisAPI.print',toOutShell,JSONtoOutShell)
let lres = await this.$peisAPI.print(JSONtoOutShell);
if (JSON.parse(lres).code < 0) {
this.$message.warning({

Loading…
Cancel
Save