Kaynağa Gözat

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

28169 1 yıl önce
ebeveyn
işleme
8712bbb9a3

+ 7 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Dosyayı Görüntüle

3626
               if(temp[b].max_unit == temp[b].min_unit){
3626
               if(temp[b].max_unit == temp[b].min_unit){
3627
                 temp[b].retail_price = temp[b].min_price
3627
                 temp[b].retail_price = temp[b].min_price
3628
               }
3628
               }
3629
-              let temp_index = b + 1
3629
+              let temp_index = 0
3630
+              if(this.org_id == 0 || this.org_id == 10206){
3631
+
3632
+                 temp_index  = Math.floor(Math.random() * 90 + 10);
3633
+              }else{
3634
+                 temp_index = b + 1
3635
+              }
3630
               let obj = {
3636
               let obj = {
3631
                 advice_id: 0,
3637
                 advice_id: 0,
3632
                 id: temp[b].id,
3638
                 id: temp[b].id,
3646
                 hosp_appr_flag: '1',
3652
                 hosp_appr_flag: '1',
3647
                 execution_state:2,
3653
                 execution_state:2,
3648
               }
3654
               }
3649
-
3650
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3655
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3651
                 obj.prescribing_number = 1
3656
                 obj.prescribing_number = 1
3652
               }
3657
               }
3653
-
3654
               this.prescriptions[i].advices.push(obj)
3658
               this.prescriptions[i].advices.push(obj)
3655
             }
3659
             }
3656
             this.curStatus = 1
3660
             this.curStatus = 1