See999 4 年之前
父節點
當前提交
22bc31f4be

+ 25 - 23
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue 查看文件

@@ -4,6 +4,7 @@
4 4
     :visible.sync="isLastOrNextVisible"
5 5
     @close="hide"
6 6
     width="1010px"
7
+    class="callPrescription"
7 8
     :modal-append-to-body="false"
8 9
   >
9 10
     <el-date-picker
@@ -36,15 +37,15 @@
36 37
 
37 38
 
38 39
     <div v-for="(item,index) in allPrescription" :key="index">
39
-      <div>引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
40
+      <div class="quote" v-if="item.prescriptions.length > 0">引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
40 41
       <el-checkbox-group v-model="item.check_group">
41 42
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
42
-          <el-checkbox :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
43
+          <el-checkbox style="margin:10px 0;" :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
43 44
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
44 45
                     :row-style="{ color: '#303133' }"
45 46
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
46
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
47
-            <el-table-column align="center" prop="drug_name"  width="100" label="名称">
47
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
48
+            <el-table-column align="center" prop="drug_name"  width="160" label="名称">
48 49
               <template slot-scope="scope">
49 50
                 <span>{{ scope.row.advice_name }}</span>
50 51
               </template>
@@ -52,9 +53,7 @@
52 53
 
53 54
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
54 55
               <template slot-scope="scope">
55
-                <div style="display:flex;align-items:center;">
56
-                  <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
57
-                </div>
56
+                <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
58 57
               </template>
59 58
             </el-table-column>
60 59
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
@@ -68,7 +67,7 @@
68 67
               </template>
69 68
             </el-table-column>
70 69
 
71
-            <el-table-column align="center" prop="day" width="50" label="天数">
70
+            <el-table-column align="center" prop="day" width="60" label="天数">
72 71
               <template slot-scope="scope">
73 72
                 {{scope.row.day}}
74 73
               </template>
@@ -76,9 +75,7 @@
76 75
 
77 76
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
78 77
               <template slot-scope="scope">
79
-                <div style="display:flex;align-items:center;">
80
-                  <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
81
-                </div>
78
+                <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
82 79
               </template>
83 80
             </el-table-column>
84 81
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
@@ -86,7 +83,7 @@
86 83
                 <div>{{scope.row.retail_price}}</div>
87 84
               </template>
88 85
             </el-table-column>
89
-            <el-table-column align="center" prop="remark" width="200" label="备注">
86
+            <el-table-column align="center" prop="remark" label="备注">
90 87
               <template slot-scope="scope">
91 88
                 <div>{{scope.row.remark}}</div>
92 89
               </template>
@@ -95,8 +92,8 @@
95 92
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
96 93
                     :row-style="{ color: '#303133' }"
97 94
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
98
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
99
-            <el-table-column align="center" prop="project_name" width="100" label="名称">
95
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
96
+            <el-table-column align="center" prop="project_name" width="160" label="名称">
100 97
               <template slot-scope="scope">
101 98
                 <span>{{ scope.row.project.project_name }}</span>
102 99
               </template>
@@ -104,7 +101,7 @@
104 101
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
105 102
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
106 103
             </el-table-column>
107
-            <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
104
+            <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
108 105
               <template slot-scope="scope">
109 106
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
110 107
                 <span>{{ scope.row.single_dose }}</span>
@@ -134,20 +131,17 @@
134 131
             </el-table-column>
135 132
             <el-table-column align="center" prop="total" width="70" label="总量">
136 133
               <template slot-scope="scope">
137
-                <div style="display:flex;align-items:center;">
138
-                  <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
139
-                  <div>{{ scope.row.total }}{{scope.row.unit}}</div>
140
-                </div>
134
+                <div>{{ scope.row.total }}{{scope.row.unit}}</div>
141 135
               </template>
142 136
             </el-table-column>
143
-            <el-table-column align="center" prop="name" width="50" label="单价">
137
+            <el-table-column align="center" prop="name" width="60" label="单价">
144 138
               <template slot-scope="scope">
145 139
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
146 140
                 <span>{{ scope.row.price }}</span>
147 141
 
148 142
               </template>
149 143
             </el-table-column>
150
-            <el-table-column align="center" prop="name" width="100" label="备注">
144
+            <el-table-column align="center" prop="name" label="备注">
151 145
               <template slot-scope="scope">
152 146
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
153 147
                 <span>{{ scope.row.remark }}</span>
@@ -349,6 +343,14 @@
349 343
   }
350 344
 </script>
351 345
 
352
-<style scoped>
353
-
346
+<style lang="scss">
347
+.callPrescription{
348
+  .el-dialog__body{
349
+    padding:0px 20px 30px;
350
+  }
351
+  .quote{
352
+    margin-top: 10px;
353
+    font-size: 14px;
354
+  }
355
+}
354 356
 </style>

+ 18 - 14
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -84,22 +84,26 @@
84 84
             </el-tab-pane>
85 85
             <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
86 86
             </el-tab-pane>
87
-            <div class="RP">Rp</div>
88
-
89
-            <div style="float: right">
90
-              <el-button
91
-                round
92
-                @click="openLast(3)"
93
-              >上一方
94
-              </el-button>
95
-
96
-              <el-button
97
-                round
98
-                @click="openNext(4)"
99
-              >下一方
100
-              </el-button>
87
+            <div class="RP">Rp
88
+              <div style="float: right;margin-bottom:5px;margin-right:1%;">
89
+                <el-button
90
+                  round
91
+                  size="small"
92
+                  @click="openLast(3)"
93
+                >上一方
94
+                </el-button>
95
+
96
+                <el-button
97
+                  round
98
+                  size="small"
99
+                  @click="openNext(4)"
100
+                >下一方
101
+                </el-button>
102
+              </div>
101 103
             </div>
102 104
 
105
+            
106
+
103 107
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
104 108
                                 :activeType="customTabIndex"></prescription-table>
105 109
           </el-tabs>

+ 24 - 22
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue 查看文件

@@ -5,8 +5,9 @@
5 5
     @close="hide"
6 6
     width="1010px"
7 7
     :modal-append-to-body="false"
8
+    class="isLastOrNext"
8 9
   >
9
-    <div class="txsj">
10
+    <div class="txsj" style="text-align:center;">
10 11
       <el-button
11 12
         round
12 13
 
@@ -22,15 +23,15 @@
22 23
     </div>
23 24
 
24 25
     <div v-for="(item,index) in allPrescription" :key="index">
25
-      <div>引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
26
+      <div class="quote">引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
26 27
       <el-checkbox-group v-model="item.check_group">
27 28
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
28
-          <el-checkbox :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
29
+          <el-checkbox style="margin:10px 0;" :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
29 30
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
30 31
                     :row-style="{ color: '#303133' }"
31 32
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
32
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
33
-            <el-table-column align="center" prop="drug_name"  width="100" label="名称">
33
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
34
+            <el-table-column align="center" prop="drug_name"  width="160" label="名称">
34 35
               <template slot-scope="scope">
35 36
                 <span>{{ scope.row.advice_name }}</span>
36 37
               </template>
@@ -38,9 +39,7 @@
38 39
 
39 40
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
40 41
               <template slot-scope="scope">
41
-                <div style="display:flex;align-items:center;">
42 42
                   <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
43
-                </div>
44 43
               </template>
45 44
             </el-table-column>
46 45
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
@@ -54,7 +53,7 @@
54 53
               </template>
55 54
             </el-table-column>
56 55
 
57
-            <el-table-column align="center" prop="day" width="50" label="天数">
56
+            <el-table-column align="center" prop="day" width="60" label="天数">
58 57
               <template slot-scope="scope">
59 58
                 {{scope.row.day}}
60 59
               </template>
@@ -62,9 +61,7 @@
62 61
 
63 62
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
64 63
               <template slot-scope="scope">
65
-                <div style="display:flex;align-items:center;">
66
-                  <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
67
-                </div>
64
+                <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
68 65
               </template>
69 66
             </el-table-column>
70 67
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
@@ -72,7 +69,7 @@
72 69
                 <div>{{scope.row.retail_price}}</div>
73 70
               </template>
74 71
             </el-table-column>
75
-            <el-table-column align="center" prop="remark" width="200" label="备注">
72
+            <el-table-column align="center" prop="remark" label="备注">
76 73
               <template slot-scope="scope">
77 74
                 <div>{{scope.row.remark}}</div>
78 75
               </template>
@@ -81,8 +78,8 @@
81 78
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
82 79
                     :row-style="{ color: '#303133' }"
83 80
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
84
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
85
-            <el-table-column align="center" prop="project_name" width="100" label="名称">
81
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
82
+            <el-table-column align="center" prop="project_name" width="160" label="名称">
86 83
               <template slot-scope="scope">
87 84
                 <span>{{ scope.row.project.project_name }}</span>
88 85
               </template>
@@ -90,7 +87,7 @@
90 87
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
91 88
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
92 89
             </el-table-column>
93
-            <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
90
+            <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
94 91
               <template slot-scope="scope">
95 92
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
96 93
                 <span>{{ scope.row.single_dose }}</span>
@@ -120,20 +117,17 @@
120 117
             </el-table-column>
121 118
             <el-table-column align="center" prop="total" width="70" label="总量">
122 119
               <template slot-scope="scope">
123
-                <div style="display:flex;align-items:center;">
124
-                  <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
125 120
                   <div>{{ scope.row.total }}{{scope.row.unit}}</div>
126
-                </div>
127 121
               </template>
128 122
             </el-table-column>
129
-            <el-table-column align="center" prop="name" width="50" label="单价">
123
+            <el-table-column align="center" prop="name" width="60" label="单价">
130 124
               <template slot-scope="scope">
131 125
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
132 126
                 <span>{{ scope.row.price }}</span>
133 127
 
134 128
               </template>
135 129
             </el-table-column>
136
-            <el-table-column align="center" prop="name" width="100" label="备注">
130
+            <el-table-column align="center" prop="name" label="备注">
137 131
               <template slot-scope="scope">
138 132
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
139 133
                 <span>{{ scope.row.remark }}</span>
@@ -410,6 +404,14 @@
410 404
   }
411 405
 </script>
412 406
 
413
-<style scoped>
414
-
407
+<style lang="scss">
408
+.isLastOrNext{
409
+  .el-dialog__body{
410
+    padding:0px 20px 30px;
411
+  }
412
+  .quote{
413
+    margin-top: 10px;
414
+    font-size: 14px;
415
+  }
416
+}
415 417
 </style>