See999 4 年前
父节点
当前提交
22bc31f4be

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

4
     :visible.sync="isLastOrNextVisible"
4
     :visible.sync="isLastOrNextVisible"
5
     @close="hide"
5
     @close="hide"
6
     width="1010px"
6
     width="1010px"
7
+    class="callPrescription"
7
     :modal-append-to-body="false"
8
     :modal-append-to-body="false"
8
   >
9
   >
9
     <el-date-picker
10
     <el-date-picker
36
 
37
 
37
 
38
 
38
     <div v-for="(item,index) in allPrescription" :key="index">
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
       <el-checkbox-group v-model="item.check_group">
41
       <el-checkbox-group v-model="item.check_group">
41
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
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
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
44
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
44
                     :row-style="{ color: '#303133' }"
45
                     :row-style="{ color: '#303133' }"
45
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
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
               <template slot-scope="scope">
49
               <template slot-scope="scope">
49
                 <span>{{ scope.row.advice_name }}</span>
50
                 <span>{{ scope.row.advice_name }}</span>
50
               </template>
51
               </template>
52
 
53
 
53
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
54
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
54
               <template slot-scope="scope">
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
               </template>
57
               </template>
59
             </el-table-column>
58
             </el-table-column>
60
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
59
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
68
               </template>
67
               </template>
69
             </el-table-column>
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
               <template slot-scope="scope">
71
               <template slot-scope="scope">
73
                 {{scope.row.day}}
72
                 {{scope.row.day}}
74
               </template>
73
               </template>
76
 
75
 
77
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
76
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
78
               <template slot-scope="scope">
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
               </template>
79
               </template>
83
             </el-table-column>
80
             </el-table-column>
84
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
81
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
86
                 <div>{{scope.row.retail_price}}</div>
83
                 <div>{{scope.row.retail_price}}</div>
87
               </template>
84
               </template>
88
             </el-table-column>
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
               <template slot-scope="scope">
87
               <template slot-scope="scope">
91
                 <div>{{scope.row.remark}}</div>
88
                 <div>{{scope.row.remark}}</div>
92
               </template>
89
               </template>
95
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
92
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
96
                     :row-style="{ color: '#303133' }"
93
                     :row-style="{ color: '#303133' }"
97
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
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
               <template slot-scope="scope">
97
               <template slot-scope="scope">
101
                 <span>{{ scope.row.project.project_name }}</span>
98
                 <span>{{ scope.row.project.project_name }}</span>
102
               </template>
99
               </template>
104
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
101
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
105
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
102
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
106
             </el-table-column>
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
               <template slot-scope="scope">
105
               <template slot-scope="scope">
109
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
106
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
110
                 <span>{{ scope.row.single_dose }}</span>
107
                 <span>{{ scope.row.single_dose }}</span>
134
             </el-table-column>
131
             </el-table-column>
135
             <el-table-column align="center" prop="total" width="70" label="总量">
132
             <el-table-column align="center" prop="total" width="70" label="总量">
136
               <template slot-scope="scope">
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
               </template>
135
               </template>
142
             </el-table-column>
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
               <template slot-scope="scope">
138
               <template slot-scope="scope">
145
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
139
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
146
                 <span>{{ scope.row.price }}</span>
140
                 <span>{{ scope.row.price }}</span>
147
 
141
 
148
               </template>
142
               </template>
149
             </el-table-column>
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
               <template slot-scope="scope">
145
               <template slot-scope="scope">
152
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
146
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
153
                 <span>{{ scope.row.remark }}</span>
147
                 <span>{{ scope.row.remark }}</span>
349
   }
343
   }
350
 </script>
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
 </style>
356
 </style>

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

84
             </el-tab-pane>
84
             </el-tab-pane>
85
             <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
85
             <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
86
             </el-tab-pane>
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
             </div>
103
             </div>
102
 
104
 
105
+            
106
+
103
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
107
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
104
                                 :activeType="customTabIndex"></prescription-table>
108
                                 :activeType="customTabIndex"></prescription-table>
105
           </el-tabs>
109
           </el-tabs>

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

5
     @close="hide"
5
     @close="hide"
6
     width="1010px"
6
     width="1010px"
7
     :modal-append-to-body="false"
7
     :modal-append-to-body="false"
8
+    class="isLastOrNext"
8
   >
9
   >
9
-    <div class="txsj">
10
+    <div class="txsj" style="text-align:center;">
10
       <el-button
11
       <el-button
11
         round
12
         round
12
 
13
 
22
     </div>
23
     </div>
23
 
24
 
24
     <div v-for="(item,index) in allPrescription" :key="index">
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
       <el-checkbox-group v-model="item.check_group">
27
       <el-checkbox-group v-model="item.check_group">
27
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
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
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
30
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
30
                     :row-style="{ color: '#303133' }"
31
                     :row-style="{ color: '#303133' }"
31
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
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
               <template slot-scope="scope">
35
               <template slot-scope="scope">
35
                 <span>{{ scope.row.advice_name }}</span>
36
                 <span>{{ scope.row.advice_name }}</span>
36
               </template>
37
               </template>
38
 
39
 
39
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
40
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
40
               <template slot-scope="scope">
41
               <template slot-scope="scope">
41
-                <div style="display:flex;align-items:center;">
42
                   <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
42
                   <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
43
-                </div>
44
               </template>
43
               </template>
45
             </el-table-column>
44
             </el-table-column>
46
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
45
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
54
               </template>
53
               </template>
55
             </el-table-column>
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
               <template slot-scope="scope">
57
               <template slot-scope="scope">
59
                 {{scope.row.day}}
58
                 {{scope.row.day}}
60
               </template>
59
               </template>
62
 
61
 
63
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
62
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
64
               <template slot-scope="scope">
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
               </template>
65
               </template>
69
             </el-table-column>
66
             </el-table-column>
70
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
67
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
72
                 <div>{{scope.row.retail_price}}</div>
69
                 <div>{{scope.row.retail_price}}</div>
73
               </template>
70
               </template>
74
             </el-table-column>
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
               <template slot-scope="scope">
73
               <template slot-scope="scope">
77
                 <div>{{scope.row.remark}}</div>
74
                 <div>{{scope.row.remark}}</div>
78
               </template>
75
               </template>
81
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
78
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
82
                     :row-style="{ color: '#303133' }"
79
                     :row-style="{ color: '#303133' }"
83
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
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
               <template slot-scope="scope">
83
               <template slot-scope="scope">
87
                 <span>{{ scope.row.project.project_name }}</span>
84
                 <span>{{ scope.row.project.project_name }}</span>
88
               </template>
85
               </template>
90
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
87
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
91
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
88
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
92
             </el-table-column>
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
               <template slot-scope="scope">
91
               <template slot-scope="scope">
95
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
92
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
96
                 <span>{{ scope.row.single_dose }}</span>
93
                 <span>{{ scope.row.single_dose }}</span>
120
             </el-table-column>
117
             </el-table-column>
121
             <el-table-column align="center" prop="total" width="70" label="总量">
118
             <el-table-column align="center" prop="total" width="70" label="总量">
122
               <template slot-scope="scope">
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
                   <div>{{ scope.row.total }}{{scope.row.unit}}</div>
120
                   <div>{{ scope.row.total }}{{scope.row.unit}}</div>
126
-                </div>
127
               </template>
121
               </template>
128
             </el-table-column>
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
               <template slot-scope="scope">
124
               <template slot-scope="scope">
131
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
125
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
132
                 <span>{{ scope.row.price }}</span>
126
                 <span>{{ scope.row.price }}</span>
133
 
127
 
134
               </template>
128
               </template>
135
             </el-table-column>
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
               <template slot-scope="scope">
131
               <template slot-scope="scope">
138
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
132
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
139
                 <span>{{ scope.row.remark }}</span>
133
                 <span>{{ scope.row.remark }}</span>
410
   }
404
   }
411
 </script>
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
 </style>
417
 </style>