Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 4 years ago
parent
commit
d2488035f2

+ 4 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -6,8 +6,8 @@
6 6
     <div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
7 7
       <div class="mainLeft">
8 8
         <div class="mainCell" style="justify-content: space-between;">
9
-        <p>未就诊:<span>1</span>人</p>
10
-        <p>已就诊:<span>0</span>人</p>
9
+        <p style="font-size:14px;">未就诊:<span>1</span>人</p>
10
+        <p style="font-size:14px;">已就诊:<span>0</span>人</p>
11 11
         </div>
12 12
         <div class="mainCell">
13 13
         <el-radio-group v-model="radio" @change="changeRadio">
@@ -117,7 +117,7 @@
117 117
                   <ul class="basicUl">
118 118
                     <li style="width:50%;">医生:{{ info.doctor }}</li>
119 119
                     <li style="width:50%;">科室:{{ info.departments }}</li>
120
-                    <li style="width:50%;">总费用:{{ getTotal() }}</li>
120
+                    <li style="width:100%;">总费用:{{ getTotal() }}</li>
121 121
 
122 122
                     <li style="width:100%;">判断结果:{{info.diagnosis}}</li>
123 123
                     <li style="width:100%;">是否有传染病:</li>
@@ -776,6 +776,7 @@
776 776
     margin-left: 5px;
777 777
     display: flex;
778 778
     flex-direction: column;
779
+    overflow-y: auto;
779 780
   }
780 781
 
781 782
   .RP {

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

@@ -218,7 +218,7 @@ export default {
218 218
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
219 219
 
220 220
       const style =
221
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:750px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
221
+        '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
222 222
       printJS({
223 223
         printable: "prescription-print",
224 224
         type: "html",

+ 15 - 15
src/xt_pages/outpatientCharges/template/printOne.vue View File

@@ -7,22 +7,22 @@
7 7
             <p>年龄:12岁</p>
8 8
         </div>
9 9
         <div class="infoMain">
10
-            <p style="margin-bottom: 10px;">门诊号:111111111111</p>
11
-            <p style="margin-bottom: 10px;">科室:全科</p>
12
-            <p style="margin-bottom: 10px;">医保卡号:111111111111</p>
13
-            <p style="margin-bottom: 10px;">电话:111111111111</p>
14
-            <p>地址:加上来看待就卢萨卡的及拉丝机的了</p>
15
-            <p>临床诊断:拉胯手机上的拉丝机的</p>
10
+            <div style="margin-bottom: 10px;">门诊号:111111111111</div>
11
+            <div style="margin-bottom: 10px;">科室:全科</div>
12
+            <div style="margin-bottom: 10px;">医保卡号:111111111111</div>
13
+            <div style="margin-bottom: 10px;">电话:111111111111</div>
14
+            <div>地址:加上来看待就卢萨卡的及拉丝机的了</div>
15
+            <div>临床诊断:拉胯手机上的拉丝机的</div>
16 16
         </div>
17 17
         <div class="prescriptionBox">
18
-            <p class="Rp">Rp:</p>
18
+            <div class="Rp">Rp:</div>
19 19
             <div class="drugsBox">
20
-                <p class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</p>
21
-                <p style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></p>
20
+                <div class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</div>
21
+                <div style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></div>
22 22
             </div>
23 23
             <div class="drugsBox">
24
-                <p class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</p>
25
-                <p style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></p>
24
+                <div class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</div>
25
+                <div style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></div>
26 26
             </div>
27 27
         </div>
28 28
         <div class="doctorBox">
@@ -63,13 +63,13 @@
63 63
     border-bottom: 2px solid #000;
64 64
     padding:0 10px;
65 65
 }
66
-.infoMain p{
66
+.infoMain div{
67 67
     width: 50%;
68 68
     line-height: 24px;
69 69
 }
70 70
 .prescriptionBox{
71 71
     padding:0 10px;
72
-    height:600px;
72
+    min-height:450px;
73 73
 }
74 74
 .Rp{
75 75
     font-size: 22px;
@@ -79,8 +79,8 @@
79 79
     padding-left: 40px;
80 80
     margin-bottom: 10px;
81 81
 }
82
-.drugsBox p{
83
-    line-height: 30px;
82
+.drugsBox div{
83
+    line-height: 20px;
84 84
 }
85 85
 .drugsOne{
86 86
     line-height: 24px;

+ 172 - 124
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div style="height: calc(100% - 36px);display: flex;flex-direction: column;margin-top: 36px;">
2
+  <div style="height: calc(100% - 54px);display: flex;flex-direction: column;margin-top: 54px;">
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>
@@ -8,10 +8,10 @@
8 8
         <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
9 9
       </div>
10 10
     </div> -->
11
-    <div class="backColor"></div>
11
+    <!-- <div class="backColor"></div> -->
12 12
     <div class="mainCenter">
13 13
       <div class="centerLeft">
14
-        <el-form :model="form" ref="form" label-width="80px">
14
+        <el-form :model="form" ref="form" label-width="80px" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
15 15
           <el-form-item label="姓名:" prop="name">
16 16
             <el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
17 17
           </el-form-item>
@@ -22,7 +22,7 @@
22 22
           <!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
23 23
           <!--</el-form-item>-->
24 24
           <el-form-item label="挂号类型: " prop="name">
25
-            <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
25
+            <el-select style="width:100%;" v-model="register_type" placeholder="">
26 26
               <el-option
27 27
                 v-for="(item,index) in this.register_types"
28 28
                 :key="index"
@@ -32,7 +32,7 @@
32 32
             </el-select>
33 33
           </el-form-item>
34 34
           <el-form-item label="医疗类型: " prop="name">
35
-            <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
35
+            <el-select style="width:100%;" v-model="register_type" placeholder="">
36 36
               <el-option
37 37
                 v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
38 38
                 :key="index"
@@ -43,7 +43,7 @@
43 43
           </el-form-item>
44 44
           <el-form-item label="诊断:" prop="name">
45 45
 
46
-            <el-select style="margin-right:5px;" v-model="state1" placeholder="">
46
+            <el-select style="width:100%;" v-model="state1" placeholder="">
47 47
               <el-option
48 48
                 v-for="(item,index) in sick"
49 49
                 :key="index"
@@ -66,7 +66,7 @@
66 66
         <div class="tabsBox">
67 67
 
68 68
           <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
69
-          <el-tabs class="preTabs" v-model="editableTabsValue" type="card" closable @tab-remove="removeTab"
69
+          <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card" closable @tab-remove="removeTab"
70 70
                    :before-leave="moreState" @tab-click="tabclickEvent">
71 71
             <el-tab-pane
72 72
               v-for="(item, index) in prescriptions"
@@ -112,119 +112,134 @@
112 112
         </div>
113 113
       </div>
114 114
       <div class='centerRight'>
115
-        <div class="rightTab">
115
+        <!-- <div class="rightTab">
116 116
           <p :class="rightTab == 1 ? 'activeP' : ''" @click="clickTab(1)">药品</p>
117 117
           <p :class="rightTab == 2 ? 'activeP' : ''" @click="clickTab(2)">项目</p>
118
-        </div>
119
-        <template>
120
-          <div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showOne">
121
-            <el-tabs class="rightTabs" v-model="activeName">
122
-              <el-tab-pane label="药品列表" name="1">
123
-                <div style="margin-bottom:5px;display:flex;">
124
-                  <el-input style="width:50%;"  @input="searchAction" @keyup.enter.native='searchAction' v-model.trim="search_keyword"
125
-                            placeholder="请输入药品名字"></el-input>
126
-                  <el-select style="margin-left:5px;width:50%;" v-model="value" placeholder="" @change="changeKind">
127
-                    <el-option
128
-                      label="全部"
129
-                      value="0">
130
-                    </el-option>
131
-                    <el-option
132
-                      v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
133
-                      :key="index"
134
-                      :label="item.name"
135
-                      :value="item.id">
136
-                    </el-option>
137
-                  </el-select>
138
-                </div>
139
-                <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
140
-                          style="width: 100%;flex:1;overflow-y: auto;"
141
-                          :row-style="{ color: '#303133' }"
142
-                          @select-all="changeAllGoodInfoTableData"
143
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
144
-                          highlight-current-row>
145
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
146
-                  <el-table-column prop="name" label="名称">
147
-                    <template slot-scope="scope">{{ scope.row.drug_name }}</template>
148
-                  </el-table-column>
149
-                  <el-table-column label="规格" width="60">
150
-                    <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
151
-                  </el-table-column>
152
-                  <el-table-column label="单价" width="40">
153
-                    <template slot-scope="scope">{{ scope.row.retail_price }}</template>
154
-                  </el-table-column>
155
-                </el-table>
156
-
118
+        </div> -->
119
+        <el-tabs class="borderCard" type="border-card" v-model="rightTab" @tab-click="clickTab">
120
+              <el-tab-pane label="药品" :name="1">
121
+                
157 122
               </el-tab-pane>
158
-              <el-tab-pane label="医嘱模板" name="2">
159
-                <div style="margin-bottom:5px;">
160
-                  <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
161
-                  <el-select style="float: right;width: 49%;" v-model="value" placeholder="">
162
-                    <el-option
163
-                      v-for="item in options"
164
-                      :key="item.value"
165
-                      :label="item.label"
166
-                      :value="item.value">
167
-                    </el-option>
168
-                  </el-select>
169
-                </div>
170
-                <el-table ref="multipleTableTwo" :data="advices_template" border
171
-                          style="width: 100%;flex:1;overflow-y: auto;"
172
-                          :row-style="{ color: '#303133' }"
173
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
174
-                          highlight-current-row>
175
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
176
-                  <el-table-column prop="name" label="名称">
177
-                    <template slot-scope="scope">{{}}</template>
178
-                  </el-table-column>
179
-                  <el-table-column label="规格" width="60">
180
-                    <template slot-scope="scope">33</template>
181
-                  </el-table-column>
182
-                  <el-table-column label="库存" width="60">
183
-                    <template slot-scope="scope">22</template>
184
-                  </el-table-column>
185
-                  <el-table-column label="单价" width="40">
186
-                    <template slot-scope="scope">12</template>
187
-                  </el-table-column>
188
-                </el-table>
123
+              <el-tab-pane label="项目" :name="2">
124
+                
189 125
               </el-tab-pane>
190
-            </el-tabs>
191
-          </div>
126
+              <div style="height:100%;" v-show="showOne">
127
+                  <el-tabs class="rightTabs" v-model="activeName">
128
+                    <el-tab-pane label="药品列表" name="1">
129
+                      <div style="margin-bottom:5px;display:flex;">
130
+                        <el-input style="width:50%;"  @input="searchAction" @keyup.enter.native='searchAction' v-model.trim="search_keyword"
131
+                                  placeholder="请输入药品名字"></el-input>
132
+                        <el-select style="margin-left:5px;width:50%;" v-model="value" placeholder="" @change="changeKind">
133
+                          <el-option
134
+                            label="全部"
135
+                            value="0">
136
+                          </el-option>
137
+                          <el-option
138
+                            v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
139
+                            :key="index"
140
+                            :label="item.name"
141
+                            :value="item.id">
142
+                          </el-option>
143
+                        </el-select>
144
+                      </div>
145
+                      <div style="width: 100%;flex:1;overflow-y: auto;">
146
+                        <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
147
+                                  :row-style="{ color: '#303133' }"
148
+                                  @select-all="changeAllGoodInfoTableData"
149
+                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
150
+                                  highlight-current-row>
151
+                          <el-table-column type="selection" width="40" align="center"></el-table-column>
152
+                          <el-table-column prop="name" label="名称">
153
+                            <template slot-scope="scope">{{ scope.row.drug_name }}</template>
154
+                          </el-table-column>
155
+                          <el-table-column label="规格" width="60">
156
+                            <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
157
+                          </el-table-column>
158
+                          <el-table-column label="单价" width="40">
159
+                            <template slot-scope="scope">{{ scope.row.retail_price }}</template>
160
+                          </el-table-column>
161
+                        </el-table>
162
+                      </div>
163
+
164
+                    </el-tab-pane>
165
+                    <el-tab-pane label="医嘱模板" name="2">
166
+                      <div style="margin-bottom:5px;">
167
+                        <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
168
+                        <el-select style="float: right;width: 49%;" v-model="value" placeholder="">
169
+                          <el-option
170
+                            v-for="item in options"
171
+                            :key="item.value"
172
+                            :label="item.label"
173
+                            :value="item.value">
174
+                          </el-option>
175
+                        </el-select>
176
+                      </div>
177
+                      <div style="width: 100%;flex:1;overflow-y: auto;">
178
+                        <el-table ref="multipleTableTwo" :data="advices_template" border
179
+                                  :row-style="{ color: '#303133' }"
180
+                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
181
+                                  highlight-current-row>
182
+                          <el-table-column type="selection" width="40" align="center"></el-table-column>
183
+                          <el-table-column prop="name" label="名称">
184
+                            <template slot-scope="scope">{{}}</template>
185
+                          </el-table-column>
186
+                          <el-table-column label="规格" width="60">
187
+                            <template slot-scope="scope">33</template>
188
+                          </el-table-column>
189
+                          <el-table-column label="库存" width="60">
190
+                            <template slot-scope="scope">22</template>
191
+                          </el-table-column>
192
+                          <el-table-column label="单价" width="40">
193
+                            <template slot-scope="scope">12</template>
194
+                          </el-table-column>
195
+                        </el-table>
196
+                      </div>
197
+                    </el-tab-pane>
198
+                  </el-tabs>
199
+              </div>
200
+              <div style="height:100%;" v-show="showTwo">
201
+                <el-tabs class="rightTabs" v-model="activeName">
202
+                  <el-tab-pane label="项目列表" name="1">
203
+                    <div style="width: 100%;flex:1;overflow-y: auto;">
204
+                      <el-table ref="tables" :data="tabProject" border @select='selectChange'
205
+                                :row-style="{ color: '#303133' }"
206
+                                @select-all="changeAllGoodInfoTableDataTwo"
207
+                                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
208
+                                highlight-current-row>
209
+                        <el-table-column type="selection" width="40" align="center"></el-table-column>
210
+                        <el-table-column prop="name" label="名称">
211
+                          <template slot-scope="scope">{{ scope.row.project_name }}</template>
212
+                        </el-table-column>
213
+                        <el-table-column label="规格" width="60">
214
+                          <template slot-scope="scope">{{ scope.row.single_dose }}</template>
215
+                        </el-table-column>
216
+                        <el-table-column label="单价" width="40">
217
+                          <template slot-scope="scope">{{ scope.row.price }}</template>
218
+                        </el-table-column>
219
+                      </el-table>
220
+                    </div>
221
+                  </el-tab-pane>
222
+                  <el-tab-pane label="项目组套" name="2">
223
+                    <div style="width: 100%;flex:1;overflow-y: auto;">
224
+                      <el-table :data="tabPrjectTeam" border
225
+                                :row-style="{ color: '#303133' }"
226
+                                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
227
+                                highlight-current-row
228
+                                @select='selectTeam'>
229
+                        <el-table-column type="selection" width="40" align="center"></el-table-column>
230
+                        <el-table-column prop="name" label="名称">
231
+                          <template slot-scope="scope">{{scope.row.project_team}}</template>
232
+                        </el-table-column>
233
+                      </el-table>
234
+                    </div>
235
+                  </el-tab-pane>
236
+                </el-tabs>
237
+              </div>
238
+        </el-tabs>
239
+        <template>
240
+          
192 241
 
193
-          <div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showTwo">
194
-            <el-tabs class="rightTabs" v-model="activeName">
195
-              <el-tab-pane label="项目列表" name="1">
196
-                <el-table ref="tables" :data="tabProject" border @select='selectChange'
197
-                          style="width: 100%;flex:1;overflow-y: auto;"
198
-                          :row-style="{ color: '#303133' }"
199
-                          @select-all="changeAllGoodInfoTableDataTwo"
200
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
201
-                          highlight-current-row>
202
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
203
-                  <el-table-column prop="name" label="名称">
204
-                    <template slot-scope="scope">{{ scope.row.project_name }}</template>
205
-                  </el-table-column>
206
-                  <el-table-column label="规格" width="60">
207
-                    <template slot-scope="scope">{{ scope.row.single_dose }}</template>
208
-                  </el-table-column>
209
-                  <el-table-column label="单价" width="40">
210
-                    <template slot-scope="scope">{{ scope.row.price }}</template>
211
-                  </el-table-column>
212
-                </el-table>
213
-              </el-tab-pane>
214
-              <el-tab-pane label="项目组套" name="2">
215
-                <el-table :data="tabPrjectTeam" border style="width: 100%;flex:1;overflow-y: auto;"
216
-                          :row-style="{ color: '#303133' }"
217
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
218
-                          highlight-current-row
219
-                          @select='selectTeam'>
220
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
221
-                  <el-table-column prop="name" label="名称">
222
-                    <template slot-scope="scope">{{scope.row.project_team}}</template>
223
-                  </el-table-column>
224
-                </el-table>
225
-              </el-tab-pane>
226
-            </el-tabs>
227
-          </div>
242
+          
228 243
 
229 244
           <div class="comfirmBox">
230 245
             <!-- <div>
@@ -242,7 +257,7 @@
242 257
                 </el-option>
243 258
               </el-select>
244 259
             </div> -->
245
-            <el-button type="primary" size="small" @click="comfirm">确定添加</el-button>
260
+            <el-button type="primary" size="small" style="width:100%;" @click="comfirm">确定添加</el-button>
246 261
           </div>
247 262
         </template>
248 263
       </div>
@@ -733,7 +748,8 @@
733 748
           })
734 749
 
735 750
       },
736
-      clickTab(index) {
751
+      clickTab(tab) {
752
+        let index = parseInt(tab.name)
737 753
         if (index == 1) {
738 754
           if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0) {
739 755
             this.$message.error('当前处方为项目,无法切换为药品,需要新开处方')
@@ -1047,6 +1063,7 @@
1047 1063
   .mainCenter {
1048 1064
     display: flex;
1049 1065
     flex: 1;
1066
+    height: 100%;
1050 1067
   }
1051 1068
 
1052 1069
   .centerLeft {
@@ -1056,9 +1073,8 @@
1056 1073
     position: relative;
1057 1074
 
1058 1075
   .el-form-item {
1059
-    width: 32%;
1060
-    margin-right: 1%;
1061
-    float: left;
1076
+    width: 33%;
1077
+    margin-bottom: 14px;
1062 1078
   }
1063 1079
 
1064 1080
   .el-form-item__label {
@@ -1074,7 +1090,7 @@
1074 1090
 
1075 1091
   .RP {
1076 1092
     color: #409EFF;
1077
-    font-size: 20px;
1093
+    font-size: 14px;
1078 1094
     margin-bottom: 5px;
1079 1095
   }
1080 1096
 
@@ -1083,7 +1099,7 @@
1083 1099
     height: 76%;
1084 1100
     overflow-y: auto;
1085 1101
     margin-bottom: 60px;
1086
-
1102
+    margin-top: 4px;
1087 1103
   .el-tabs__item {
1088 1104
     padding: 0 10px;
1089 1105
   }
@@ -1120,7 +1136,7 @@
1120 1136
 
1121 1137
   .centerRight {
1122 1138
     width: 300px;
1123
-    margin-left: 5px;
1139
+    margin-left: 10px;
1124 1140
     display: flex;
1125 1141
     flex-direction: column;
1126 1142
     position: relative;
@@ -1167,9 +1183,31 @@
1167 1183
     align-items: center;
1168 1184
     justify-content: space-between;
1169 1185
   }
1186
+  .borderCard{
1187
+    height: 100%;
1188
+    display: flex;
1189
+    flex-direction: column;
1190
+    margin-bottom: 60px;
1191
+    .el-tabs--border-card>.el-tabs__content{
1192
+      padding: 0;
1193
+    }
1194
+  }
1170 1195
 </style>
1171 1196
 
1172 1197
 <style lang="scss">
1198
+.borderCard{
1199
+  .el-tabs__nav{
1200
+    width: 100%;
1201
+  }
1202
+  .el-tabs__item{
1203
+    width: 50%;
1204
+    text-align: center;
1205
+  }
1206
+  .el-tabs__content{
1207
+    padding: 5px;
1208
+    flex: 1;
1209
+  }
1210
+}
1173 1211
   .centerLeft {
1174 1212
 
1175 1213
   .el-form-item__label {
@@ -1216,12 +1254,22 @@
1216 1254
   .el-tabs__content {
1217 1255
     flex: 1;
1218 1256
     overflow-y: auto;
1257
+    padding: 5px 0 5px 5px;
1219 1258
   }
1220 1259
 
1221 1260
   }
1222 1261
   .rightTabs {
1223 1262
     height: 100%;
1224
-
1263
+    .el-tabs__nav{
1264
+      width: auto;
1265
+    }
1266
+    .el-tabs__header{
1267
+      margin-bottom: 5px;
1268
+    }
1269
+  .el-tabs__item{
1270
+    width: auto;
1271
+    text-align: inherit;
1272
+  }
1225 1273
   .el-tabs__content {
1226 1274
     flex: 1;
1227 1275
     overflow-y: auto;

+ 1 - 2
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="deskRecord" style="margin-top:36px;">
2
+  <div class="deskRecord" style="margin-top:54px;">
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>
@@ -8,7 +8,6 @@
8 8
         <el-button size="small" @click="open(4)" type="primary">存模板</el-button>
9 9
       </div>
10 10
     </div> -->
11
-    <div class="backColor"></div>
12 11
     <div class="mainTitle">基本信息:</div>
13 12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
14 13
       <el-form-item label="姓名:" prop="name">

+ 14 - 11
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -3,11 +3,11 @@
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 8
         <div class="mainCell" style="justify-content: space-between;">
9
-          <p>未就诊:<span>{{cal_one}}</span>人</p>
10
-          <p>已就诊:<span>{{cal_two}}</span>人</p>
9
+          <p style="font-size:14px;">未就诊:<span>{{cal_one}}</span>人</p>
10
+          <p style="font-size:14px;">已就诊:<span>{{cal_two}}</span>人</p>
11 11
         </div>
12 12
         <div class="mainCell">
13 13
           <el-radio-group v-model="radio" @change="change">
@@ -40,12 +40,12 @@
40 40
       </div>
41 41
       <div class="mainRight">
42 42
         <div class="mainHeader">
43
-          <el-radio-group class="titleBox" v-model="titleType" @change="changeTab">
44
-            <el-radio-button label="电子处方"></el-radio-button>
45
-            <el-radio-button label="电子病历"></el-radio-button>
46
-          </el-radio-group>
43
+          <el-tabs v-model="titleType" @tab-click="handleClick" style="position: fixed;width: calc(100% - 490px);background:#fff;">
44
+            <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
45
+            <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
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" style="margin-left:10px;">保存</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"
@@ -58,7 +58,7 @@
58 58
             <el-button size="small" ref="button_four"  @click="open(5)" type="primary">存模板</el-button>
59 59
           </div>
60 60
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
61
-            <el-button size="small" @click="opentwo(1)" type="primary" style="margin-left:10px;">保存</el-button>
61
+            <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
62 62
             <el-button size="small" @click="opentwo(2)" type="primary">打印</el-button>
63 63
             <el-button size="small" @click="opentwo(3)" type="primary">病历调用</el-button>
64 64
             <el-button size="small" @click="opentwo(4)" type="primary">存模板</el-button>
@@ -456,7 +456,7 @@
456 456
 
457 457
   }
458 458
   .mainRight {
459
-    margin-left: 20px;
459
+    margin-left: 10px;
460 460
     flex: 1;
461 461
     height: 100%;
462 462
     display: flex;
@@ -532,7 +532,7 @@
532 532
 
533 533
   .centerRight {
534 534
     width: 300px;
535
-    margin-left: 5px;
535
+    margin-left: 10px;
536 536
     display: flex;
537 537
     flex-direction: column;
538 538
     position: relative;
@@ -591,6 +591,9 @@
591 591
     z-index: 99;
592 592
     right: 30px;
593 593
     background: #fff;
594
+    width: 300px;
595
+    display: flex;
596
+    justify-content: space-between;
594 597
   }
595 598
 </style>
596 599
 

+ 6 - 2
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
     <div class="position">
4
-      <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
        <template>
6 6
         <el-button
7 7
           :loading="loading"
@@ -59,6 +59,10 @@ export default {
59 59
   },
60 60
   data() {
61 61
     return {
62
+      crumbs: [
63
+        { path: false, name: '门诊医生站' },
64
+        { path: false, name: '打印' }
65
+      ],
62 66
        record_date:"",
63 67
        patientTableData:[],
64 68
        advicePrint:[],
@@ -77,7 +81,7 @@ export default {
77 81
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
78 82
 
79 83
       const style =
80
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:750px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
84
+        '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
81 85
       printJS({
82 86
         printable: "prescription-print",
83 87
         type: "html",

+ 1 - 1
src/xt_pages/outpatientDoctorStation/printtwo.vue View File

@@ -74,7 +74,7 @@ export default {
74 74
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
75 75
 
76 76
       const style =
77
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:750px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
77
+        '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
78 78
       printJS({
79 79
         printable: "prescription-print",
80 80
         type: "html",

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

@@ -101,7 +101,7 @@ export default {
101 101
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
102 102
 
103 103
       const style =
104
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}';
104
+        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}';
105 105
       printJS({
106 106
         printable: "prescription-print",
107 107
         type: "html",

+ 42 - 42
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

@@ -2,88 +2,88 @@
2 2
     <div id='prescription-print' class="prescription-print">
3 3
         <div class="printTitle">门诊病历</div>
4 4
         <div class="infoTitle">
5
-            <p>姓名:{{patient.name}}</p>
6
-            <p>性别:
5
+            <div>姓名:{{patient.name}}</div>
6
+            <div>性别:
7 7
                 <span v-if="patient.gender == 1">男</span>
8 8
                 <span v-if="patient.gender == 2">女</span>
9
-            </p>
10
-            <p>年龄:{{patient.age}}岁</p>
9
+            </div>
10
+            <div>年龄:{{patient.age}}岁</div>
11 11
         </div>
12 12
         <div class="infoTitle">
13
-            <p>婚姻状况:
13
+            <div>婚姻状况:
14 14
               <span v-if="patient.marital_status == 1">已婚 </span>
15 15
               <span v-if="patient.marital_status == 2">未婚 </span>
16
-            </p>
17
-            <p>职业:{{getProfession(patient.profession)}}</p>
16
+            </div>
17
+            <div>职业:{{getProfession(patient.profession)}}</div>
18 18
         </div>
19 19
         <div class="otherInfo">
20
-            <p>医保号:</p>
21
-            <p style="flex:1;">{{patient.health_care_no}}</p>
20
+            <div>医保号:</div>
21
+            <div style="flex:1;">{{patient.health_care_no}}</div>
22 22
         </div>
23 23
         <div class="otherInfo">
24
-            <p>联系电话:</p>
25
-            <p style="flex:1;">{{patient.phone}}</p>
24
+            <div>联系电话:</div>
25
+            <div style="flex:1;">{{patient.phone}}</div>
26 26
         </div>
27 27
         <div class="otherInfo">
28
-            <p>通讯地址:</p>
29
-            <p style="flex:1;">{{patient.home_address}}</p>
28
+            <div>通讯地址:</div>
29
+            <div style="flex:1;">{{patient.home_address}}</div>
30 30
         </div>
31 31
         <div class="otherInfo">
32
-            <p>药物过敏史:</p>
33
-            <p style="flex:1;">{{patient.past_history}}</p>
32
+            <div>药物过敏史:</div>
33
+            <div style="flex:1;">{{patient.past_history}}</div>
34 34
         </div>
35 35
         <div class="otherInfo">
36
-            <p>病历编号:</p>
37
-            <p style="flex:1;">{{patient.id}}</p>
36
+            <div>病历编号:</div>
37
+            <div style="flex:1;">{{patient.id}}</div>
38 38
         </div>
39 39
         <div style="page-break-after:always;margin-top:50px;"></div>
40 40
 
41 41
 
42 42
         <div class="printTitle">病历内容</div>
43 43
         <div class="recordTitle">
44
-            <p>科别:{{hispatient.departments}}</p>
45
-            <p>姓名:{{hispatient.name}}</p>
46
-            <p>性别:
44
+            <div>科别:{{hispatient.departments}}</div>
45
+            <div>姓名:{{hispatient.name}}</div>
46
+            <div>性别:
47 47
                 <span v-if="hispatient.gender == 1">男</span>
48 48
                 <span v-if="hispatient.gender == 2">女</span>
49
-            </p>
50
-            <p>年龄:{{hispatient.age}}岁</p>
49
+            </div>
50
+            <div>年龄:{{hispatient.age}}岁</div>
51 51
         </div>
52 52
         <div class="otherInfo">
53
-            <p class="otherName">主诉:</p>
54
-            <p style="flex:1;">{{history.chief_conplaint}}</p>
53
+            <div class="otherName">主诉:</div>
54
+            <div style="flex:1;">{{history.chief_conplaint}}</div>
55 55
         </div>
56 56
         <div class="otherInfo">
57
-            <p class="otherName">现病史:</p>
58
-            <p style="flex:1;">{{history.history_of_present_illness}}</p>
57
+            <div class="otherName">现病史:</div>
58
+            <div style="flex:1;">{{history.history_of_present_illness}}</div>
59 59
         </div>
60 60
         <div class="otherInfo">
61
-            <p class="otherName">既往史:</p>
62
-            <p style="flex:1;">{{history.past_history}}</p>
61
+            <div class="otherName">既往史:</div>
62
+            <div style="flex:1;">{{history.past_history}}</div>
63 63
         </div>
64 64
         <div class="otherInfo">
65
-            <p class="otherName">药物过敏史:</p>
66
-            <p style="flex:1;">{{history.past_history}}</p>
65
+            <div class="otherName">药物过敏史:</div>
66
+            <div style="flex:1;">{{history.past_history}}</div>
67 67
         </div>
68 68
         <div class="otherInfo">
69
-            <p class="otherName">个人史:</p>
70
-            <p style="flex:1;">{{history.personal_history}}</p>
69
+            <div class="otherName">个人史:</div>
70
+            <div style="flex:1;">{{history.personal_history}}</div>
71 71
         </div>
72 72
         <div class="otherInfo">
73
-            <p class="otherName">家族史:</p>
74
-            <p style="flex:1;">{{history.family_history}}</p>
73
+            <div class="otherName">家族史:</div>
74
+            <div style="flex:1;">{{history.family_history}}</div>
75 75
         </div>
76 76
         <div class="otherInfo">
77
-            <p class="otherName">体格检查:</p>
78
-            <p style="flex:1;">无</p>
77
+            <div class="otherName">体格检查:</div>
78
+            <div style="flex:1;">无</div>
79 79
         </div>
80 80
         <div class="otherInfo">
81
-            <p class="otherName">门诊诊断:</p>
82
-            <p style="flex:1;">{{history.diagnostic}}</p>
81
+            <div class="otherName">门诊诊断:</div>
82
+            <div style="flex:1;">{{history.diagnostic}}</div>
83 83
         </div>
84 84
         <div class="otherInfo">
85
-            <p class="otherName">门诊医嘱:</p>
86
-            <p style="flex:1;">{{history.doctor_advice}}</p>
85
+            <div class="otherName">门诊医嘱:</div>
86
+            <div style="flex:1;">{{history.doctor_advice}}</div>
87 87
         </div>
88 88
         <div style="margin-top:20px;text-align:right;">
89 89
             医生签名:{{getDoctor(history.doctor)}}
@@ -160,7 +160,7 @@ export default {
160 160
     line-height: 24px;
161 161
     padding:0 10px;
162 162
 }
163
-.infoTitle p{
163
+.infoTitle div{
164 164
     width: 200px;
165 165
 }
166 166
 .otherInfo{
@@ -176,7 +176,7 @@ export default {
176 176
     padding:0 10px;
177 177
     border-bottom: 2px solid #000;
178 178
 }
179
-.recordTitle p{
179
+.recordTitle div{
180 180
     width: 200px;
181 181
 }
182 182
 

+ 13 - 13
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -10,18 +10,18 @@
10 10
             <p>年龄:{{patient.age}}岁</p>
11 11
         </div>
12 12
         <div class="infoMain">
13
-            <p style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
14
-            <p style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</p>
15
-            <p style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
16
-            <p style="margin-bottom: 10px;">电话:{{patient.phone}}</p>
17
-            <p>地址:{{patient.home_address}}</p>
18
-            <p>临床诊断:{{patient.diagnose}}</p>
13
+            <div style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
14
+            <div style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</div>
15
+            <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16
+            <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17
+            <div>地址:{{patient.home_address}}</div>
18
+            <div style="display:flex;width:50%;">临床诊断:{{patient.diagnose}}</div>
19 19
         </div>
20 20
         <div class="prescriptionBox">
21
-            <p class="Rp">Rp:</p>
21
+            <div class="Rp">Rp:</div>
22 22
             <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
23
-                <p class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</p>
24
-                <p style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></p>
23
+                <div class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</div>
24
+                <div style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></div>
25 25
             </div>
26 26
         </div>
27 27
         <div class="doctorBox">
@@ -182,13 +182,13 @@ export default {
182 182
     border-bottom: 2px solid #000;
183 183
     padding:0 10px;
184 184
 }
185
-.infoMain p{
185
+.infoMain div{
186 186
     width: 50%;
187 187
     line-height: 24px;
188 188
 }
189 189
 .prescriptionBox{
190 190
     padding:0 10px;
191
-    height:600px;
191
+    min-height:450px;
192 192
 }
193 193
 .Rp{
194 194
     font-size: 22px;
@@ -198,8 +198,8 @@ export default {
198 198
     padding-left: 40px;
199 199
     margin-bottom: 10px;
200 200
 }
201
-.drugsBox p{
202
-    line-height: 30px;
201
+.drugsBox div{
202
+    line-height: 20px;
203 203
 }
204 204
 .drugsOne{
205 205
     line-height: 24px;

+ 13 - 13
src/xt_pages/outpatientDoctorStation/template/printTwo.vue View File

@@ -10,18 +10,18 @@
10 10
             <p>年龄:{{patient.age}}岁</p>
11 11
         </div>
12 12
         <div class="infoMain">
13
-            <p style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
14
-            <p style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</p>
15
-            <p style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
16
-            <p style="margin-bottom: 10px;">电话:{{patient.phone}}</p>
17
-            <p>地址:{{patient.home_address}}</p>
18
-            <p>临床诊断:{{patient.diagnose}}</p>
13
+            <div style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
14
+            <div style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</div>
15
+            <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16
+            <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17
+            <div>地址:{{patient.home_address}}</div>
18
+            <div style="display:flex;width:50%;">临床诊断:{{patient.diagnose}}</div>
19 19
         </div>
20 20
         <div class="prescriptionBox">
21
-            <p class="Rp">Rp:</p>
21
+            <div class="Rp">Rp:</div>
22 22
             <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
23
-                <p class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</p>
24
-                <p style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></p>
23
+                <div class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</div>
24
+                <div style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></div>
25 25
             </div>
26 26
         </div>
27 27
         <div class="doctorBox">
@@ -182,13 +182,13 @@ export default {
182 182
     border-bottom: 2px solid #000;
183 183
     padding:0 10px;
184 184
 }
185
-.infoMain p{
185
+.infoMain div{
186 186
     width: 50%;
187 187
     line-height: 24px;
188 188
 }
189 189
 .prescriptionBox{
190 190
     padding:0 10px;
191
-    height:600px;
191
+    min-height:450px;
192 192
 }
193 193
 .Rp{
194 194
     font-size: 22px;
@@ -198,8 +198,8 @@ export default {
198 198
     padding-left: 40px;
199 199
     margin-bottom: 10px;
200 200
 }
201
-.drugsBox p{
202
-    line-height: 30px;
201
+.drugsBox div{
202
+    line-height: 20px;
203 203
 }
204 204
 .drugsOne{
205 205
     line-height: 24px;

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatPrint.vue View File

@@ -76,7 +76,7 @@ export default {
76 76
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
77 77
 
78 78
       const style =
79
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 300px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:600px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
79
+        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 300px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;min-height:600px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
80 80
       printJS({
81 81
         printable: "prescription-print",
82 82
         type: "html",

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

@@ -220,7 +220,7 @@ export default {
220 220
 }
221 221
 .prescriptionBox{
222 222
     padding:0 10px;
223
-    height:600px;
223
+    min-height:600px;
224 224
 }
225 225
 .Rp{
226 226
     font-size: 22px;