Browse Source

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

XMLWAN 3 years ago
parent
commit
199ab82b03

+ 3 - 0
src/views/layout/Layout.vue View File

346
   .new-main-container{
346
   .new-main-container{
347
     width: calc(100% - 220px);
347
     width: calc(100% - 220px);
348
   }
348
   }
349
+  .sidebar-container{
350
+    transform: translate3d(0, 0, 0) !important;
351
+  }
349
 </style>
352
 </style>

+ 10 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue View File

165
                   <div class="inline_block" style="margin-left:90px;">
165
                   <div class="inline_block" style="margin-left:90px;">
166
                     体重增加:
166
                     体重增加:
167
                     <div class="under_line" style="width: 50px;text-align: center">
167
                     <div class="under_line" style="width: 50px;text-align: center">
168
-                      {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}
168
+                      {{ predialysis.weight_before > 0 && lastafterdialysis.weight_after > 0 ? parseFloat(predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2): "/" }}
169
                     </div>
169
                     </div>
170
                     kg
170
                     kg
171
                   </div>
171
                   </div>
574
                   <tbody>
574
                   <tbody>
575
                     <tr>
575
                     <tr>
576
                       <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
576
                       <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
577
-                        测记录
577
+                        测记录
578
                       </td>
578
                       </td>
579
                     </tr>
579
                     </tr>
580
                     <tr>
580
                     <tr>
611
                       <td style="line-height:16px;padding:0px;">
611
                       <td style="line-height:16px;padding:0px;">
612
                         <div style="min-height:35px;line-height:35px; overflow:hidden;">
612
                         <div style="min-height:35px;line-height:35px; overflow:hidden;">
613
                           <span v-if="getTime(monitor.operate_time, '{h}:{i}')" style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
613
                           <span v-if="getTime(monitor.operate_time, '{h}:{i}')" style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
614
-                            <template v-if="(dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">【开始透析】</template>
614
+                            <template v-if="(dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">【开始透析】引血100ml/min</template>
615
                             {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
615
                             {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
616
                           </span>
616
                           </span>
617
                         </div>
617
                         </div>
618
                       </td>
618
                       </td>
619
                     </tr>
619
                     </tr>
620
+                    <tr>
621
+                      <td colspan="9" style="line-height:25px;text-align:left;">
622
+                        医师记录:{{ summary.special_record ? summary.special_record : '' }}
623
+                      </td>
624
+                    </tr>
620
                   </tbody>
625
                   </tbody>
621
                 </table>
626
                 </table>
622
               </td>
627
               </td>
1191
           this.monitors[index].end = ''
1196
           this.monitors[index].end = ''
1192
           if (Object.keys(monitor).length > 0 && index > 1) {
1197
           if (Object.keys(monitor).length > 0 && index > 1) {
1193
             if (this.dialysisOrder && monitor.operate_time == this.dialysisOrder.end_time) {
1198
             if (this.dialysisOrder && monitor.operate_time == this.dialysisOrder.end_time) {
1194
-              this.monitors[index].end = '【结束透析】'
1199
+              this.monitors[index].end = '【结束透析】回血100ml/min'
1195
               tempmonitorflag = false
1200
               tempmonitorflag = false
1196
             }
1201
             }
1197
             if (tempmonitorflag && index == this.monitors.length - 1) {
1202
             if (tempmonitorflag && index == this.monitors.length - 1) {
1198
-              this.monitors[index].end = '【结束透析】'
1203
+              this.monitors[index].end = '【结束透析】回血100ml/min'
1199
             }
1204
             }
1200
           }
1205
           }
1201
         }
1206
         }

+ 2 - 2
src/xt_pages/outpatientCharges/components/chargeDialog.vue View File

82
     </el-form>
82
     </el-form>
83
 
83
 
84
     <span slot="footer" class="dialog-footer">
84
     <span slot="footer" class="dialog-footer">
85
-    <el-button v-loading="loadingtwo" @click="cancel('formValue')">取 消</el-button>
86
-    <el-button v-loading="loadingtwo" type="primary" @click="confirm('formValue')">确 定</el-button>
85
+    <el-button @click="cancel('formValue')">取 消</el-button>
86
+    <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
87
   </span>
87
   </span>
88
   </el-dialog>
88
   </el-dialog>
89
 
89
 

+ 28 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

389
                       }
389
                       }
390
                     })
390
                     })
391
                     that.num = num
391
                     that.num = num
392
+                    let newTotal = 0
393
+                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
394
+                      if(that.info.transBody.outputlist2[i].aka111 == '07') {
395
+                        console.log('0707007')
396
+                        newTotal += that.info.transBody.outputlist2[i].bka058
397
+                      }
398
+                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
399
+                        console.log('191919')
400
+                        newTotal += that.info.transBody.outputlist2[i].bka058
401
+                      }
402
+                      console.log(8888888,that.info.transBody.outputlist2)
403
+                    }
404
+                    console.log(1111111111111)
405
+                    let aka111obj = {
406
+                      aka111:'99',
407
+                      bka058:newTotal
408
+                    }
409
+                    console.log('aka111obj',aka111obj)
410
+                    let newOutputlist2 = []
411
+                    newOutputlist2.push(aka111obj)
412
+                    that.info.transBody.outputlist2.map(item => {
413
+                      if(item.aka111 != '07' && item.aka111 != '19'){
414
+                        newOutputlist2.push(item)
415
+                      }
416
+                    })
417
+                    that.info.transBody.outputlist2 = newOutputlist2
418
+                    console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
392
                     console.log('this.num222',that.num)
419
                     console.log('this.num222',that.num)
393
-
420
+                    
394
                   }
421
                   }
395
                 }
422
                 }
396
               })
423
               })

+ 8 - 5
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue View File

9
             </div>
9
             </div>
10
             <div style="display:flex;justify-content: space-between;">
10
             <div style="display:flex;justify-content: space-between;">
11
                 <div style="display:flex;">
11
                 <div style="display:flex;">
12
-                  <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient_name ? info.patient_name : ''}}</span></div>
12
+                  <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient_name ? info.patient_name.indexOf("(") > -1 ? info.patient_name.substring(0,info.patient_name.indexOf("(")) : info.patient_name : ''}}</span></div>
13
                   <div>性别:<span style="display:inline-block;width:30px;">{{info.patient_info.transBody.aac004 == '1' ? '男' : '女'}}</span></div>
13
                   <div>性别:<span style="display:inline-block;width:30px;">{{info.patient_info.transBody.aac004 == '1' ? '男' : '女'}}</span></div>
14
                   <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient_info.transBody.bae093 ? info.patient_info.transBody.bae093 : ''}}岁</span></div>
14
                   <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient_info.transBody.bae093 ? info.patient_info.transBody.bae093 : ''}}岁</span></div>
15
                   <div>费别:<span style="display:inline-block;min-width:80px;">{{info.patient_info.transBody.outputlist1 ? getName(info.patient_info.transBody.outputlist1) : ''}}</span>
15
                   <div>费别:<span style="display:inline-block;min-width:80px;">{{info.patient_info.transBody.outputlist1 ? getName(info.patient_info.transBody.outputlist1) : ''}}</span>
85
             </div>
85
             </div>
86
             <div style="display:flex;justify-content: space-between;">
86
             <div style="display:flex;justify-content: space-between;">
87
                 <div style="display:flex;">
87
                 <div style="display:flex;">
88
-                  <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name : ''}}</span></div>
88
+                  <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name.indexOf("(") > -1 ? balanceAccounts.patient.name.substring(0,balanceAccounts.patient.name.indexOf("(")) : balanceAccounts.patient.name : ''}}</span></div>
89
                   <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span></div>
89
                   <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span></div>
90
                   <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span></div>
90
                   <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span></div>
91
                   <div>费别:<span style="display:inline-block;width:80px;">自费</span>
91
                   <div>费别:<span style="display:inline-block;width:80px;">自费</span>
140
                           <span v-if="item.type == 3">{{ subItem.pric }}</span>
140
                           <span v-if="item.type == 3">{{ subItem.pric }}</span>
141
                         </td>
141
                         </td>
142
                         <td>
142
                         <td>
143
-                          <span v-if="item.type == 1">{{ subItem.advice.prescribing_number * subItem.pric }}</span>
144
-                          <span v-if="item.type == 2">{{ subItem.project.count * subItem.pric }}</span>
145
-                          <span v-if="item.type == 3">{{ subItem.project.count * subItem.pric }}</span>
143
+                          <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
144
+                          <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
145
+                          <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
146
                         </td>
146
                         </td>
147
                         <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
147
                         <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
148
                       </tr>
148
                       </tr>
398
           case '26':
398
           case '26':
399
             return '挂号费'
399
             return '挂号费'
400
             break
400
             break
401
+          case '99':
402
+            return '诊疗费'
403
+            break
401
 
404
 
402
         }
405
         }
403
 
406
 

File diff suppressed because it is too large
+ 175 - 421
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


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

6
         <div class="app-container">
6
         <div class="app-container">
7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
                 <div>
8
                 <div>
9
-                    <el-input size="small" style="width:150px;" v-model="keywords"
9
+                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction" @keyup.enter.native='searchAction'
10
                               class="filter-item"/>
10
                               class="filter-item"/>
11
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
11
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12
                                @click="searchAction">
12
                                @click="searchAction">
89
                         <div>{{getMedType(scope.row.med_type)}}</div>
89
                         <div>{{getMedType(scope.row.med_type)}}</div>
90
                     </template>
90
                     </template>
91
                 </el-table-column>
91
                 </el-table-column>
92
+
93
+                <el-table-column align="center" width="90" prop="name" label="收费类型">
94
+                    <template slot-scope="scope">
95
+                        <div v-if="scope.row.his_patient.balance_accounts_type != 2">医保</div>
96
+                        <div v-if="scope.row.his_patient.balance_accounts_type == 2">自费</div>
97
+                    </template>
98
+                </el-table-column>
99
+
100
+
101
+
92
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
102
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
93
                     <template slot-scope="scope">
103
                     <template slot-scope="scope">
94
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
104
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}

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

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-       <template>
3
+       <!-- <template>
4
         <el-button
4
         <el-button
5
           style="float:right;"
5
           style="float:right;"
6
           :loading="loading"
6
           :loading="loading"
10
           type="primary"
10
           type="primary"
11
           >打印</el-button
11
           >打印</el-button
12
         >
12
         >
13
-      </template>
13
+      </template> -->
14
             
14
             
15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
         <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
         <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>

+ 27 - 6
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue View File

11
                     <div>金额:{{ total }}</div>
11
                     <div>金额:{{ total }}</div>
12
                 </div>
12
                 </div>
13
                 <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;line-height:40px;padding:0 10px;">
13
                 <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;line-height:40px;padding:0 10px;">
14
-                    <div>姓名:{{advicePrint[0].patient.name?advicePrint[0].patient.name:""}}</div>
14
+                    <div>姓名:{{advicePrint[0].patient.name? advicePrint[0].patient.name.indexOf("(") > -1 ? advicePrint[0].patient.name.substring(0,advicePrint[0].patient.name.indexOf("(")) : advicePrint[0].patient.name:""}}</div>
15
                     <div>性别:
15
                     <div>性别:
16
                         <span v-if="advicePrint[0].patient.gender == 1">男</span>
16
                         <span v-if="advicePrint[0].patient.gender == 1">男</span>
17
                         <span v-if="advicePrint[0].patient.gender == 2">女</span>
17
                         <span v-if="advicePrint[0].patient.gender == 2">女</span>
185
        getInitData().then(response=>{
185
        getInitData().then(response=>{
186
           if(response.data.state == 1){
186
           if(response.data.state == 1){
187
             this.department = response.data.data.department
187
             this.department = response.data.data.department
188
-            this.diagnoses = response.data.data.diagnose
188
+            this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
189
             console.log("争端",this.diagnoses)
189
             console.log("争端",this.diagnoses)
190
           }
190
           }
191
        })
191
        })
252
      },
252
      },
253
 
253
 
254
      getDiagnosis(ids){
254
      getDiagnosis(ids){
255
-        let id = ids.split(',')
255
+        let newIds = ids.split(',').sort(function(a,b){
256
+          return a-b;
257
+        })
258
+        
256
         var name = ""
259
         var name = ""
260
+        let nameArr = []
257
         for(let i=0;i<this.diagnoses.length;i++){
261
         for(let i=0;i<this.diagnoses.length;i++){
258
           // if(id == this.diagnoses[i].id){
262
           // if(id == this.diagnoses[i].id){
259
           //    name = this.diagnoses[i].class_name
263
           //    name = this.diagnoses[i].class_name
260
           // }
264
           // }
261
-          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
262
-            name += this.diagnoses[i].class_name + ' '
265
+          
266
+          if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
267
+            // name += diagnoses[i].class_name + ' '
268
+            nameArr.push(this.diagnoses[i].class_name)
263
           }
269
           }
264
         }
270
         }
265
-        return name
271
+        let newNameArr = []
272
+        nameArr.map((item,index) => {
273
+          if(item == '尿毒症'){
274
+            newNameArr.push(item)
275
+            nameArr.splice(index,1,'') 
276
+          }
277
+        })
278
+        newNameArr.push(...nameArr)
279
+        return newNameArr.join(' ')
266
      },
280
      },
281
+     compare(property) {
282
+        return function(a,b){
283
+          var value1 = a[property];
284
+          var value2 = b[property];
285
+          return value1 - value2;//升序排序
286
+        }
287
+      },
267
      getPage(){
288
      getPage(){
268
         this.page = 1
289
         this.page = 1
269
         this.pageArr = []
290
         this.pageArr = []

+ 14 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

1910
           this.showTwo = true
1910
           this.showTwo = true
1911
         }
1911
         }
1912
 
1912
 
1913
-        this.state2 = info.sick_history
1914
-        if (this.state2 == 0) {
1915
-          this.state2 = ''
1916
-        }
1913
+
1917
 
1914
 
1918
         if (info.prescription_status == 0) {
1915
         if (info.prescription_status == 0) {
1919
           this.order_status = ''
1916
           this.order_status = ''
1991
 
1988
 
1992
                 }
1989
                 }
1993
               }
1990
               }
1991
+
1992
+              if(last_info.sick_history == 0){
1993
+                this.state2 = ''
1994
+              }else{
1995
+                this.state2 = last_info.sick_history
1996
+              }
1997
+
1998
+
1994
             }else{
1999
             }else{
2000
+              this.state2 = info.sick_history
2001
+              if (this.state2 == 0) {
2002
+                this.state2 = ''
2003
+              }
1995
               if(info.diagnosis.length == 0){
2004
               if(info.diagnosis.length == 0){
1996
                 this.diagnose = []
2005
                 this.diagnose = []
1997
               }else{
2006
               }else{
2660
                   single_dose: temp[b].single_dose,
2669
                   single_dose: temp[b].single_dose,
2661
                   delivery_way: temp[b].delivery_way,
2670
                   delivery_way: temp[b].delivery_way,
2662
                   execution_frequency: temp[b].execution_frequency,
2671
                   execution_frequency: temp[b].execution_frequency,
2663
-                  retail_price: temp[b].min_price.toString(),
2672
+                  retail_price: temp[b].prescribing_number_unit == temp[b].max_unit ? temp[b].retail_price.toString() : temp[b].min_price.toString(),
2664
                   remark: '',
2673
                   remark: '',
2665
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2674
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2666
                   prescribing_number: temp[b].prescribing_number,
2675
                   prescribing_number: temp[b].prescribing_number,

+ 127 - 26
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

152
                 :visible.sync="centerDialogVisible"
152
                 :visible.sync="centerDialogVisible"
153
                 width="600px"
153
                 width="600px"
154
                 center>
154
                 center>
155
+                <el-button @click="allCheck">全选</el-button>
155
                 <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>
156
                 <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>
156
                 <el-table
157
                 <el-table
157
-                    ref="multipleTable"
158
+                    ref="multipleTable1"
158
                     :data="tableData1"
159
                     :data="tableData1"
159
                     tooltip-effect="dark"
160
                     tooltip-effect="dark"
160
                     style="width: 600px"
161
                     style="width: 600px"
183
             </el-table>
184
             </el-table>
184
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">治疗单打印</div>
185
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">治疗单打印</div>
185
                 <el-table
186
                 <el-table
186
-                    ref="multipleTable"
187
+                    ref="multipleTable2"
187
                     :data="tableData2"
188
                     :data="tableData2"
188
                     tooltip-effect="dark"
189
                     tooltip-effect="dark"
189
                     style="width: 600px"
190
                     style="width: 600px"
212
             </el-table>
213
             </el-table>
213
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">检验单打印</div>
214
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">检验单打印</div>
214
                 <el-table
215
                 <el-table
215
-                    ref="multipleTable"
216
+                    ref="multipleTable3"
216
                     :data="tableData3"
217
                     :data="tableData3"
217
                     tooltip-effect="dark"
218
                     tooltip-effect="dark"
218
                     style="width: 600px"
219
                     style="width: 600px"
245
                     title="打印"
246
                     title="打印"
246
                     :visible.sync="innerVisible"
247
                     :visible.sync="innerVisible"
247
                     append-to-body>
248
                     append-to-body>
248
-                <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
249
-                <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
250
-                <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
249
+                  <template>
250
+                    <el-button
251
+                      style="float:right;"
252
+                      :loading="loading"
253
+                      size="small"
254
+                      icon="el-icon-printer"
255
+                      @click="printThisPage"
256
+                      type="primary"
257
+                      >打印</el-button
258
+                    >
259
+                  </template>  
260
+                  <div id='printMain'>
261
+                    <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
262
+                    <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
263
+                    <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
264
+                  </div>
265
+                
251
             </el-dialog>
266
             </el-dialog>
252
             <span slot="footer" class="dialog-footer">
267
             <span slot="footer" class="dialog-footer">
253
         <el-button @click="centerDialogVisible = false">取 消</el-button>
268
         <el-button @click="centerDialogVisible = false">取 消</el-button>
382
         // this.centerDialogVisible = true
397
         // this.centerDialogVisible = true
383
         this.getPrescriptionList(this.patientInfo.id)
398
         this.getPrescriptionList(this.patientInfo.id)
384
       },
399
       },
400
+      allCheck(){
401
+        this.$refs.multipleTable1.toggleAllSelection();
402
+        this.$refs.multipleTable2.toggleAllSelection();
403
+        this.$refs.multipleTable3.toggleAllSelection();
404
+      },
385
       printThisPage(){
405
       printThisPage(){
386
-        this.$nextTick(() => {
387
-          this.$refs.print.printThisPage()
388
-          this.$refs.treatPrint.printThisPage()
389
-          this.$refs.checkPrint.printThisPage()
390
-        })
406
+        const style =
407
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 87%;}}}';
408
+        printJS({
409
+          printable: "printMain",
410
+          type: "html",
411
+          style: style,
412
+          scanStyles: false
413
+        });
414
+        this.innerVisible = false
415
+        // this.$nextTick(() => {
416
+        //   this.$refs.print.printThisPage()
417
+        //   this.$refs.treatPrint.printThisPage()
418
+        //   this.$refs.checkPrint.printThisPage()
419
+        // })
391
       },
420
       },
392
       changeOther(patient_id){
421
       changeOther(patient_id){
393
         this.radio = 2;
422
         this.radio = 2;
1247
             this.case_history = response.data.data.case_history
1276
             this.case_history = response.data.data.case_history
1248
             this.info = response.data.data.info
1277
             this.info = response.data.data.info
1249
             this.last_info = response.data.data.last_info
1278
             this.last_info = response.data.data.last_info
1279
+            this.schedule = response.data.data.schedule
1250
 
1280
 
1251
             this.doctors = response.data.data.doctors
1281
             this.doctors = response.data.data.doctors
1252
             this.department = response.data.data.department
1282
             this.department = response.data.data.department
1384
                 var preTime = "";
1414
                 var preTime = "";
1385
 
1415
 
1386
                 if (prescription.pre_time == 0) {
1416
                 if (prescription.pre_time == 0) {
1387
-                  preTime = nowTime
1417
+                  if(this.schedule.schedule_type == 1){
1418
+                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
1419
+                  }else if(this.schedule.schedule_type == 2){
1420
+                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
1421
+                  }else if(this.schedule.schedule_type == 3){
1422
+                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1423
+                  }
1424
+                  // preTime = nowTime
1388
                 } else {
1425
                 } else {
1389
                   preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
1426
                   preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
1390
                 }
1427
                 }
1465
                     tempProject.push(obj)
1502
                     tempProject.push(obj)
1466
                   }
1503
                   }
1467
 
1504
 
1468
-
1469
-                  var preTime = nowTime
1505
+                  if(this.schedule.schedule_type == 1){
1506
+                    var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
1507
+                  }else if(this.schedule.schedule_type == 2){
1508
+                    var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
1509
+                  }else if(this.schedule.schedule_type == 3){
1510
+                    var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1511
+                  }
1512
+                  
1470
 
1513
 
1471
 
1514
 
1472
                   let index = i + 1;
1515
                   let index = i + 1;
1551
                 'p_type':2,
1594
                 'p_type':2,
1552
 
1595
 
1553
               };
1596
               };
1597
+              var nowDate = new Date()
1598
+              var nowYear = nowDate.getFullYear()
1599
+              var nowMonth = nowDate.getMonth() + 1
1600
+              var nowDay = nowDate.getDate()
1601
+              var hours = nowDate.getHours()
1602
+              var min = nowDate.getMinutes()
1603
+              var nowTime =
1604
+                nowYear +
1605
+                '-' +
1606
+                (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
1607
+                '-' +
1608
+                (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1609
+                ':' + (min < 10 ? '0' + min : min)
1554
               getPatientInfo(params).then(response => {
1610
               getPatientInfo(params).then(response => {
1555
                 if (response.data.state == 0) {
1611
                 if (response.data.state == 0) {
1556
                   this.$message.error(response.data.msg);
1612
                   this.$message.error(response.data.msg);
1569
                   this.case_history = response.data.data.case_history;
1625
                   this.case_history = response.data.data.case_history;
1570
                   this.info = response.data.data.info;
1626
                   this.info = response.data.data.info;
1571
                   this.last_info = response.data.data.last_info
1627
                   this.last_info = response.data.data.last_info
1628
+                  this.schedule = response.data.data.schedule
1572
 
1629
 
1573
                   this.doctors = response.data.data.doctors;
1630
                   this.doctors = response.data.data.doctors;
1574
                   this.department = response.data.data.department;
1631
                   this.department = response.data.data.department;
1700
                       var preTime = "";
1757
                       var preTime = "";
1701
 
1758
 
1702
                       if (prescription.pre_time == 0) {
1759
                       if (prescription.pre_time == 0) {
1703
-                        preTime = nowTime
1760
+                        // preTime = nowTime
1761
+                        if(this.schedule.schedule_type == 1){
1762
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
1763
+                        }else if(this.schedule.schedule_type == 2){
1764
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
1765
+                        }else if(this.schedule.schedule_type == 3){
1766
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1767
+                        }
1704
                       } else {
1768
                       } else {
1705
                         preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
1769
                         preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
1706
                       }
1770
                       }
1783
                         }
1847
                         }
1784
 
1848
 
1785
 
1849
 
1786
-                        var preTime = nowTime
1787
-
1850
+                        // var preTime = nowTime
1851
+                        var preTime = ''
1852
+                        if(this.schedule.schedule_type == 1){
1853
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
1854
+                        }else if(this.schedule.schedule_type == 2){
1855
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
1856
+                        }else if(this.schedule.schedule_type == 3){
1857
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1858
+                        }
1788
 
1859
 
1789
 
1860
 
1790
 
1861
 
1824
                       }
1895
                       }
1825
 
1896
 
1826
                     }else{
1897
                     }else{
1827
-
1828
                       let obj = {
1898
                       let obj = {
1829
                         id: 0,
1899
                         id: 0,
1830
                         name: '处方' + 1,
1900
                         name: '处方' + 1,
2811
               });
2881
               });
2812
             this.$refs.child.watchSign = 0
2882
             this.$refs.child.watchSign = 0
2813
           }
2883
           }
2814
-        }
2815
-        else{
2884
+        }else{
2816
         var nowDate = new Date();
2885
         var nowDate = new Date();
2817
         var nowYear = nowDate.getFullYear();
2886
         var nowYear = nowDate.getFullYear();
2818
         var nowMonth = nowDate.getMonth() + 1;
2887
         var nowMonth = nowDate.getMonth() + 1;
2895
                 this.setMonthPrescription(month_prescriptions)
2964
                 this.setMonthPrescription(month_prescriptions)
2896
                 this.doctors = response.data.data.doctors
2965
                 this.doctors = response.data.data.doctors
2897
                 this.department = response.data.data.department
2966
                 this.department = response.data.data.department
2967
+                this.schedule = response.data.data.schedule
2898
 
2968
 
2899
                 for (let i = 0; i < this.doctors.length; i++) {
2969
                 for (let i = 0; i < this.doctors.length; i++) {
2900
                   if (this.doctors[i].user_type == 1) {
2970
                   if (this.doctors[i].user_type == 1) {
3027
                     var preTime = "";
3097
                     var preTime = "";
3028
 
3098
 
3029
                     if (prescription.pre_time == 0) {
3099
                     if (prescription.pre_time == 0) {
3030
-                      preTime = nowTime
3100
+                      // preTime = nowTime
3101
+                      if(this.schedule.schedule_type == 1){
3102
+                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
3103
+                      }else if(this.schedule.schedule_type == 2){
3104
+                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
3105
+                      }else if(this.schedule.schedule_type == 3){
3106
+                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
3107
+                      }
3031
                     } else {
3108
                     } else {
3032
                       preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
3109
                       preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
3033
                     }
3110
                     }
3110
                       }
3187
                       }
3111
 
3188
 
3112
 
3189
 
3113
-                      var preTime = nowTime
3190
+                      // var preTime = nowTime
3191
+                      var preTime = ''
3192
+                      if(this.schedule.schedule_type == 1){
3193
+                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
3194
+                      }else if(this.schedule.schedule_type == 2){
3195
+                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
3196
+                      }else if(this.schedule.schedule_type == 3){
3197
+                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
3198
+                      }
3114
 
3199
 
3115
                       let index = i + 1;
3200
                       let index = i + 1;
3116
                       let obj = {
3201
                       let obj = {
3145
                     }
3230
                     }
3146
 
3231
 
3147
                   }else{
3232
                   }else{
3148
-
3149
                     let obj = {
3233
                     let obj = {
3150
                       id: 0,
3234
                       id: 0,
3151
                       name: '处方' + 1,
3235
                       name: '处方' + 1,
3317
               this.case_history = response.data.data.case_history
3401
               this.case_history = response.data.data.case_history
3318
               this.info = response.data.data.info
3402
               this.info = response.data.data.info
3319
               this.last_info = response.data.data.last_info
3403
               this.last_info = response.data.data.last_info
3320
-
3404
+              this.schedule = response.data.data.schedule
3321
               this.doctors = response.data.data.doctors
3405
               this.doctors = response.data.data.doctors
3322
               this.department = response.data.data.department
3406
               this.department = response.data.data.department
3323
 
3407
 
3446
                   }
3530
                   }
3447
 
3531
 
3448
                   var preTime = "";
3532
                   var preTime = "";
3533
+                  
3449
 
3534
 
3450
                   if (prescription.pre_time == 0) {
3535
                   if (prescription.pre_time == 0) {
3451
-                    preTime = nowTime
3536
+                    // preTime = nowTime
3537
+                    if(this.schedule.schedule_type == 1){
3538
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
3539
+                    }else if(this.schedule.schedule_type == 2){
3540
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
3541
+                    }else if(this.schedule.schedule_type == 3){
3542
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
3543
+                    }
3452
                   } else {
3544
                   } else {
3453
                     preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
3545
                     preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
3454
                   }
3546
                   }
3531
                     }
3623
                     }
3532
 
3624
 
3533
 
3625
 
3534
-                    var preTime = nowTime
3626
+                    // var preTime = nowTime
3627
+                    var preTime = ''
3628
+                    if(this.schedule.schedule_type == 1){
3629
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "7:00"
3630
+                    }else if(this.schedule.schedule_type == 2){
3631
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "11:00"
3632
+                    }else if(this.schedule.schedule_type == 3){
3633
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
3634
+                    }
3535
 
3635
 
3536
 
3636
 
3537
                     let index = i + 1;
3637
                     let index = i + 1;
3853
         })
3953
         })
3854
       },
3954
       },
3855
       handleSelectionChange1(val) {
3955
       handleSelectionChange1(val) {
3956
+        console.log('val',val)
3856
         this.selecting_schs1 = val
3957
         this.selecting_schs1 = val
3857
       },
3958
       },
3858
       handleSelectionChange2(val) {
3959
       handleSelectionChange2(val) {

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

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-      <template>
3
+      <!-- <template>
4
         <el-button
4
         <el-button
5
           style="float:right;"
5
           style="float:right;"
6
           :loading="loading"
6
           :loading="loading"
10
           type="primary"
10
           type="primary"
11
           >打印</el-button
11
           >打印</el-button
12
         >
12
         >
13
-      </template>
13
+      </template> -->
14
 
14
 
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
       <div v-if="org_id != 10138">
16
       <div v-if="org_id != 10138">

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

10
             <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
10
             <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
11
           </div>
11
           </div>
12
           <div style="display:flex;">
12
           <div style="display:flex;">
13
-            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></div>
13
+            <div style="width:33%;display:flex;">费别:<span class="under_line"><span v-if="faber && faber.transBody">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></span></div>
14
             <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber && faber.transBody ? faber.transBody.aac999 : ''  }}</span></div>
14
             <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber && faber.transBody ? faber.transBody.aac999 : ''  }}</span></div>
15
             <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
15
             <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
16
           </div>
16
           </div>
17
 
17
 
18
 
18
 
19
           <div class="infoTitle">
19
           <div class="infoTitle">
20
-              <div>姓名:{{item.patient.name?item.patient.name:""}}</div>
20
+              <div>姓名:{{item.patient.name? item.patient.name.indexOf("(") > -1 ? item.patient.name.substring(0,item.patient.name.indexOf("(")) : item.patient.name :""}}</div>
21
               <div>性别:
21
               <div>性别:
22
                 <span v-if="item.patient.gender == 1">男</span>
22
                 <span v-if="item.patient.gender == 1">男</span>
23
                 <span v-if="item.patient.gender == 2">女</span>
23
                 <span v-if="item.patient.gender == 2">女</span>
25
               <div>年龄:{{item.patient.age?item.patient.age:""}}岁</div>
25
               <div>年龄:{{item.patient.age?item.patient.age:""}}岁</div>
26
           </div>
26
           </div>
27
           <div class="infoMain">
27
           <div class="infoMain">
28
-              <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line">{{hisPatient.number?hisPatient.number:""}}</span></div>
29
-              <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line">{{item.info?getDepart(item.info.departments):''}}</span></div>
30
-              <div style="margin-bottom: 10px;display:flex;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
28
+              <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line" v-if="hisPatient.number">{{hisPatient.number?hisPatient.number:""}}</span></div>
29
+              <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line" v-if="item.info">{{item.info?getDepart(item.info.departments):''}}</span></div>
30
+              <div style="margin-bottom: 10px;display:flex;">临床诊断:{{ item.info.diagnosis ? getDiagnosis(item.info.diagnosis) : ''}}</div>
31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
162
             var advicePrint =  response.data.data.advicePrint
162
             var advicePrint =  response.data.data.advicePrint
163
             console.log("adviceprint9999",advicePrint)
163
             console.log("adviceprint9999",advicePrint)
164
             this.advicePrint = advicePrint
164
             this.advicePrint = advicePrint
165
+            this.getPage()
165
             this.prescriptions = advicePrint
166
             this.prescriptions = advicePrint
166
             console.log("处方222222",this.prescriptions)
167
             console.log("处方222222",this.prescriptions)
167
             var hisPatient = response.data.data.hisPatient
168
             var hisPatient = response.data.data.hisPatient
170
             var projectlist =  response.data.data.projectlist
171
             var projectlist =  response.data.data.projectlist
171
             console.log("所有项目列表",projectlist)
172
             console.log("所有项目列表",projectlist)
172
             this.projectList = projectlist
173
             this.projectList = projectlist
173
-            this.getPage()
174
+            
174
             let outputlist1Name = response.data.data.his.patient_info ? JSON.parse(response.data.data.his.patient_info) : {};
175
             let outputlist1Name = response.data.data.his.patient_info ? JSON.parse(response.data.data.his.patient_info) : {};
175
             this.faber = outputlist1Name
176
             this.faber = outputlist1Name
176
 
177
 
194
        getInitData().then(response=>{
195
        getInitData().then(response=>{
195
           if(response.data.state == 1){
196
           if(response.data.state == 1){
196
             this.department = response.data.data.department
197
             this.department = response.data.data.department
197
-            this.diagnoses = response.data.data.diagnose
198
+            this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
198
             console.log("争端",this.diagnoses)
199
             console.log("争端",this.diagnoses)
199
           }
200
           }
200
        })
201
        })
209
        return name
210
        return name
210
      },
211
      },
211
     getTotalOne(id) {
212
     getTotalOne(id) {
212
-
213
+        console.log('id',id)
213
         var total = 0
214
         var total = 0
214
         var addtotal = 0
215
         var addtotal = 0
215
         for (let i = 0; i < this.prescriptions.length; i++) {
216
         for (let i = 0; i < this.prescriptions.length; i++) {
261
      },
262
      },
262
 
263
 
263
      getDiagnosis(ids){
264
      getDiagnosis(ids){
264
-        let id = ids.split(',')
265
+        let newIds = ids.split(',').sort(function(a,b){
266
+          return a-b;
267
+        })
265
         var name = ""
268
         var name = ""
269
+        let nameArr = []
266
         for(let i=0;i<this.diagnoses.length;i++){
270
         for(let i=0;i<this.diagnoses.length;i++){
267
           // if(id == this.diagnoses[i].id){
271
           // if(id == this.diagnoses[i].id){
268
           //    name = this.diagnoses[i].class_name
272
           //    name = this.diagnoses[i].class_name
269
           // }
273
           // }
270
-          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
271
-            name += this.diagnoses[i].class_name + ' '
274
+          
275
+          if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
276
+            // name += diagnoses[i].class_name + ' '
277
+            nameArr.push(this.diagnoses[i].class_name)
272
           }
278
           }
273
         }
279
         }
274
-        return name
280
+        let newNameArr = []
281
+        nameArr.map((item,index) => {
282
+          if(item == '尿毒症'){
283
+            newNameArr.push(item)
284
+            nameArr.splice(index,1,'') 
285
+          }
286
+        })
287
+        newNameArr.push(...nameArr)
288
+        return newNameArr.join(' ')
275
      },
289
      },
290
+     compare(property) {
291
+        return function(a,b){
292
+          var value1 = a[property];
293
+          var value2 = b[property];
294
+          return value1 - value2;//升序排序
295
+        }
296
+      },
276
      getPage(){
297
      getPage(){
277
         this.page = 1
298
         this.page = 1
278
         this.pageArr = []
299
         this.pageArr = []
374
 
395
 
375
    },
396
    },
376
    created(){
397
    created(){
398
+      this.getPrescriptionPrint()
377
       this.getAllDoctorList()
399
       this.getAllDoctorList()
378
       this.getInitData()
400
       this.getInitData()
379
-      this.getPrescriptionPrint()
401
+      
380
       this.getHisPatientDetail()
402
       this.getHisPatientDetail()
381
       var xtuser = this.$store.getters.xt_user;
403
       var xtuser = this.$store.getters.xt_user;
382
       this.orgname = xtuser.org.org_name;
404
       this.orgname = xtuser.org.org_name;
384
    },
406
    },
385
    watch:{
407
    watch:{
386
      ids:function(val){
408
      ids:function(val){
409
+       console.log('val1111111111111111111111111111',val)
387
       this.ids = val
410
       this.ids = val
388
       this.getPrescriptionPrint()
411
       this.getPrescriptionPrint()
389
     }
412
     }

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

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-       <template>
3
+       <!-- <template>
4
         <el-button
4
         <el-button
5
           style="float:right;"
5
           style="float:right;"
6
           :loading="loading"
6
           :loading="loading"
10
           type="primary"
10
           type="primary"
11
           >打印</el-button
11
           >打印</el-button
12
         >
12
         >
13
-      </template>
13
+      </template> -->
14
             
14
             
15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
         <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
         <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>

+ 28 - 7
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue View File

15
 
15
 
16
 
16
 
17
         <div class="infoTitle">
17
         <div class="infoTitle">
18
-            <div>姓名:{{item.patient.name?item.patient.name:""}}</div>
18
+            <div>姓名:{{item.patient.name? item.patient.name.indexOf("(") > -1 ? item.patient.name.substring(0,item.patient.name.indexOf("(")) : item.patient.name :""}}</div>
19
             <div>性别:
19
             <div>性别:
20
             <span v-if="item.patient.gender == 1">男</span>
20
             <span v-if="item.patient.gender == 1">男</span>
21
             <span v-if="item.patient.gender == 2">女</span>
21
             <span v-if="item.patient.gender == 2">女</span>
389
        getInitData().then(response=>{
389
        getInitData().then(response=>{
390
           if(response.data.state == 1){
390
           if(response.data.state == 1){
391
             this.department = response.data.data.department
391
             this.department = response.data.data.department
392
-            this.diagnoses = response.data.data.diagnose
392
+            this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
393
             console.log("争端",this.diagnoses)
393
             console.log("争端",this.diagnoses)
394
           }
394
           }
395
        })
395
        })
396
      },
396
      },
397
      getDiagnosis(ids){
397
      getDiagnosis(ids){
398
-        let id = ids.split(',')
398
+        let newIds = ids.split(',').sort(function(a,b){
399
+          return a-b;
400
+        })
401
+        
399
         var name = ""
402
         var name = ""
403
+        let nameArr = []
400
         for(let i=0;i<this.diagnoses.length;i++){
404
         for(let i=0;i<this.diagnoses.length;i++){
401
           // if(id == this.diagnoses[i].id){
405
           // if(id == this.diagnoses[i].id){
402
           //    name = this.diagnoses[i].class_name
406
           //    name = this.diagnoses[i].class_name
403
           // }
407
           // }
404
-          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
405
-            name += this.diagnoses[i].class_name + ' '
408
+          
409
+          if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
410
+            // name += diagnoses[i].class_name + ' '
411
+            nameArr.push(this.diagnoses[i].class_name)
406
           }
412
           }
407
         }
413
         }
408
-        return name
414
+        let newNameArr = []
415
+        nameArr.map((item,index) => {
416
+          if(item == '尿毒症'){
417
+            newNameArr.push(item)
418
+            nameArr.splice(index,1,'') 
419
+          }
420
+        })
421
+        newNameArr.push(...nameArr)
422
+        return newNameArr.join(' ')
409
      },
423
      },
424
+     compare(property) {
425
+        return function(a,b){
426
+          var value1 = a[property];
427
+          var value2 = b[property];
428
+          return value1 - value2;//升序排序
429
+        }
430
+      },
410
      getName(list) {
431
      getName(list) {
411
-        console.log('list',list)
432
+        console.log('list22',list)
412
         let new_list = []
433
         let new_list = []
413
         for (let i = 0; i < list.length; i++) {
434
         for (let i = 0; i < list.length; i++) {
414
           if (list[i].aac031 == '1') {
435
           if (list[i].aac031 == '1') {

+ 3 - 3
src/xt_pages/workforce/remind_print_setting.vue View File

22
               <div class="signPrint">
22
               <div class="signPrint">
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
24
                 <div>姓名:{{main_collection.patient.name}}</div> 
24
                 <div>姓名:{{main_collection.patient.name}}</div> 
25
-                <div>抗凝剂: {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}} </div> 
26
-                <div>量:  
25
+                <div>抗凝剂: {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name + ' 5000iu/瓶' : ''}}</div> 
26
+                <div>量:  
27
                   <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
27
                   <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
28
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
28
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
29
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
29
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
32
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
32
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
33
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
33
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
34
                 </div> 
34
                 </div> 
35
-                <div>用法:透析备用</div> 
35
+                <div>用法:静脉注射</div> 
36
                 <div>打印时间:{{currentDate}}</div>
36
                 <div>打印时间:{{currentDate}}</div>
37
               </div>
37
               </div>
38
            </div>
38
            </div>