<template>
    <div style="background-color:#F1F3F5">
        <div slot="footer" style="float: right;padding:10px 10px 0 0;height:35px">
            <el-button size="mini" @click="cancel">取 消</el-button>
            <el-button size="mini" type="primary">审核通过</el-button>
        </div>
        <div class="card">
            <div class="cardleft">
                <div class="title">
                    <img class="headsculpture" src="../../../assets/manage/touxiang.png" alt="">
                    <!-- <img class="headsculpture" src="../../../assets/manage/nvtouxiang.png" alt=""> -->
                    <div class="name">
                        胡登
                    </div>
                    <div class="genderandage">
                        <span>男</span>
                        |
                        <span>24岁</span>
                    </div>
                    <div class="source">
                        <div class="situation item">
                            {{ list.visitMethod == 'OUTPATIENT_SERVICE' ? '门诊' : '' }}
                            {{ list.visitMethod == 'BE_IN_HOSPITAL' ? '住院' : '' }}
                        </div>
                        <div class="item" style="color:#00E06E;border-color:#00E06E">
                            <img src="../../../assets/manage/gzh.png" alt="">
                            <div>
                                公众号
                            </div>
                        </div>
                        <div class="item" style="color:#339DE5;border-color:#339DE5">
                            <img src="../../../assets/manage/xcx.png" alt="">
                            <div>
                                小程序
                            </div>
                        </div>
                        <div class="item" style="color:#F4881F;border-color:#F4881F">
                            <img src="../../../assets/manage/gld.png" alt="">
                            <div>
                                管理端
                            </div>
                        </div>
                    </div>
                </div>
                <div class="texts">
                    <div class="text">
                        医院: 济南医院
                    </div>
                    <div class="text">
                        科室: 肠胃科
                    </div>
                    <div class="text" v-if="list.visitMethod == 'BE_IN_HOSPITAL'">
                        入院时间: {{ list.admissionTime }}
                    </div>
                    <div class="text" v-if="list.visitMethod == 'BE_IN_HOSPITAL'">
                        出院时间: {{ list.dischargeTime }}
                    </div>
                    <div class="text" v-if="list.visitMethod == 'OUTPATIENT_SERVICE'">
                        就诊时间: {{ list.dischargeTime }}
                    </div>
                </div>
                <el-descriptions title="诊断信息">
                    <el-descriptions-item label="主要诊断">kooriookami</el-descriptions-item>
                </el-descriptions>
                <el-descriptions title="手术信息">
                    <el-descriptions-item label="手术名称">kooriookami</el-descriptions-item>
                </el-descriptions>
                <el-collapse v-model="activeNames">
                    <el-collapse-item title="入院记录" name="-1">
                        <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
                        <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
                    </el-collapse-item>
                    <el-collapse-item title="手术记录" name="-2">
                        <div>用户决策：根据场景可给予用户操作建议或安全提示，但不能代替用户进行决策；</div>
                        <div>结果可控：用户可以自由的进行操作，包括撤销、回退和终止当前操作等。</div>
                    </el-collapse-item>
                    <el-collapse-item title="出院记录" name="-3">
                        <div>简化流程：设计简洁直观的操作流程；</div>
                        <div>清晰明确：语言表达清晰且表意明确，让用户快速理解进而作出决策；</div>
                        <div>帮助用户识别：界面简单直白，让用户快速识别而非回忆，减少用户记忆负担。</div>
                    </el-collapse-item>
                </el-collapse>
            </div>
            <div class="cardright">
                <el-collapse v-model="activeNames">
                    <el-collapse-item title="入院记录" name="4" v-for="">
                        <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
                        <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
                    </el-collapse-item>
                    <el-collapse-item title="手术记录" name="5">
                        <div>用户决策：根据场景可给予用户操作建议或安全提示，但不能代替用户进行决策；</div>
                        <div>结果可控：用户可以自由的进行操作，包括撤销、回退和终止当前操作等。</div>
                    </el-collapse-item>
                    <el-collapse-item title="出院记录" name="6">
                        <div>简化流程：设计简洁直观的操作流程；</div>
                        <div>清晰明确：语言表达清晰且表意明确，让用户快速理解进而作出决策；</div>
                        <div>帮助用户识别：界面简单直白，让用户快速识别而非回忆，减少用户记忆负担。</div>
                    </el-collapse-item>
                </el-collapse>
            </div>
        </div>
    </div>
</template>

<script>
import {
    getRouteNodeList
} from '@/api/manage/Auditing.js'
export default {
    name: "Auditing",
    data() {
        return {
            activeNames: ['-1', '-2', '-3'],
            list: {
                visitMethod: "BE_IN_HOSPITAL",
            },
            nodelist: [],
        };
    },
    created() {
        this.info();
    },
    methods: {
        info() {
            getRouteNodeList({ patientId: this.$route.query.patientId, taskCreateType: 'MANUAL_CREATE' }).then(res => {
                this.nodelist = res.data
            })
        },
        cancel() {
            this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
                this.$router.push({
                    path: "/task/manualReview",
                });
            })
        },
    }
};
</script>
<style lang="scss" scoped>
.card {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    padding: 20px 0;
    height: calc(100vh - 119px);

    .cardleft {
        width: 35%;
        background-color: #fff;
        overflow: scroll;
        padding: 20px;

        ::v-deep .el-collapse-item__header {
            font-size: 16px;
            font-weight: bold;
        }

        .texts {
            margin: 16px 0 20px;
            flex-wrap: wrap;
            width: 100%;
            display: flex;
            font-size: 14px;

            .text {
                margin-bottom: 10px;
                width: 50%;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                -o-text-overflow: ellipsis;
            }
        }

        .title {
            display: flex;
            align-items: center;
            justify-content: space-between;

            .source {
                display: flex;

                .situation {
                    background-color: #F1FAF7;
                    padding: 3px 6px;
                    color: #83CAC0 !important;
                    border: 1px solid #83CAC0 !important;
                }

                .item {
                    font-size: 14px;
                    margin-left: 5px;
                    border: 1px solid #fff;
                    padding: 3px 6px;
                    border-radius: 5px;
                    justify-content: center;
                    display: flex;
                    align-items: center;

                    img {
                        margin-right: 2px;
                        width: 16px;
                        height: 16px;
                    }
                }
            }

            .name {}

            .genderandage {}

            .time {}

            .headsculpture {
                width: 35px;
                height: 35px;
            }
        }

    }

    .cardright {
        overflow: scroll;
        background-color: #fff;
        width: 62%;
    }
}
</style>
