Преглед изворни кода

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

csx пре 3 година
родитељ
комит
f8e76dd0d0

+ 1 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue Прегледај датотеку

@@ -47,7 +47,7 @@
47 47
           <span class="content">{{ anticoagulant }}</span>
48 48
         </li>
49 49
 
50
-        <li v-if="isShow('抗凝剂商品名称')">
50
+        <li v-if="isShow('抗凝剂商品名称') && this.$store.getters.xt_user.template_info.template_id != 24">
51 51
           <label>抗凝剂商品名称 : </label>
52 52
           <span class="content">{{ antioxidant_commodity_name }}</span>
53 53
         </li>

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Прегледај датотеку

@@ -605,11 +605,11 @@
605 605
                             <td width='100'>
606 606
                                 <label-box :isChecked="prescription.anticoagulant == 3 ? true : prescription.anticoagulant == 6 ? true : prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
607 607
                             </td>
608
-                            <td width='100'>
608
+                            <!-- <td width='100'>
609 609
                                 <div class="under-line">
610 610
                                     &nbsp;{{ prescription.antioxidant_commodity_name ? prescription.antioxidant_commodity_name : '' }}
611 611
                                 </div>
612
-                            </td>
612
+                            </td> -->
613 613
                             <td width='10'>(</td>
614 614
                             <td width='40'>首剂</td>
615 615
                             <td width='50'>
@@ -1797,7 +1797,7 @@ export default {
1797 1797
           }
1798 1798
           this.check = response.data.data.check
1799 1799
           this.predialysis = response.data.data.PredialysisEvaluation
1800
-          console.log('透前评估', this.predialysis)
1800
+          // console.log('透前评估', this.predialysis)
1801 1801
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1802 1802
             this.predialysis.blood_access_part_opera_id
1803 1803
           )

+ 2 - 2
src/xt_pages/outpatientCharges/summary.vue Прегледај датотеку

@@ -184,7 +184,7 @@
184 184
   import NewStatementPrintTwo from './newStatementPrintTwo'
185 185
   import {fetchAllAdminUsers} from '@/api/doctor'
186 186
   import axios from 'axios'
187
-  // import invoicePrint from './invoicePrint'
187
+  import invoicePrint from './invoicePrint'
188 188
 
189 189
   export default {
190 190
     components: {
@@ -193,7 +193,7 @@
193 193
       BreadCrumb,
194 194
       listPrint,
195 195
       allListPrint,
196
-      // invoicePrint
196
+      invoicePrint
197 197
     },
198 198
     data() {
199 199
       return {

+ 26 - 19
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Прегледај датотеку

@@ -204,7 +204,7 @@
204 204
         input: 1,
205 205
       }
206 206
     },
207
-
207
+    
208 208
    methods:{
209 209
      createFilter(queryString) {
210 210
        return (restaurant) => {
@@ -379,27 +379,34 @@
379 379
       },
380 380
     },mounted(){
381 381
       this.getInitData()
382
-
382
+     
383 383
     },
384 384
     watch:{
385
-      "prescription.advices":{
386
-        handler(newVal,oldVal){
387
-          newVal.map(item => {
388
-            item.prescribing_number = item.single_dose * item.day
389
-          })
390
-        },
391
-        deep:false
392
-      },
393
-      "prescription.project":{
394
-        handler(newVal,oldVal){
395
-          newVal.map(item => {
396
-            item.total = item.single_dose * item.number_days
397
-          })
398
-        },
399
-        deep:true
400
-      }
385
+      // "prescription.advices":{
386
+      //   handler(newVal,oldVal){
387
+      //     newVal.map(item => {
388
+      //       // item.prescribing_number = item.single_dose * item.day
389
+      //       if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
390
+      //         item.total = item.single_dose * item.number_days
391
+      //       }
392
+            
393
+      //     })
394
+      //   },
395
+      //   deep:true
396
+      // },
397
+      // "prescription.project":{
398
+      //   handler(newVal,oldVal){
399
+      //     newVal.map((item,index) => {
400
+      //       if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
401
+      //         item.total = item.single_dose * item.number_days
402
+      //       }
403
+            
404
+      //     })
405
+      //   },
406
+      //   deep:true
407
+      // }
401 408
     }
402
-
409
+    
403 410
   }
404 411
 </script>
405 412
 

+ 3 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue Прегледај датотеку

@@ -22,7 +22,8 @@
22 22
           <div class="prescriptionBox">
23 23
               <div class="Rp">Rp:</div>
24 24
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
25
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
25
+                  <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
26
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
26 27
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;{{it.day}}天</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
27 28
               </div>
28 29
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
@@ -36,6 +37,7 @@
36 37
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
37 38
                 <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
38 39
                </div>
40
+               <div style="text-align:center;" >(以下空白)</div>
39 41
 
40 42
           </div>
41 43
           <div class="doctorBox">

+ 1 - 1
src/xt_pages/qcd/basicInformationAnalysis.vue Прегледај датотеку

@@ -710,7 +710,7 @@ export default {
710 710
       //本月的结束时间
711 711
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
712 712
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
713
-     // console.log("本月最后一天",timeEnd)
713
+      // console.log("本月最后一天",timeEnd)
714 714
       //本月
715 715
       if(state == 0){
716 716
        //统计透析总量

+ 34 - 9
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue Прегледај датотеку

@@ -39,7 +39,8 @@
39 39
               <td style="line-height: 18px">
40 40
                  <span v-if="item.drug_id != 0">{{item.drug?item.drug.drug_spec:''}}</span>
41 41
               </td>
42
-              <td style="line-height: 18px">{{ getManufacturer(item.manufacturer) }}</td>
42
+              <!-- <td style="line-height: 18px">{{ getManufacturer(item.manufacturer) }}</td> -->
43
+              <td style="line-height: 18px">{{ getManufacturer(item.drug.id) }}</td>
43 44
               <td style="line-height: 18px">
44 45
                 <span>{{getUnit(item.drug_id)}}</span>
45 46
               </td>
@@ -218,7 +219,21 @@
218 219
             for (let i = 0; i < response.data.data.list.length; i++) {
219 220
               this.list.push(response.data.data.list[i])
220 221
             }
221
-            console.log("list222222",this.list)
222
+           
223
+            for(let j=0;j<this.list.length;j++){
224
+              this.list[j].manufacturer_name = ""
225
+            }
226
+
227
+            for(let i=0;i<this.list.length;i++){
228
+           
229
+              for(let j=0;j<this.manufacturer.length;j++){
230
+                 if(this.list[i].manufacturer == this.manufacturer[j].id){
231
+                    this.list[i].manufacturer_name = this.manufacturer[j].manufacturer_name
232
+                 }
233
+              }
234
+            }
235
+
236
+             console.log("list222222",this.list)
222 237
           }
223 238
         })
224 239
       },
@@ -231,13 +246,22 @@
231 246
         }
232 247
         return name
233 248
       },
249
+      // getManufacturer(id){
250
+      //   let name = ''
251
+      //   this.manufacturer.map(item => {
252
+      //     if(item.id == id){
253
+      //       name = item.manufacturer_name
254
+      //     }
255
+      //   })
256
+      //   return name
257
+      // },
234 258
       getManufacturer(id){
235
-        let name = ''
236
-        this.manufacturer.map(item => {
237
-          if(item.id == id){
238
-            name = item.manufacturer_name
239
-          }
240
-        })
259
+        let name = ""
260
+        for(let i=0;i<this.list.length;i++){
261
+           if(id == this.list[i].id){
262
+              name = this.list[i].manufacturer_name
263
+           }
264
+        }
241 265
         return name
242 266
       },
243 267
       GetConfigInfo: function() {
@@ -246,7 +270,8 @@
246 270
             this.$message.error(response.data.msg);
247 271
             return false;
248 272
             } else {
249
-            this.manufacturer = response.data.data.manufacturer;
273
+             this.manufacturer = response.data.data.manufacturer;
274
+              this.getList()
250 275
             }
251 276
         });
252 277
       },