pengjun 1 month ago
parent
commit
72da7e518a
  1. 61
      src/components/doctorCheck/CheckItemList.vue
  2. 45
      src/components/doctorCheck/CheckSumSug.vue
  3. 33
      src/components/patientRegister/PatientRegisterList.vue
  4. 4
      src/components/patientRegister/customerOrgTreeAll.vue

61
src/components/doctorCheck/CheckItemList.vue

@ -2,7 +2,7 @@
<div>
<div @contextmenu.prevent="onContextmenu">
<el-table :data="doctorCheck.checkItemList" style="width: 100%" :height="tableHeight" border highlight-current-row
@row-click="rowClick" size="small">
@row-click="rowClick" @row-dblclick="dblClick" size="small">
<el-table-column prop="itemName" label="项目" width="220" />
<el-table-column prop="result" label="结果" min-width="200">
<template slot-scope="scope">
@ -305,7 +305,10 @@ export default {
}
},
hisResultDetailDialogVisible: false,
hisResultDetailDialogVisible: false, //
//
clickTime1: 0, //
clickTime2: 0 //
};
},
@ -353,15 +356,15 @@ export default {
dddw,
dictInit() {
// ()
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId:'doctor_check_disp_hisdetail' })
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'doctor_check_disp_hisdetail' })
.then(res => {
if(res.code > -1){
let hisResultDetailDialogVisible = res.data||"N"
if(hisResultDetailDialogVisible == 'Y'){
if (res.code > -1) {
let hisResultDetailDialogVisible = res.data || "N"
if (hisResultDetailDialogVisible == 'Y') {
this.hisResultDetailDialogVisible = true
}
}
})
})
//
getapi("/api/app/result-status").then((res) => {
@ -706,6 +709,8 @@ export default {
});
},
//
btnMoreResult(row, index) {
this.moreResult.data = deepCopy(row.itemResultTemplates);
@ -831,21 +836,43 @@ export default {
//
rowClick(row) {
this.clickTime1 = new Date().getTime()
console.log('this.clickTime1', this.clickTime1)
this.doctorCheck.checkItem = row;
this.restaurants = row.itemResultTemplates;
//
if (this.hisResultDetailDialogVisible) {
this.gridData = []
postapi("/api/app/RegisterCheckItem/GetItemTwoHistoricalResults", {
registerCheckId: row.registerCheckId,
itemId: row.itemId,
}).then((res) => {
if (res.code != -1) {
this.gridData = res.data;
//
setTimeout(() => {
//
if (this.clickTime1 > this.clickTime2) {
//
if (this.hisResultDetailDialogVisible) {
this.gridData = []
postapi("/api/app/RegisterCheckItem/GetItemTwoHistoricalResults", {
registerCheckId: row.registerCheckId,
itemId: row.itemId,
}).then((res) => {
if (res.code != -1) {
this.gridData = res.data;
}
});
}
});
}
}, 400);
},
//
dblClick(row) {
this.clickTime2 = new Date().getTime()
console.log('this.clickTime2', this.clickTime2)
//@click="btnMoreResult(scope.row, scope.$index)" :disabled="rowResultDisabled(scope.row)"
if (this.rowResultDisabled(row)) {
return
}
let lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', row.itemId)
this.btnMoreResult(row, lfind)
},
//

45
src/components/doctorCheck/CheckSumSug.vue

@ -1,7 +1,7 @@
<template>
<div>
<div style="display: flex;">
<div :style="`width:${sumWidth}px;`">
<div :style="`width:${sumWidth}px;`" @dblclick.prevent="blClick">
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight"
width="100%" border>
<el-table-column width="30" align="center">
@ -19,7 +19,7 @@
</div>
</template>
<template slot-scope="scope">
<div style="display: flex;font-family: 'Microsoft YaHei';">
<div style="display: flex;font-family: 'Microsoft YaHei';" ref="divSummary">
<el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }"
placeholder="请输入小结" :style="`font-size: ${pacsDescFontSize}px;`">
</el-input>
@ -33,7 +33,7 @@
<div
:style="`display: flex;position: absolute; top:${window.pageHeight - sumHeight - 226}px;right:${sumWidth + 8}px;z-index: 1;`">
<div v-show="checkPagePriv(pagePriv.privs, '生成小结')">
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis"
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis"
:disabled="doctorBtnDisabled('btnMakeDiagnosis')">生成小结</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '新增小结')">
@ -139,11 +139,7 @@
</div>
</el-tab-pane>
</el-tabs>
</div>
<div>
<!-- 分诊排队 -->
<el-dialog title="分诊排队" :visible.sync="dialogWin.queue" width="800px" :append-to-body="true"
@ -157,7 +153,7 @@
import { mapState } from 'vuex';
import Sortable from "sortablejs";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getPagePriv, checkPagePriv, deepCopy, getColorStr } from "../../utlis/proFunc";
import { getPagePriv, checkPagePriv, deepCopy, getColorStr,arrayExistObj } from "../../utlis/proFunc";
import Queue from "../../components/queue/Queue.vue";
export default {
@ -175,6 +171,7 @@ export default {
activeName:'preResult',
doctor_check_disp_suggestion:'N', //
pacsDescFontSize: 14, //
};
},
@ -197,7 +194,9 @@ export default {
//
mounted() {
this.rowDrop();
if(this.doctor_check_disp_suggestion == 'Y') this.rowDropSuggestion()
},
computed: {
@ -219,15 +218,29 @@ export default {
methods: {
checkPagePriv, getColorStr,
//
checkSummaryList(RegisterCheckId) {
checkSummaryList(registerCheckId) {
this.doctorCheck.checkSummaryList = [];
if (!RegisterCheckId) return;
if (!registerCheckId) return;
// console.log(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${RegisterCheckId}`)
getapi(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${RegisterCheckId}`)
let defaultResult = "未见明细异常"
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList,'id',registerCheckId)
if(lfind > -1){
defaultResult = this.doctorCheck.RegisterCheckList[lfind].defaultResult || defaultResult
}
getapi(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${registerCheckId}`)
.then((res) => {
console.log("checkSummaryList", res.data);
if (res.code != -1) {
if (res.code > -1) {
this.doctorCheck.checkSummaryList = res.data;
if(this.doctorCheck.checkSummaryList.length == 0){
this.doctorCheck.checkSummaryList.push({
id: Math.random(),
registerCheckId,
summary: defaultResult,
summaryFlag: 'N'
})
}
}
})
.catch((err) => {
@ -388,6 +401,14 @@ export default {
});
},
//
blClick(){
//this.$message.warning({showClose:true,message:''})
if(this.doctorBtnDisabled('btnMakeDiagnosis')){
return
}
this.btnMakeDiagnosis()
},
},
//

33
src/components/patientRegister/PatientRegisterList.vue

@ -7,7 +7,7 @@
<u-table :data="tableData" border :height="window.pageHeight < 600
? 248
: Math.floor(((window.pageHeight - 250) * 2) / 3)
" highlight-current-row @row-click="rowClick" size="small" row-key="id"
" highlight-current-row @row-click="rowClick" @row-dblclick="dblClick" size="small" row-key="id"
@selection-change="handleSelectionChange" @row-contextmenu="onCellRightClick" ref="info" id="info"
:row-class-name="handleRowClassName" use-virtual :row-height="30" @table-body-scroll="scrollFull"
big-data-checkbox :data-changes-scroll-top="false">
@ -679,8 +679,11 @@ export default {
},
//
dialogRecover:false,
patientRegisterNo:''
dialogRecover: false,
patientRegisterNo: '',
clickTime1: 0,
clickTime2: 0,
};
},
@ -1185,10 +1188,30 @@ export default {
// if (lfind > -1) {
//
this.clickTime1 = new Date().getTime()
setTimeout(() => {
if (this.clickTime1 > this.clickTime2) {
this.dataTransOpts.tableS.patient_register = deepCopy(row);
this.tableDataCurrentRow = deepCopy(row);
this.dataTransOpts.refresh.register_check_asbitem.M++; //
}
}, 400);
// }
},
//
dblClick(row) {
this.clickTime2 = new Date().getTime()
this.dataTransOpts.tableS.patient_register.id = row.id
this.btnEdit()
//
this.dataTransOpts.tableS.patient_register = deepCopy(row);
this.tableDataCurrentRow = deepCopy(row);
this.dataTransOpts.refresh.register_check_asbitem.M++; //
// }
},
// ()
@ -2497,7 +2520,7 @@ export default {
postapi(`/api/app/patientregister/updaterecoverguidemany`, body)
.then((res) => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: "操作成功!"});
this.$message.success({ showClose: true, message: "操作成功!" });
}
})
},

4
src/components/patientRegister/customerOrgTreeAll.vue

@ -97,13 +97,13 @@ export default {
// console.log('this.customerOrgTreeAll', this.customerOrgTreeAll)
})
} else {
console.log('new Date()1', now())
//console.log('new Date()1', now())
this.getCustomerOrgChild(null)
.then(res => {
this.customerOrgTreeAll = res //.slice(0,3)
this.patientRegister.customerOrgTreeAll = res
// console.log('this.customerOrgTreeAll', this.customerOrgTreeAll)
console.log('new Date()2', now())
//console.log('new Date()2', now())
})
}

Loading…
Cancel
Save