See999 4 years ago
parent
commit
717de6eae6

+ 3 - 13
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

@@ -9,12 +9,8 @@
9 9
 
10 10
       <el-table-column align="center" prop="name" width="90" label="单次用量">
11 11
         <template slot-scope="scope">
12
-          <div style="display:flex;align-items:center;">
13 12
             <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
14
-            <div> {{scope.row.single_dose}}</div>
15
-
16
-            <div> {{scope.row.single_dose_unit}}</div>
17
-          </div>
13
+            <div>{{scope.row.single_dose}}&nbsp;&nbsp;{{scope.row.single_dose_unit}}</div>
18 14
         </template>
19 15
       </el-table-column>
20 16
       <el-table-column align="center" prop="name" width="100" label="用法">
@@ -33,19 +29,13 @@
33 29
       </el-table-column>
34 30
 
35 31
       <el-table-column align="center" prop="day" width="50" label="天数">
36
-        <template slot-scope="scope">
37
-          {{scope.row.day}}
38
-        </template>
32
+        <template slot-scope="scope">{{scope.row.day}}</template>
39 33
       </el-table-column>
40 34
 
41 35
       <el-table-column align="center" prop="name" width="100" label="总量">
42 36
         <template slot-scope="scope">
43
-          <div style="display:flex;align-items:center;">
44 37
             <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
45
-            <div> {{scope.row.prescribing_number}}</div>
46
-
47
-            <div>{{scope.row.prescribing_number_unit}}</div>
48
-          </div>
38
+            <div>{{scope.row.prescribing_number}}&nbsp;&nbsp;{{scope.row.prescribing_number_unit}}</div>
49 39
         </template>
50 40
       </el-table-column>
51 41
       <el-table-column align="center" prop="name" width="60" label="单价">

+ 42 - 20
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -3,19 +3,19 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
     </div>
6
-    <div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
6
+    <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7 7
       <div class="mainLeft">
8
-        <div class="mainCell" style="justify-content: space-between;">
8
+        <!-- <div class="mainCell" style="justify-content: space-between;">
9 9
           <p style="color: red">未收费:<span>{{cal_one}}</span>人</p>
10 10
           <p style="color: red">已收费:<span>{{cal_two}}</span>人</p>
11 11
           <p style="color: red">已退费:<span>{{cal_three}}</span>人</p>
12 12
 
13
-        </div>
13
+        </div> -->
14 14
         <div class="mainCell">
15 15
           <el-radio-group v-model="radio" @change="changeRadio">
16
-            <el-radio :label=1>未收费</el-radio>
17
-            <el-radio :label=2>已收费</el-radio>
18
-            <el-radio :label=3>已退费</el-radio>
16
+            <el-radio :label=1>未收费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_one}}</span>人</el-radio>
17
+            <el-radio :label=2>已收费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_two}}</span>人</el-radio>
18
+            <el-radio :label=3>已退费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_three}}</span>人</el-radio>
19 19
             <el-radio :label=4>全部</el-radio>
20 20
 
21 21
           </el-radio-group>
@@ -43,10 +43,10 @@
43 43
       </div>
44 44
       <div class="mainRight">
45 45
 
46
-        <div class="mainCell" style="margin-bottom:10px;flex-direction: row-reverse;">
46
+        <div class="mainCell fixedCell" style="margin-bottom:10px;">
47 47
           <!-- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
48 48
           <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button> -->
49
-          <el-button size="small" @click="open(3)" type="primary" style="margin-left:10px;">打印</el-button>
49
+          <el-button size="small" @click="open(3)" type="primary">打印</el-button>
50 50
           <el-button v-loading="loadingone" size="small"
51 51
                      @click="open(6)"
52 52
                      v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"
@@ -68,7 +68,7 @@
68 68
                 <div class="centerLeft">
69 69
                   <div class="tabsBox">
70 70
                     <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>
71
-                    <el-tabs class="preTabs" v-model="editableTabsValue" type="card" @tab-click="tabclickEvent">
71
+                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card" @tab-click="tabclickEvent">
72 72
                       <el-tab-pane
73 73
                         v-for="(item, index) in prescriptions"
74 74
                         :key="index"
@@ -119,14 +119,14 @@
119 119
                     <li style="width:100%;">地址:{{patientInfo.home_address}}</li>
120 120
                     <li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>
121 121
                   </ul>
122
-                  <p class="centerRightTitle">诊断信息</p>
122
+                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>
123 123
                   <div style="display:flex;justify-content: space-between;line-height:30px;">
124 124
                     <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number}}</span>
125 125
                   </div>
126 126
                   <ul class="basicUl">
127 127
                     <li style="width:50%;">医生:{{ info.doctor }}</li>
128 128
                     <li style="width:50%;">科室:{{ info.departments }}</li>
129
-                    <li style="width:50%;">总费用:{{ getTotal() }}</li>
129
+                    <li style="width:100%;">总费用:{{ getTotal() }}</li>
130 130
 
131 131
                     <li style="width:100%;">判断结果:{{info.diagnosis}}</li>
132 132
                     <li style="width:100%;">是否有传染病:</li>
@@ -250,7 +250,7 @@
250 250
         prescriptions: [],
251 251
         record_date: '',
252 252
         tableData: [],
253
-        editableTabsValue: '1',
253
+        editableTabsValue: '处方1',
254 254
         loadingone: false,
255 255
         editableTabs: [{
256 256
           title: '处方1',
@@ -279,7 +279,7 @@
279 279
       }
280 280
     },
281 281
     created() {
282
-      let tableHeight = document.body.clientHeight - 263
282
+      let tableHeight = document.body.clientHeight - 243
283 283
       this.tableHeight = tableHeight
284 284
       var nowDate = new Date()
285 285
       var nowYear = nowDate.getFullYear()
@@ -865,7 +865,7 @@
865 865
       fullHeight(val) {
866 866
         if (!this.timer) {
867 867
           this.fullHeight = val
868
-          let tableHeight = val - 263
868
+          let tableHeight = val - 243
869 869
           this.tableHeight = tableHeight
870 870
           this.timer = true
871 871
           let that = this
@@ -893,6 +893,7 @@
893 893
     height: 100%;
894 894
     display: flex;
895 895
     flex-direction: column;
896
+    margin-top: 20px;
896 897
 
897 898
   .el-radio {
898 899
     margin-right: 5px;
@@ -904,9 +905,17 @@
904 905
     display: flex;
905 906
     align-items: center;
906 907
   }
908
+  .fixedCell{
909
+    position: fixed;
910
+    z-index: 99;
911
+    right: 42px;
912
+    background: #fff;
913
+    display: flex;
914
+    justify-content: space-between;
915
+  }
907 916
 
908 917
   .mainRight {
909
-    margin-left: 20px;
918
+    margin-left: 10px;
910 919
     flex: 1;
911 920
     height: 100%;
912 921
     display: flex;
@@ -933,8 +942,8 @@
933 942
   }
934 943
   .addTab {
935 944
     position: absolute;
936
-    right: 0;
937
-    top: 6px;
945
+    right: 6px;
946
+    top: 3px;
938 947
     z-index: 20;
939 948
   }
940 949
 
@@ -959,7 +968,14 @@
959 968
     display: flex;
960 969
     flex-direction: column;
961 970
     position: relative;
962
-    height: 100%;
971
+  }
972
+  .preTabs{
973
+    height:100%;
974
+    display: flex;
975
+    flex-direction: column;
976
+    .el-tab-pane{
977
+      height:auto !important;
978
+    }
963 979
   }
964 980
 
965 981
   .settlementTabs {
@@ -976,7 +992,7 @@
976 992
   }
977 993
   .centerRight {
978 994
     width: 300px;
979
-    margin-left: 5px;
995
+    margin-left: 10px;
980 996
     display: flex;
981 997
     flex-direction: column;
982 998
     overflow-y: auto;
@@ -990,7 +1006,6 @@
990 1006
 
991 1007
   .centerRightTitle {
992 1008
     color: #409EFF;
993
-    padding-top: 10px;;
994 1009
   }
995 1010
 
996 1011
   .basicUl {
@@ -1028,5 +1043,12 @@
1028 1043
   }
1029 1044
 
1030 1045
   }
1046
+  .preTabs{
1047
+    .el-tabs__content{
1048
+      flex: 1;
1049
+      overflow-y: auto;
1050
+      padding: 5px 0 5px 5px;
1051
+    }
1052
+  }
1031 1053
 </style>
1032 1054
 

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue View File

@@ -41,7 +41,7 @@
41 41
         </div>
42 42
         <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
43 43
       </div>
44
-      <el-table :data="tableData" border height="500" style="width: 100%;" :row-style="{ color: '#303133' }"
44
+      <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
45 45
                 :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
46 46
         <el-table-column
47 47
           prop="date"

+ 11 - 26
src/xt_pages/outpatientCharges/summaryDetail.vue View File

@@ -7,7 +7,7 @@
7 7
             <div class="mainCenter">
8 8
                 <div class="centerLeft">
9 9
                     <div class="tabsBox">
10
-                      <el-table  :data="tableData" border style="width: 99%;"
10
+                      <el-table  :data="tableData" border style="width: 100%;"
11 11
                                 :row-style="{ color: '#303133' }"
12 12
                                 :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
13 13
 
@@ -15,7 +15,7 @@
15 15
                           <template slot-scope="scope">{{ scope.row.name }}</template>
16 16
                         </el-table-column>
17 17
 
18
-                        <el-table-column align="center" prop="project_name" label="分类">
18
+                        <el-table-column align="center" prop="project_name" label="分类" width="100">
19 19
                           <template slot-scope="scope">{{ scope.row.type == 1?'药品':'项目' }}</template>
20 20
                         </el-table-column>
21 21
 
@@ -26,50 +26,36 @@
26 26
                           </template>
27 27
                         </el-table-column>
28 28
                         <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
29
-                          <template slot-scope="scope">
30
-                            <!--<el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>-->
31
-                            {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
32
-                          </template>
29
+                          <template slot-scope="scope">{{scope.row.single_dose}}&nbsp;&nbsp;{{scope.row.single_dose_unit}}</template>
33 30
                         </el-table-column>
34
-                        <el-table-column align="center" prop="delivery_way" width="80" label="用法">
31
+                        <el-table-column align="center" prop="delivery_way" width="90" label="用法">
35 32
                           <template slot-scope="scope">
36 33
                             <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
37 34
                             {{scope.row.delivery_way}}
38 35
 
39 36
                           </template>
40 37
                         </el-table-column>
41
-                        <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
42
-                          <template slot-scope="scope">
43
-                            <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
44
-                            {{scope.row.execution_frequency}}
45
-
46
-                          </template>
38
+                        <el-table-column align="center" prop="execution_frequency" width="90" label="频率">
39
+                          <template slot-scope="scope">{{scope.row.execution_frequency}}</template>
47 40
                         </el-table-column>
48
-                        <el-table-column align="center" prop="number_days" width="50" label="天数">
41
+                        <el-table-column align="center" prop="number_days" width="60" label="天数">
49 42
                           <template slot-scope="scope">
50 43
                             <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
51 44
                             {{scope.row.day}}
52 45
 
53 46
                           </template>
54 47
                         </el-table-column>
55
-                        <el-table-column align="center" prop="total" width="50" label="总量">
56
-                          <template slot-scope="scope">
57
-                            <div style="display:flex;">
58
-                              <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
59
-                              {{scope.row.count}}
60
-                              <div>{{scope.row.prescribing_number_unit}}</div>
61
-
62
-                            </div>
63
-                          </template>
48
+                        <el-table-column align="center" prop="total" width="60" label="总量">
49
+                          <template slot-scope="scope">{{scope.row.count}}&nbsp;&nbsp;{{scope.row.prescribing_number_unit}}</template>
64 50
                         </el-table-column>
65
-                        <el-table-column align="center" prop="name" width="50" label="单价">
51
+                        <el-table-column align="center" prop="name" width="60" label="单价">
66 52
                           <template slot-scope="scope">
67 53
                             <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
68 54
                             {{scope.row.price}}
69 55
 
70 56
                           </template>
71 57
                         </el-table-column>
72
-                        <el-table-column align="center" prop="name" width="50" label="备注">
58
+                        <el-table-column align="center" prop="name" width="80" label="备注">
73 59
                           <template slot-scope="scope">
74 60
                             <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
75 61
                             {{scope.row.remark}}
@@ -398,7 +384,6 @@ export default {
398 384
 .summaryDetail{
399 385
     .el-table th .cell, .el-table td .cell{
400 386
         padding: 0 2px;
401
-        white-space: pre-line;
402 387
     }
403 388
     .el-icon-delete{
404 389
         color:red;

+ 85 - 40
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div style="height: calc(100% - 54px);display: flex;flex-direction: column;margin-top: 54px;">
2
+  <div style="height: calc(100% - 56px);display: flex;flex-direction: column;margin-top: 56px;">
3 3
     <!-- <div style="border-top:1px solid #e5e5e5;margin-top:5px;">
4 4
       <div class="mainCell" style="margin-bottom:10px;float:right">
5 5
         <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
@@ -12,16 +12,16 @@
12 12
     <div class="mainCenter">
13 13
       <div class="centerLeft">
14 14
         <el-form :model="form" ref="form" label-width="80px" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
15
-          <el-form-item label="姓名:" prop="name">
15
+          <el-form-item label="姓名:" prop="name" label-position="right">
16 16
             <el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
17 17
           </el-form-item>
18
-          <el-form-item label="证件号: " prop="name">
18
+          <el-form-item label="证件号: " prop="name" label-position="right">
19 19
             <el-input v-model="patientInfo.id_card_no" placeholder="" readonly></el-input>
20 20
           </el-form-item>
21 21
           <!--<el-form-item label="挂号类型: " prop="name">-->
22 22
           <!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
23 23
           <!--</el-form-item>-->
24
-          <el-form-item label="挂号类型: " prop="name">
24
+          <el-form-item label="挂号类型: " prop="name" label-position="right">
25 25
             <el-select style="width:100%;" v-model="register_type" placeholder="">
26 26
               <el-option
27 27
                 v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
@@ -31,7 +31,7 @@
31 31
               </el-option>
32 32
             </el-select>
33 33
           </el-form-item>
34
-          <el-form-item label="疾病类型:" prop="name">
34
+          <el-form-item label="疾病类型:" prop="name" label-position="right">
35 35
 
36 36
             <el-select style="width:100%;" v-model="state1" placeholder="">
37 37
               <el-option
@@ -43,7 +43,7 @@
43 43
             </el-select>
44 44
 
45 45
           </el-form-item>
46
-          <el-form-item label="过敏病史: " prop="name">
46
+          <el-form-item label="过敏病史: " prop="name" label-position="right">
47 47
             <el-autocomplete
48 48
               style="width:100%;"
49 49
               class="inline-input"
@@ -52,6 +52,9 @@
52 52
               placeholder="请输入内容"
53 53
             ></el-autocomplete>
54 54
           </el-form-item>
55
+          <el-form-item label="过敏病史: " prop="name" style="visibility: hidden;">
56
+            <el-input placeholder="" readonly></el-input>
57
+          </el-form-item>
55 58
         </el-form>
56 59
         <div class="tabsBox">
57 60
 
@@ -75,29 +78,31 @@
75 78
 
76 79
         </div>
77 80
         <div class="costBox">
78
-          <span>医生:</span>
79
-          <el-select style="margin-right:5px;width:140px;" v-model="doctorValue" placeholder="" @change="changeDoctor">
80
-            <el-option
81
-              v-for="(item,index) in doctors"
82
-              :key="index"
83
-              :label="item.user_name"
84
-              :value="item.admin_user_id">
85
-            </el-option>
86
-          </el-select>
87
-          <span>科室:</span>
88
-          <el-select style="margin-right:5px;width:140px;" v-model="departmentValue" placeholder="">
89
-            <el-option
90
-              v-for="(item,index) in department"
91
-              :key="index"
92
-              :label="item.name"
93
-              :value="item.id">
94
-            </el-option>
95
-          </el-select>
96
-          <span>当前处方总价:</span>
97
-          <span style="color:red;">{{getTotalOne()?getTotalOne():''}}</span>元
98
-          <span style="margin-left:10px;">总价:</span>
99
-          <span style="color:red;">{{ getTotal()?getTotal():''}}</span>元
100
-          <span>{{order_status}}</span>
81
+          <div>
82
+            <span>医生:</span>
83
+            <el-select style="margin-right:5px;width:140px;" v-model="doctorValue" placeholder="" @change="changeDoctor">
84
+              <el-option
85
+                v-for="(item,index) in doctors"
86
+                :key="index"
87
+                :label="item.user_name"
88
+                :value="item.admin_user_id">
89
+              </el-option>
90
+            </el-select>
91
+            <span>科室:</span>
92
+            <el-select style="margin-right:5px;width:140px;" v-model="departmentValue" placeholder="">
93
+              <el-option
94
+                v-for="(item,index) in department"
95
+                :key="index"
96
+                :label="item.name"
97
+                :value="item.id">
98
+              </el-option>
99
+            </el-select>
100
+            <span>当前处方总价:</span>
101
+            <span style="color:red;">{{getTotalOne()?getTotalOne():''}}</span>元
102
+            <span style="margin-left:10px;">总价:</span>
103
+            <span style="color:red;">{{ getTotal()?getTotal():''}}</span>元
104
+          </div>
105
+          <span :class="order_status == '未收费' ? 'statusRed' : ''">{{order_status}}</span>
101 106
 
102 107
         </div>
103 108
       </div>
@@ -106,7 +111,7 @@
106 111
           <p :class="rightTab == 1 ? 'activeP' : ''" @click="clickTab(1)">药品</p>
107 112
           <p :class="rightTab == 2 ? 'activeP' : ''" @click="clickTab(2)">项目</p>
108 113
         </div> -->
109
-        <el-tabs class="borderCard" type="border-card" v-model="rightTab" @tab-click="clickTab">
114
+        <el-tabs class="borderCard" type="border-card" v-model="rightTab" @tab-click="clickTab" :before-leave='beforeLeave'>
110 115
               <el-tab-pane label="药品" :name="1">
111 116
 
112 117
               </el-tab-pane>
@@ -132,14 +137,14 @@
132 137
                           </el-option>
133 138
                         </el-select>
134 139
                       </div>
135
-                      <div style="width: 100%;flex:1;overflow-y: auto;">
136
-                        <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
140
+                      <div style="width: 100%;flex:1;overflow: hidden;" ref="rightTable">
141
+                        <el-table ref="multipleTable" :height="multipleTableHeight != '' ? multipleTableHeight : '200'" :data="drugs" border @select='selectDrugs'
137 142
                                   :row-style="{ color: '#303133' }"
138 143
                                   @select-all="changeAllGoodInfoTableData"
139 144
                                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
140 145
                                   highlight-current-row>
141 146
                           <el-table-column type="selection" width="40" align="center"></el-table-column>
142
-                          <el-table-column prop="name" label="名称">
147
+                          <el-table-column label="名称">
143 148
                             <template slot-scope="scope">{{ scope.row.drug_name }}</template>
144 149
                           </el-table-column>
145 150
                           <el-table-column label="规格" width="60">
@@ -173,7 +178,7 @@
173 178
                         </el-select>
174 179
                       </div>
175 180
                       <div style="width: 100%;flex:1;overflow-y: auto;">
176
-                        <el-table ref="multipleTableTwo" :data="advices_template" border
181
+                        <el-table ref="multipleTableTwo" :height="multipleTableHeight != '' ? multipleTableHeight : '200'" :data="advices_template" border
177 182
                                   :row-style="{ color: '#303133' }"
178 183
                                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
179 184
                                   highlight-current-row>
@@ -199,7 +204,7 @@
199 204
                 <el-tabs class="rightTabs" v-model="activeName">
200 205
                   <el-tab-pane label="项目列表" name="1">
201 206
                     <div style="width: 100%;flex:1;overflow-y: auto;">
202
-                      <el-table ref="tables" :data="tabProject" border @select='selectChange'
207
+                      <el-table ref="tables" :height="multipleTableHeight != '' ? multipleTableHeight : '200'" :data="tabProject" border @select='selectChange'
203 208
                                 :row-style="{ color: '#303133' }"
204 209
                                 @select-all="changeAllGoodInfoTableDataTwo"
205 210
                                 :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
@@ -219,7 +224,7 @@
219 224
                   </el-tab-pane>
220 225
                   <el-tab-pane label="项目组套" name="2">
221 226
                     <div style="width: 100%;flex:1;overflow-y: auto;">
222
-                      <el-table :data="tabPrjectTeam" border
227
+                      <el-table :data="tabPrjectTeam" border :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
223 228
                                 :row-style="{ color: '#303133' }"
224 229
                                 :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
225 230
                                 highlight-current-row
@@ -255,7 +260,7 @@
255 260
                 </el-option>
256 261
               </el-select>
257 262
             </div> -->
258
-            <el-button type="primary" size="small" style="width:100%;" @click="comfirm">确定添加</el-button>
263
+            <el-button type="primary" style="width:100%;" @click="comfirm">确定添加</el-button>
259 264
           </div>
260 265
         </template>
261 266
       </div>
@@ -312,6 +317,7 @@
312 317
     },
313 318
     data() {
314 319
       return {
320
+        multipleTableHeight:'',
315 321
         register_type: '',
316 322
         value: '0',
317 323
         form: {
@@ -886,6 +892,19 @@
886 892
         })
887 893
 
888 894
       },
895
+      beforeLeave(activeName, oldActiveName){
896
+        let index = activeName
897
+        if (index == 1) {
898
+          if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0) {
899
+            return false
900
+          }
901
+        } else {
902
+          if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
903
+            return false
904
+          }
905
+
906
+        }
907
+      },
889 908
       clickTab(tab) {
890 909
         let index = parseInt(tab.name)
891 910
         if (index == 1) {
@@ -1150,9 +1169,26 @@
1150 1169
       this.getlist()
1151 1170
       //获取所以项目组套
1152 1171
       this.getAllProjectTeam()
1153
-
1154
-
1172
+      this.$nextTick(() => {
1173
+        this.multipleTableHeight = parseInt(this.$refs.rightTable.offsetHeight)
1174
+      })
1175
+      
1155 1176
     },
1177
+    watch: {
1178
+      fullHeight (val) {
1179
+        if(!this.timer) {
1180
+          this.fullHeight = val
1181
+          let tableHeight = val - 263
1182
+          this.tableHeight = tableHeight
1183
+          this.multipleTableHeight = parseInt(this.$refs.rightTable.offsetHeight)
1184
+          this.timer = true
1185
+          let that = this
1186
+          setTimeout(function (){
1187
+            that.timer = false
1188
+          },400)
1189
+        }
1190
+      }
1191
+    }
1156 1192
   }
1157 1193
 </script>
1158 1194
 
@@ -1178,6 +1214,7 @@
1178 1214
     height: 100%;
1179 1215
     display: flex;
1180 1216
     flex-direction: column;
1217
+    margin-top: 2px;
1181 1218
 
1182 1219
   .el-radio {
1183 1220
     margin-right: 5px;
@@ -1263,11 +1300,15 @@
1263 1300
     bottom: 0;
1264 1301
     display: flex;
1265 1302
     align-items: center;
1303
+    justify-content: space-between;
1304
+  }
1305
+  .statusRed{
1306
+    color:red;
1266 1307
   }
1267 1308
 
1268 1309
   .addTab {
1269 1310
     position: absolute;
1270
-    right: 3px;
1311
+    right: 8px;
1271 1312
     top: 3px;
1272 1313
     z-index: 20;
1273 1314
   }
@@ -1320,6 +1361,7 @@
1320 1361
     display: flex;
1321 1362
     align-items: center;
1322 1363
     justify-content: space-between;
1364
+    z-index: 99;
1323 1365
   }
1324 1366
   .borderCard{
1325 1367
     height: 100%;
@@ -1427,4 +1469,7 @@
1427 1469
   }
1428 1470
 
1429 1471
   }
1472
+  ::-webkit-scrollbar{
1473
+    height:15px;
1474
+  }
1430 1475
 </style>

+ 19 - 3
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="deskRecord" style="margin-top:54px;">
2
+  <div class="deskRecord" style="margin-top:56px;">
3 3
     <!-- <div style="overflow:hidden;border-top:1px solid #e5e5e5;margin-top:5px;">
4 4
       <div class="mainCell" style="margin-bottom:10px;float:right">
5 5
         <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
@@ -14,8 +14,7 @@
14 14
         <el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
15 15
       </el-form-item>
16 16
       <el-form-item label="性别: " prop="name">
17
-        <div v-if="patientInfo.gender == 1">男</div>
18
-        <div v-if="patientInfo.gender == 2">女</div>
17
+        <el-input v-model="patientInfo.gender" placeholder="" readonly></el-input>
19 18
       </el-form-item>
20 19
       <el-form-item label="年龄: " prop="name">
21 20
         <el-input v-model="patientInfo.age" placeholder="" readonly></el-input>
@@ -297,11 +296,28 @@
297 296
     created(){
298 297
        this.wayOptions = getDataConfig("patient", "reimbursement_ways");
299 298
        console.log("232322323",this)
299
+       if(this.patientInfo.gender = 1){
300
+         this.patientInfo.gender = '男'
301
+       }else if(this.patientInfo.gender = 2){
302
+          this.patientInfo.gender = '女'
303
+        }
300 304
        
301 305
     },
302 306
     watch:{
303 307
       detalid:function(val){
304 308
         this.getTemplateDetail(val)
309
+      },
310
+      'patientInfo.gender':{
311
+        handler(newName, oldName){
312
+          console.log('newName',newName)
313
+          if(newName == 1){
314
+            this.patientInfo.gender = '男'
315
+          }else if(newName == 2){
316
+            this.patientInfo.gender = '女'
317
+          }
318
+        },
319
+        immediate: true,
320
+        deep: true
305 321
       }
306 322
     }
307 323
   }

+ 8 - 14
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue View File

@@ -1,19 +1,18 @@
1 1
 <template>
2 2
   <div class="prescriptionTable">
3
-    <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
3
+    <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 100%;"
4 4
               :row-style="{ color: '#303133' }"
5 5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6 6
       <el-table-column align="center" prop="name" label="名称">
7 7
         <template slot-scope="scope">{{ scope.row.drug_name }}</template>
8 8
       </el-table-column>
9 9
 
10
-      <el-table-column align="center" prop="name" width="50" :label="'单次\n用量'">
10
+      <el-table-column align="center" prop="name" width="100" label="单次用量">
11 11
         <template slot-scope="scope">
12
-          <el-input v-model="scope.row.single_dose" readonly></el-input>
13
-          <div> {{scope.row.single_dose_unit}}</div>
12
+          <div>{{ scope.row.single_dose }} &nbsp;&nbsp; {{scope.row.single_dose_unit}}</div>
14 13
         </template>
15 14
       </el-table-column>
16
-      <el-table-column align="center" prop="name" width="50" label="用法">
15
+      <el-table-column align="center" prop="name" width="90" label="用法">
17 16
         <template slot-scope="scope">
18 17
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
19 18
           <div> {{scope.row.delivery_way}}</div>
@@ -21,7 +20,7 @@
21 20
 
22 21
         </template>
23 22
       </el-table-column>
24
-      <el-table-column align="center" prop="name" width="50" label="频率">
23
+      <el-table-column align="center" prop="name" width="90" label="频率">
25 24
         <template slot-scope="scope">
26 25
           <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
27 26
           <div> {{scope.row.execution_frequency}}</div>
@@ -31,22 +30,17 @@
31 30
 
32 31
       <el-table-column align="center" prop="name" width="100" label="总量">
33 32
         <template slot-scope="scope">
34
-          <div style="display:flex;">
35
-            <!--<el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>-->
36
-            <div> {{scope.row.prescribing_number}}</div>
37
-
38
-            <div>{{scope.row.prescribing_number_unit}}</div>
39
-          </div>
33
+          <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
40 34
         </template>
41 35
       </el-table-column>
42
-      <el-table-column align="center" prop="name" width="50" label="单价">
36
+      <el-table-column align="center" prop="name" width="80" label="单价">
43 37
         <template slot-scope="scope">
44 38
           <div> {{scope.row.retail_price}}</div>
45 39
 
46 40
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
47 41
         </template>
48 42
       </el-table-column>
49
-      <el-table-column align="center" prop="name" width="50" label="备注">
43
+      <el-table-column align="center" prop="name" width="80" label="备注">
50 44
         <template slot-scope="scope">
51 45
           <!--<el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>-->
52 46
           <div> {{scope.row.remark}}</div>

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -101,10 +101,10 @@
101 101
           <el-input v-model="scope.row.number_days" placeholder=""></el-input>
102 102
         </template>
103 103
       </el-table-column>
104
-      <el-table-column align="center" prop="total" width="50" label="总量">
104
+      <el-table-column align="center" prop="total" width="70" label="总量">
105 105
         <template slot-scope="scope">
106
-          <div style="display:flex;">
107
-            <el-input v-model="scope.row.total" style="width:50" placeholder=""></el-input>
106
+          <div style="display:flex;align-items:center;">
107
+            <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
108 108
             <div>{{scope.row.unit}}</div>
109 109
 
110 110
           </div>

+ 13 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -45,17 +45,17 @@
45 45
             <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
46 46
           </el-tabs>
47 47
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
48
-            <el-button size="small" ref="button_one"   @click="open(1)" type="primary">保存</el-button>
48
+            <el-button size="small" ref="button_one" @click="open(1)" type="primary">保存</el-button>
49 49
             <el-popover
50 50
               placement="bottom"
51 51
               width="200"
52 52
               trigger="click">
53
-              <el-button size="small" ref="button_two"   @click="open(2)" type="primary">处方单</el-button>
54
-              <el-button size="small" ref="button_six"   @click="open(6)" type="primary">治疗单</el-button>
53
+              <el-button size="small" ref="button_two"   @click="open(2)">处方单</el-button>
54
+              <el-button size="small" ref="button_six"   @click="open(6)">治疗单</el-button>
55 55
               <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
56 56
             </el-popover>
57 57
             <el-button size="small" ref="button_three" @click="open(4)" type="primary">选择模板</el-button>
58
-            <el-button size="small" ref="button_four"  @click="open(5)" type="primary">存模板</el-button>
58
+            <el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button>
59 59
           </div>
60 60
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
61 61
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
@@ -753,7 +753,15 @@
753 753
 
754 754
   }
755 755
   .preTabs {
756
-    height: 100%;
756
+      height: 100%;
757
+      display: flex;
758
+      flex-direction: column;
759
+
760
+    .el-tabs__content {
761
+      flex: 1;
762
+      overflow-y: auto;
763
+    }
764
+
757 765
   }
758 766
 
759 767
   .costBox {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

@@ -21,7 +21,7 @@
21 21
         <el-table-column align="center" prop="name" label="姓名" width="100">
22 22
           <template slot-scope="scope">{{ scope.row.patients.name }}</template>
23 23
         </el-table-column>
24
-        <el-table-column align="center" prop="name" label="处方日期" width="110">
24
+        <el-table-column align="center" prop="name" label="处方日期" width="200">
25 25
           <template slot-scope="scope"> {{getTimes(scope.row.info.ctime)}}</template>
26 26
 
27 27
         </el-table-column>
@@ -37,7 +37,7 @@
37 37
         <el-table-column align="center" prop="name" label="诊断">
38 38
           <template slot-scope="scope">{{ scope.row.info.diagnosis }}</template>
39 39
         </el-table-column>
40
-        <el-table-column align="center" prop="name" label="状态">
40
+        <el-table-column align="center" prop="name" label="状态" width="100">
41 41
           <template slot-scope="scope">
42 42
             <div v-if=" scope.row.info.id == 0">未就诊</div>
43 43
             <div v-if=" scope.row.info.id > 0">已就诊</div>

+ 3 - 3
src/xt_pages/outpatientRegistration/index.vue View File

@@ -39,7 +39,7 @@
39 39
                         <el-date-picker v-model="form.birthday" type="date" @change="getBirthday" placeholder="选择日期"></el-date-picker>
40 40
                     </el-form-item>
41 41
 
42
-                    <el-form-item label="手机号码" prop="phone">
42
+                    <el-form-item label="手机号码" prop="phone">
43 43
                         <el-input v-model="form.phone"></el-input>
44 44
                     </el-form-item>
45 45
 
@@ -90,7 +90,7 @@
90 90
                     </el-form-item>
91 91
 
92 92
 
93
-                   <el-form-item label="社保类型:">
93
+                   <el-form-item label="社保类型">
94 94
                         <el-select v-model="form.social_type" placeholder="请选择">
95 95
                             <!-- <el-option
96 96
                             v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
@@ -602,7 +602,7 @@ export default {
602 602
         width: 33%;
603 603
     }
604 604
     .specialFormItem{
605
-        width:67%;
605
+        width:66.5%;
606 606
         .el-input{
607 607
             min-width: 150px;
608 608
         }

+ 3 - 4
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -7,7 +7,6 @@
7 7
             <div class="cell clearfix">
8 8
                 <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
9 9
                 <el-autocomplete
10
-                  style="margin:16px 5px"
11 10
                   popper-class="my-autocomplete"
12 11
                   v-model.trim="search_input"
13 12
                   :fetch-suggestions="querySearchAsync"
@@ -71,7 +70,7 @@
71 70
                         <span v-if="scope.row.register_type == 5">专家</span>
72 71
                     </template>
73 72
                 </el-table-column>
74
-                <el-table-column align="center" prop="name" label="就诊号" width="80">
73
+                <el-table-column align="center" prop="name" label="就诊号" width="140">
75 74
                     <template slot-scope="scope">
76 75
                         {{scope.row.number}}
77 76
                     </template>
@@ -99,8 +98,8 @@
99 98
                 </el-table-column>
100 99
                 <el-table-column align="center" prop="name" label="操作" width="80">
101 100
                     <template slot-scope="scope">
102
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
103
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
101
+                        <el-button size="mini" type="info" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
102
+                        <el-button size="mini" type="info" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
104 103
                         <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" :disabled="true">已就诊</el-button>  
105 104
                     </template>
106 105
                 </el-table-column>