pengjun 2 days ago
parent
commit
eb8ec1d422
  1. 6
      src/components/doctorCheck/CheckSumSug.vue
  2. 66
      src/components/doctorCheck/QueueCheckList.vue
  3. 18
      src/components/follow/FollowCriticalCheck.vue
  4. 4
      src/components/patientRegister/PatientRegisterEdit.vue
  5. 4
      src/components/patientRegister/PatientRegisterList.vue
  6. 7
      src/views/doctorCheck/tabletCalling.vue

6
src/components/doctorCheck/CheckSumSug.vue

@ -362,11 +362,11 @@ export default {
if (!this.patient_register.id) { if (!this.patient_register.id) {
this.$message.warning({ showClose: true, message: '未获取到人员信息' }) this.$message.warning({ showClose: true, message: '未获取到人员信息' })
return return
}
this.dialogWin.queue3 = true
}
this.queueParams.patientRegisterId = this.patient_register.id this.queueParams.patientRegisterId = this.patient_register.id
this.queueParams.patientName = this.patient_register.patientName this.queueParams.patientName = this.patient_register.patientName
this.queueParams.queueTimes++
this.queueParams.queueTimes++
this.dialogWin.queue3 = true
}, },
// //

66
src/components/doctorCheck/QueueCheckList.vue

@ -87,7 +87,7 @@
<div style="display: flex" @contextmenu.prevent="onContextmenu"> <div style="display: flex" @contextmenu.prevent="onContextmenu">
<el-table :data="alreadyCalledDetail" style="width: 100%" border highlight-current-row @row-contextmenu="rClick" <el-table :data="alreadyCalledDetail" style="width: 100%" border highlight-current-row @row-contextmenu="rClick"
@row-click="rowClickAlready" :row-style="{ height: '28px' }" :height="Math.floor((tableHeight - 72) / 3)"> @row-click="rowClickAlready" :row-style="{ height: '28px' }" :height="Math.floor((tableHeight - 72) / 3)">
<el-table-column type="index" label="序" width="30" align="center" />
<el-table-column type="index" label="序" width="30" align="center" />
<el-table-column prop="patientName" label="姓名" width="80" align="center" /> <el-table-column prop="patientName" label="姓名" width="80" align="center" />
<el-table-column prop="isVip" label="Vip" width="30" align="center"> <el-table-column prop="isVip" label="Vip" width="30" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -160,9 +160,9 @@ export default {
data() { data() {
return { return {
queueParams: { queueParams: {
patientRegisterId:'',
queueTimes:0, //
patientName:'',
patientRegisterId: '',
queueTimes: 0, //
patientName: '',
state: '', state: '',
queueRegisterId: '' queueRegisterId: ''
}, },
@ -196,7 +196,7 @@ export default {
// //
clickTime1: 0, clickTime1: 0,
clickTime2: 0, clickTime2: 0,
dialogWinQueue:false,
dialogWinQueue: false,
}; };
}, },
@ -264,7 +264,7 @@ export default {
this.LocalConfig.doctorCheck.queueRoom this.LocalConfig.doctorCheck.queueRoom
); );
}); });
this.setQueueParams();
//this.setQueueParams();
try { try {
let sysParam = await postapi( let sysParam = await postapi(
@ -385,7 +385,7 @@ export default {
completeFlag, completeFlag,
}).then((res) => { }).then((res) => {
if (res.code > -1) { if (res.code > -1) {
if(completeFlag == '1'){
if (completeFlag == '1') {
this.waitRow = {} this.waitRow = {}
} }
@ -429,11 +429,11 @@ export default {
RepatPlayNum: this.queue_play_voice_repeate_times, RepatPlayNum: this.queue_play_voice_repeate_times,
Delay: this.queue_play_voice_repeate_interval, Delay: this.queue_play_voice_repeate_interval,
}; };
console.log("叫号 this.$peisAPI.speechSendText",toOutShell)
console.log("叫号 this.$peisAPI.speechSendText", toOutShell)
return this.$peisAPI.speechSendText(JSON.stringify(toOutShell)); return this.$peisAPI.speechSendText(JSON.stringify(toOutShell));
}) })
.then(res => { .then(res => {
console.log('叫号返回 this.$peisAPI.speechSendText',res)
console.log('叫号返回 this.$peisAPI.speechSendText', res)
}) })
.catch((err) => { .catch((err) => {
// console.log('', err) // console.log('', err)
@ -552,38 +552,34 @@ export default {
} }
}, },
setQueueParams() {
this.queueParams.patientRegisterId =
this.dataTransOpts.tableS.patient_register.id;
},
// setQueueParams() {
// this.queueParams.patientRegisterId =
// this.dataTransOpts.tableS.patient_register.id;
// },
// //
fnQueue() { fnQueue() {
console.log('fnQueue.queueParams', this.queueParams)
if (!this.queueParams.patientRegisterId) { if (!this.queueParams.patientRegisterId) {
this.$message.warning({ showClose: true, message: "未获取到人员信息" }); this.$message.warning({ showClose: true, message: "未获取到人员信息" });
return; return;
} }
//console.log('fnQueue.queueParams',this.queueParams) //console.log('fnQueue.queueParams',this.queueParams)
this.queueParams.queueTimes++
this.dialogWin.queue2 = true; this.dialogWin.queue2 = true;
this.queueParams.queueTimes++
}, },
// //
rowClickWait(row) { rowClickWait(row) {
this.waitRow = row; this.waitRow = row;
this.queueParams = {
patientRegisterId: row.patientRegisterId,
patientName:row.patientName
};
this.queueParams = Object.assign(this.queueParams, row)
}, },
// //
rowClickAlready(row) { rowClickAlready(row) {
this.alreadyRow = row; this.alreadyRow = row;
this.queueParams = {
patientRegisterId: row.patientRegisterId,
patientName:row.patientName
};
this.queueParams = Object.assign(this.queueParams, row)
}, },
// //
@ -593,7 +589,8 @@ export default {
// //
rClick(row, column, event) { rClick(row, column, event) {
this.queueParams = Object.assign(this.queueParams,row)
console.log('排队时,右击', row)
this.queueParams = Object.assign(this.queueParams, row)
//console.log('rClick.queueParams',this.queueParams,row) //console.log('rClick.queueParams',this.queueParams,row)
// this.queueParams = { // this.queueParams = {
// patientRegisterId: row.patientRegisterId, // patientRegisterId: row.patientRegisterId,
@ -621,14 +618,21 @@ export default {
items.push({ items.push({
label: "取消排队", label: "取消排队",
onClick: () => { onClick: () => {
postapi('/api/app/QueueRegister/DeleteByPatientRegisterId', {
patientRegisterId: this.queueParams.patientRegisterId
}).then(res => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: '操作成功!' })
this.getQueueRegisterList(this.LocalConfig.doctorCheck.queueRoom, this.LocalConfig.doctorCheck.queueItemTypeIds)
}
})
// postapi('/api/app/QueueRegister/DeleteByPatientRegisterId', {
// patientRegisterId: this.queueParams.patientRegisterId
// }).then(res => {
// if (res.code > -1) {
// this.$message.success({ showClose: true, message: '' })
// this.getQueueRegisterList(this.LocalConfig.doctorCheck.queueRoom, this.LocalConfig.doctorCheck.queueItemTypeIds)
// }
// })
postapi('/api/app/QueueRegister/Delete', { queueRegisterId: this.queueParams.queueRegisterId })
.then(res => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: '操作成功!' })
this.getQueueRegisterList(this.LocalConfig.doctorCheck.queueRoom, this.LocalConfig.doctorCheck.queueItemTypeIds)
}
})
}, },
}) })
} }

18
src/components/follow/FollowCriticalCheck.vue

@ -1094,15 +1094,7 @@ export default {
}, },
//
fnQueue(row) {
this.queueParams = {
patientRegisterId: row.id
}
this.dialogWin.queue = true
this.dataTransOpts.plus.queue++
},
// //
onCellRightClick(row, column) { onCellRightClick(row, column) {
this.rClickRow = { ...row }; // this.rClickRow = { ...row }; //
@ -1136,13 +1128,7 @@ export default {
this.fnUpBaseInfo(row, 'idNo'); this.fnUpBaseInfo(row, 'idNo');
}, },
}) })
if (checkPagePriv(this.pagePriv.privs, '分诊排队') && row.completeFlag != '0')
items.push({
label: "分诊排队",
onClick: () => {
this.fnQueue(row);
},
})
if (checkPagePriv(this.pagePriv.privs, '发送检验申请') && row.completeFlag != '0') if (checkPagePriv(this.pagePriv.privs, '发送检验申请') && row.completeFlag != '0')
items.push({ items.push({
label: "发送检验申请", label: "发送检验申请",

4
src/components/patientRegister/PatientRegisterEdit.vue

@ -1837,11 +1837,11 @@ export default {
if (!this.form.id) { if (!this.form.id) {
this.$message.warning({ showClose: true, message: '请先保存人员信息,再执行此操作!' }) this.$message.warning({ showClose: true, message: '请先保存人员信息,再执行此操作!' })
return return
}
this.dialogWin.queue1 = true
}
this.queueParams.patientRegisterId = this.form.id this.queueParams.patientRegisterId = this.form.id
this.queueParams.patientName = this.form.patientName this.queueParams.patientName = this.form.patientName
this.queueParams.queueTimes++ this.queueParams.queueTimes++
this.dialogWin.queue1 = true
}, },
// //

4
src/components/patientRegister/PatientRegisterList.vue

@ -2198,11 +2198,11 @@ export default {
}, },
// //
fnQueue(row) {
this.dialogWin.queue = true; // queue: queue1: queue2:
fnQueue(row) {
this.queueParams.patientRegisterId = row.id this.queueParams.patientRegisterId = row.id
this.queueParams.patientName = row.patientName this.queueParams.patientName = row.patientName
this.queueParams.queueTimes++ this.queueParams.queueTimes++
this.dialogWin.queue = true; // queue: queue1: queue2:
}, },
// //

7
src/views/doctorCheck/tabletCalling.vue

@ -277,7 +277,10 @@ export default {
}, },
data() { data() {
return { return {
queueParams: {},
queueParams: {
patientRegisterId:'',
queueTimes:0
},
patientName: "", patientName: "",
waitDetail: [], waitDetail: [],
alreadyCalledDetail: [], alreadyCalledDetail: [],
@ -656,7 +659,7 @@ export default {
// this.queueParams = { // this.queueParams = {
// patientRegisterId: this.queueParams.patientRegisterId, // patientRegisterId: this.queueParams.patientRegisterId,
// }; // };
this.dataTransOpts.plus.queue++;
this.queueParams.queueTimes++;
this.dialogWin.queue = true; this.dialogWin.queue = true;
}, },

Loading…
Cancel
Save