yq1 před 10 měsíci
rodič
revize
f721272577

+ 10 - 4
src/xt_pages/Pharmacy/PatientDispensing.vue Zobrazit soubor

321
       ],
321
       ],
322
       tableHeight: 400,
322
       tableHeight: 400,
323
       start_time: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
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
       state: 1, //1待发药,2已发药
325
       state: 1, //1待发药,2已发药
326
       waitmount: 0, //待发药人数
326
       waitmount: 0, //待发药人数
327
       waitmount_data: [],
327
       waitmount_data: [],
349
       baseList:[],
349
       baseList:[],
350
       org_id:'',
350
       org_id:'',
351
       patients:{},
351
       patients:{},
352
-      doctors:[]
352
+      doctors:[],
353
+      diagnosearr:[],
354
+      diagnosis:'',
353
     };
355
     };
354
   },
356
   },
355
   watch: {},
357
   watch: {},
565
            this.baseList =[]
567
            this.baseList =[]
566
           this.baseList = res.data.data.baseList
568
           this.baseList = res.data.data.baseList
567
           this.doctors = res.data.data.doctors
569
           this.doctors = res.data.data.doctors
570
+          this.diagnosearr = res.data.data.diagnose
571
+          this.diagnosis = res.data.data.prescription.diagnosis
568
           const obj={
572
           const obj={
569
             age:res.data.data.patients.age,
573
             age:res.data.data.patients.age,
570
             gender: res.data.data.patients.gender,
574
             gender: res.data.data.patients.gender,
611
             this.tableData,
615
             this.tableData,
612
             this.currentRow,
616
             this.currentRow,
613
             this.state,
617
             this.state,
614
-            this.start_time2,
618
+            this.start_time,
615
             this.baseList,
619
             this.baseList,
616
             this.patients,
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 Zobrazit soubor

6
     :close-on-press-escape="isClose"
6
     :close-on-press-escape="isClose"
7
   >
7
   >
8
     <el-button type="primary" @click="print" class="print_style"
8
     <el-button type="primary" @click="print" class="print_style"
9
-      >打印23</el-button
9
+      >打印</el-button
10
     >
10
     >
11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12
       <div class="list_title" style="border-bottom:none;">
12
       <div class="list_title" style="border-bottom:none;">
25
         <span>性别:{{ patients.gender==1 ?'男':'女'}}</span>&nbsp;&nbsp;
25
         <span>性别:{{ patients.gender==1 ?'男':'女'}}</span>&nbsp;&nbsp;
26
         <span>年龄:{{patients.age}}</span>&nbsp;&nbsp;
26
         <span>年龄:{{patients.age}}</span>&nbsp;&nbsp;
27
         <span>住院科室:肾内科</span>&nbsp;&nbsp;
27
         <span>住院科室:肾内科</span>&nbsp;&nbsp;
28
-        <span>入院诊断:{{patients.diagnose}}</span>
28
+        <!-- <span>入院诊断:{{patients.diagnose}}</span> -->
29
+        <span>入院诊断:{{ getdiagnosis(diagnosis) }}</span>
29
       </div>
30
       </div>
30
       <div>
31
       <div>
31
         <table class="table" border="1" 
32
         <table class="table" border="1" 
102
       Doctor:'',
103
       Doctor:'',
103
       patients:{},
104
       patients:{},
104
       doctors:[],
105
       doctors:[],
105
-      Price_zong:0
106
+      Price_zong:0,
107
+      diagnosearr:[],
108
+      diagnosis:'',
106
     };
109
     };
107
   },
110
   },
108
   props: {
111
   props: {
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
       this.times = times
144
       this.times = times
142
       this.visibility = true;
145
       this.visibility = true;
143
       console.log("val",val)
146
       console.log("val",val)
148
       this.baseList = base
151
       this.baseList = base
149
       this.patients = patients
152
       this.patients = patients
150
       this.doctors = doctors
153
       this.doctors = doctors
154
+      this.diagnosearr = arr
155
+      this.diagnosis = diagnosis
151
       if (state == 1){
156
       if (state == 1){
152
         this.state = "待发药"
157
         this.state = "待发药"
153
       }
158
       }
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
     comfirm: function (formName) {
187
     comfirm: function (formName) {
165
       this.goodInfo = [];
188
       this.goodInfo = [];
166
       this.goodInfoTableData = [];
189
       this.goodInfoTableData = [];
301
 .table tr td{
324
 .table tr td{
302
  border:1px solid black;
325
  border:1px solid black;
303
  padding: 5px 0;
326
  padding: 5px 0;
304
-//  border-left: none;
305
-//  border-right: none;
327
+ border-left: none;
328
+ border-right: none;
306
 }
329
 }
307
 </style>
330
 </style>
308
 
331