my_report_detail.html 11.3 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <script src="../../assets/js/fontsize.js"></script>
    <link rel="stylesheet" href="../../assets/css/api.css"/>
    <link rel="stylesheet" href="../../assets/css/style.css">
    <link rel="stylesheet" href="../../assets/css/index.css">
    <link rel="stylesheet" href="../../assets/css/doc.css">
    <link rel="stylesheet" href="../../assets/css/pay.css">
    <link rel="stylesheet" href="../../assets/icon/iconfont.css">
    <title></title>
    <style>
        body {
            height: 100%;
            padding-bottom: 1rem;
        }

        .order_box {
            background-color: #fff;
            display: flex;
            align-items: center;
            justify-content: space-around;
            font-size: 12px;
            color: #656565;
            padding: 0.16rem 0;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
        }

        .order_box span {
            padding: 0.12rem 0.1rem;
        }

        .order_box .order_box_active {
            color: #DDBB73;
            border-bottom: 0.04rem solid #DDBB73;
        }

        .hr {
            height: 0.15rem;
            background-color: #f5f5f5;
        }

        .order_num_box {
            display: flex;
            background-color: #fff;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: #878787;
            padding: 0.28rem 0.5rem 0.17rem 0.5rem;
            border-bottom: 1px solid #E4E4E4;
        }

        .order_num {
            font-size: 13px;
        }

        .all_order {
            font-size: 12px;
            padding-top: .2rem;
        }

        .all_order_item {
            /*border-top: 1px solid #E4E4E4;*/
            background-color: #fff;
        }

        .order_label {
            padding: 0.05rem 0.16rem;
            margin: 0 0 0.22rem 0;
            background-color: #dbb25f;
            font-size: 11px;
            color: #fff;
            border-radius: 0 0 0.1rem 0.1rem;
        }

        .order_time {
            color: #878787;
            font-size: 10px;
            padding: 0.25rem 0 0 0;
        }

        .order_total {
            font-size: 10px;
            color: #2E2D2D;
            display: flex;
            justify-content: flex-end;
            padding: 0 0 0.4rem 0;
        }

        .total_num {
            font-weight: 600;
            font-size: 15px;
        }

        .all_order_item_detail {
            padding: 0 0.5rem;
        }

        .report_title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.25rem 0.42rem;
            background-color: #f5f5f5;
            font-size: 15px;
            color: #424242;
        }

        .report_title .iconfont {
            color: #C0C0C0;
        }

        .set_item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #2E2D2D;
            font-size: 15px;
            background-color: #fff;
            padding: 0.35rem 0.42rem;
            border-bottom: 1px solid #E4E4E4;
        }

        .set_item:last-child {
            border: 0;
        }

        .set_item .iconfont {
            color: #dbb25f;
            margin-right: 0.1rem;
        }

        .icon-xiangyou {
            transform: rotate(90deg);
            transition: 0.2s;
        }

        .report_icon {
            transform: rotate(0);
            transition: 0.2s;
        }

        .set_textarea {
            display: flex;
            background-color: #f2f2f2;
            margin: 0 0.43rem;
            padding: 0.3rem 0.2rem;
            border-radius: 0.16rem;
        }

        .set_textarea textarea {
            flex: 1;
            margin-left: 0.1rem;
            height: 1.5rem;
        }

        .set_textarea .iconfont {
            color: #C2C1C3;
            margin-right: 0.1rem;
        }

        .set_textarea textarea::-webkit-input-placeholder {
            color: #C2C1C3;
        }

        .report_box {
            background-color: #fff;
            padding-bottom: 0.52rem;
            margin-bottom: 0.15rem;
        }

        .border0 {
            border: 0 !important;
        }

        .set_item_left {
            border-left: 0.13rem solid #dbb25f;
            padding: 0 0.25rem;
        }

        .icon-sangedian {
            color: #dbb25f;
        }

        .report_btn_box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 15px;
            color: #424242;
            padding: 0.42rem 0.45rem;
            /*position: fixed;*/
            /*bottom: 0;*/
            /*left: 0;*/
            /*width: 100%;*/
            /*z-index: 99;*/
            background-color: #fff;
        }

        .report_btn {
            padding: 0.14rem 0.7rem;
            color: #fff;
            background-color: #dbb25f;
            border-radius: 0.16rem;
        }

        .hr {
            height: 0.15rem;
            width: 100%;
            background-color: #f5f5f5;
            margin: 0.16rem 0 0 0;
        }
    </style>
</head>
<body>
<div id="loadStart"></div>
<div id="app">
    <div class="nodata" v-if="serverReport_list.length==0">暂无相关报告</div>
    <div v-else class="all_order">
        <div class="report_title"><span>服务报告</span>
        </div>
        <div class="report_box">
            <div class="set_item">
                <div>
                    <span class="iconfont icon-wenjian"></span>
                    <span style="font-weight: 600">基本信息</span>
                </div>
            </div>
            <div class="set_item">
                <div><span class="iconfont icon-yonghu"></span><span>姓名</span></div>
                <div>{{serverReport_list.name}}</div>
            </div>
            <div class="set_item">
                <div><span class="iconfont icon-xingbie"></span><span>性别</span></div>
                <div><span>{{serverReport_list.sex}}</span></div>
            </div>
            <div class="set_item">
                <div><span class="iconfont icon-baoyuefuwux"></span><span>出生日期</span></div>
                <div>{{serverReport_list.birthday}}</div>
            </div>
            <div class="set_item">
                <div><span class="iconfont icon-jiejuefangan"></span><span>服务项目</span></div>
                <div>{{serverReport_list.server_name}}</div>
            </div>
            <div class="set_item border0">
                <div>
                    <span class="iconfont icon-kefu"></span><span>客户主诉</span>
                </div>
            </div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.c_complained}}
            </div>
            <div class="set_item">
                <div><span class="iconfont icon-zhuangtai"></span><span style="font-weight: 600">状态和呵护</span></div>
            </div>
            <div class="set_item border0"><span class="set_item_left">精神状态与心理</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.mental}}
            </div>
            <div class="set_item border0"><span class="set_item_left">建议</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.mental_suggest}}
            </div>
            <div class="set_item border0"><span class="set_item_left">饮食与健康情况</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.eating}}
            </div>
            <div class="set_item border0"><span class="set_item_left">建议</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.eating_suggest}}
            </div>
            <div class="set_item border0"><span class="set_item_left">用药情况</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.medicine}}
            </div>
            <div class="set_item border0"><span class="set_item_left">建议</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.medicine_suggest}}
            </div>
            <div class="set_item border0"><span class="set_item_left">慢病康复情况</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.recovery}}
            </div>
            <div class="set_item border0"><span class="set_item_left">建议</span></div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.recovery_suggest}}
            </div>
            <div class="set_item border0">
                <div>
                    <span class="iconfont icon-sangedian"></span><span
                        class="set_item_left border0 padding0">其他情况</span>
                </div>
            </div>
            <div class="set_textarea"><span class="iconfont icon-tianxie"></span>
                {{serverReport_list.others}}
            </div>
            <div class="report_btn_box">
                <span>{{serverReport_list.job_type}}:{{serverReport_list.server_name}}</span>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript" src="../../assets/js/api.js"></script>
<script type="text/javascript" src="../../assets/js/public.js"></script>
<script type="text/javascript" src="../../assets/js/fastclick.js"></script>
<script>
    new FastClick(document.body);
</script>
<script type="text/javascript" src="../../assets/js/vue.min.js"></script>
<script type="text/javascript" src="../../assets/js/axios.min.js"></script>
<script type="text/javascript" src="../../assets/icon/iconfont.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            serverReport_list: [],
            report_id: ''
        },
        created: function () {
            apiready = function () {
                app.report_id = api.pageParam.report_id;
                app.serverReport();
            }
        },
        methods: {

            // 获取报告详情
            serverReport: function () {
                var header = {
                    "XX-Device-Type": getDevice(),
                    'XX-Token': getToken()
                };
                var post = {
                    id: app.report_id
                }
                getRequest('post', 'user/service/getServerReport', post, header).then(function (res) {
                    // alert(JSON.stringify(res.data.data));
                    if (res.data.code == 1) {
                        app.serverReport_list = res.data.data;
                    }
                    loadEnd();
                })
            },
        }
    })
</script>