chenyc
2025-08-28 feef4b0ba52922aa9d35aaeed77f397aaf95f0fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<template>
    <div class="report">
        <van-nav-bar
            title=""
            left-text="返回"
            left-arrow
            @click="fanhui"
        />
        <div class="inputdiv">
            <van-field left-icon="search" class="input" v-model="inputValue" placeholder="模糊匹配项目、医嘱名称" />
        </div>
        <div class="listdiv">
            <div class="listrow" v-for="(order,index) in pageData" :key="index">
                <van-row>
                    <div class="info"></div>
                    <van-row class="lable">
                        <van-col span="18">
                            <span class="labletext">医嘱名称:</span>
                            <span>{{order.drugName}}</span>
                        </van-col>
                        <van-col span="6" style="text-align: right;color: #769aff;font-weight: 400;">长期医嘱</van-col>
                    </van-row>
                    <van-row class="lable3">
                        <van-col span="24">
                            <span class="labletext">医嘱内容:</span>
                            <span>
                                规格:{{order.drugSpec}}
                                用量:{{order.orderUsage}} {{order.drugUnit}}
                                {{order.drugFrom}}
                                {{order.orderFreq}}
                            </span>
                        </van-col>
                    </van-row>
                    <van-row class="lable">
                        <van-col span="12">
                            <span class="labletext">开嘱医生:</span>
                            <span>{{order.orderDoctor}}</span>
                        </van-col>
                        <van-col span="12">
                            <span class="labletext">开嘱时间:</span>
                            <span>{{order.orderTime?.substring(0,10)}}</span>
                        </van-col>
                    </van-row>
                </van-row>
            </div>
        </div>
    </div>
</template>
<script lang="ts" setup>
    import {ref,watch,onMounted} from 'vue'
    import {ajaxPost} from '@/utils/axios'
    import { Toast } from 'vant'
    import { userInfoStore } from '@/stores/userInfo'
    import {useRouter} from 'vue-router'
    const userInfo = userInfoStore()
    const router=useRouter()
    const inputValue=ref('')
    const pageData=ref([])
    const fanhui=()=>{
        router.go(-1)
    }
    const chaxu=()=>{
 
        const pams={
            orderName:inputValue.value,
            orderIsUse:2,
            patientCode:userInfo.patient.patientInfo.code
        }
        const toast1=  Toast.loading({
            message: '加载中...',
            forbidClick: true,
        })
        ajaxPost('/patient/drug/order/vs/patient/list3',pams).then((re:any)=>{
            console.log(re)
            pageData.value=re
        }).finally(()=>{
            toast1.clear()
        })
    }
    watch(inputValue,()=>{
        chaxu()
    })
    onMounted(()=>{
        chaxu()
    })
</script>
<style lang="scss">
    .report {
        background-color: #f6faff;
        padding: 0;
 
        .inputdiv {
            width: 94%;
            margin-left: 3%;
            margin-top: 10px;
 
            .input {
                width: 100%;
 
                // height: 33px;
                border-radius: 22px;
                border: 1px solid #dadada;
 
                // line-height: 33px;
            }
        }
    }
 
    .listdiv {
        .listrow {
            margin-top: 10px;
            width: 94%;
            margin-left: 3%;
            background: #fff;
            box-shadow: 0 2px 4px 0 rgba(70, 150, 249, 0.1);
            border-radius: 8px;
 
            .lable {
                width: 90%;
                margin-left: 5%;
                height: 40px;
 
                div {
                    height: 40px;
                    font-size: 13px;
                    font-family: Arial, sans-serif;
                    font-weight: 400;
                    color: #2a2a2a;
                    line-height: 40px;
                    border-bottom: #f1f1f2 1px solid;
 
                    .labletext {
                        font-weight: 400;
                        color: #777;
                    }
                }
            }
 
            .lable3 {
                width: 90%;
                margin-left: 5%;
                height: 40px;
 
                div {
                    height: 40px;
                    font-size: 13px;
                    font-family: Arial, sans-serif;
                    font-weight: 400;
                    color: #2a2a2a;
                    line-height: 20px;
                    border-bottom: #f1f1f2 1px solid;
 
                    .labletext {
                        font-weight: 400;
                        color: #777;
                    }
                }
            }
        }
    }
</style>