csx 2 vuotta sitten
vanhempi
commit
6b83fd2d1c

+ 26 - 14
src/xt_pages/hospitalStation/components/deskPrescription.vue Näytä tiedosto

233
                   v-if="dayorMonth == 'month'">{{ getMonthTotal() ? getMonthTotal() : '' }}元</span>
233
                   v-if="dayorMonth == 'month'">{{ getMonthTotal() ? getMonthTotal() : '' }}元</span>
234
 
234
 
235
           </div>
235
           </div>
236
+          <span   v-if="dayorMonth =='day'&&curPrescriptions.advices.length > 0"  :class="!curPrescriptions.is_medicine_status ? 'statusRed' : ''">{{curPrescriptions.is_medicine_status?'已发药':'未发药'}}</span>
237
+          <span   v-else></span>
236
           <span :class="order_status == '未收费' ? 'statusRed' : ''">{{ order_status }}</span>
238
           <span :class="order_status == '未收费' ? 'statusRed' : ''">{{ order_status }}</span>
237
 
239
 
238
         </div>
240
         </div>
2202
       }
2204
       }
2203
     },
2205
     },
2204
     open(index, isLoading) {
2206
     open(index, isLoading) {
2205
-     
2207
+
2206
       if (!isLoading) {
2208
       if (!isLoading) {
2207
         if (this.dayorMonth == 'day') {
2209
         if (this.dayorMonth == 'day') {
2208
           if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2210
           if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2391
                 'prescriptions': this.prescriptions
2393
                 'prescriptions': this.prescriptions
2392
               }
2394
               }
2393
               isLoading = true
2395
               isLoading = true
2394
-             
2396
+
2395
               let num = 0
2397
               let num = 0
2396
               // this.prescriptions.map(item => {
2398
               // this.prescriptions.map(item => {
2397
               //   if (item.advices.length > 0) {
2399
               //   if (item.advices.length > 0) {
2409
                   var arr = []//新增处方
2411
                   var arr = []//新增处方
2410
                   var arr_one = []
2412
                   var arr_one = []
2411
                 for(let i=0;i<this.prescriptions.length;i++){
2413
                 for(let i=0;i<this.prescriptions.length;i++){
2412
-                  if(this.prescriptions[i].id == 0){ 
2413
-                  
2414
+                  if(this.prescriptions[i].id == 0){
2415
+
2414
                     for(let j=0;j<this.prescriptions[i].advices.length;j++){
2416
                     for(let j=0;j<this.prescriptions[i].advices.length;j++){
2415
                        arr.push(this.prescriptions[i].advices[j])
2417
                        arr.push(this.prescriptions[i].advices[j])
2416
                     }
2418
                     }
2431
                       });
2433
                       });
2432
                       let newArr = Object.values(objInfo);
2434
                       let newArr = Object.values(objInfo);
2433
                       console.log("newArr",newArr)
2435
                       console.log("newArr",newArr)
2434
-                      
2436
+
2435
                       for(let i=0;i<arr.length;i++){
2437
                       for(let i=0;i<arr.length;i++){
2436
                         for(let j=0;j<newArr.length;j++){
2438
                         for(let j=0;j<newArr.length;j++){
2437
                           if(arr[i].id == newArr[j].drug_id){
2439
                           if(arr[i].id == newArr[j].drug_id){
2439
                           }
2441
                           }
2440
                         }
2442
                         }
2441
                       }
2443
                       }
2442
-                      
2444
+
2443
                       if(newArr.length >0){
2445
                       if(newArr.length >0){
2444
                         for(let i=0;i<newArr.length;i++){
2446
                         for(let i=0;i<newArr.length;i++){
2445
                           for(let j=0;j<newArr[i].child.length;j++){
2447
                           for(let j=0;j<newArr[i].child.length;j++){
2446
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit){
2448
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit){
2447
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number) * newArr[i].child[j].drug.min_number
2449
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number) * newArr[i].child[j].drug.min_number
2448
-                            }  
2450
+                            }
2449
                             newArr[i].out_count +=  newArr[i].child[j].prescribing_number_total
2451
                             newArr[i].out_count +=  newArr[i].child[j].prescribing_number_total
2450
                           }
2452
                           }
2451
                         }
2453
                         }
2452
                       }
2454
                       }
2453
-                      
2455
+
2454
                       if(newArr.length > 0){
2456
                       if(newArr.length > 0){
2455
                         for(let i=0;i<newArr.length;i++){
2457
                         for(let i=0;i<newArr.length;i++){
2456
                           if(newArr[i].out_count > newArr[i].sum_count){
2458
                           if(newArr[i].out_count > newArr[i].sum_count){
2466
                   }
2468
                   }
2467
 
2469
 
2468
                   if(this.prescriptions[i].id > 0){ //修改处方
2470
                   if(this.prescriptions[i].id > 0){ //修改处方
2469
-                   
2471
+
2470
                      for(let j=0;j<this.prescriptions[i].advices.length;j++){
2472
                      for(let j=0;j<this.prescriptions[i].advices.length;j++){
2471
                        if(this.prescriptions[i].advices[j].advice_id == 0){ //新增列
2473
                        if(this.prescriptions[i].advices[j].advice_id == 0){ //新增列
2472
                          arr_one.push(this.prescriptions[i].advices[j])
2474
                          arr_one.push(this.prescriptions[i].advices[j])
2489
                       });
2491
                       });
2490
                       let newArr = Object.values(objInfo);
2492
                       let newArr = Object.values(objInfo);
2491
                       console.log("newArr",newArr)
2493
                       console.log("newArr",newArr)
2492
-                      
2494
+
2493
                       for(let i=0;i<arr_one.length;i++){
2495
                       for(let i=0;i<arr_one.length;i++){
2494
                         for(let j=0;j<newArr.length;j++){
2496
                         for(let j=0;j<newArr.length;j++){
2495
                           if(arr_one[i].id == newArr[j].drug_id){
2497
                           if(arr_one[i].id == newArr[j].drug_id){
2497
                           }
2499
                           }
2498
                         }
2500
                         }
2499
                       }
2501
                       }
2500
-                      
2502
+
2501
                       if(newArr.length >0){
2503
                       if(newArr.length >0){
2502
                         for(let i=0;i<newArr.length;i++){
2504
                         for(let i=0;i<newArr.length;i++){
2503
                           for(let j=0;j<newArr[i].child.length;j++){
2505
                           for(let j=0;j<newArr[i].child.length;j++){
2507
                             }
2509
                             }
2508
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.min_unit && newArr[i].child[j].drug.max_unit!=newArr[i].child[j].drug.min_unit){
2510
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.min_unit && newArr[i].child[j].drug.max_unit!=newArr[i].child[j].drug.min_unit){
2509
                               newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2511
                               newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2510
-                             } 
2512
+                             }
2511
                              if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit && newArr[i].child[j].drug.max_unit ==newArr[i].child[j].drug.min_unit){
2513
                              if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit && newArr[i].child[j].drug.max_unit ==newArr[i].child[j].drug.min_unit){
2512
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2514
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2513
-                             } 
2515
+                             }
2514
                           }
2516
                           }
2515
                         }
2517
                         }
2516
                          console.log("wodeshju",newArr)
2518
                          console.log("wodeshju",newArr)
2520
                           }
2522
                           }
2521
                         }
2523
                         }
2522
                       }
2524
                       }
2523
-                      
2525
+
2524
                       if(newArr.length > 0){
2526
                       if(newArr.length > 0){
2525
                         for(let i=0;i<newArr.length;i++){
2527
                         for(let i=0;i<newArr.length;i++){
2526
                           if(newArr[i].out_count > newArr[i].sum_count){
2528
                           if(newArr[i].out_count > newArr[i].sum_count){
2636
       }
2638
       }
2637
     },
2639
     },
2638
     addTab(targetName) {
2640
     addTab(targetName) {
2641
+      for(let i = 0; i < this.prescriptions.length; i++){
2642
+        if (this.prescriptions[i].is_medicine_status) {
2643
+          this.$message.error('处方中包含已发药处方,无法新增')
2644
+          return
2645
+        }
2646
+      }
2639
       // if (this.curPrescriptions.order_status == 2) {
2647
       // if (this.curPrescriptions.order_status == 2) {
2640
       //   this.$message.error('该处方已经结算或者退费,无法继续添加处方')
2648
       //   this.$message.error('该处方已经结算或者退费,无法继续添加处方')
2641
       //   return
2649
       //   return
2707
 
2715
 
2708
     },
2716
     },
2709
     removeTab(targetName) {
2717
     removeTab(targetName) {
2718
+      if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5 || this.curPrescriptions.is_medicine_status) {
2719
+        this.$message.error('该处方已经结算或者记账或者已发药,无法删除')
2720
+        return
2721
+      }
2710
       if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 4) {
2722
       if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 4) {
2711
         this.$message.error('该处方已经结算或者已经上传医保系统,无法删除')
2723
         this.$message.error('该处方已经结算或者已经上传医保系统,无法删除')
2712
         return
2724
         return

+ 14 - 10
src/xt_pages/hospitalStation/components/prescriptionTable.vue Näytä tiedosto

6
       <el-table-column align="center" prop="day" width="70" label="序号">
6
       <el-table-column align="center" prop="day" width="70" label="序号">
7
         <template slot-scope="scope">
7
         <template slot-scope="scope">
8
           <div style="display:flex;align-items:center;">
8
           <div style="display:flex;align-items:center;">
9
-            <el-input v-model="scope.row.groupno" placeholder=""></el-input>
9
+            <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.groupno" placeholder=""></el-input>
10
           </div>
10
           </div>
11
         </template>
11
         </template>
12
       </el-table-column>
12
       </el-table-column>
28
       <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
28
       <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
29
         <template slot-scope="scope">
29
         <template slot-scope="scope">
30
           <div style="display:flex;align-items:center;">
30
           <div style="display:flex;align-items:center;">
31
-            <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
31
+            <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.single_dose" @input="getAllChange(scope)"
32
                       style="width:50%;"></el-input>
32
                       style="width:50%;"></el-input>
33
             <!-- <div>{{scope.row.single_dose_unit}}</div> -->
33
             <!-- <div>{{scope.row.single_dose_unit}}</div> -->
34
-            <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
34
+            <el-select :disabled="prescription.is_medicine_status"  v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
35
                        @change="getAllChange(scope)">
35
                        @change="getAllChange(scope)">
36
               <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
36
               <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
37
               <el-option :label="scope.row.drug.dose_unit"
37
               <el-option :label="scope.row.drug.dose_unit"
43
       </el-table-column>
43
       </el-table-column>
44
       <el-table-column align="center" prop="delivery_way" width="100" label="用法">
44
       <el-table-column align="center" prop="delivery_way" width="100" label="用法">
45
         <template slot-scope="scope">
45
         <template slot-scope="scope">
46
-          <el-select v-model="scope.row.delivery_way" placeholder="请选择">
46
+          <el-select :disabled="prescription.is_medicine_status"  v-model="scope.row.delivery_way" placeholder="请选择">
47
             <el-option
47
             <el-option
48
                     v-for="(item,index) in drugways"
48
                     v-for="(item,index) in drugways"
49
                     :key="index"
49
                     :key="index"
55
       </el-table-column>
55
       </el-table-column>
56
       <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
56
       <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
57
         <template slot-scope="scope">
57
         <template slot-scope="scope">
58
-          <el-select v-model="scope.row.execution_frequency" placeholder="请选择" @change="getAllChange(scope)">
58
+          <el-select  :disabled="prescription.is_medicine_status"  v-model="scope.row.execution_frequency" placeholder="请选择" @change="getAllChange(scope)">
59
             <el-option
59
             <el-option
60
                     v-for="item,index in efs"
60
                     v-for="item,index in efs"
61
                     :key="index"
61
                     :key="index"
70
       <el-table-column align="center" prop="day" width="70" label="天数">
70
       <el-table-column align="center" prop="day" width="70" label="天数">
71
         <template slot-scope="scope">
71
         <template slot-scope="scope">
72
           <div style="display:flex;align-items:center;">
72
           <div style="display:flex;align-items:center;">
73
-            <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
73
+            <el-input  :disabled="prescription.is_medicine_status"  v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
74
             {{'天'}}
74
             {{'天'}}
75
           </div>
75
           </div>
76
         </template>
76
         </template>
79
       <el-table-column align="center" prop="prescribing_number" width="120" label="总量">
79
       <el-table-column align="center" prop="prescribing_number" width="120" label="总量">
80
         <template slot-scope="scope">
80
         <template slot-scope="scope">
81
           <div style="display:flex;align-items:center;">
81
           <div style="display:flex;align-items:center;">
82
-            <el-input v-model="scope.row.prescribing_number" @input="changePrescribingNumber(scope)"
82
+            <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.prescribing_number" @input="changePrescribingNumber(scope)"
83
                       style="width:50%" placeholder=""></el-input>
83
                       style="width:50%" placeholder=""></el-input>
84
             <!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
84
             <!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
85
-            <el-select v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;"
85
+            <el-select :disabled="prescription.is_medicine_status"  v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;"
86
                        @change="getPrescribingNumberUnit(scope)">
86
                        @change="getPrescribingNumberUnit(scope)">
87
               <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
87
               <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
88
               <el-option :label="scope.row.drug.max_unit"
88
               <el-option :label="scope.row.drug.max_unit"
103
       </el-table-column>
103
       </el-table-column>
104
       <el-table-column align="center" prop="hosp_appr_flag" width="100" label="医院审批标志">
104
       <el-table-column align="center" prop="hosp_appr_flag" width="100" label="医院审批标志">
105
         <template slot-scope="scope">
105
         <template slot-scope="scope">
106
-          <el-select v-model="scope.row.hosp_appr_flag" placeholder="请选择">
106
+          <el-select :disabled="prescription.is_medicine_status"  v-model="scope.row.hosp_appr_flag" placeholder="请选择">
107
             <el-option label="审批通过" value="1"></el-option>
107
             <el-option label="审批通过" value="1"></el-option>
108
             <el-option label="无须审批" value="3"></el-option>
108
             <el-option label="无须审批" value="3"></el-option>
109
             <el-option label="审批不通过" value="2"></el-option>
109
             <el-option label="审批不通过" value="2"></el-option>
112
       </el-table-column>
112
       </el-table-column>
113
       <el-table-column align="center" prop="remark" width="50" label="备注">
113
       <el-table-column align="center" prop="remark" width="50" label="备注">
114
         <template slot-scope="scope">
114
         <template slot-scope="scope">
115
-          <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
115
+          <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
116
         </template>
116
         </template>
117
       </el-table-column>
117
       </el-table-column>
118
       <el-table-column align="center" width="40" prop="name" label="操作">
118
       <el-table-column align="center" width="40" prop="name" label="操作">
335
         })
335
         })
336
 
336
 
337
       }, deleteDrug: function(index, row) {
337
       }, deleteDrug: function(index, row) {
338
+        if (this.prescription.is_medicine_status){
339
+          this.$message.error('该处方包含已发药的药品,无法删除')
340
+          return
341
+        }
338
         if (this.prescription.order_status == 2  || this.prescription.order_status == 4) {
342
         if (this.prescription.order_status == 2  || this.prescription.order_status == 4) {
339
           this.$message.error('该处方已经结算,无法删除')
343
           this.$message.error('该处方已经结算,无法删除')
340
           return
344
           return

+ 80 - 24
src/xt_pages/hospitalStation/doctorDesk.vue Näytä tiedosto

1006
             // }
1006
             // }
1007
 
1007
 
1008
             this.drugs = drugs
1008
             this.drugs = drugs
1009
-           
1009
+
1010
             this.allDrugs = response.data.data.drugs
1010
             this.allDrugs = response.data.data.drugs
1011
             this.advices_template = response.data.data.advices_template
1011
             this.advices_template = response.data.data.advices_template
1012
-          
1012
+
1013
             this.department = response.data.data.department
1013
             this.department = response.data.data.department
1014
             this.sick = response.data.data.sick
1014
             this.sick = response.data.data.sick
1015
-          
1015
+
1016
             this.diagnoses = response.data.data.diagnose
1016
             this.diagnoses = response.data.data.diagnose
1017
             this.additions = response.data.data.additions
1017
             this.additions = response.data.data.additions
1018
 
1018
 
1183
                 let tempAdvice = []
1183
                 let tempAdvice = []
1184
                 let tempProject = []
1184
                 let tempProject = []
1185
                 let tempAddition = []
1185
                 let tempAddition = []
1186
+                var is_medicine  = false
1186
 
1187
 
1187
                 //药品
1188
                 //药品
1188
                 for (let b = 0; b < prescription.advices.length; b++) {
1189
                 for (let b = 0; b < prescription.advices.length; b++) {
1203
                     drug: prescription.advices[b].drug,
1204
                     drug: prescription.advices[b].drug,
1204
                     groupno: prescription.advices[b].groupno,
1205
                     groupno: prescription.advices[b].groupno,
1205
                     hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1206
                     hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1207
+                    is_medicine: prescription.advices[b].is_medicine,
1206
 
1208
 
1207
 
1209
 
1208
 
1210
 
1209
                   }
1211
                   }
1210
                   tempAdvice.push(obj)
1212
                   tempAdvice.push(obj)
1213
+                  if (prescription.advices[b].is_medicine == 1){
1214
+                    is_medicine = true
1215
+                  }
1211
                 }
1216
                 }
1212
 
1217
 
1213
                 //项目
1218
                 //项目
1286
                   addition: tempAddition,
1291
                   addition: tempAddition,
1287
                   order_status: prescription.order_status,
1292
                   order_status: prescription.order_status,
1288
                   pre_time: preTime,
1293
                   pre_time: preTime,
1289
-                  med_type: parseInt(prescription.med_type)
1294
+                  med_type: parseInt(prescription.med_type),
1295
+                  is_medicine_status: is_medicine,
1296
+
1290
                 }
1297
                 }
1291
                 this.prescriptions.push(obj)
1298
                 this.prescriptions.push(obj)
1292
               }
1299
               }
1590
                       let tempAdvice = []
1597
                       let tempAdvice = []
1591
                       let tempProject = []
1598
                       let tempProject = []
1592
                       let tempAddition = []
1599
                       let tempAddition = []
1600
+                      var is_medicine  = false
1593
 
1601
 
1594
                       //药品
1602
                       //药品
1595
                       for (let b = 0; b < prescription.advices.length; b++) {
1603
                       for (let b = 0; b < prescription.advices.length; b++) {
1609
                           id: prescription.advices[b].drug_id,
1617
                           id: prescription.advices[b].drug_id,
1610
                           drug: prescription.advices[b].drug,
1618
                           drug: prescription.advices[b].drug,
1611
                           groupno: prescription.advices[b].groupno,
1619
                           groupno: prescription.advices[b].groupno,
1612
-                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
1620
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1621
+                          is_medicine: prescription.advices[b].is_medicine,
1622
+
1613
 
1623
 
1614
                         }
1624
                         }
1615
                         tempAdvice.push(obj)
1625
                         tempAdvice.push(obj)
1626
+                        if (prescription.advices[b].is_medicine == 1){
1627
+                          is_medicine = true
1628
+                        }
1616
                       }
1629
                       }
1617
 
1630
 
1618
                       //项目
1631
                       //项目
1688
                         addition: tempAddition,
1701
                         addition: tempAddition,
1689
                         order_status: prescription.order_status,
1702
                         order_status: prescription.order_status,
1690
                         pre_time: preTime,
1703
                         pre_time: preTime,
1691
-                        med_type: parseInt(prescription.med_type)
1704
+                        med_type: parseInt(prescription.med_type),
1705
+                        is_medicine_status: is_medicine,
1706
+
1692
                       }
1707
                       }
1693
                       this.prescriptions.push(obj)
1708
                       this.prescriptions.push(obj)
1694
                     }
1709
                     }
1836
                         addition: [],
1851
                         addition: [],
1837
                         order_status: 0,
1852
                         order_status: 0,
1838
                         pre_time: nowTime,
1853
                         pre_time: nowTime,
1839
-                        med_type: ''
1840
-
1854
+                        med_type: '',
1855
+                        is_medicine_status:false,
1841
                       }
1856
                       }
1842
 
1857
 
1843
                       obj.med_type = 14
1858
                       obj.med_type = 14
2074
                       let tempAdvice = []
2089
                       let tempAdvice = []
2075
                       let tempProject = []
2090
                       let tempProject = []
2076
                       let tempAddition = []
2091
                       let tempAddition = []
2092
+                      var is_medicine  = false
2077
 
2093
 
2078
                       //药品
2094
                       //药品
2079
                       for (let b = 0; b < prescription.advices.length; b++) {
2095
                       for (let b = 0; b < prescription.advices.length; b++) {
2093
                           id: prescription.advices[b].drug_id,
2109
                           id: prescription.advices[b].drug_id,
2094
                           drug: prescription.advices[b].drug,
2110
                           drug: prescription.advices[b].drug,
2095
                           groupno: prescription.advices[b].groupno,
2111
                           groupno: prescription.advices[b].groupno,
2096
-                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
2112
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
2113
+                          is_medicine: prescription.advices[b].is_medicine,
2097
 
2114
 
2098
                         }
2115
                         }
2099
                         tempAdvice.push(obj)
2116
                         tempAdvice.push(obj)
2117
+                        if (prescription.advices[b].is_medicine == 1){
2118
+                          is_medicine = true
2119
+                        }
2100
                       }
2120
                       }
2101
 
2121
 
2102
                       //项目
2122
                       //项目
2165
                         addition: tempAddition,
2185
                         addition: tempAddition,
2166
                         order_status: prescription.order_status,
2186
                         order_status: prescription.order_status,
2167
                         pre_time: preTime,
2187
                         pre_time: preTime,
2168
-                        med_type: parseInt(prescription.med_type)
2188
+                        med_type: parseInt(prescription.med_type),
2189
+                        is_medicine_status: is_medicine,
2190
+
2169
                       }
2191
                       }
2170
                       this.prescriptions.push(obj)
2192
                       this.prescriptions.push(obj)
2171
                     }
2193
                     }
2274
                           addition: tempAddition,
2296
                           addition: tempAddition,
2275
                           order_status: 1,
2297
                           order_status: 1,
2276
                           pre_time: preTime,
2298
                           pre_time: preTime,
2277
-                          med_type: ''
2299
+                          med_type: '',
2300
+                          is_medicine_status:false,
2278
 
2301
 
2279
                         }
2302
                         }
2280
                         if (prescription.med_type == 0 || prescription.med_type == '') {
2303
                         if (prescription.med_type == 0 || prescription.med_type == '') {
2300
                         addition: [],
2323
                         addition: [],
2301
                         order_status: 0,
2324
                         order_status: 0,
2302
                         pre_time: nowTime,
2325
                         pre_time: nowTime,
2303
-                        med_type: ''
2326
+                        med_type: '',
2327
+                        is_medicine_status:false
2304
 
2328
 
2305
                       }
2329
                       }
2306
 
2330
 
2537
                     let tempAdvice = []
2561
                     let tempAdvice = []
2538
                     let tempProject = []
2562
                     let tempProject = []
2539
                     let tempAddition = []
2563
                     let tempAddition = []
2564
+                    var is_medicine  = false
2540
 
2565
 
2541
                     //药品
2566
                     //药品
2542
                     for (let b = 0; b < prescription.advices.length; b++) {
2567
                     for (let b = 0; b < prescription.advices.length; b++) {
2556
                         id: prescription.advices[b].drug_id,
2581
                         id: prescription.advices[b].drug_id,
2557
                         drug: prescription.advices[b].drug,
2582
                         drug: prescription.advices[b].drug,
2558
                         groupno: prescription.advices[b].groupno,
2583
                         groupno: prescription.advices[b].groupno,
2559
-                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
2584
+                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
2585
+                        is_medicine: prescription.advices[b].is_medicine,
2560
 
2586
 
2561
                       }
2587
                       }
2562
                       tempAdvice.push(obj)
2588
                       tempAdvice.push(obj)
2589
+                      if (prescription.advices[b].is_medicine == 1){
2590
+                        is_medicine = true
2591
+                      }
2563
                     }
2592
                     }
2564
 
2593
 
2565
                     //项目
2594
                     //项目
2628
                       addition: tempAddition,
2657
                       addition: tempAddition,
2629
                       order_status: prescription.order_status,
2658
                       order_status: prescription.order_status,
2630
                       pre_time: preTime,
2659
                       pre_time: preTime,
2631
-                      med_type: parseInt(prescription.med_type)
2660
+                      med_type: parseInt(prescription.med_type),
2661
+                      is_medicine_status: is_medicine,
2662
+
2632
                     }
2663
                     }
2633
                     this.prescriptions.push(obj)
2664
                     this.prescriptions.push(obj)
2634
                   }
2665
                   }
2736
                         addition: tempAddition,
2767
                         addition: tempAddition,
2737
                         order_status: 1,
2768
                         order_status: 1,
2738
                         pre_time: preTime,
2769
                         pre_time: preTime,
2739
-                        med_type: ''
2770
+                        med_type: '',
2771
+                        is_medicine_status:false,
2740
 
2772
 
2741
                       }
2773
                       }
2742
                       if (prescription.med_type == 0 || prescription.med_type == '') {
2774
                       if (prescription.med_type == 0 || prescription.med_type == '') {
2763
                       addition: [],
2795
                       addition: [],
2764
                       order_status: 0,
2796
                       order_status: 0,
2765
                       pre_time: nowTime,
2797
                       pre_time: nowTime,
2766
-                      med_type: ''
2798
+                      med_type: '',
2799
+                      is_medicine_status:false,
2767
 
2800
 
2768
                     }
2801
                     }
2769
 
2802
 
3059
                       let tempAdvice = []
3092
                       let tempAdvice = []
3060
                       let tempProject = []
3093
                       let tempProject = []
3061
                       let tempAddition = []
3094
                       let tempAddition = []
3095
+                      var is_medicine  = false
3062
 
3096
 
3063
                       //药品
3097
                       //药品
3064
                       for (let b = 0; b < prescription.advices.length; b++) {
3098
                       for (let b = 0; b < prescription.advices.length; b++) {
3078
                           id: prescription.advices[b].drug_id,
3112
                           id: prescription.advices[b].drug_id,
3079
                           drug: prescription.advices[b].drug,
3113
                           drug: prescription.advices[b].drug,
3080
                           groupno: prescription.advices[b].groupno,
3114
                           groupno: prescription.advices[b].groupno,
3081
-                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
3115
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3116
+                          is_medicine: prescription.advices[b].is_medicine,
3082
 
3117
 
3083
                         }
3118
                         }
3084
                         tempAdvice.push(obj)
3119
                         tempAdvice.push(obj)
3120
+                        if (prescription.advices[b].is_medicine == 1){
3121
+                          is_medicine = true
3122
+                        }
3085
                       }
3123
                       }
3086
 
3124
 
3087
                       //项目
3125
                       //项目
3157
                         addition: tempAddition,
3195
                         addition: tempAddition,
3158
                         order_status: prescription.order_status,
3196
                         order_status: prescription.order_status,
3159
                         pre_time: preTime,
3197
                         pre_time: preTime,
3160
-                        med_type: parseInt(prescription.med_type)
3198
+                        med_type: parseInt(prescription.med_type),
3199
+                        is_medicine_status: is_medicine,
3200
+
3161
                       }
3201
                       }
3162
                       this.prescriptions.push(obj)
3202
                       this.prescriptions.push(obj)
3163
                     }
3203
                     }
3273
                           addition: tempAddition,
3313
                           addition: tempAddition,
3274
                           order_status: 1,
3314
                           order_status: 1,
3275
                           pre_time: preTime,
3315
                           pre_time: preTime,
3276
-                          med_type: ''
3316
+                          med_type: '',
3317
+                          is_medicine_status: false,
3318
+
3277
 
3319
 
3278
                         }
3320
                         }
3279
                         if (prescription.med_type == 0 || prescription.med_type == '') {
3321
                         if (prescription.med_type == 0 || prescription.med_type == '') {
3301
                         addition: [],
3343
                         addition: [],
3302
                         order_status: 0,
3344
                         order_status: 0,
3303
                         pre_time: nowTime,
3345
                         pre_time: nowTime,
3304
-                        med_type: ''
3346
+                        med_type: '',
3347
+                        is_medicine_status: false,
3348
+
3305
 
3349
 
3306
                       }
3350
                       }
3307
 
3351
 
3502
                       let tempAdvice = []
3546
                       let tempAdvice = []
3503
                       let tempProject = []
3547
                       let tempProject = []
3504
                       let tempAddition = []
3548
                       let tempAddition = []
3549
+                      var is_medicine  = false
3550
+
3505
 
3551
 
3506
                       //药品
3552
                       //药品
3507
                       for (let b = 0; b < prescription.advices.length; b++) {
3553
                       for (let b = 0; b < prescription.advices.length; b++) {
3521
                           id: prescription.advices[b].drug_id,
3567
                           id: prescription.advices[b].drug_id,
3522
                           drug: prescription.advices[b].drug,
3568
                           drug: prescription.advices[b].drug,
3523
                           groupno: prescription.advices[b].groupno,
3569
                           groupno: prescription.advices[b].groupno,
3524
-                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
3570
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3571
+                          is_medicine: prescription.advices[b].is_medicine,
3525
 
3572
 
3526
                         }
3573
                         }
3527
                         tempAdvice.push(obj)
3574
                         tempAdvice.push(obj)
3575
+                        if (prescription.advices[b].is_medicine == 1){
3576
+                          is_medicine = true
3577
+                        }
3528
                       }
3578
                       }
3529
 
3579
 
3530
                       //项目
3580
                       //项目
3600
                         addition: tempAddition,
3650
                         addition: tempAddition,
3601
                         order_status: prescription.order_status,
3651
                         order_status: prescription.order_status,
3602
                         pre_time: preTime,
3652
                         pre_time: preTime,
3603
-                        med_type: parseInt(prescription.med_type)
3653
+                        med_type: parseInt(prescription.med_type),
3654
+                        is_medicine_status: is_medicine,
3655
+
3604
                       }
3656
                       }
3605
                       this.prescriptions.push(obj)
3657
                       this.prescriptions.push(obj)
3606
                     }
3658
                     }
3717
                           addition: tempAddition,
3769
                           addition: tempAddition,
3718
                           order_status: 1,
3770
                           order_status: 1,
3719
                           pre_time: preTime,
3771
                           pre_time: preTime,
3720
-                          med_type: ''
3772
+                          med_type: '',
3773
+                          is_medicine_status: false,
3774
+
3721
 
3775
 
3722
                         }
3776
                         }
3723
                         if (prescription.med_type == 0 || prescription.med_type == '') {
3777
                         if (prescription.med_type == 0 || prescription.med_type == '') {
3744
                         addition: [],
3798
                         addition: [],
3745
                         order_status: 0,
3799
                         order_status: 0,
3746
                         pre_time: nowTime,
3800
                         pre_time: nowTime,
3747
-                        med_type: ''
3801
+                        med_type: '',
3802
+                        is_medicine_status: false,
3803
+
3748
 
3804
 
3749
                       }
3805
                       }
3750
 
3806
 

+ 0 - 1
src/xt_pages/outpatientCharges/invoicePrint.vue Näytä tiedosto

21
           <printFour v-if="org_id == 10215 || org_id == 4" :paramsObj="invoiceParams"></printFour>
21
           <printFour v-if="org_id == 10215 || org_id == 4" :paramsObj="invoiceParams"></printFour>
22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23
           <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
23
           <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
24
-
25
         </div>
24
         </div>
26
     </div>
25
     </div>
27
   </div>
26
   </div>

+ 38 - 30
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Näytä tiedosto

230
 
230
 
231
 
231
 
232
                     </div>
232
                     </div>
233
-                    <span :class="order_status == '未收费' ? 'statusRed' : ''">{{order_status}}</span>
233
+                  <span   v-if="dayorMonth =='day'&&curPrescriptions.advices.length > 0"  :class="!curPrescriptions.is_medicine_status ? 'statusRed' : ''">{{curPrescriptions.is_medicine_status?'已发药':'未发药'}}</span>
234
+                  <span   v-else></span>
234
 
235
 
236
+                  <span :class="order_status == '未收费' ? 'statusRed' : ''">{{order_status}}</span>
235
                 </div>
237
                 </div>
236
             </div>
238
             </div>
237
             <div class='centerRight'>
239
             <div class='centerRight'>
1157
                     project: tempProject,
1159
                     project: tempProject,
1158
                     addition: tempAddition,
1160
                     addition: tempAddition,
1159
                     order_status: prescription.order_status
1161
                     order_status: prescription.order_status
1162
+
1160
                   }
1163
                   }
1161
                   this.month_prescriptions.push(obj)
1164
                   this.month_prescriptions.push(obj)
1162
                 }
1165
                 }
1297
         })
1300
         })
1298
 
1301
 
1299
       }, saveTemplate(val) {
1302
       }, saveTemplate(val) {
1300
-        
1303
+
1301
         let params = {
1304
         let params = {
1302
           name: val.name,
1305
           name: val.name,
1303
           mode: val.mode,
1306
           mode: val.mode,
1306
         let data = {
1309
         let data = {
1307
           'prescriptions': val.prescriptions
1310
           'prescriptions': val.prescriptions
1308
         }
1311
         }
1309
-      
1312
+
1310
         createdTemplate(params, data).then(response => {
1313
         createdTemplate(params, data).then(response => {
1311
           if (response.data.state == 1) {
1314
           if (response.data.state == 1) {
1312
             this.$refs.saveTemplate.hide()
1315
             this.$refs.saveTemplate.hide()
1313
             this.$message.success('保存成功')
1316
             this.$message.success('保存成功')
1314
-          
1317
+
1315
           } else {
1318
           } else {
1316
             this.$message.error(response.data.msg)
1319
             this.$message.error(response.data.msg)
1317
           }
1320
           }
1815
       },
1818
       },
1816
 
1819
 
1817
       tabclickEvent(val) {
1820
       tabclickEvent(val) {
1818
-       
1821
+
1819
         for (let i = 0; i < this.prescriptions.length; i++) {
1822
         for (let i = 0; i < this.prescriptions.length; i++) {
1820
           if (this.prescriptions[i].name == val.name) {
1823
           if (this.prescriptions[i].name == val.name) {
1821
             this.prescription_id = this.prescriptions[i].id
1824
             this.prescription_id = this.prescriptions[i].id
2413
                 var arr_one = []
2416
                 var arr_one = []
2414
                 console.log("ooo233323233232323232",this.prescriptions)
2417
                 console.log("ooo233323233232323232",this.prescriptions)
2415
                 for(let i=0;i<this.prescriptions.length;i++){
2418
                 for(let i=0;i<this.prescriptions.length;i++){
2416
-                  if(this.prescriptions[i].id == 0){ 
2419
+                  if(this.prescriptions[i].id == 0){
2417
                     for(let j=0;j<this.prescriptions[i].advices.length;j++){
2420
                     for(let j=0;j<this.prescriptions[i].advices.length;j++){
2418
                        arr.push(this.prescriptions[i].advices[j])
2421
                        arr.push(this.prescriptions[i].advices[j])
2419
                     }
2422
                     }
2434
                         }
2437
                         }
2435
                       });
2438
                       });
2436
                       let newArr = Object.values(objInfo);
2439
                       let newArr = Object.values(objInfo);
2437
-                   
2438
-                      
2440
+
2441
+
2439
                       for(let i=0;i<arr.length;i++){
2442
                       for(let i=0;i<arr.length;i++){
2440
                         for(let j=0;j<newArr.length;j++){
2443
                         for(let j=0;j<newArr.length;j++){
2441
                           if(arr[i].id == newArr[j].drug_id){
2444
                           if(arr[i].id == newArr[j].drug_id){
2453
                             }
2456
                             }
2454
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.min_unit && newArr[i].child[j].drug.max_unit!=newArr[i].child[j].drug.min_unit){
2457
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.min_unit && newArr[i].child[j].drug.max_unit!=newArr[i].child[j].drug.min_unit){
2455
                               newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2458
                               newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2456
-                             } 
2459
+                             }
2457
                              if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit && newArr[i].child[j].drug.max_unit ==newArr[i].child[j].drug.min_unit){
2460
                              if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit && newArr[i].child[j].drug.max_unit ==newArr[i].child[j].drug.min_unit){
2458
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2461
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number)
2459
-                             } 
2462
+                             }
2460
                           }
2463
                           }
2461
                         }
2464
                         }
2462
                          console.log("wodeshju",newArr)
2465
                          console.log("wodeshju",newArr)
2466
                           }
2469
                           }
2467
                         }
2470
                         }
2468
                       }
2471
                       }
2469
-                      
2472
+
2470
                       if(newArr.length > 0){
2473
                       if(newArr.length > 0){
2471
                         for(let i=0;i<newArr.length;i++){
2474
                         for(let i=0;i<newArr.length;i++){
2472
                           if(newArr[i].out_count > newArr[i].sum_count){
2475
                           if(newArr[i].out_count > newArr[i].sum_count){
2482
                   }
2485
                   }
2483
 
2486
 
2484
                   if(this.prescriptions[i].id > 0){ //修改处方
2487
                   if(this.prescriptions[i].id > 0){ //修改处方
2485
-                     
2488
+
2486
                      for(let j=0;j<this.prescriptions[i].advices.length;j++){
2489
                      for(let j=0;j<this.prescriptions[i].advices.length;j++){
2487
                        if(this.prescriptions[i].advices[j].advice_id == 0){ //新增列
2490
                        if(this.prescriptions[i].advices[j].advice_id == 0){ //新增列
2488
                          arr_one.push(this.prescriptions[i].advices[j])
2491
                          arr_one.push(this.prescriptions[i].advices[j])
2505
                       });
2508
                       });
2506
                       let newArr = Object.values(objInfo);
2509
                       let newArr = Object.values(objInfo);
2507
                       console.log("newArr",newArr)
2510
                       console.log("newArr",newArr)
2508
-                      
2511
+
2509
                       for(let i=0;i<arr_one.length;i++){
2512
                       for(let i=0;i<arr_one.length;i++){
2510
                         for(let j=0;j<newArr.length;j++){
2513
                         for(let j=0;j<newArr.length;j++){
2511
                           if(arr_one[i].id == newArr[j].drug_id){
2514
                           if(arr_one[i].id == newArr[j].drug_id){
2513
                           }
2516
                           }
2514
                         }
2517
                         }
2515
                       }
2518
                       }
2516
-                      
2519
+
2517
                       if(newArr.length >0){
2520
                       if(newArr.length >0){
2518
                         for(let i=0;i<newArr.length;i++){
2521
                         for(let i=0;i<newArr.length;i++){
2519
                           for(let j=0;j<newArr[i].child.length;j++){
2522
                           for(let j=0;j<newArr[i].child.length;j++){
2520
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit){
2523
                             if(newArr[i].child[j].prescribing_number_unit == newArr[i].child[j].drug.max_unit){
2521
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number) * newArr[i].child[j].drug.min_number
2524
                                 newArr[i].child[j].prescribing_number_total = parseInt(newArr[i].child[j].prescribing_number) * newArr[i].child[j].drug.min_number
2522
-                            }  
2525
+                            }
2523
                             newArr[i].out_count +=  newArr[i].child[j].prescribing_number_total
2526
                             newArr[i].out_count +=  newArr[i].child[j].prescribing_number_total
2524
                           }
2527
                           }
2525
                         }
2528
                         }
2539
                     }
2542
                     }
2540
                   }
2543
                   }
2541
                 }
2544
                 }
2542
-               
2545
+
2543
                 createHisPrescription(data, params).then(response => {
2546
                 createHisPrescription(data, params).then(response => {
2544
                   if (response.data.state == 1) {
2547
                   if (response.data.state == 1) {
2545
                     this.$emit('change', this.patientInfo.id)
2548
                     this.$emit('change', this.patientInfo.id)
2549
                   } else {
2552
                   } else {
2550
                     this.$message.error(response.data.msg)
2553
                     this.$message.error(response.data.msg)
2551
                     this.$emit('editKeepLoad', false)
2554
                     this.$emit('editKeepLoad', false)
2552
-                    
2555
+
2553
                   }
2556
                   }
2554
                 })
2557
                 })
2555
               }
2558
               }
2640
         }
2643
         }
2641
       },
2644
       },
2642
       addTab(targetName) {
2645
       addTab(targetName) {
2643
-        // if (this.curPrescriptions.order_status == 2) {
2644
-        //   this.$message.error('该处方已经结算或者退费,无法继续添加处方')
2645
-        //   return
2646
-        // }
2646
+
2647
+        for(let i = 0; i < this.prescriptions.length; i++){
2648
+          if (this.prescriptions[i].is_medicine_status) {
2649
+            this.$message.error('处方中包含已发药处方,无法新增')
2650
+            return
2651
+          }
2652
+        }
2653
+
2654
+
2647
         if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2655
         if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2648
           this.$message.error('当前处方无数据,新增数据后才能新增处方')
2656
           this.$message.error('当前处方无数据,新增数据后才能新增处方')
2649
           return
2657
           return
2712
 
2720
 
2713
       },
2721
       },
2714
       removeTab(targetName) {
2722
       removeTab(targetName) {
2715
-        console.log("处方了免费打打啊发发大发阿道夫")
2716
-        if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5) {
2717
-          this.$message.error('该处方已经结算或者记账,无法删除')
2723
+
2724
+        if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5 || this.curPrescriptions.is_medicine_status) {
2725
+          this.$message.error('该处方已经结算或者记账或者已发药,无法删除')
2718
           return
2726
           return
2719
         }
2727
         }
2720
         this.$confirm('处方删除后不可恢复,是否确认删除', '删除', {
2728
         this.$confirm('处方删除后不可恢复,是否确认删除', '删除', {
2745
             }
2753
             }
2746
             this.editableTabsValue = activeName
2754
             this.editableTabsValue = activeName
2747
             this.prescriptions = tabs.filter(tab => tab.name !== targetName)
2755
             this.prescriptions = tabs.filter(tab => tab.name !== targetName)
2748
-           
2756
+
2749
             for (let i = 0; i < this.prescriptions.length; i++) {
2757
             for (let i = 0; i < this.prescriptions.length; i++) {
2750
               if (activeName == this.prescriptions[i].name) {
2758
               if (activeName == this.prescriptions[i].name) {
2751
                 this.curPrescriptions = this.prescriptions[i]
2759
                 this.curPrescriptions = this.prescriptions[i]
2787
                 }
2795
                 }
2788
                 this.editableTabsValue = activeName
2796
                 this.editableTabsValue = activeName
2789
                 this.prescriptions = tabs.filter(tab => tab.name !== targetName)
2797
                 this.prescriptions = tabs.filter(tab => tab.name !== targetName)
2790
-               
2798
+
2791
                 for (let i = 0; i < this.prescriptions.length; i++) {
2799
                 for (let i = 0; i < this.prescriptions.length; i++) {
2792
                   if (activeName == this.prescriptions[i].name) {
2800
                   if (activeName == this.prescriptions[i].name) {
2793
                     this.curPrescriptions = this.prescriptions[i]
2801
                     this.curPrescriptions = this.prescriptions[i]
2799
                     }
2807
                     }
2800
                   }
2808
                   }
2801
                 }
2809
                 }
2802
-              
2810
+
2803
                 if (this.prescriptions.length == 0) {
2811
                 if (this.prescriptions.length == 0) {
2804
                   this.curPrescriptions = []
2812
                   this.curPrescriptions = []
2805
                   this.curStatus = 0
2813
                   this.curStatus = 0
2806
                 }
2814
                 }
2807
-                
2815
+
2808
                 this.$parent.getInitData()
2816
                 this.$parent.getInitData()
2809
                 this.$parent.getInitDataOne(this.prescriptions)
2817
                 this.$parent.getInitDataOne(this.prescriptions)
2810
                 console.log("删除后的数据是",this.prescriptions)
2818
                 console.log("删除后的数据是",this.prescriptions)
3056
             var temp2 = this.deepClone(this.teamList)
3064
             var temp2 = this.deepClone(this.teamList)
3057
 
3065
 
3058
             var temp3 = this.deepClone(templateDrugs)
3066
             var temp3 = this.deepClone(templateDrugs)
3059
-           
3067
+
3060
             if (temp3.length > 0) {
3068
             if (temp3.length > 0) {
3061
               for (let b = 0; b < temp3.length; b++) {
3069
               for (let b = 0; b < temp3.length; b++) {
3062
                 let obj = {
3070
                 let obj = {
3116
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3124
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3117
                   obj.prescribing_number = 1
3125
                   obj.prescribing_number = 1
3118
                 }
3126
                 }
3119
-               
3127
+
3120
                 this.prescriptions[i].advices.push(obj)
3128
                 this.prescriptions[i].advices.push(obj)
3121
               }
3129
               }
3122
               this.curStatus = 1
3130
               this.curStatus = 1

+ 65 - 11
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Näytä tiedosto

6
             <el-table-column align="center" prop="day" width="70" label="序号">
6
             <el-table-column align="center" prop="day" width="70" label="序号">
7
                 <template slot-scope="scope">
7
                 <template slot-scope="scope">
8
                     <div style="display:flex;align-items:center;">
8
                     <div style="display:flex;align-items:center;">
9
-                        <el-input v-model="scope.row.groupno" placeholder=""></el-input>
9
+                        <el-input :disabled="prescription.is_medicine_status" v-model="scope.row.groupno" placeholder=""></el-input>
10
                     </div>
10
                     </div>
11
                 </template>
11
                 </template>
12
             </el-table-column>
12
             </el-table-column>
21
             <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
21
             <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
22
                 <template slot-scope="scope">
22
                 <template slot-scope="scope">
23
                     <div style="display:flex;align-items:center;">
23
                     <div style="display:flex;align-items:center;">
24
-                        <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
24
+                        <el-input :disabled="prescription.is_medicine_status" v-model="scope.row.single_dose" @input="getAllChangeTwo(scope)"
25
                                   style="width:50%;"></el-input>
25
                                   style="width:50%;"></el-input>
26
                         <!-- <div>{{scope.row.single_dose_unit}}</div> -->
26
                         <!-- <div>{{scope.row.single_dose_unit}}</div> -->
27
                         <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
27
                         <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
28
-                                   @change="getAllChange(scope)">
28
+                                   @change="getAllChangeTwo(scope)" :disabled="prescription.is_medicine_status" >
29
                             <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
29
                             <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
30
                             <el-option :label="scope.row.drug.dose_unit"
30
                             <el-option :label="scope.row.drug.dose_unit"
31
                                        v-if="scope.row.drug.dose_unit != scope.row.drug.min_unit"
31
                                        v-if="scope.row.drug.dose_unit != scope.row.drug.min_unit"
36
             </el-table-column>
36
             </el-table-column>
37
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
37
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
38
                 <template slot-scope="scope">
38
                 <template slot-scope="scope">
39
-                    <el-select v-model="scope.row.delivery_way" placeholder="请选择">
39
+                    <el-select :disabled="prescription.is_medicine_status" v-model="scope.row.delivery_way" placeholder="请选择">
40
                         <el-option
40
                         <el-option
41
                                 v-for="(item,index) in drugways"
41
                                 v-for="(item,index) in drugways"
42
                                 :key="index"
42
                                 :key="index"
48
             </el-table-column>
48
             </el-table-column>
49
             <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
49
             <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
50
                 <template slot-scope="scope">
50
                 <template slot-scope="scope">
51
-                    <el-select v-model="scope.row.execution_frequency" placeholder="请选择" @change="getAllChange(scope)">
51
+                    <el-select :disabled="prescription.is_medicine_status" v-model="scope.row.execution_frequency" placeholder="请选择" @change="getAllChangeTwo(scope)">
52
                         <el-option
52
                         <el-option
53
                                 v-for="item,index in efs"
53
                                 v-for="item,index in efs"
54
                                 :key="index"
54
                                 :key="index"
63
             <el-table-column align="center" prop="day" width="70" label="天数">
63
             <el-table-column align="center" prop="day" width="70" label="天数">
64
                 <template slot-scope="scope">
64
                 <template slot-scope="scope">
65
                     <div style="display:flex;align-items:center;">
65
                     <div style="display:flex;align-items:center;">
66
-                        <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
66
+                        <el-input :disabled="prescription.is_medicine_status" v-model="scope.row.day" @input="getAllChangeTwo(scope)" placeholder=""></el-input>
67
                         {{'天'}}
67
                         {{'天'}}
68
                     </div>
68
                     </div>
69
                 </template>
69
                 </template>
72
             <el-table-column align="center" prop="prescribing_number" width="120" label="总量">
72
             <el-table-column align="center" prop="prescribing_number" width="120" label="总量">
73
                 <template slot-scope="scope">
73
                 <template slot-scope="scope">
74
                     <div style="display:flex;align-items:center;">
74
                     <div style="display:flex;align-items:center;">
75
-                        <el-input v-model="scope.row.prescribing_number" @input="changePrescribingNumber(scope)"
75
+                        <el-input :disabled="prescription.is_medicine_status" v-model="scope.row.prescribing_number" @input="changePrescribingNumber(scope)"
76
                                   style="width:50%" placeholder=""></el-input>
76
                                   style="width:50%" placeholder=""></el-input>
77
                         <!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
77
                         <!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
78
-                        <el-select v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;"
78
+                        <el-select :disabled="prescription.is_medicine_status" v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;"
79
                                    @change="getPrescribingNumberUnit(scope)">
79
                                    @change="getPrescribingNumberUnit(scope)">
80
                             <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
80
                             <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
81
                             <el-option :label="scope.row.drug.max_unit"
81
                             <el-option :label="scope.row.drug.max_unit"
96
             </el-table-column>
96
             </el-table-column>
97
             <el-table-column align="center" prop="hosp_appr_flag" width="100" label="医院审批标志">
97
             <el-table-column align="center" prop="hosp_appr_flag" width="100" label="医院审批标志">
98
                 <template slot-scope="scope">
98
                 <template slot-scope="scope">
99
-                    <el-select v-model="scope.row.hosp_appr_flag" placeholder="请选择">
99
+                    <el-select :disabled="prescription.is_medicine_status" v-model="scope.row.hosp_appr_flag" placeholder="请选择">
100
                         <el-option label="审批通过" value="1"></el-option>
100
                         <el-option label="审批通过" value="1"></el-option>
101
                         <el-option label="无须审批" value="3"></el-option>
101
                         <el-option label="无须审批" value="3"></el-option>
102
                         <el-option label="审批不通过" value="2"></el-option>
102
                         <el-option label="审批不通过" value="2"></el-option>
105
             </el-table-column>
105
             </el-table-column>
106
             <el-table-column align="center" prop="remark" width="50" label="备注">
106
             <el-table-column align="center" prop="remark" width="50" label="备注">
107
                 <template slot-scope="scope">
107
                 <template slot-scope="scope">
108
-                    <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
108
+                    <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
109
                 </template>
109
                 </template>
110
             </el-table-column>
110
             </el-table-column>
111
             <el-table-column align="center" width="40" prop="name" label="操作">
111
             <el-table-column align="center" width="40" prop="name" label="操作">
324
         })
324
         })
325
 
325
 
326
       }, deleteDrug: function(index, row) {
326
       }, deleteDrug: function(index, row) {
327
+        if (this.prescription.is_medicine_status){
328
+          this.$message.error('该处方包含已发药的药品,无法删除')
329
+          return
330
+        }
327
         if (this.prescription.order_status == 2 ||  this.prescription.order_status ==5) {
331
         if (this.prescription.order_status == 2 ||  this.prescription.order_status ==5) {
328
           this.$message.error('该处方已经结算或记账,无法删除')
332
           this.$message.error('该处方已经结算或记账,无法删除')
329
           return
333
           return
432
 
436
 
433
       },
437
       },
434
       getAllChange(scope) {
438
       getAllChange(scope) {
439
+        // if (this.prescription.is_medicine_status){
440
+        //   this.$message.error('该处方已经结算或记账,无法删除')
441
+        //
442
+        // }
443
+        if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
444
+          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
445
+            console.log(1)
446
+            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
447
+          } else {
448
+            console.log(12)
449
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
450
+          }
451
+        } else {
452
+          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
453
+            console.log(123)
454
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
455
+          } else {
456
+            console.log(1234)
457
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
458
+          }
459
+        }
460
+        if (scope.row.prescribing_number == 0) {
461
+          scope.row.prescribing_number = 1
462
+        }
463
+        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
464
+          // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
465
+          if (scope.row.prescribing_number > scope.row.drug.sum_count) {
466
+            this.$message.error(scope.row.drug_name + '库存不足')
467
+          }
468
+        } else {
469
+          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
470
+            this.$message.error(scope.row.drug_name + '库存不足')
471
+          }
472
+          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
473
+        }
474
+
475
+      },
476
+      getAllChangeTwo(scope) {
477
+        if (this.prescription.is_medicine_status){
478
+          this.$message.error('该处方包含已发药的药品,无法修改')
479
+          return
480
+        }
435
         if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
481
         if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
436
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
482
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
437
             console.log(1)
483
             console.log(1)
465
         }
511
         }
466
 
512
 
467
       },
513
       },
468
-      getPrescribingNumberUnit(scope) {
469
 
514
 
515
+      getPrescribingNumberUnit(scope) {
516
+        if (this.prescription.is_medicine_status){
517
+          this.$message.error('该处方包含已发药的药品,无法修改')
518
+          return
519
+        }
470
          console.log('scope',scope)
520
          console.log('scope',scope)
471
         // if(scope.row.drug.min_unit == scope.row.single_dose_unit){
521
         // if(scope.row.drug.min_unit == scope.row.single_dose_unit){
472
         //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
522
         //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
497
         }
547
         }
498
       },
548
       },
499
       changePrescribingNumber(scope) {
549
       changePrescribingNumber(scope) {
550
+        if (this.prescription.is_medicine_status){
551
+          this.$message.error('该处方包含已发药的药品,无法修改')
552
+          return
553
+        }
500
         //  var max_number = 0
554
         //  var max_number = 0
501
         //  if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
555
         //  if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
502
         //     max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number
556
         //     max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number

+ 50 - 17
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Näytä tiedosto

445
     },
445
     },
446
 
446
 
447
     // 电子病历打印
447
     // 电子病历打印
448
-    opentwo(index) {  
448
+    opentwo(index) {
449
       if (index == 1) {
449
       if (index == 1) {
450
         if (this.patientInfo.id == undefined) {
450
         if (this.patientInfo.id == undefined) {
451
           this.$message.error('请先选择病人')
451
           this.$message.error('请先选择病人')
1239
           //     }
1239
           //     }
1240
           //   }
1240
           //   }
1241
           // }
1241
           // }
1242
-       
1242
+
1243
           this.drugs = drugs
1243
           this.drugs = drugs
1244
-        
1244
+
1245
 
1245
 
1246
           this.allDrugs = response.data.data.drugs
1246
           this.allDrugs = response.data.data.drugs
1247
           this.advices_template = response.data.data.advices_template
1247
           this.advices_template = response.data.data.advices_template
1248
-         
1248
+
1249
           this.department = response.data.data.department
1249
           this.department = response.data.data.department
1250
           this.sick = response.data.data.sick
1250
           this.sick = response.data.data.sick
1251
           this.diagnoses = response.data.data.diagnose
1251
           this.diagnoses = response.data.data.diagnose
1464
 
1464
 
1465
           //处方相关
1465
           //处方相关
1466
           this.prescriptionList = response.data.data.prescription
1466
           this.prescriptionList = response.data.data.prescription
1467
-
1467
+          let  is_medicine = false
1468
           if (response.data.data.prescription.length > 0) {
1468
           if (response.data.data.prescription.length > 0) {
1469
             for (let i = 0; i < response.data.data.prescription.length; i++) {
1469
             for (let i = 0; i < response.data.data.prescription.length; i++) {
1470
               var prescription = response.data.data.prescription[i]
1470
               var prescription = response.data.data.prescription[i]
1492
                   groupno: prescription.advices[b].groupno,
1492
                   groupno: prescription.advices[b].groupno,
1493
                   hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1493
                   hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1494
                   execution_state: prescription.advices[b].execution_state,
1494
                   execution_state: prescription.advices[b].execution_state,
1495
+                  is_medicine: prescription.advices[b].is_medicine,
1495
 
1496
 
1496
                 }
1497
                 }
1497
                 tempAdvice.push(obj)
1498
                 tempAdvice.push(obj)
1499
+                console.log( prescription.advices[b].is_medicine)
1500
+                if(prescription.advices[b].is_medicine == 1){
1501
+                  console.log("~~~~~~~")
1502
+                  is_medicine = true
1503
+                }
1498
               }
1504
               }
1499
 
1505
 
1500
               //项目
1506
               //项目
1561
               } else {
1567
               } else {
1562
                 preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1568
                 preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1563
               }
1569
               }
1570
+              console.log("is_medicine")
1571
+              console.log(is_medicine)
1564
 
1572
 
1565
               let index = i + 1
1573
               let index = i + 1
1566
               let obj = {
1574
               let obj = {
1571
                 addition: tempAddition,
1579
                 addition: tempAddition,
1572
                 order_status: prescription.order_status,
1580
                 order_status: prescription.order_status,
1573
                 pre_time: preTime,
1581
                 pre_time: preTime,
1574
-                med_type: parseInt(prescription.med_type)
1582
+                med_type: parseInt(prescription.med_type),
1583
+                is_medicine_status: is_medicine,
1575
               }
1584
               }
1576
               this.prescriptions.push(obj)
1585
               this.prescriptions.push(obj)
1577
             }
1586
             }
1709
                   addition: tempAddition,
1718
                   addition: tempAddition,
1710
                   order_status: 1,
1719
                   order_status: 1,
1711
                   pre_time: preTime,
1720
                   pre_time: preTime,
1712
-                  med_type: ''
1713
-
1721
+                  med_type: '',
1722
+                  is_medicine_status:false,
1714
                 }
1723
                 }
1715
                 if (prescription.med_type == 0 || prescription.med_type == '') {
1724
                 if (prescription.med_type == 0 || prescription.med_type == '') {
1716
 
1725
 
1735
                 addition: [],
1744
                 addition: [],
1736
                 order_status: 0,
1745
                 order_status: 0,
1737
                 pre_time: nowTime,
1746
                 pre_time: nowTime,
1738
-                med_type: ''
1739
-
1747
+                med_type: '',
1748
+                is_medicine_status:false,
1740
               }
1749
               }
1741
               obj.med_type = 14
1750
               obj.med_type = 14
1742
               this.prescriptions.push(obj)
1751
               this.prescriptions.push(obj)
1919
                     let tempAdvice = []
1928
                     let tempAdvice = []
1920
                     let tempProject = []
1929
                     let tempProject = []
1921
                     let tempAddition = []
1930
                     let tempAddition = []
1922
-
1931
+                    var is_medicine  = false
1923
                     //药品
1932
                     //药品
1924
                     for (let b = 0; b < prescription.advices.length; b++) {
1933
                     for (let b = 0; b < prescription.advices.length; b++) {
1925
                       let obj = {
1934
                       let obj = {
1940
                         groupno: prescription.advices[b].groupno,
1949
                         groupno: prescription.advices[b].groupno,
1941
                         hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1950
                         hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1942
                         execution_state: prescription.advices[b].execution_state,
1951
                         execution_state: prescription.advices[b].execution_state,
1952
+                        is_medicine: prescription.advices[b].is_medicine,
1953
+
1943
 
1954
 
1944
 
1955
 
1945
                       }
1956
                       }
1946
                       tempAdvice.push(obj)
1957
                       tempAdvice.push(obj)
1958
+                      if (prescription.advices[b].is_medicine == 1){
1959
+                        is_medicine = true
1960
+                      }
1947
                     }
1961
                     }
1948
 
1962
 
1949
                     //项目
1963
                     //项目
2018
                       addition: tempAddition,
2032
                       addition: tempAddition,
2019
                       order_status: prescription.order_status,
2033
                       order_status: prescription.order_status,
2020
                       pre_time: preTime,
2034
                       pre_time: preTime,
2021
-                      med_type: parseInt(prescription.med_type)
2035
+                      med_type: parseInt(prescription.med_type),
2036
+                      is_medicine_status: is_medicine,
2022
                     }
2037
                     }
2023
                     this.prescriptions.push(obj)
2038
                     this.prescriptions.push(obj)
2024
                   }
2039
                   }
3559
                     let tempAdvice = []
3574
                     let tempAdvice = []
3560
                     let tempProject = []
3575
                     let tempProject = []
3561
                     let tempAddition = []
3576
                     let tempAddition = []
3577
+                    var is_medicine  = false
3578
+
3562
 
3579
 
3563
                     //药品
3580
                     //药品
3564
                     for (let b = 0; b < prescription.advices.length; b++) {
3581
                     for (let b = 0; b < prescription.advices.length; b++) {
3579
                         drug: prescription.advices[b].drug,
3596
                         drug: prescription.advices[b].drug,
3580
                         groupno: prescription.advices[b].groupno,
3597
                         groupno: prescription.advices[b].groupno,
3581
                         hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3598
                         hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3582
-                        execution_state: prescription.advices[b].execution_state
3599
+                        execution_state: prescription.advices[b].execution_state,
3600
+                        is_medicine: prescription.advices[b].is_medicine,
3583
 
3601
 
3584
 
3602
 
3585
                       }
3603
                       }
3604
+                      console.log("电子处方")
3605
+                      console.log( prescription.advices[b].is_medicine)
3606
+
3586
                       tempAdvice.push(obj)
3607
                       tempAdvice.push(obj)
3608
+                      if (prescription.advices[b].is_medicine == 1){
3609
+                        is_medicine = true
3610
+                      }
3587
                     }
3611
                     }
3588
 
3612
 
3589
                     //项目
3613
                     //项目
3660
                       addition: tempAddition,
3684
                       addition: tempAddition,
3661
                       order_status: prescription.order_status,
3685
                       order_status: prescription.order_status,
3662
                       pre_time: preTime,
3686
                       pre_time: preTime,
3663
-                      med_type: parseInt(prescription.med_type)
3687
+                      med_type: parseInt(prescription.med_type),
3688
+                      is_medicine_status: is_medicine,
3689
+
3664
                     }
3690
                     }
3665
                     this.prescriptions.push(obj)
3691
                     this.prescriptions.push(obj)
3666
                   }
3692
                   }
4178
                     let tempAdvice = []
4204
                     let tempAdvice = []
4179
                     let tempProject = []
4205
                     let tempProject = []
4180
                     let tempAddition = []
4206
                     let tempAddition = []
4207
+                    var is_medicine  = false
4181
 
4208
 
4182
                     //药品
4209
                     //药品
4183
                     for (let b = 0; b < prescription.advices.length; b++) {
4210
                     for (let b = 0; b < prescription.advices.length; b++) {
4198
                         drug: prescription.advices[b].drug,
4225
                         drug: prescription.advices[b].drug,
4199
                         groupno: prescription.advices[b].groupno,
4226
                         groupno: prescription.advices[b].groupno,
4200
                         hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
4227
                         hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
4201
-                        execution_state: prescription.advices[b].execution_state
4228
+                        execution_state: prescription.advices[b].execution_state,
4229
+                        is_medicine: prescription.advices[b].is_medicine,
4202
 
4230
 
4203
 
4231
 
4204
                       }
4232
                       }
4205
                       tempAdvice.push(obj)
4233
                       tempAdvice.push(obj)
4234
+                      if (prescription.advices[b].is_medicine == 1){
4235
+                        is_medicine = true
4236
+                      }
4206
                     }
4237
                     }
4207
 
4238
 
4208
                     //项目
4239
                     //项目
4280
                       addition: tempAddition,
4311
                       addition: tempAddition,
4281
                       order_status: prescription.order_status,
4312
                       order_status: prescription.order_status,
4282
                       pre_time: preTime,
4313
                       pre_time: preTime,
4283
-                      med_type: parseInt(prescription.med_type)
4314
+                      med_type: parseInt(prescription.med_type),
4315
+                      is_medicine_status: is_medicine,
4316
+
4284
                     }
4317
                     }
4285
                     this.prescriptions.push(obj)
4318
                     this.prescriptions.push(obj)
4286
                   }
4319
                   }
4596
       this.$refs.prescriptions.open_three()
4629
       this.$refs.prescriptions.open_three()
4597
     },
4630
     },
4598
     open(index) {
4631
     open(index) {
4599
-    
4632
+
4600
       this.index = index
4633
       this.index = index
4601
       if (index == 1) {
4634
       if (index == 1) {
4602
         this.$refs.prescriptions.open(1, this.saveLoading)
4635
         this.$refs.prescriptions.open(1, this.saveLoading)