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,7 +3626,13 @@ export default {
3626 3626
               if(temp[b].max_unit == temp[b].min_unit){
3627 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 3636
               let obj = {
3631 3637
                 advice_id: 0,
3632 3638
                 id: temp[b].id,
@@ -3646,11 +3652,9 @@ export default {
3646 3652
                 hosp_appr_flag: '1',
3647 3653
                 execution_state:2,
3648 3654
               }
3649
-
3650 3655
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3651 3656
                 obj.prescribing_number = 1
3652 3657
               }
3653
-
3654 3658
               this.prescriptions[i].advices.push(obj)
3655 3659
             }
3656 3660
             this.curStatus = 1