提交 1e5d8b69 编写于 作者: xiaoping.di's avatar xiaoping.di

问诊dan

上级 18fc33af
...@@ -49,9 +49,10 @@ export const manualCall = async (data) => { ...@@ -49,9 +49,10 @@ export const manualCall = async (data) => {
}; };
// 查询当前上级医生下排队的信息 // 查询当前上级医生下排队的信息
export const waitPersonNum = async (doctorId) => { export const waitPersonNum = async (data) => {
return request({ return request({
url: `/admin/diagnose/queueList/${doctorId}`, url: '/diagnose/admin/diagnose/queueList/doctorId',
method: 'post', method: 'post',
data: data,
}); });
}; };
...@@ -285,8 +285,12 @@ export default { ...@@ -285,8 +285,12 @@ export default {
}, },
waitPersonFun() { waitPersonFun() {
if (!this.isShowWait) { if (!this.isShowWait) {
console.log(this.item.doctorId, 'this.item.doctorId'); const parms = {
waitPersonNum(this.item.doctorId) assistantBeginTime: this.item.appointBeginTime,
doctorId: this.item.doctorId,
};
console.log(parms, 'this.item.doctorId');
waitPersonNum(parms)
.then((res) => { .then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.waitPersonList = res.data || []; this.waitPersonList = res.data || [];
......
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
font-size: 18px; font-size: 18px;
margin-top: 3px; margin-top: 3px;
} }
.notime {
color: #999999;
}
} }
.right { .right {
margin-left: 23px; margin-left: 23px;
...@@ -45,7 +48,7 @@ ...@@ -45,7 +48,7 @@
} }
} }
.superior-doctor { .superior-doctor {
width: 49%; width: 52%;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
...@@ -89,19 +92,19 @@ ...@@ -89,19 +92,19 @@
.info-name-wrap { .info-name-wrap {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
span {
display: block;
}
.info-name {
//display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 18px;
color: #02120f;
font-weight: bold;
}
} }
.info-name {
display: inline-block;
max-width: 85px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 18px;
color: #02120f;
font-weight: bold;
}
.info-container { .info-container {
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
...@@ -115,17 +118,6 @@ ...@@ -115,17 +118,6 @@
.info-call-time { .info-call-time {
color: #ff5e57; color: #ff5e57;
} }
.info-calling {
width: 15px;
height: 25px;
display: flex;
justify-content: center;
align-items: center;
img {
width: 15px;
height: 15px;
}
}
} }
} }
.manual-call-status { .manual-call-status {
...@@ -150,7 +142,7 @@ ...@@ -150,7 +142,7 @@
} }
} }
.basic-doctor { .basic-doctor {
width: 49%; width: 40%;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
.basic-user-img, .basic-user-img,
...@@ -201,21 +193,23 @@ ...@@ -201,21 +193,23 @@
color: #ff5e57; color: #ff5e57;
} }
.info-calling { .info-calling {
width: 15px; background: rgba(255, 94, 87, 0.07);
height: 25px; border-radius: 10px;
display: flex; border: 1px solid rgba(255, 94, 87, 0.15);
justify-content: center; height: 20px;
align-items: center; text-align: center;
img { font-size: 14px;
width: 15px; font-family: PingFangSC-Regular, PingFang SC;
height: 15px; font-weight: 400;
} color: #ff5e57;
line-height: 20px;
margin-top: 3px;
} }
} }
} }
} }
.no-info { .no-info {
width: 100%; width: 30%;
height: auto; height: auto;
color: #ff5e57; color: #ff5e57;
} }
......
...@@ -31,8 +31,9 @@ ...@@ -31,8 +31,9 @@
</li> </li>
<li class="inquiry-user-status"> <li class="inquiry-user-status">
<!-- 只有--> <!-- 只有-->
<!-- -->
<span <span
v-if="item.userId" v-if="!doctorLastCallTime && item.doctorCallKfStatus != 1"
:class=" :class="
doctorCallStatus === '已拨打完成' doctorCallStatus === '已拨打完成'
? 'status-cll-user-finish' ? 'status-cll-user-finish'
...@@ -44,7 +45,7 @@ ...@@ -44,7 +45,7 @@
class="status-cll-user-answer" class="status-cll-user-answer"
>正在呼叫</span> >正在呼叫</span>
<span <span
v-else v-if="doctorLastCallTime"
class="status-cll-user-answer" class="status-cll-user-answer"
> >
{{ doctorLastCallTime }}前呼叫医助</span> {{ doctorLastCallTime }}前呼叫医助</span>
...@@ -89,8 +90,18 @@ ...@@ -89,8 +90,18 @@
> >
呼叫中 呼叫中
</div> </div>
<div
v-if="item.userCallKfStatus == 2 && userLastCallTime"
class="info-calling"
>
<span v-if="userLastCallTime">
{{ userLastCallTime }} 前呼叫医助</span>
</div>
</li> </li>
<li class="inquiry-user-status"> <li
v-if="item.userCallKfStatus != 1 && userCallStatus"
class="inquiry-user-status"
>
<span <span
:class=" :class="
userCallStatus === '已拨打完成' userCallStatus === '已拨打完成'
...@@ -118,6 +129,12 @@ ...@@ -118,6 +129,12 @@
> >
暂停接诊 暂停接诊
</div> </div>
<div
v-if="item.acceptStatus == 4"
class="doctor-stop"
>
离开
</div>
</div> </div>
</div> </div>
<!-- 预约时间,复制单号 --> <!-- 预约时间,复制单号 -->
...@@ -133,7 +150,7 @@ ...@@ -133,7 +150,7 @@
</div> </div>
<div <div
v-else v-else
class="time" class="time notime"
> >
</div> </div>
...@@ -205,7 +222,6 @@ ...@@ -205,7 +222,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 排队详细 --> <!-- 排队详细 -->
<div <div
v-if="isShowWait" v-if="isShowWait"
......
...@@ -26,34 +26,6 @@ const socket = { ...@@ -26,34 +26,6 @@ const socket = {
console.log('socket disconnect----', socket); console.log('socket disconnect----', socket);
// state.socketClient.connect(); // state.socketClient.connect();
}); });
socketClient.on('diagnose_push_event', (socket) => {
const { list, allSize, countRespList } = socket;
console.log('-rootState', rootState, socket);
const { currentTabStatus } = rootState.main;
context.commit('main/updateCurrentCalList', countRespList, {
root: true,
});
context.commit('main/updateAllSize', allSize, { root: true });
if (list) {
const l = list[0] || [];
if (currentTabStatus == 99) {
context.commit('main/updateCurrentDiagList', list, { root: true });
} else {
if (currentTabStatus == l.returnStatus) {
context.commit('main/updateCurrentDiagList', list, {
root: true,
});
}
if (l.length == 0) {
context.commit('main/updateCurrentDiagList', list, {
root: true,
});
}
}
} else {
context.commit('main/updateCurrentDiagList', [], { root: true });
}
});
socketClient.on('diagnose_call_push_event', (socket) => { socketClient.on('diagnose_call_push_event', (socket) => {
console.log( console.log(
socket, socket,
...@@ -75,8 +47,9 @@ const socket = { ...@@ -75,8 +47,9 @@ const socket = {
if ( if (
path && path &&
String(path).indexOf('workbench') > -1 && String(path).indexOf('workbench') > -1 &&
n.operateUserId == operateUserId (n.operateUserId == operateUserId || n.operateUserId == '999999')
) { ) {
console.log(n);
const ni = { notifyInfo: n, rootState: rootState }; const ni = { notifyInfo: n, rootState: rootState };
context.commit('SET_NOTIFY', ni); context.commit('SET_NOTIFY', ni);
} }
......
...@@ -63,15 +63,21 @@ ...@@ -63,15 +63,21 @@
placeholder="输入问诊单号/医生姓名" placeholder="输入问诊单号/医生姓名"
class="input-with-select" class="input-with-select"
@change="getSerachValue" @change="getSerachValue"
/>
<el-button
slot="append"
class="search-botton"
@click="getSearchValue"
>
搜索
</el-button>
<el-button
slot="append"
class="reset-botton"
@click="resetSearchValue"
> >
<el-button 重置
slot="append" </el-button>
class="search-botton"
@click="getSearchValue"
>
搜索
</el-button>
</el-input>
</div> </div>
</div> </div>
<!-- 问诊状态内容 --> <!-- 问诊状态内容 -->
...@@ -350,13 +356,8 @@ ...@@ -350,13 +356,8 @@
this.tabPositionValue = this.$route.query.type || '3'; this.tabPositionValue = this.$route.query.type || '3';
}, },
mounted() { mounted() {
const s = storejs.get('soketQuest');
const id =
s && s.operateUserId ? s.operateUserId : this.isSuperAdmin.userID;
this.userInfo = storejs.get('initSocketInfo'); this.userInfo = storejs.get('initSocketInfo');
if (!id) { this.localUserId = this.userInfo.userId;
this.localUserId = this.userInfo.userId;
}
this.initCard(); this.initCard();
const that = this; const that = this;
// 轮循 // 轮循
...@@ -365,7 +366,7 @@ ...@@ -365,7 +366,7 @@
// that.isShowCardData = false; // that.isShowCardData = false;
that.initCard(); that.initCard();
}, 0); }, 0);
}, 40000); }, 15000);
this.doctorDeparList(); this.doctorDeparList();
}, },
destroyed() { destroyed() {
...@@ -450,17 +451,16 @@ ...@@ -450,17 +451,16 @@
} }
}); });
}, },
initCard() { initCard() {
const parms = { const parms = {
bizType: this.tabPositionValue, // 1,异常的列表 2,不需要处理的列表 bizType: this.tabPositionValue, // 1,异常的列表 2,不需要处理的列表
userId: this.operatId || this.localUserId, // userId userId: this.operatId || this.localUserId, // userId
}; };
// this.currentDiagList = this.mockData;
conditionNewList(parms) conditionNewList(parms)
.then((res) => { .then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.handleData(res.data.length > 0 ? res.data : this.mockData); this.handleData(res.data);
// this.handleData(res.data.length > 0 ? res.data : this.mockData);
} else { } else {
this.$message({ this.$message({
message: res.message, message: res.message,
...@@ -471,8 +471,8 @@ ...@@ -471,8 +471,8 @@
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
// mock 数据 // mock 数据
this.handleData(this.mockData); // this.handleData(this.mockData);
}); });
}, },
handleData(data) { handleData(data) {
...@@ -480,7 +480,6 @@ ...@@ -480,7 +480,6 @@
this.midCardData = []; this.midCardData = [];
const searchVal = this.orderOrName; const searchVal = this.orderOrName;
data.forEach((item, index) => { data.forEach((item, index) => {
// item.diagnoseLogId = '--' + Math.random() * 10;
item['definitionRandom'] = Math.random() * 10; item['definitionRandom'] = Math.random() * 10;
if (searchVal) { if (searchVal) {
// 如果有查询条件一直后去的是查询结果 // 如果有查询条件一直后去的是查询结果
...@@ -513,6 +512,10 @@ ...@@ -513,6 +512,10 @@
this.handleSearchResult(this.orderOrName); this.handleSearchResult(this.orderOrName);
} }
}, },
resetSearchValue() {
this.orderOrName = '';
this.initCard();
},
// 处理查询结果 // 处理查询结果
handleSearchResult(searchVal) { handleSearchResult(searchVal) {
this.isShowCardData = false; this.isShowCardData = false;
...@@ -645,10 +648,16 @@ ...@@ -645,10 +648,16 @@
margin-left: 8px; margin-left: 8px;
.el-input { .el-input {
width: 364px; width: 364px;
.search-botton { }
background: #0d9078; .search-botton {
color: #fff; background: #0d9078;
} color: #fff;
margin-left: 5px;
}
.reset-botton {
background: #0d9078;
color: #fff;
margin-left: 5px;
} }
} }
} }
...@@ -831,16 +840,4 @@ ...@@ -831,16 +840,4 @@
padding: 10px 0; padding: 10px 0;
background-color: #f9fafc; background-color: #f9fafc;
} }
// 屏幕适配
@media screen and (min-width: 1240px) and (max-width: 1441px) {
.workbench-container {
.workbench-li-c {
.grid-c {
.workbench-li {
//max-width: 572px;
}
}
}
}
}
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册