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

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

@@ -165,7 +165,7 @@
165 165
                   <div class="inline_block" style="margin-left:90px;">
166 166
                     体重增加:
167 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 169
                     </div>
170 170
                     kg
171 171
                   </div>
@@ -574,7 +574,7 @@
574 574
                   <tbody>
575 575
                     <tr>
576 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 578
                       </td>
579 579
                     </tr>
580 580
                     <tr>
@@ -611,12 +611,17 @@
611 611
                       <td style="line-height:16px;padding:0px;">
612 612
                         <div style="min-height:35px;line-height:35px; overflow:hidden;">
613 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 615
                             {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
616 616
                           </span>
617 617
                         </div>
618 618
                       </td>
619 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 625
                   </tbody>
621 626
                 </table>
622 627
               </td>
@@ -1191,11 +1196,11 @@ export default {
1191 1196
           this.monitors[index].end = ''
1192 1197
           if (Object.keys(monitor).length > 0 && index > 1) {
1193 1198
             if (this.dialysisOrder && monitor.operate_time == this.dialysisOrder.end_time) {
1194
-              this.monitors[index].end = '【结束透析】'
1199
+              this.monitors[index].end = '【结束透析】回血100ml/min'
1195 1200
               tempmonitorflag = false
1196 1201
             }
1197 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,8 +82,8 @@
82 82
     </el-form>
83 83
 
84 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 87
   </span>
88 88
   </el-dialog>
89 89
 

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

@@ -389,8 +389,35 @@
389 389
                       }
390 390
                     })
391 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 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,7 +9,7 @@
9 9
             </div>
10 10
             <div style="display:flex;justify-content: space-between;">
11 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 13
                   <div>性别:<span style="display:inline-block;width:30px;">{{info.patient_info.transBody.aac004 == '1' ? '男' : '女'}}</span></div>
14 14
                   <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient_info.transBody.bae093 ? info.patient_info.transBody.bae093 : ''}}岁</span></div>
15 15
                   <div>费别:<span style="display:inline-block;min-width:80px;">{{info.patient_info.transBody.outputlist1 ? getName(info.patient_info.transBody.outputlist1) : ''}}</span>
@@ -85,7 +85,7 @@
85 85
             </div>
86 86
             <div style="display:flex;justify-content: space-between;">
87 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 89
                   <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span></div>
90 90
                   <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span></div>
91 91
                   <div>费别:<span style="display:inline-block;width:80px;">自费</span>
@@ -140,9 +140,9 @@
140 140
                           <span v-if="item.type == 3">{{ subItem.pric }}</span>
141 141
                         </td>
142 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 146
                         </td>
147 147
                         <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
148 148
                       </tr>
@@ -398,6 +398,9 @@
398 398
           case '26':
399 399
             return '挂号费'
400 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,7 +6,7 @@
6 6
         <div class="app-container">
7 7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 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 10
                               class="filter-item"/>
11 11
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12 12
                                @click="searchAction">
@@ -89,6 +89,16 @@
89 89
                         <div>{{getMedType(scope.row.med_type)}}</div>
90 90
                     </template>
91 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 102
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
93 103
                     <template slot-scope="scope">
94 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,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-       <template>
3
+       <!-- <template>
4 4
         <el-button
5 5
           style="float:right;"
6 6
           :loading="loading"
@@ -10,7 +10,7 @@
10 10
           type="primary"
11 11
           >打印</el-button
12 12
         >
13
-      </template>
13
+      </template> -->
14 14
             
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16 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,7 +11,7 @@
11 11
                     <div>金额:{{ total }}</div>
12 12
                 </div>
13 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 15
                     <div>性别:
16 16
                         <span v-if="advicePrint[0].patient.gender == 1">男</span>
17 17
                         <span v-if="advicePrint[0].patient.gender == 2">女</span>
@@ -185,7 +185,7 @@ export default {
185 185
        getInitData().then(response=>{
186 186
           if(response.data.state == 1){
187 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 189
             console.log("争端",this.diagnoses)
190 190
           }
191 191
        })
@@ -252,18 +252,39 @@ export default {
252 252
      },
253 253
 
254 254
      getDiagnosis(ids){
255
-        let id = ids.split(',')
255
+        let newIds = ids.split(',').sort(function(a,b){
256
+          return a-b;
257
+        })
258
+        
256 259
         var name = ""
260
+        let nameArr = []
257 261
         for(let i=0;i<this.diagnoses.length;i++){
258 262
           // if(id == this.diagnoses[i].id){
259 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 288
      getPage(){
268 289
         this.page = 1
269 290
         this.pageArr = []

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

@@ -1910,10 +1910,7 @@
1910 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 1915
         if (info.prescription_status == 0) {
1919 1916
           this.order_status = ''
@@ -1991,7 +1988,19 @@
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 1999
             }else{
2000
+              this.state2 = info.sick_history
2001
+              if (this.state2 == 0) {
2002
+                this.state2 = ''
2003
+              }
1995 2004
               if(info.diagnosis.length == 0){
1996 2005
                 this.diagnose = []
1997 2006
               }else{
@@ -2660,7 +2669,7 @@
2660 2669
                   single_dose: temp[b].single_dose,
2661 2670
                   delivery_way: temp[b].delivery_way,
2662 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 2673
                   remark: '',
2665 2674
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2666 2675
                   prescribing_number: temp[b].prescribing_number,

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

@@ -152,9 +152,10 @@
152 152
                 :visible.sync="centerDialogVisible"
153 153
                 width="600px"
154 154
                 center>
155
+                <el-button @click="allCheck">全选</el-button>
155 156
                 <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>
156 157
                 <el-table
157
-                    ref="multipleTable"
158
+                    ref="multipleTable1"
158 159
                     :data="tableData1"
159 160
                     tooltip-effect="dark"
160 161
                     style="width: 600px"
@@ -183,7 +184,7 @@
183 184
             </el-table>
184 185
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">治疗单打印</div>
185 186
                 <el-table
186
-                    ref="multipleTable"
187
+                    ref="multipleTable2"
187 188
                     :data="tableData2"
188 189
                     tooltip-effect="dark"
189 190
                     style="width: 600px"
@@ -212,7 +213,7 @@
212 213
             </el-table>
213 214
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">检验单打印</div>
214 215
                 <el-table
215
-                    ref="multipleTable"
216
+                    ref="multipleTable3"
216 217
                     :data="tableData3"
217 218
                     tooltip-effect="dark"
218 219
                     style="width: 600px"
@@ -245,9 +246,23 @@
245 246
                     title="打印"
246 247
                     :visible.sync="innerVisible"
247 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 266
             </el-dialog>
252 267
             <span slot="footer" class="dialog-footer">
253 268
         <el-button @click="centerDialogVisible = false">取 消</el-button>
@@ -382,12 +397,26 @@
382 397
         // this.centerDialogVisible = true
383 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 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 421
       changeOther(patient_id){
393 422
         this.radio = 2;
@@ -1247,6 +1276,7 @@
1247 1276
             this.case_history = response.data.data.case_history
1248 1277
             this.info = response.data.data.info
1249 1278
             this.last_info = response.data.data.last_info
1279
+            this.schedule = response.data.data.schedule
1250 1280
 
1251 1281
             this.doctors = response.data.data.doctors
1252 1282
             this.department = response.data.data.department
@@ -1384,7 +1414,14 @@
1384 1414
                 var preTime = "";
1385 1415
 
1386 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 1425
                 } else {
1389 1426
                   preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
1390 1427
                 }
@@ -1465,8 +1502,14 @@
1465 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 1515
                   let index = i + 1;
@@ -1551,6 +1594,19 @@
1551 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 1610
               getPatientInfo(params).then(response => {
1555 1611
                 if (response.data.state == 0) {
1556 1612
                   this.$message.error(response.data.msg);
@@ -1569,6 +1625,7 @@
1569 1625
                   this.case_history = response.data.data.case_history;
1570 1626
                   this.info = response.data.data.info;
1571 1627
                   this.last_info = response.data.data.last_info
1628
+                  this.schedule = response.data.data.schedule
1572 1629
 
1573 1630
                   this.doctors = response.data.data.doctors;
1574 1631
                   this.department = response.data.data.department;
@@ -1700,7 +1757,14 @@
1700 1757
                       var preTime = "";
1701 1758
 
1702 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 1768
                       } else {
1705 1769
                         preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
1706 1770
                       }
@@ -1783,8 +1847,15 @@
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,7 +1895,6 @@
1824 1895
                       }
1825 1896
 
1826 1897
                     }else{
1827
-
1828 1898
                       let obj = {
1829 1899
                         id: 0,
1830 1900
                         name: '处方' + 1,
@@ -2811,8 +2881,7 @@
2811 2881
               });
2812 2882
             this.$refs.child.watchSign = 0
2813 2883
           }
2814
-        }
2815
-        else{
2884
+        }else{
2816 2885
         var nowDate = new Date();
2817 2886
         var nowYear = nowDate.getFullYear();
2818 2887
         var nowMonth = nowDate.getMonth() + 1;
@@ -2895,6 +2964,7 @@
2895 2964
                 this.setMonthPrescription(month_prescriptions)
2896 2965
                 this.doctors = response.data.data.doctors
2897 2966
                 this.department = response.data.data.department
2967
+                this.schedule = response.data.data.schedule
2898 2968
 
2899 2969
                 for (let i = 0; i < this.doctors.length; i++) {
2900 2970
                   if (this.doctors[i].user_type == 1) {
@@ -3027,7 +3097,14 @@
3027 3097
                     var preTime = "";
3028 3098
 
3029 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 3108
                     } else {
3032 3109
                       preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
3033 3110
                     }
@@ -3110,7 +3187,15 @@
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 3200
                       let index = i + 1;
3116 3201
                       let obj = {
@@ -3145,7 +3230,6 @@
3145 3230
                     }
3146 3231
 
3147 3232
                   }else{
3148
-
3149 3233
                     let obj = {
3150 3234
                       id: 0,
3151 3235
                       name: '处方' + 1,
@@ -3317,7 +3401,7 @@
3317 3401
               this.case_history = response.data.data.case_history
3318 3402
               this.info = response.data.data.info
3319 3403
               this.last_info = response.data.data.last_info
3320
-
3404
+              this.schedule = response.data.data.schedule
3321 3405
               this.doctors = response.data.data.doctors
3322 3406
               this.department = response.data.data.department
3323 3407
 
@@ -3446,9 +3530,17 @@
3446 3530
                   }
3447 3531
 
3448 3532
                   var preTime = "";
3533
+                  
3449 3534
 
3450 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 3544
                   } else {
3453 3545
                     preTime = this.getTime(prescription.pre_time, "{y}-{m}-{d} {h}:{i}")
3454 3546
                   }
@@ -3531,7 +3623,15 @@
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 3637
                     let index = i + 1;
@@ -3853,6 +3953,7 @@
3853 3953
         })
3854 3954
       },
3855 3955
       handleSelectionChange1(val) {
3956
+        console.log('val',val)
3856 3957
         this.selecting_schs1 = val
3857 3958
       },
3858 3959
       handleSelectionChange2(val) {

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

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

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

@@ -10,14 +10,14 @@
10 10
             <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
11 11
           </div>
12 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 14
             <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber && faber.transBody ? faber.transBody.aac999 : ''  }}</span></div>
15 15
             <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
16 16
           </div>
17 17
 
18 18
 
19 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 21
               <div>性别:
22 22
                 <span v-if="item.patient.gender == 1">男</span>
23 23
                 <span v-if="item.patient.gender == 2">女</span>
@@ -25,9 +25,9 @@
25 25
               <div>年龄:{{item.patient.age?item.patient.age:""}}岁</div>
26 26
           </div>
27 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 31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
32 32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
33 33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
@@ -162,6 +162,7 @@ export default {
162 162
             var advicePrint =  response.data.data.advicePrint
163 163
             console.log("adviceprint9999",advicePrint)
164 164
             this.advicePrint = advicePrint
165
+            this.getPage()
165 166
             this.prescriptions = advicePrint
166 167
             console.log("处方222222",this.prescriptions)
167 168
             var hisPatient = response.data.data.hisPatient
@@ -170,7 +171,7 @@ export default {
170 171
             var projectlist =  response.data.data.projectlist
171 172
             console.log("所有项目列表",projectlist)
172 173
             this.projectList = projectlist
173
-            this.getPage()
174
+            
174 175
             let outputlist1Name = response.data.data.his.patient_info ? JSON.parse(response.data.data.his.patient_info) : {};
175 176
             this.faber = outputlist1Name
176 177
 
@@ -194,7 +195,7 @@ export default {
194 195
        getInitData().then(response=>{
195 196
           if(response.data.state == 1){
196 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 199
             console.log("争端",this.diagnoses)
199 200
           }
200 201
        })
@@ -209,7 +210,7 @@ export default {
209 210
        return name
210 211
      },
211 212
     getTotalOne(id) {
212
-
213
+        console.log('id',id)
213 214
         var total = 0
214 215
         var addtotal = 0
215 216
         for (let i = 0; i < this.prescriptions.length; i++) {
@@ -261,18 +262,38 @@ export default {
261 262
      },
262 263
 
263 264
      getDiagnosis(ids){
264
-        let id = ids.split(',')
265
+        let newIds = ids.split(',').sort(function(a,b){
266
+          return a-b;
267
+        })
265 268
         var name = ""
269
+        let nameArr = []
266 270
         for(let i=0;i<this.diagnoses.length;i++){
267 271
           // if(id == this.diagnoses[i].id){
268 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 297
      getPage(){
277 298
         this.page = 1
278 299
         this.pageArr = []
@@ -374,9 +395,10 @@ export default {
374 395
 
375 396
    },
376 397
    created(){
398
+      this.getPrescriptionPrint()
377 399
       this.getAllDoctorList()
378 400
       this.getInitData()
379
-      this.getPrescriptionPrint()
401
+      
380 402
       this.getHisPatientDetail()
381 403
       var xtuser = this.$store.getters.xt_user;
382 404
       this.orgname = xtuser.org.org_name;
@@ -384,6 +406,7 @@ export default {
384 406
    },
385 407
    watch:{
386 408
      ids:function(val){
409
+       console.log('val1111111111111111111111111111',val)
387 410
       this.ids = val
388 411
       this.getPrescriptionPrint()
389 412
     }

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

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-       <template>
3
+       <!-- <template>
4 4
         <el-button
5 5
           style="float:right;"
6 6
           :loading="loading"
@@ -10,7 +10,7 @@
10 10
           type="primary"
11 11
           >打印</el-button
12 12
         >
13
-      </template>
13
+      </template> -->
14 14
             
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16 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,7 +15,7 @@
15 15
 
16 16
 
17 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 19
             <div>性别:
20 20
             <span v-if="item.patient.gender == 1">男</span>
21 21
             <span v-if="item.patient.gender == 2">女</span>
@@ -389,26 +389,47 @@ export default {
389 389
        getInitData().then(response=>{
390 390
           if(response.data.state == 1){
391 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 393
             console.log("争端",this.diagnoses)
394 394
           }
395 395
        })
396 396
      },
397 397
      getDiagnosis(ids){
398
-        let id = ids.split(',')
398
+        let newIds = ids.split(',').sort(function(a,b){
399
+          return a-b;
400
+        })
401
+        
399 402
         var name = ""
403
+        let nameArr = []
400 404
         for(let i=0;i<this.diagnoses.length;i++){
401 405
           // if(id == this.diagnoses[i].id){
402 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 431
      getName(list) {
411
-        console.log('list',list)
432
+        console.log('list22',list)
412 433
         let new_list = []
413 434
         for (let i = 0; i < list.length; i++) {
414 435
           if (list[i].aac031 == '1') {

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

@@ -22,8 +22,8 @@
22 22
               <div class="signPrint">
23 23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
24 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 27
                   <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
28 28
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
29 29
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
@@ -32,7 +32,7 @@
32 32
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
33 33
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
34 34
                 </div> 
35
-                <div>用法:透析备用</div> 
35
+                <div>用法:静脉注射</div> 
36 36
                 <div>打印时间:{{currentDate}}</div>
37 37
               </div>
38 38
            </div>