pengjun 3 months ago
parent
commit
dd5c7eb07d
  1. 12
      src/components/doctorCheck/PatientRegisterBase2.vue
  2. 16
      src/components/doctorCheck/PatientRegisterList.vue
  3. 3
      src/components/patientRegister/PatientRegisterForChoose.vue
  4. 18
      src/components/patientRegister/patientRegisterQuery.vue
  5. 13
      src/components/sumDoctorCheck/SumAsbItemStatus.vue
  6. 167
      src/views/doctorCheck/sumDoctorCheck.vue

12
src/components/doctorCheck/PatientRegisterBase2.vue

@ -104,7 +104,7 @@
<!-- 体检人员记录列表 -->
<el-dialog title="体检人员列表" :visible.sync="dialogWin.PatientRegisterForChoose" width="800px" :show-close="false"
:close-on-click-modal="false" :append-to-body="true">
<PatientRegisterForChoose :params="PatientRegisterList" />
<PatientRegisterForChoose :params="PatientRegisterList" @chooseBak="chooseBak"/>
</el-dialog>
</div>
@ -192,6 +192,12 @@ export default {
...mapMutations(['doctorCheckPrBaseInit', 'sumPREditInit']),
dddw, moment,
//
chooseBak(chooseData){
this.prBase.patientRegisterNo = chooseData.patientRegisterNo
this.onQueryByOnlyNo('patientRegisterNo')
},
//
afterFind(rd) {
this.$emit("triggerQuery",rd)
@ -222,6 +228,7 @@ export default {
},
// pacs
onQueryByPacsNo(checkRequestNo) {
postapi('/api/app/PatientRegister/GetPatientRegisterNoByCheckRequestNo', { checkRequestNo }).then(res => {
@ -477,6 +484,7 @@ export default {
if(newVal && newVal != oldVal){
// this.getPatientRegister(this.prBase.patientRegisterNo)
// this.dataTransOpts.refresh.register_check.M++
this.prBase = Object.assign({},this.prBase,this.refParams)
}
}
},
@ -487,7 +495,7 @@ export default {
handler(newVal, oldVal) {
console.log(`watch.refParams.resetTimes newVal: ${newVal} oldVal: ${oldVal}`);
if(newVal && newVal != oldVal){
this.prBase = Object.assign(this.prBase,this.prBaseInit)
this.prBase = Object.assign({},this.prBase,this.prBaseInit)
}
}
},

16
src/components/doctorCheck/PatientRegisterList.vue

@ -5,7 +5,7 @@
<div v-if="winAbsolute" style="position: absolute;top:3px;right:0px;">
<el-tooltip content="关闭人员列表窗口" placement="bottom" effect="light">
<i class="el-icon-close"
@click="doctorCheck.doctorCheckDialogVisible = false; sumDoctorCheck.sumDoctorCheckDialogVisible = false;"
@click="closePrList"
style="font-size: 24px;color: red;cursor:pointer;"></i>
</el-tooltip>
</div>
@ -274,7 +274,7 @@ export default {
// })
},
computed: {
...mapState(["window", "dataTransOpts", "dict", "customerOrg", "patientRegister", "doctorCheck", "sumDoctorCheck", "report"]),
...mapState(["window", "dialogWin","dataTransOpts", "dict", "customerOrg", "patientRegister", "doctorCheck", "sumDoctorCheck", "report"]),
divHeight() {
if (this.win == "doctorCheck") {
return 210
@ -372,6 +372,17 @@ export default {
},
//
closePrList(){
this.doctorCheck.doctorCheckDialogVisible = false;
this.sumDoctorCheck.sumDoctorCheckDialogVisible = false;
//
if(this.win == 'doctorCheck'){
this.dialogWin.doctorPrList = false
}else{
this.dialogWin.sumPrList = false
}
},
//
filterMethod(keyWords) {
@ -435,6 +446,7 @@ export default {
this.oneClick = 0;
this.DbClick = 0;
this.$emit("choosedBak",row)
this.dataTransOpts.tableS.patient_register = deepCopy(row)
// setTimeout(() => {
this.dataTransOpts.refresh.patient_register.S++ //

3
src/components/patientRegister/PatientRegisterForChoose.vue

@ -168,6 +168,9 @@ export default {
setTimeout(() => {
this.tableDataCurrentRow = {}
}, 10);
this.$emit("chooseBak",this.tableDataCurrentRow) //
this.dialogWin.PatientRegisterForChoose = false
},

18
src/components/patientRegister/patientRegisterQuery.vue

@ -153,7 +153,7 @@ export default {
customerOrgTopId: "", //ID
isSeries: 'N', //
photo: '', //
customerOrgName:'', //
// ================== Start ======================
dateType: '2', //
startDate: null,
@ -251,19 +251,23 @@ export default {
},
changeOrgId(customerOrgId) {
this.query.customerOrgId = customerOrgId
this.query.customerOrgName = this.refParams.customerOrgName
if (!customerOrgId || customerOrgId == this.dict.personOrgId) {
this.query.customerOrgTopId = this.dict.personOrgId
this.query.customerOrgRegister = null
this.customerOrgRegisterList = []
if (customerOrgId == this.dict.personOrgId) {
let today = new Date()
let today = moment(new Date()).format('yyyy-MM-DD')
this.query.startDate = today
this.query.endDate = today
}
return
}
this.query.customerOrgId = customerOrgId
this.query.customerOrgName = this.refParams.customerOrgName
// ID (ID)
if (this.refParams?.parentNodes.length > 1) {
@ -308,11 +312,11 @@ export default {
//
changeCustomerOrgRegister(v) {
// console.log('changeCustomerOrgRegister')
this.query.startDate = new Date(v.beginTime)
this.query.startDate = moment(new Date(v.beginTime)).format('yyyy-MM-DD')
if (v.isComplete == 'Y') {
this.query.endDate = new Date(v.endTime)
this.query.endDate = moment(new Date(v.endTime)).format('yyyy-MM-DD')
} else {
this.query.endDate = new Date()
this.query.endDate = moment(new Date()).format('yyyy-MM-DD')
}
if (v && v.id) this.getCustomerOrgGroup(v.id)
},

13
src/components/sumDoctorCheck/SumAsbItemStatus.vue

@ -37,7 +37,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
export default {
components: {},
props: ['patientRegisterId','tabChoosed'],
props: ['patientRegisterId','tabChoosed','brushSummary'],
data() {
return {
data: {
@ -103,6 +103,17 @@ export default {
}
},
//
"brushSummary": {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--检查状态汇总 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.patientRegisterId}`);
// && this.tabChoosed == '1'
if(newVal && newVal != oldVal) this.getSumAsbItemStatus(this.patientRegisterId);
}
},
},
};

167
src/views/doctorCheck/sumDoctorCheck.vue

@ -77,7 +77,7 @@
</el-table-column>
</el-table>
<div style="height: 90px;" v-show="history_summary_years_limit == '0' ? false : true">
<el-input type="textarea" v-model="sumDoctorCheck.historySummary" placeholder="历史综述"
<el-input type="textarea" v-model="patient_register.historySummary" placeholder="历史综述"
:disabled="sumBtnDisabled" :autosize="{ minRows: 5, maxRows: 5 }" style="z-index: 2;">
</el-input>
</div>
@ -349,7 +349,8 @@
</div>
<!-- 检查情况 -->
<div style="margin-top: -6px;">
<SumAsbItemStatus :patientRegisterId="patient_register.id" :tabChoosed="tabChoosed" />
<SumAsbItemStatus :patientRegisterId="patient_register.id" :tabChoosed="tabChoosed"
:brushSummary="refParamsQuery.brushSummary" />
</div>
</el-tab-pane>
@ -418,16 +419,17 @@
<el-button type="primary" class="commonbutton" @click="btnSave" :disabled="sumBtnDisabled">保存</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '修改')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnEdit" :disabled="sumBtnDisabled">修改</el-button>
<el-button type="primary" class="commonbutton" @click="btnEdit" :disabled="sumedBtnDisabled">修改</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '取消总检')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnDel" :disabled="sumBtnDisabled">取消总检</el-button>
<el-button type="primary" class="commonbutton" @click="btnDel" :disabled="sumedBtnDisabled">取消总检</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '审核')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="audit" :disabled="sumBtnDisabled">审核</el-button>
<el-button type="primary" class="commonbutton" @click="btnAudit" :disabled="sumedBtnDisabled">审核</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '取消审核')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="unAudit" :disabled="sumBtnDisabled">取消审核</el-button>
<el-button type="primary" class="commonbutton" @click="unAudit"
:disabled="auditBtnDisabled">取消审核</el-button>
</div>
<!-- 直接放在 建议旁边
<div class="listBtn">
@ -492,7 +494,7 @@
<div v-show="dialogWin.sumPrList"
:style="`z-index:3;border-radius: 10px;border: 1px solid #ddd;background-color:#FFF; position: absolute;top:50px;right:120px;width:350px;height: ${window.pageHeight - 42 - 10}px;opacity:1;`">
<PatientRegisterList win="sumDoctorCheck" :winAbsolute="true" @choosedBak="choosedBak"/>
<PatientRegisterList win="sumDoctorCheck" :winAbsolute="true" @choosedBak="choosedBak" />
</div>
</div>
@ -544,6 +546,7 @@
<script>
import { mapState } from 'vuex';
import Sortable from "sortablejs";
import moment from "moment";
import { getapi, postapi, putapi, deletapi, fetchStream } from "@/api/api";
import { arrayExistObj, arrayReduce, tcdate, getPagePriv, checkPagePriv, deepCopy, objCopy } from "../../utlis/proFunc";
@ -598,7 +601,10 @@ export default {
auditDoctorId: '',
auditDate: '',
isAudit: 'N',
sexId:'',
isLock: 'N',
sexId: '',
completeFlag: '2', //
historySummary: '', //
},
//
@ -679,7 +685,6 @@ export default {
this.patient_register = this.$route.query.patient_register
} else {
this.patient_register = { id: '', patientRegisterNo: '' }
this.dataTransOpts.tableS.register_check = { id: '' }
}
//
@ -745,9 +750,9 @@ export default {
"dict",
"dataTransOpts",
"dialogWin",
"patientRegister",
"customerOrg",
"sumDoctorCheck",
//"patientRegister",
//"customerOrg",
//"sumDoctorCheck",
]),
frameHeight() {
@ -774,39 +779,67 @@ export default {
return Math.floor((this.window.pageWidth - 120) / 2)
},
//
sumBtnDisabledAddSummary() {
let patientRegister = this.dataTransOpts.tableS.patient_register
let ret = true
//' '
if (!patientRegister.id) return ret
if (!this.patient_register.id) return ret
// ''
if (patientRegister?.isLock == 'Y') return ret
if (this.patient_register?.isLock == 'Y') return ret
if (patientRegister.completeFlag && patientRegister.completeFlag != '3' && this.summary_check_default_summay_modifiable == 'Y') {
if (this.patient_register?.completeFlag != '3' && this.summary_check_default_summay_modifiable == 'Y') {
return false;
} else {
return true;
}
},
//
sumBtnDisabled() {
let patientRegister = this.dataTransOpts.tableS.patient_register
let ret = true
//' '
if (!patientRegister.id) return ret
if (!this.patient_register.id) return ret
// ''
if (patientRegister?.isLock == 'Y') return ret
if (this.patient_register?.isLock == 'Y') return ret
// console.log('btnType', btnType, this.summary_check_default_summay_modifiable)
if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false
if (this.patient_register?.completeFlag != '3') ret = false
return ret
},
//
sumedBtnDisabled() {
let ret = true
//' '
if (!this.patient_register.id) return ret
// ''
if (this.patient_register?.isLock == 'Y') return ret
if (this.patient_register.completeFlag && this.patient_register.completeFlag == '3' && this.patient_register?.isAudit != 'Y') ret = false
return ret
},
//
auditBtnDisabled() {
let ret = true
//' '
if (!this.patient_register.id) return ret
// ''
if (this.patient_register?.isLock == 'Y') return ret
if (this.patient_register?.isAudit == 'Y') ret = false
return ret
},
//
sumBtnDisabledCollapse() {
let patientRegister = this.dataTransOpts.tableS.patient_register
let patientRegister = this.patient_register
let ret = true
//' '
@ -992,28 +1025,32 @@ export default {
// ID
triggerQuery(rd) {
console.log('triggerQuery.rd', rd)
this.patient_register = Object.assign(this.patient_register,rd)
// console.log('triggerQuery.rd', rd)
this.patient_register = Object.assign({}, this.patient_register, rd)
this.refParamsQuery = Object.assign({}, this.refParamsQuery, rd,
{ brushSummary: Number(this.refParamsQuery.brushSummary) + 1 //
}
)
console.log('this.patient_register',this.patient_register)
{
brushSummary: Number(this.refParamsQuery.brushSummary) + 1 //
}
)
// console.log('this.summary_check_default_summay_modifiable', this.summary_check_default_summay_modifiable)
// console.log('this.patient_register', this.patient_register)
//brushSummary++
},
//
choosedBak(choosedData){
choosedBak(choosedData) {
console.log('choosedBak.choosedData', choosedData)
this.patient_register = Object.assign(this.patient_register,rd)
this.refParamsQuery = Object.assign({}, this.refParamsQuery, rd,
{ brushSummary: Number(this.refParamsQuery.brushSummary) + 1 , //
brushQueryDisp:Number(this.refParamsQuery.brushQueryDisp) + 1 //
}
)
console.log('this.patient_register',this.patient_register)
//
this.getInfoByPatientRegisterNo(choosedData.patientRegisterNo)
.then(() => {
console.log('this.patient_register', this.patient_register)
this.refParamsQuery = Object.assign({}, this.refParamsQuery, this.patient_register,
{
brushSummary: Number(this.refParamsQuery.brushSummary) + 1, //
brushQueryDisp: Number(this.refParamsQuery.brushQueryDisp) + 1 //
}
)
})
},
//
@ -1023,7 +1060,7 @@ export default {
//
addDiagnosis() {
this.sumDoctorCheck.sumDiagnosisVisible = true
//
},
//to
@ -1129,7 +1166,7 @@ export default {
summaryDoctorId: this.patient_register.summaryDoctorId || null,
summaryDate: this.patient_register.summaryDate || moment(new Date()).format("yyyy-MM-DD HH:mm:ss"),
medicalConclusionId: this.patient_register.medicalConclusionId || null,
summaryHistoricalReview: this.sumDoctorCheck.historySummary,
summaryHistoricalReview: this.patient_register.historySummary,
sumSummarys: this.summaryList,
sumSuggestions: this.suggestionList
}
@ -1197,15 +1234,20 @@ export default {
postapi(`/api/app/patientregister/UpdatePatientRegisterSummarySuggestion`, body)
.then((res) => {
if (res.code > -1) {
// this.patient_register.completeFlag = '3';
this.dataTransOpts.refresh.patient_register.S++
//this.patient_register.completeFlag = '3';
this.getInfoByPatientRegisterNo(this.patient_register.patientRegisterNo)
.then(() => {
this.refParamsQuery.brushSummary++
})
}
})
},
//
btnEdit() {
this.patient_register.completeFlag = '2'
//this.patient_register.completeFlag = '2' //
this.patient_register = Object.assign({}, this.patient_register, { completeFlag: '2' })
// console.log('this.patient_register', this.patient_register)
},
//
@ -1342,8 +1384,13 @@ export default {
this.AI.height = 24
}
},
//
audit() {
btnAudit() {
if (this.patient_register.completeFlag != '3') {
this.$message.warning({ showClose: true, message: '尚未总检,不可执行此操作!' })
return
}
// patient_register.summaryDoctorId
// patient_register.auditDoctorId
let auditDoctorId = this.patient_register.auditDoctorId
@ -1503,7 +1550,7 @@ export default {
let id = String(new Date().getTime())
let pojo = {
id,
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
patientRegisterId: this.patient_register.id,
summaryTitle: '',
details: [{
id: 'detail' + id,
@ -1523,7 +1570,8 @@ export default {
let id = Date.now() + String(this.suggestionList.length)
let pojo = {
id,
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
collapse:this.collapse,
patientRegisterId: this.patient_register.id,
suggestionTitle: '',
diagnosisIds: [],
medicalInterpretations: [
@ -1739,19 +1787,38 @@ export default {
this.dialogDiagnosises = false
},
//
getInfoByPatientRegisterNo(patientRegisterNo) {
return new Promise((resolve, reject) => {
let body = {
patientRegisterNo
}
postapi('/api/app/patientregister/GetAlreadyRegisterPatientRegisterByNo', body)
.then(res => {
if (res.code > -1) {
this.patient_register = Object.assign({}, this.patient_register, res.data)
}
})
.finally(() => {
resolve()
})
})
},
//
getHaveSumData(patientRegisterId) {
this.summaryList = [];
this.suggestionList = [];
if (!patientRegisterId) return
// console.log('getHaveSumData', this.dataTransOpts.tableS.patient_register.completeFlag)
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3') {
// console.log('getHaveSumData', this.patient_register.completeFlag)
if (this.patient_register.completeFlag == '3') {
this.getSummaryList(patientRegisterId, 'Y')
this.getHistorySummary(patientRegisterId, 'Y')
this.getSuggestionList(patientRegisterId, 'Y')
return
}
postapi('/api/app/patientregister/GetHaveSumData', { patientRegisterId })
.then(async (res) => {
if (res.code > -1) {
@ -1828,7 +1895,7 @@ export default {
if (this.history_summary_years_limit == '0') return
if (!patientRegisterId) {
this.sumDoctorCheck.historySummary = '';
this.patient_register.historySummary = '';
return
}
@ -1840,7 +1907,7 @@ export default {
.then((res) => {
// console.log("summaryList", res.data);
if (res.code > -1) {
this.sumDoctorCheck.historySummary = res.data.summaryHistoricalReview
this.patient_register.historySummary = res.data.summaryHistoricalReview
}
})
@ -2159,7 +2226,7 @@ export default {
//
openSymbols(index, colName, subIndex) {
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3') return
if (this.patient_register.completeFlag == '3') return
this.dbclObj = { index, colName, subIndex }
switch (colName) {
case 'suggestionTitle':

Loading…
Cancel
Save