Browse Source

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

陈少旭 10 months ago
parent
commit
0ef54a42ae

+ 10 - 4
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -321,7 +321,7 @@ export default {
321 321
       ],
322 322
       tableHeight: 400,
323 323
       start_time: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
324
-      start_time2: moment(new Date()).add("year", 0).format("YYYY-MM-DD hh:mm"),
324
+      start_time2: moment(new Date()).add("year", 0).format("YYYY-MM-DD HH:mm"),
325 325
       state: 1, //1待发药,2已发药
326 326
       waitmount: 0, //待发药人数
327 327
       waitmount_data: [],
@@ -349,7 +349,9 @@ export default {
349 349
       baseList:[],
350 350
       org_id:'',
351 351
       patients:{},
352
-      doctors:[]
352
+      doctors:[],
353
+      diagnosearr:[],
354
+      diagnosis:'',
353 355
     };
354 356
   },
355 357
   watch: {},
@@ -565,6 +567,8 @@ export default {
565 567
            this.baseList =[]
566 568
           this.baseList = res.data.data.baseList
567 569
           this.doctors = res.data.data.doctors
570
+          this.diagnosearr = res.data.data.diagnose
571
+          this.diagnosis = res.data.data.prescription.diagnosis
568 572
           const obj={
569 573
             age:res.data.data.patients.age,
570 574
             gender: res.data.data.patients.gender,
@@ -611,10 +615,12 @@ export default {
611 615
             this.tableData,
612 616
             this.currentRow,
613 617
             this.state,
614
-            this.start_time2,
618
+            this.start_time,
615 619
             this.baseList,
616 620
             this.patients,
617
-            this.doctors
621
+            this.doctors,
622
+            this.diagnosearr,
623
+            this.diagnosis
618 624
           )
619 625
         }
620 626
       }

+ 30 - 7
src/xt_pages/Pharmacy/print/patientPrintTwo.vue View File

@@ -6,7 +6,7 @@
6 6
     :close-on-press-escape="isClose"
7 7
   >
8 8
     <el-button type="primary" @click="print" class="print_style"
9
-      >打印23</el-button
9
+      >打印</el-button
10 10
     >
11 11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12 12
       <div class="list_title" style="border-bottom:none;">
@@ -25,7 +25,8 @@
25 25
         <span>性别:{{ patients.gender==1 ?'男':'女'}}</span>&nbsp;&nbsp;
26 26
         <span>年龄:{{patients.age}}</span>&nbsp;&nbsp;
27 27
         <span>住院科室:肾内科</span>&nbsp;&nbsp;
28
-        <span>入院诊断:{{patients.diagnose}}</span>
28
+        <!-- <span>入院诊断:{{patients.diagnose}}</span> -->
29
+        <span>入院诊断:{{ getdiagnosis(diagnosis) }}</span>
29 30
       </div>
30 31
       <div>
31 32
         <table class="table" border="1" 
@@ -102,7 +103,9 @@ export default {
102 103
       Doctor:'',
103 104
       patients:{},
104 105
       doctors:[],
105
-      Price_zong:0
106
+      Price_zong:0,
107
+      diagnosearr:[],
108
+      diagnosis:'',
106 109
     };
107 110
   },
108 111
   props: {
@@ -137,7 +140,7 @@ export default {
137 140
         }
138 141
       }
139 142
     },
140
-    show: function (val,data,state,times,base,patients,doctors) {
143
+    show: function (val,data,state,times,base,patients,doctors,arr,diagnosis) {
141 144
       this.times = times
142 145
       this.visibility = true;
143 146
       console.log("val",val)
@@ -148,6 +151,8 @@ export default {
148 151
       this.baseList = base
149 152
       this.patients = patients
150 153
       this.doctors = doctors
154
+      this.diagnosearr = arr
155
+      this.diagnosis = diagnosis
151 156
       if (state == 1){
152 157
         this.state = "待发药"
153 158
       }
@@ -160,7 +165,25 @@ export default {
160 165
         }
161 166
       }
162 167
     },
163
-
168
+    getdiagnosis(val){
169
+      const diagnosis = val.split(',')
170
+      console.log('diagnosis',diagnosis)
171
+      const diagn = []
172
+      // const dia_id =[]
173
+      const arr = this.diagnosearr
174
+      if(diagnosis.length>0 && arr.length>0){
175
+        for(let i in arr){
176
+          for(let j in diagnosis){
177
+            if(arr[i].id ==diagnosis[j]){
178
+              diagn.push(arr[i].class_name)
179
+            }
180
+          }
181
+          var arr2 = diagn.join()
182
+          console.log('arr2',arr2);
183
+        }
184
+      }
185
+      return arr2
186
+    },
164 187
     comfirm: function (formName) {
165 188
       this.goodInfo = [];
166 189
       this.goodInfoTableData = [];
@@ -301,8 +324,8 @@ export default {
301 324
 .table tr td{
302 325
  border:1px solid black;
303 326
  padding: 5px 0;
304
-//  border-left: none;
305
-//  border-right: none;
327
+ border-left: none;
328
+ border-right: none;
306 329
 }
307 330
 </style>
308 331
 

+ 1 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -1657,6 +1657,7 @@
1657 1657
 
1658 1658
          if(ParamsQuery.additional_weight >=30){
1659 1659
              this.$message.error("衣物重异常,请重新填写!")
1660
+             return
1660 1661
          }
1661 1662
 
1662 1663
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -2345,7 +2345,7 @@
2345 2345
 
2346 2346
 
2347 2347
                       <tr
2348
-                      v-if="org_id == 0 || org_id ==10206"
2348
+                      v-if="org_id == 0 || org_id ==10206 || org_id ==10489"
2349 2349
                       v-for="(advice, advice_index) in projectsOne"
2350 2350
                       :key="advice_index"
2351 2351
                     >
@@ -4718,7 +4718,7 @@ export default {
4718 4718
 
4719 4719
         
4720 4720
 
4721
-        if(this.org_id== 0 || this.org_id ==10206){
4721
+        if(this.org_id== 0 || this.org_id ==10206 || this.org_id ==10489){
4722 4722
           let projectsOne = [];
4723 4723
           response.data.data.projects.map((item) => {
4724 4724
               projectsOne.push(item);

+ 7 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSop.vue View File

@@ -68,10 +68,13 @@
68 68
               <td colspan="3">
69 69
                 <div style="display: flex;">
70 70
                   <span>治疗抗凝:</span>
71
-                  <label-box :isChecked="prescription.anticoagulant=='低分子量肝素'?true :false" showValue="低分子量肝素:"></label-box>&nbsp;
72
-                  <span v-if="prescription.anticoagulant=='低分子量肝素'">
71
+                  <span v-if="prescription.anticoagulant !='普通肝素' && prescription.anticoagulant!='无肝素' && prescription.anticoagulant!='枸橼酸'">
72
+                    {{ prescription.anticoagulant }} &nbsp;&nbsp; 
73 73
                     {{prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "0"}}
74
-                  </span>U &nbsp;&nbsp;
74
+                  </span>U&nbsp;&nbsp; 
75
+                  <!-- <span v-if="prescription.anticoagulant !='普通肝素' && prescription.anticoagulant!='无肝素' && prescription.anticoagulant!='枸橼酸'">
76
+                    
77
+                  </span>U &nbsp;&nbsp; -->
75 78
                   <label-box :isChecked="prescription.anticoagulant=='普通肝素'?true :false" showValue="普通肝素:"></label-box>&nbsp;&nbsp;
76 79
                   <div style="display: inline-block;">
77 80
                     首剂:
@@ -159,7 +162,7 @@
159 162
                             predialysis.blood_access_part_opera_name!='长期静脉导管' &&
160 163
                             predialysis.blood_access_part_opera_name!='临时静脉导管' &&
161 164
                             predialysis.blood_access_part_opera_name!=''?true :false" showValue="其它">
162
-                </label-box>
165
+                </label-box> 
163 166
               </div>&nbsp;&nbsp;
164 167
               <div style="display: inline-block;">
165 168
                 穿刺者:

+ 1 - 1
src/xt_pages/outpatientCharges/components/callUnAssociationPrescription.vue View File

@@ -319,7 +319,7 @@
319 319
               tempProject.push(obj)
320 320
             }
321 321
             let obj = {
322
-              id: 0,
322
+              id: prescription.id,
323 323
               advices: tempAdvice,
324 324
               project: tempProject,
325 325
               addition:tempAddition,

+ 3 - 5
src/xt_pages/user/patients.vue View File

@@ -101,7 +101,7 @@
101 101
         <el-badge :value=value class="item">
102 102
           <el-button size="small" type="primary" @click="toRemind">传染病检查提醒</el-button>
103 103
         </el-badge>
104
-        <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload" v-if="isShow"></upload-excel>
104
+        <upload-excel :on-success='handleSuccess'  v-if="isShow"></upload-excel>
105 105
 
106 106
         <el-link target="_blank" href="https://kuyi.shengws.com/patient_template.xlsx" :underline="false"
107 107
                  style="margin-left:15px">
@@ -1031,7 +1031,7 @@
1031 1031
 
1032 1032
       },
1033 1033
       handleSuccess({ results, header }) {
1034
-
1034
+        console.log("header5444444444444444",header)
1035 1035
         if (header != undefined && header.length > 0) {
1036 1036
           var isHasName = header.includes('*姓名')
1037 1037
           var isHasGender = header.includes('*性别')
@@ -1880,9 +1880,7 @@
1880 1880
        return work_unit
1881 1881
     },
1882 1882
 
1883
-    beforeUpload(){
1884
-
1885
-    }
1883
+   
1886 1884
 
1887 1885
     }
1888 1886
   }