Browse Source

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

csx 3 years ago
parent
commit
db9fa9fb05

+ 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>

+ 5 - 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>

+ 1 - 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">

+ 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 = []

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

2669
                   single_dose: temp[b].single_dose,
2669
                   single_dose: temp[b].single_dose,
2670
                   delivery_way: temp[b].delivery_way,
2670
                   delivery_way: temp[b].delivery_way,
2671
                   execution_frequency: temp[b].execution_frequency,
2671
                   execution_frequency: temp[b].execution_frequency,
2672
-                  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(),
2673
                   remark: '',
2673
                   remark: '',
2674
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2674
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2675
                   prescribing_number: temp[b].prescribing_number,
2675
                   prescribing_number: temp[b].prescribing_number,

+ 31 - 8
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

245
                     title="打印"
245
                     title="打印"
246
                     :visible.sync="innerVisible"
246
                     :visible.sync="innerVisible"
247
                     append-to-body>
247
                     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>
248
+                  <template>
249
+                    <el-button
250
+                      style="float:right;"
251
+                      :loading="loading"
252
+                      size="small"
253
+                      icon="el-icon-printer"
254
+                      @click="printThisPage"
255
+                      type="primary"
256
+                      >打印</el-button
257
+                    >
258
+                  </template>  
259
+                  <div id='printMain'>
260
+                    <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
261
+                    <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
262
+                    <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
263
+                  </div>
264
+                
251
             </el-dialog>
265
             </el-dialog>
252
             <span slot="footer" class="dialog-footer">
266
             <span slot="footer" class="dialog-footer">
253
         <el-button @click="centerDialogVisible = false">取 消</el-button>
267
         <el-button @click="centerDialogVisible = false">取 消</el-button>
383
         this.getPrescriptionList(this.patientInfo.id)
397
         this.getPrescriptionList(this.patientInfo.id)
384
       },
398
       },
385
       printThisPage(){
399
       printThisPage(){
386
-        this.$nextTick(() => {
387
-          this.$refs.print.printThisPage()
388
-          this.$refs.treatPrint.printThisPage()
389
-          this.$refs.checkPrint.printThisPage()
390
-        })
400
+        const style =
401
+          '@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%;}}}';
402
+        printJS({
403
+          printable: "printMain",
404
+          type: "html",
405
+          style: style,
406
+          scanStyles: false
407
+        });
408
+        this.innerVisible = false
409
+        // this.$nextTick(() => {
410
+        //   this.$refs.print.printThisPage()
411
+        //   this.$refs.treatPrint.printThisPage()
412
+        //   this.$refs.checkPrint.printThisPage()
413
+        // })
391
       },
414
       },
392
       changeOther(patient_id){
415
       changeOther(patient_id){
393
         this.radio = 2;
416
         this.radio = 2;

+ 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>