提交 4c1c44c4 编写于 作者: zhaosheng.zhang's avatar zhaosheng.zhang

fix: 问题优化

上级 c379479c
......@@ -54,9 +54,9 @@
<div v-else-if="scope.column.property == 'assistantTime'">
<div :style="{ color: isAssistantTime(scope) ? 'red' : ''}">
<p v-if="isAssistantTime(scope)">
距自动取消还剩
距自动结束还剩
</p>
<p>{{ updateCountdown(scope.row.assistantTime) }}</p>
<p>{{ goTime(scope.row.assistantTime) }}</p>
</div>
</div>
<div v-else-if="scope.column.property == 'receptionTime'">
......@@ -66,7 +66,7 @@
}"
>
<p v-if="scope.row.diagnoseChannel === 3 && scope.row.status === 3">
距自动取消还剩
距自动结束还剩
</p>
<p>{{ goTime(scope.row.receptionTime) }}</p>
</div>
......@@ -459,25 +459,6 @@
|| scope.row.status === 26)
) return true;
},
// 48小时倒计时
updateCountdown(endTime) {
if (!endTime) return '';
const currentTime = new Date().getTime();
const newEndTime = new Date().getTime() + endTime;
const timeLeft = newEndTime - currentTime;
if (timeLeft >= 0) {
let hours = Math.floor((timeLeft / (1000 * 60 * 60)) % 24);
let minutes = Math.floor((timeLeft / (1000 * 60)) % 60);
let seconds = Math.floor((timeLeft / 1000) % 60);
hours = hours > 9 ? hours : '0' + hours;
minutes = minutes > 9 ? minutes : '0' + minutes;
seconds = seconds > 9 ? seconds : '0' + seconds;
return `${hours} : ${minutes} : ${seconds}`;
} else {
return '';
}
}
},
};
</script>
......
......@@ -725,7 +725,7 @@
:img-list="formData.illnessImageUrls"
/>
</el-form-item>
<el-form-item label="检测报告">
<el-form-item label="病情文件">
<div
v-for="item in formData.illnessPdfUrls"
:key="item.name"
......
......@@ -1433,13 +1433,21 @@ export default {
},
// 重新匹配医生
reMatchDot(row, type) {
this.rematchingOptions = [
'接诊医生爽约',
'上级医生日程改变,提前取消',
'操作失误,重新匹配医生',
'助诊医生爽约',
'科室不对'
];
if (row.diagnoseChannel === 3) {
this.rematchingOptions = [
'接诊医生爽约',
'上级医生日程改变,提前取消',
'操作失误,重新匹配医生',
];
} else {
this.rematchingOptions = [
'接诊医生爽约',
'上级医生日程改变,提前取消',
'操作失误,重新匹配医生',
'助诊医生爽约',
'科室不对'
];
}
// this.rematchingOptions=
// this.options=
this.rematchingVisible = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册