28169 8 ay önce
ebeveyn
işleme
041e304602

+ 6 - 1
src/api/drug/drug.js Dosyayı Görüntüle

910
 }
910
 }
911
 
911
 
912
 export function getSelfDrugWarehouseOutDetailByPatientId(params){
912
 export function getSelfDrugWarehouseOutDetailByPatientId(params){
913
-
913
+  
914
+  return request({
915
+    url:"/api/drug/getselfDrugwarehouseoutdetailbypatientid",
916
+    method:"Get",
917
+    params:params,
918
+  })
914
 }
919
 }

+ 3 - 3
src/router/modules/selfPreparedMedicine.js Dosyayı Görüntüle

24
       path:'/stock/selfdrugquery',
24
       path:'/stock/selfdrugquery',
25
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/selfDrugQuery'),
25
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/selfDrugQuery'),
26
       name: 'stockquery',
26
       name: 'stockquery',
27
-      meta: { title: '自备药库存查询', noCache: true }
27
+      meta: { title: '库存查询', noCache: true }
28
 
28
 
29
     },
29
     },
30
 
30
 
32
       path: '/stock/selfwarehouse/info',
32
       path: '/stock/selfwarehouse/info',
33
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseInfo'),
33
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseInfo'),
34
       name: 'selfPrepareWaresing',
34
       name: 'selfPrepareWaresing',
35
-      meta: { title: '自备药入库', noCache: true }
35
+      meta: { title: '入库', noCache: true }
36
 
36
 
37
     },
37
     },
38
     {
38
     {
55
       path: '/stock/selfwarehouse/out',
55
       path: '/stock/selfwarehouse/out',
56
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseOut'),
56
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseOut'),
57
       name: 'selfPrepareWareOut',
57
       name: 'selfPrepareWareOut',
58
-      meta: { title: '自备药出库', noCache: true }
58
+      meta: { title: '出库', noCache: true }
59
 
59
 
60
     },
60
     },
61
     {
61
     {

+ 5 - 5
src/xt_pages/data/basicConfig.vue Dosyayı Görüntüle

46
                 <el-switch v-model="good_out_open" @change="changeGoodOutOpen"></el-switch>
46
                 <el-switch v-model="good_out_open" @change="changeGoodOutOpen"></el-switch>
47
             </p>
47
             </p>
48
 
48
 
49
-            <!-- <p style="margin-top:20px;">药品耗材在结算时出库:
49
+            <p style="margin-top:20px;">药品耗材在结算时出库:
50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
51
-            </p> -->
51
+            </p>
52
 
52
 
53
-            <!-- <p style="margin-top:20px;">药品在保存处方时同步到自备库:
53
+            <p style="margin-top:20px;">药品在保存处方时同步到自备库:
54
                <el-switch v-model="self_prescription_out_open" @change="changeSelfPrescriptionOpen"></el-switch>
54
                <el-switch v-model="self_prescription_out_open" @change="changeSelfPrescriptionOpen"></el-switch>
55
             </p>
55
             </p>
56
 
56
 
57
             <p style="margin-top:20px;">药品在执行时自备药出库:
57
             <p style="margin-top:20px;">药品在执行时自备药出库:
58
                <el-switch v-model="self_drug_out_open" @change="changeSelfPrescriptionOutOpen"></el-switch>
58
                <el-switch v-model="self_drug_out_open" @change="changeSelfPrescriptionOutOpen"></el-switch>
59
-            </p> -->
59
+            </p>
60
         </div>
60
         </div>
61
 
61
 
62
 
62
 
544
     // this.getOrderConfig()
544
     // this.getOrderConfig()
545
     this.getDataPrintList()
545
     this.getDataPrintList()
546
 
546
 
547
-    // this.getSelfPrintList()
547
+    this.getSelfPrintList()
548
   }
548
   }
549
 };
549
 };
550
 </script>
550
 </script>

+ 15 - 1
src/xt_pages/data/components/addDrugs.vue Dosyayı Görüntüle

509
                             </el-option>
509
                             </el-option>
510
                         </el-select>
510
                         </el-select>
511
                     </el-form-item>
511
                     </el-form-item>
512
+
513
+                    <el-form-item label="是否自备药:" prop="is_pharmacy">
514
+                        <el-select v-model="form.is_self_drug" style="width:160px;" placeholder="请选择">
515
+                            <el-option
516
+                                    v-for="item in selfDrugList"
517
+                                    :key="item.id"
518
+                                    :label="item.name"
519
+                                    :value="item.id">
520
+                            </el-option>
521
+                        </el-select>
522
+                    </el-form-item>
512
                     <el-form-item label="" style="visibility: hidden;">
523
                     <el-form-item label="" style="visibility: hidden;">
513
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
524
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
514
                     </el-form-item>
525
                     </el-form-item>
655
           bby01:"",
666
           bby01:"",
656
           is_project:"",
667
           is_project:"",
657
           is_show:"",
668
           is_show:"",
669
+          is_self_drug:"2"
658
         },
670
         },
659
 
671
 
660
         rules: {
672
         rules: {
714
           name: "否"
726
           name: "否"
715
         }],
727
         }],
716
         projectList:[{id:"1",name:"是"},{id:"2",name:"否"}],
728
         projectList:[{id:"1",name:"是"},{id:"2",name:"否"}],
717
-        showList:[{id:"1",name:"是"},{id:"2",name:"否"}]
729
+        showList:[{id:"1",name:"是"},{id:"2",name:"否"}],
730
+        selfDrugList:[{id:"1",name:"是"},{id:"2",name:"否"}]
718
       }
731
       }
719
     },
732
     },
720
     props: {
733
     props: {
988
         form['bby01'] = this.form.bby01
1001
         form['bby01'] = this.form.bby01
989
         form['is_project'] = this.form.is_project
1002
         form['is_project'] = this.form.is_project
990
         form['is_show'] = this.form.is_show
1003
         form['is_show'] = this.form.is_show
1004
+        form['is_self_drug'] = parseInt(this.form.is_self_drug)
991
         return form
1005
         return form
992
       },
1006
       },
993
       getlist() {
1007
       getlist() {

+ 6 - 0
src/xt_pages/data/components/drugs.vue Dosyayı Görüntüle

748
                 this.formValue.is_show = this.formValue.is_show.toString()
748
                 this.formValue.is_show = this.formValue.is_show.toString()
749
               }
749
               }
750
 
750
 
751
+              if(this.formValue.is_self_drug <=0){
752
+                  this.formValue.is_self_drug = ""
753
+              }else{
754
+                this.formValue.is_self_drug = this.formValue.is_self_drug.toString()
755
+              }
756
+
751
 
757
 
752
               this.$refs.addDrugs.show(id, this.formValue)
758
               this.$refs.addDrugs.show(id, this.formValue)
753
 
759
 

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventynine.vue Dosyayı Görüntüle

133
                   <tr>
133
                   <tr>
134
                     <td colspan="2">
134
                     <td colspan="2">
135
                       <div style="line-height:30px;">
135
                       <div style="line-height:30px;">
136
-                      <span>计划脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
136
+                      <span>计划脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
137
                       <span>透析液流量: {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }} </span>ml/h
137
                       <span>透析液流量: {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }} </span>ml/h
138
                       </div>
138
                       </div>
139
                     </td>
139
                     </td>

+ 9 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue Dosyayı Görüntüle

93
             <div class="inline_block" style="flex: 1">
93
             <div class="inline_block" style="flex: 1">
94
               透析次数:
94
               透析次数:
95
               <div class="under_line" style="width: 70px; text-align: center">
95
               <div class="under_line" style="width: 70px; text-align: center">
96
-                {{
96
+                <!-- {{
97
                   record.patient.total_dialysis +
97
                   record.patient.total_dialysis +
98
                   record.patient.user_sys_before_count
98
                   record.patient.user_sys_before_count
99
                     ? record.patient.total_dialysis +
99
                     ? record.patient.total_dialysis +
100
                       record.patient.user_sys_before_count
100
                       record.patient.user_sys_before_count
101
                     : "/"
101
                     : "/"
102
-                }}
102
+                }} -->
103
+                {{
104
+                  record.Count +
105
+                  record.patient.user_sys_before_count
106
+                    ?  record.Count +
107
+                      record.patient.user_sys_before_count
108
+                    : "/"
109
+                 }}
103
               </div>
110
               </div>
104
             </div>
111
             </div>
105
           </div>
112
           </div>

+ 17 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Dosyayı Görüntüle

1219
                         </div>
1219
                         </div>
1220
                         mmol/L
1220
                         mmol/L
1221
                       </div>
1221
                       </div>
1222
-                      <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=0&&org_id!=10510">
1223
-                        流量:
1222
+                      <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=0&&org_id!=10510 &&org_id!=10683">
1223
+                       透析液流量:
1224
                         <div
1224
                         <div
1225
                           class="under_line"
1225
                           class="under_line"
1226
                           style="width: 50px; text-align: center"
1226
                           style="width: 50px; text-align: center"
1671
                             "
1671
                             "
1672
                             width="50"
1672
                             width="50"
1673
                           >
1673
                           >
1674
-                            置换量<br />
1675
-                            <span v-if="org_id!=10598 && org_id!=10567">(ml)</span>
1674
+                          <span v-if="org_id!=0&&org_id!=10683">置换量</span> 
1675
+                          <span v-if="org_id ==0||org_id==10683">置换液速度</span> 
1676
+                            <br />
1677
+                            <span v-if="org_id!=10598 && org_id!=10567">
1678
+                              <span v-if="org_id!=0&&org_id!=10683">(ml)</span>
1679
+                              <span v-if="org_id ==0||org_id==10683">(ml/h)</span>
1680
+                            </span>
1676
                             <span v-if="org_id==10598 || org_id == 10567">L</span>
1681
                             <span v-if="org_id==10598 || org_id == 10567">L</span>
1677
                           </td>
1682
                           </td>
1678
                           <td v-if="org_id == 3877  || org_id == 10449" width="50">滤前压(mmHg)</td>
1683
                           <td v-if="org_id == 3877  || org_id == 10449" width="50">滤前压(mmHg)</td>
1908
                             "
1913
                             "
1909
                             style="width: 50px"
1914
                             style="width: 50px"
1910
                           >
1915
                           >
1911
-                            {{
1916
+                           <span v-if="org_id!=0&&org_id!=10683">{{
1912
                               monitor_record.replacement_total
1917
                               monitor_record.replacement_total
1913
                                 ? monitor_record.replacement_total
1918
                                 ? monitor_record.replacement_total
1914
                                 : ""
1919
                                 : ""
1915
                             }}
1920
                             }}
1921
+                            </span> 
1922
+                            <span v-if="org_id==0||org_id==10683">{{
1923
+                              monitor_record.replacement_speed
1924
+                                ? monitor_record.replacement_speed
1925
+                                : ""
1926
+                            }}
1927
+                            </span> 
1916
                           </td>
1928
                           </td>
1917
                           <td v-if="org_id == 3877  || org_id == 10449">
1929
                           <td v-if="org_id == 3877  || org_id == 10449">
1918
                             {{
1930
                             {{

+ 7 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Dosyayı Görüntüle

1255
          //最后一次血管通路
1255
          //最后一次血管通路
1256
 
1256
 
1257
          if(this.lastAssessment!=null){
1257
          if(this.lastAssessment!=null){
1258
+          if(this.$store.getters.xt_user.template_info.org_id == 10697){
1259
+
1260
+            this.assessmentBeforeDislysis.breathing_rate =18
1261
+
1262
+            this.assessmentBeforeDislysis.temperature = 36.7
1263
+
1264
+          }
1258
            var blood_id = 0
1265
            var blood_id = 0
1259
            for(let i= 0;i<this.blood_access_part_opera.length;i++){
1266
            for(let i= 0;i<this.blood_access_part_opera.length;i++){
1260
               if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
1267
               if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){

+ 11 - 8
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

362
                     </el-col>
362
                     </el-col>
363
 
363
 
364
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
364
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
365
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 &&  this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 &&this.$store.getters.xt_user.template_info.org_id != 10495 &&this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702">
366
-                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 &&this.$store.getters.xt_user.template_info.template_id != 45 &&this.$store.getters.xt_user.template_info.org_id != 10346 &&this.$store.getters.xt_user.template_info.org_id != 10387 &&this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600">
365
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 &&  this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 &&this.$store.getters.xt_user.template_info.org_id != 10495 &&this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10510">
366
+                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 &&this.$store.getters.xt_user.template_info.template_id != 45 &&this.$store.getters.xt_user.template_info.org_id != 10346 &&this.$store.getters.xt_user.template_info.org_id != 10387 &&this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10510">
367
                             <el-form-item v-if='dialysisPrescription.anticoagulant != 1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.org_id != 9987 &&  this.$store.getters.xt_user.template_info.org_id!=9990' :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
367
                             <el-form-item v-if='dialysisPrescription.anticoagulant != 1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.org_id != 9987 &&  this.$store.getters.xt_user.template_info.org_id!=9990' :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
368
 
368
 
369
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
369
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
402
                                     this.$store.getters.xt_user.template_info.org_id ==10495 ||
402
                                     this.$store.getters.xt_user.template_info.org_id ==10495 ||
403
                                     this.$store.getters.xt_user.template_info.org_id ==10375 ||
403
                                     this.$store.getters.xt_user.template_info.org_id ==10375 ||
404
                                     this.$store.getters.xt_user.template_info.org_id ==10551 ||
404
                                     this.$store.getters.xt_user.template_info.org_id ==10551 ||
405
-                                    this.$store.getters.xt_user.template_info.org_id ==10600
405
+                                    this.$store.getters.xt_user.template_info.org_id ==10600 ||
406
+                                    this.$store.getters.xt_user.template_info.org_id ==10510 
406
                                     '
407
                                     '
407
                                     :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
408
                                     :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
408
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
409
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
467
 
468
 
468
 
469
 
469
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
470
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
470
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702">
471
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10510">
471
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 ">
472
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 ">
472
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
473
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
473
                                           v-if="anticoagulant.weichi != -1 &&
474
                                           v-if="anticoagulant.weichi != -1 &&
480
                                             this.$store.getters.xt_user.template_info.org_id != 10495 &&
481
                                             this.$store.getters.xt_user.template_info.org_id != 10495 &&
481
                                             this.$store.getters.xt_user.template_info.org_id != 10375 &&
482
                                             this.$store.getters.xt_user.template_info.org_id != 10375 &&
482
                                             this.$store.getters.xt_user.template_info.org_id != 10551 &&
483
                                             this.$store.getters.xt_user.template_info.org_id != 10551 &&
484
+                                            this.$store.getters.xt_user.template_info.org_id != 10510 &&
483
                                             this.$store.getters.xt_user.template_info.org_id != 10600" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
485
                                             this.$store.getters.xt_user.template_info.org_id != 10600" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
484
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
486
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
485
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
487
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
499
                                           this.$store.getters.xt_user.template_info.org_id == 10495 ||
501
                                           this.$store.getters.xt_user.template_info.org_id == 10495 ||
500
                                           this.$store.getters.xt_user.template_info.org_id == 10375 ||
502
                                           this.$store.getters.xt_user.template_info.org_id == 10375 ||
501
                                           this.$store.getters.xt_user.template_info.org_id == 10551 ||
503
                                           this.$store.getters.xt_user.template_info.org_id == 10551 ||
502
-                                          this.$store.getters.xt_user.template_info.org_id == 10600
504
+                                          this.$store.getters.xt_user.template_info.org_id == 10600 ||
505
+                                          this.$store.getters.xt_user.template_info.org_id == 10510 
503
                                           " prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
506
                                           " prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
504
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
507
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
505
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
508
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
578
 
581
 
579
 
582
 
580
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
583
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
581
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702">
584
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702&& this.$store.getters.xt_user.template_info.org_id != 10510">
582
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495">
585
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 10495">
583
                             <el-form-item
586
                             <el-form-item
584
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375  && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600'
587
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375  && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600  && this.$store.getters.xt_user.template_info.org_id != 10510'
585
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
588
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
586
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
589
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
587
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
590
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
589
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
592
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
590
                             </el-form-item>
593
                             </el-form-item>
591
                             <el-form-item
594
                             <el-form-item
592
-                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38||  this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10551 || this.$store.getters.xt_user.template_info.org_id == 10600 '
595
+                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38||  this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10551 || this.$store.getters.xt_user.template_info.org_id == 10600 || this.$store.getters.xt_user.template_info.org_id == 10510'
593
                                     :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
596
                                     :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
594
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
597
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
595
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
598
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>

+ 1 - 1
src/xt_pages/dialysis/doctorAdvicePrintOne.vue Dosyayı Görüntüle

256
                     this.project = resp.data.project
256
                     this.project = resp.data.project
257
                     resp.data.hisAdvices.map((item,index) => {
257
                     resp.data.hisAdvices.map((item,index) => {
258
                     item.new_advice = item.new_advice ? item.new_advice : []
258
                     item.new_advice = item.new_advice ? item.new_advice : []
259
-                      if(this.org_id!=9671 && this.org_id!= 10318 && this.org_id!=0 && this.org_id!=10375){
259
+                      if(this.org_id!=9671 && this.org_id!= 10318 && this.org_id!=0 && this.org_id!=10375 && this.org_id!=10633){
260
                         if(this.project[index].project.length > 0){
260
                         if(this.project[index].project.length > 0){
261
                             this.project[index].project.map(it => {
261
                             this.project[index].project.map(it => {
262
                             let obj = {
262
                             let obj = {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventynine.vue Dosyayı Görüntüle

113
             <tr>
113
             <tr>
114
               <td colspan="2">
114
               <td colspan="2">
115
                 <div style="line-height:30px;">
115
                 <div style="line-height:30px;">
116
-                 <span>计划脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
116
+                 <span>计划脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
117
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
117
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
118
                 </div>
118
                 </div>
119
               </td>
119
               </td>

+ 18 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Dosyayı Görüntüle

971
                     <div
971
                     <div
972
                       class="inline_block"
972
                       class="inline_block"
973
                       style="margin-left: 10px; flex: 1"
973
                       style="margin-left: 10px; flex: 1"
974
+                      v-if="org_id!=10683"
974
                     >
975
                     >
975
                       血流量:
976
                       血流量:
976
                       <div
977
                       <div
1295
                       </div>
1296
                       </div>
1296
                       mmol/L
1297
                       mmol/L
1297
                     </div>
1298
                     </div>
1298
-                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1299
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=10683 && org_id!=0">
1299
                       透析液流量:
1300
                       透析液流量:
1300
                       <div
1301
                       <div
1301
                         class="under_line"
1302
                         class="under_line"
1735
                         <td width="50" v-if="org_id == 10600 || org_id ==10598 || org_id ==10683">超滤率<br/>(ml/h)</td>
1736
                         <td width="50" v-if="org_id == 10600 || org_id ==10598 || org_id ==10683">超滤率<br/>(ml/h)</td>
1736
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
1737
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
1737
                         <td v-if="(prescription.mode_id == 2 ||prescription.mode_id == 5 ||prescription.mode_id == 12) &&org_id!=10478 && org_id!=0 && org_id!=10206" width="50">
1738
                         <td v-if="(prescription.mode_id == 2 ||prescription.mode_id == 5 ||prescription.mode_id == 12) &&org_id!=10478 && org_id!=0 && org_id!=10206" width="50">
1738
-                          置换量<br />
1739
-                          <span v-if="org_id!=10598 && org_id!=10567">(ml)</span>
1739
+                          <span v-if="org_id == 0 || org_id == 10683">置换液速度</span>
1740
+                          <span v-if="org_id!=0&&org_id!=10683">置换量</span> 
1741
+                          <br />
1742
+                          <span v-if="org_id!=10598 && org_id!=10567">
1743
+                            <span v-if="org_id!=0&&org_id!=10683">(ml)</span>
1744
+                            <span v-if="org_id ==0||org_id==10683">(ml/h)</span>
1745
+                          </span>
1740
                           <span v-if="org_id==10598 || org_id == 10567">(L)</span>
1746
                           <span v-if="org_id==10598 || org_id == 10567">(L)</span>
1741
                         </td>
1747
                         </td>
1742
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1748
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1873
                           style="width: 50px"
1879
                           style="width: 50px"
1874
                         >
1880
                         >
1875
                           <span>
1881
                           <span>
1882
+                           <span v-if="org_id!=0&&org_id!=10683"> 
1876
                             {{
1883
                             {{
1877
                               monitor.displacement_quantity
1884
                               monitor.displacement_quantity
1878
                                 ? monitor.displacement_quantity
1885
                                 ? monitor.displacement_quantity
1879
                                 : ""
1886
                                 : ""
1880
                             }}
1887
                             }}
1888
+                            </span> 
1889
+                            <span v-if="org_id == 0 || org_id == 10683">
1890
+                              {{
1891
+                              monitor.replacement_speed
1892
+                                ? monitor.replacement_speed
1893
+                                : ""
1894
+                             }}
1895
+                            </span>
1881
                           </span>
1896
                           </span>
1882
                         </td>
1897
                         </td>
1883
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1898
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>

+ 4 - 2
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue Dosyayı Görüntüle

765
         this.$router.go(-1);
765
         this.$router.go(-1);
766
       },
766
       },
767
       submit() {
767
       submit() {
768
-      this.$refs["tableForm"].validate((valid) => {
768
+        this.$refs["tableForm"].validate((valid) => {
769
         if (valid) {
769
         if (valid) {
770
+          this.loading = true
770
           const array = this.recordInfo.recordData;
771
           const array = this.recordInfo.recordData;
771
           let total = 0;
772
           let total = 0;
772
           for (let i = 0; i < array.length; i++) {
773
           for (let i = 0; i < array.length; i++) {
843
               return false;
844
               return false;
844
             } else {
845
             } else {
845
               this.loading = false;
846
               this.loading = false;
846
-              loading.close();
847
               var msg = response.data.data.msg;
847
               var msg = response.data.data.msg;
848
               var drug_name = response.data.data.drug_name;
848
               var drug_name = response.data.data.drug_name;
849
               var dose = response.data.data.dose;
849
               var dose = response.data.data.dose;
1167
             warehouse_out_id:this.warehouse_out_id,
1167
             warehouse_out_id:this.warehouse_out_id,
1168
             patient_id:this.patient_id,
1168
             patient_id:this.patient_id,
1169
          }
1169
          }
1170
+         this.loading = true
1170
         checkSelfOutDrugQuery(params).then(response=>{
1171
         checkSelfOutDrugQuery(params).then(response=>{
1171
           if(response.data.state ==1){
1172
           if(response.data.state ==1){
1173
+            this.loading = false
1172
             var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1174
             var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1173
               var msg =response.data.data.msg
1175
               var msg =response.data.data.msg
1174
               if(msg == 1){
1176
               if(msg == 1){

+ 33 - 28
src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue Dosyayı Görüntüle

579
       },
579
       },
580
       handleDelete: function (index, row) {
580
       handleDelete: function (index, row) {
581
 
581
 
582
-        this.$confirm('确定删除' + row.name + row.sub_name + '方案吗?', '提示', {
582
+        this.$confirm('确定删除吗?', '提示', {
583
           confirmButtonText: '确定',
583
           confirmButtonText: '确定',
584
           cancelButtonText: '取消',
584
           cancelButtonText: '取消',
585
           type: 'warning'
585
           type: 'warning'
595
                 type: 'success',
595
                 type: 'success',
596
                 duration: 2000
596
                 duration: 2000
597
               })
597
               })
598
-              this.tableData.splice(index, 1)
598
+              this.recordInfo.recordData.splice(index, 1)
599
 
599
 
600
             }
600
             }
601
           })
601
           })
969
             warehousing_id:this.warehousing_id,
969
             warehousing_id:this.warehousing_id,
970
             patient_id:this.patient_id,
970
             patient_id:this.patient_id,
971
           }
971
           }
972
+          this.loading = true
972
         returnSelfCheckWarehouse(params).then(response=>{
973
         returnSelfCheckWarehouse(params).then(response=>{
973
            if(response.data.state == 1){
974
            if(response.data.state == 1){
975
+            this.loading = false
974
             var list = response.data.data.list
976
             var list = response.data.data.list
975
              this.$message.success("反审核成功!")
977
              this.$message.success("反审核成功!")
976
              this.showCheck = true
978
              this.showCheck = true
984
       },
986
       },
985
       //新
987
       //新
986
       getSelfDrugWarehouseInfoById(id){
988
       getSelfDrugWarehouseInfoById(id){
987
-        
989
+        this.recordInfo.recordData = []
988
         getSelfDrugWarehouseInfoById(id).then(response=>{
990
         getSelfDrugWarehouseInfoById(id).then(response=>{
989
            if(response.data.state == 1){
991
            if(response.data.state == 1){
990
              var info = response.data.data.info
992
              var info = response.data.data.info
991
-             if(info.is_check == 2){
993
+             for(let i=0;i<info.length;i++){
994
+              const tempObj = {};
995
+              tempObj["id"] = info[i].id;
996
+              tempObj["drug_id"] = info[i].drug_id;
997
+              tempObj["drug_name"] = info[i].drug.drug_name;
998
+              tempObj["max_unit"] = info[i].max_unit;
999
+              tempObj["min_unit"] = info[i].min_unit,
1000
+              tempObj["product_date"] = this.getTimeOne(info[i].product_date);
1001
+              tempObj["expiry_date"] = this.getTimeOne(info[i].expiry_date);
1002
+              tempObj["warehousing_count"] = info[i].warehousing_count.toString();
1003
+              tempObj["remark"] = info[i].remark;
1004
+              tempObj["dealer"] =info[i].dealer
1005
+              tempObj["manufacturer"] = info[i].manufacturer;
1006
+              tempObj["batch_number"] = info[i].batch_number;
1007
+              tempObj["drug_type"] =this.GetDrugTypeName(info[i].drug.drug_type) 
1008
+              tempObj["number"] = info[i].number;
1009
+              tempObj["count_unit"] = info[i].max_unit;
1010
+              tempObj["name"] = info[i].drug.dose + info[i].drug.dose_unit + "*" + info[i].drug.min_number+info[i].drug.min_unit +"/"+info[i].drug.max_unit
1011
+            
1012
+              this.recordInfo.recordData.push(tempObj);
1013
+             }
1014
+             var warehouseInfo  =  response.data.data.warehouseInfo
1015
+             if(warehouseInfo.is_check == 2){
992
                this.showCheck = true
1016
                this.showCheck = true
993
                this.showReturnCheck = false
1017
                this.showReturnCheck = false
994
              }
1018
              }
995
-             if(info.is_check == 1){
1019
+             if(warehouseInfo.is_check == 1){
996
                 this.showCheck = false
1020
                 this.showCheck = false
997
                 this.showReturnCheck = true
1021
                 this.showReturnCheck = true
998
              }
1022
              }
999
-             this.patient_id = info.patient_id
1000
-             this.warehousing_time  =this.getTimeOne(info.record_date)
1023
+             this.patient_id = warehouseInfo.patient_id
1024
+             this.warehousing_time  =this.getTimeOne(warehouseInfo.warehousing_time)
1001
              this.manufacturerList = response.data.data.manufacturerList
1025
              this.manufacturerList = response.data.data.manufacturerList
1002
              this.dealerList = response.data.data.dealerList
1026
              this.dealerList = response.data.data.dealerList
1003
              this.drugTypeList = response.data.data.drugTypeList
1027
              this.drugTypeList = response.data.data.drugTypeList
1004
-             var warehouseInfo  =  response.data.data.warehouseInfo
1005
              this.warehousing_id  = warehouseInfo.id
1028
              this.warehousing_id  = warehouseInfo.id
1006
-             const tempObj = {};
1007
-             tempObj["id"] = info.id;
1008
-             tempObj["drug_id"] = info.drug_id;
1009
-             tempObj["drug_name"] = info.drug.drug_name;
1010
-             tempObj["max_unit"] = info.max_unit;
1011
-             tempObj["min_unit"] = info.min_unit,
1012
-             tempObj["product_date"] = this.getTimeOne(info.product_date);
1013
-             tempObj["expiry_date"] = this.getTimeOne(info.expiry_date);
1014
-             tempObj["warehousing_count"] = info.warehousing_count.toString();
1015
-             tempObj["remark"] = info.remark;
1016
-             tempObj["dealer"] =this.getDealer(info.dealer) 
1017
-             tempObj["manufacturer"] = this.getManufacturer(info.manufacturer);
1018
-             tempObj["batch_number"] = info.batch_number;
1019
-             tempObj["drug_type"] =this.GetDrugTypeName(info.drug.drug_type) 
1020
-             tempObj["number"] = info.number;
1021
-             tempObj["count_unit"] = info.max_unit;
1022
-             tempObj["name"] = info.drug.dose + info.drug.dose_unit + "*" + info.drug.min_number+info.drug.min_unit +"/"+info.drug.max_unit
1023
-             this.recordInfo.recordData = []
1024
-             this.recordInfo.recordData.push(tempObj);
1029
+           
1025
            }
1030
            }
1026
         })
1031
         })
1027
       },
1032
       },
1046
        GetDrugTypeName(drug_type){
1051
        GetDrugTypeName(drug_type){
1047
             var name = ""
1052
             var name = ""
1048
             for(let i=0;i<this.drugTypeList.length;i++){
1053
             for(let i=0;i<this.drugTypeList.length;i++){
1049
-            if(drug_type == this.drugTypeList[i].value){
1054
+            if(drug_type == this.drugTypeList[i].id){
1050
                 name = this.drugTypeList[i].name
1055
                 name = this.drugTypeList[i].name
1051
             }
1056
             }
1052
             }
1057
             }

+ 58 - 41
src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue Dosyayı Görüntüle

864
               var dealerList = response.data.data.dealerList
864
               var dealerList = response.data.data.dealerList
865
               var manufacturerList = response.data.data.manufacturerList
865
               var manufacturerList = response.data.data.manufacturerList
866
               var drugTypeList = response.data.data.drugTypeList
866
               var drugTypeList = response.data.data.drugTypeList
867
+
867
               
868
               
868
               for(let i=0;i<warehousingOutInfo.length;i++){
869
               for(let i=0;i<warehousingOutInfo.length;i++){
869
                 for(let j=0;j<dealerList.length;j++){
870
                 for(let j=0;j<dealerList.length;j++){
1171
       },
1172
       },
1172
 
1173
 
1173
       getSelfDrugWarehouseOutById(id){
1174
       getSelfDrugWarehouseOutById(id){
1175
+        this.recordInfo.recordData = []
1174
         getSelfDrugWarehouseOutById(id).then(response=>{
1176
         getSelfDrugWarehouseOutById(id).then(response=>{
1175
           if(response.data.state ==1){
1177
           if(response.data.state ==1){
1176
               var outInfo = response.data.data.outInfo
1178
               var outInfo = response.data.data.outInfo
1177
-              if(outInfo.is_check == 2){
1179
+              var outOne = response.data.data.outOne
1180
+              if(outInfo!=null){
1181
+                for(let i=0;i<outInfo.length;i++){
1182
+                  const tempObj = {};
1183
+                  tempObj["id"] = outInfo[i].id;
1184
+                  tempObj["drug_id"] = outInfo[i].drug_id;
1185
+                  tempObj["max_unit"] = outInfo[i].count_unit;
1186
+                  tempObj["min_unit"] = outInfo[i].min_unit, 
1187
+                  tempObj["return_count"] = "";
1188
+                  tempObj["price"] = "";
1189
+                  tempObj["remark"] = outInfo[i].remark;
1190
+                  // tempObj["manufacturer"] = this.getManufacturer(outInfo[i].manufacturer)
1191
+                  tempObj["manufacturer"] = outInfo[i].manufacturer
1192
+                  tempObj["batch_number"] = outInfo[i].batch_number;
1193
+                  tempObj["drug_type"] = this.GetDrugTypeName(outInfo[i].drug.drug_type) 
1194
+                  tempObj["dose"] = "";
1195
+                  tempObj["dose_unit"] = "";
1196
+                  tempObj["min_number"] = "";
1197
+                  // tempObj["dealer"] = this.getDealer(outInfo[i].dealer) 
1198
+                  tempObj["dealer"] = outInfo[i].dealer
1199
+                  tempObj["number"] = "";
1200
+                  tempObj["warehouse_info_id"] = outInfo[i].warehouse_info_id;
1201
+                  tempObj["count"] = (outInfo[i].count).toString();
1202
+                  tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
1203
+                  tempObj["retail_price"] = 0;
1204
+                  tempObj["last_price"] = "";
1205
+                  tempObj["stock_count"] = "";
1206
+                  tempObj["total_count"] = 0;
1207
+                  tempObj["max_unit_fisrt"] = 0;
1208
+                  tempObj["min_unit_fisrt"] = 0;
1209
+                  tempObj["total_price"] = 0;
1210
+                  tempObj["patient_id"] = outInfo[i].patient_id
1211
+                  tempObj["product_date"] = this.getTimeOne(outInfo[i].product_date);
1212
+                  tempObj["expiry_date"]=this.getTimeOne(outInfo[i].expiry_date)
1213
+                  tempObj["class_type"] = ""
1214
+                  tempObj["drug_name"] = outInfo[i].drug.drug_name
1215
+                  tempObj["name"] = outInfo[i].drug.dose + outInfo[i].drug.dose_unit + "*" + outInfo[i].drug.min_number+outInfo[i].drug.min_unit +"/"+outInfo[i].drug.max_unit
1216
+                 
1217
+                  this.recordInfo.recordData.push(tempObj);
1218
+                }
1219
+              }
1220
+            
1221
+              if(outOne.is_check == 2){
1178
                this.showCheck = true
1222
                this.showCheck = true
1179
                this.showReturnCheck = false
1223
                this.showReturnCheck = false
1180
              }
1224
              }
1181
-             if(outInfo.is_check == 1){
1225
+             if(outOne.is_check == 1){
1182
                 this.showCheck = false
1226
                 this.showCheck = false
1183
                 this.showReturnCheck = true
1227
                 this.showReturnCheck = true
1184
              }
1228
              }
1185
               this.manufacturerList = response.data.data.manufacturerList
1229
               this.manufacturerList = response.data.data.manufacturerList
1186
               this.dealerList = response.data.data.dealerList
1230
               this.dealerList = response.data.data.dealerList
1187
               this.drugTypeList = response.data.data.drugTypeList
1231
               this.drugTypeList = response.data.data.drugTypeList
1188
-              console.log("out_info",outInfo)
1189
-              const tempObj = {};
1190
-              this.patient_id = outInfo.patient_id
1191
-              this.warehouse_out_time = this.getTimeOne(outInfo.sys_record_time);
1192
-              this.warehouse_out_id  = outInfo.warehouse_out_id
1193
-              tempObj["id"] = outInfo.id;
1194
-              tempObj["drug_id"] = outInfo.drug_id;
1195
-              tempObj["max_unit"] = outInfo.count_unit;
1196
-              tempObj["min_unit"] = outInfo.min_unit, 
1197
-              tempObj["return_count"] = "";
1198
-              tempObj["price"] = "";
1199
-              tempObj["remark"] = outInfo.remark;
1200
-              tempObj["manufacturer"] = this.getManufacturer(outInfo.manufacturer)
1201
-              tempObj["batch_number"] = outInfo.batch_number;
1202
-              tempObj["drug_type"] = this.GetDrugTypeName(outInfo.drug.drug_type) 
1203
-              tempObj["dose"] = "";
1204
-              tempObj["dose_unit"] = "";
1205
-              tempObj["min_number"] = "";
1206
-              tempObj["dealer"] = this.getDealer(outInfo.dealer) 
1207
-              tempObj["number"] = "";
1208
-              tempObj["warehouse_info_id"] = outInfo.warehouse_info_id;
1209
-              tempObj["count"] = (outInfo.count).toString();
1210
-              tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
1211
-              tempObj["retail_price"] = 0;
1212
-              tempObj["last_price"] = "";
1213
-              tempObj["stock_count"] = "";
1214
-              tempObj["total_count"] = 0;
1215
-              tempObj["max_unit_fisrt"] = 0;
1216
-              tempObj["min_unit_fisrt"] = 0;
1217
-              tempObj["total_price"] = 0;
1218
-              tempObj["patient_id"] = outInfo.patient_id
1219
-              tempObj["product_date"] = this.getTimeOne(outInfo.product_date);
1220
-              tempObj["expiry_date"]=this.getTimeOne(outInfo.expiry_date)
1221
-              tempObj["class_type"] = ""
1222
-              tempObj["drug_name"] = outInfo.drug.drug_name
1223
-              tempObj["name"] = outInfo.drug.dose + outInfo.drug.dose_unit + "*" + outInfo.drug.min_number+outInfo.drug.min_unit +"/"+outInfo.drug.max_unit
1224
-              this.recordInfo.recordData = []
1225
-              this.recordInfo.recordData.push(tempObj);
1232
+             
1233
+              this.patient_id = outOne.patient_id
1234
+              this.warehouse_out_time = this.getTimeOne(outOne.warehouse_out_time);
1235
+              this.warehouse_out_id  = outOne.id
1236
+             
1226
           }
1237
           }
1227
         })
1238
         })
1228
       },
1239
       },
1246
             return name;
1257
             return name;
1247
        },
1258
        },
1248
        GetDrugTypeName(drug_type){
1259
        GetDrugTypeName(drug_type){
1260
+        console.log("haaaaaaaaaaaaaaaaa",drug_type)
1261
+        console.log("bbbbbbbbbbbbbb",this.drugTypeList)
1249
             var name = ""
1262
             var name = ""
1250
             for(let i=0;i<this.drugTypeList.length;i++){
1263
             for(let i=0;i<this.drugTypeList.length;i++){
1251
-            if(drug_type == this.drugTypeList[i].value){
1264
+            if(drug_type == this.drugTypeList[i].id){
1252
                 name = this.drugTypeList[i].name
1265
                 name = this.drugTypeList[i].name
1253
             }
1266
             }
1254
             }
1267
             }
1260
             warehouse_out_id:this.warehouse_out_id,
1273
             warehouse_out_id:this.warehouse_out_id,
1261
             patient_id:this.patient_id,
1274
             patient_id:this.patient_id,
1262
          }
1275
          }
1276
+         this.loading = true
1263
         checkSelfOutDrugQuery(params).then(response=>{
1277
         checkSelfOutDrugQuery(params).then(response=>{
1264
           if(response.data.state ==1){
1278
           if(response.data.state ==1){
1279
+            this.loading = false
1265
             var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1280
             var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1266
               var msg =response.data.data.msg
1281
               var msg =response.data.data.msg
1267
               if(msg == 1){
1282
               if(msg == 1){
1289
            warehouse_out_id:this.warehouse_out_id,
1304
            warehouse_out_id:this.warehouse_out_id,
1290
            patient_id:this.patient_id,
1305
            patient_id:this.patient_id,
1291
          }
1306
          }
1307
+         this.loading = true
1292
         returnCheckSelfOutDrugQuery(params).then(response=>{
1308
         returnCheckSelfOutDrugQuery(params).then(response=>{
1293
            if(response.data.state ==1){
1309
            if(response.data.state ==1){
1310
+            this.loading = false
1294
             var out = response.data.data.out
1311
             var out = response.data.data.out
1295
             this.$message.success("反审核成功!")
1312
             this.$message.success("反审核成功!")
1296
             this.showCheck = true
1313
             this.showCheck = true

+ 79 - 11
src/xt_pages/stock/selfPreparedMedicine/newDrugQuery.vue Dosyayı Görüntüle

4
           v-loading="loading"
4
           v-loading="loading"
5
           element-loading-text="拼命加载中">
5
           element-loading-text="拼命加载中">
6
           <el-input v-model="keyword" style="width:200px" placeholder="请输入药品名称" ></el-input>
6
           <el-input v-model="keyword" style="width:200px" placeholder="请输入药品名称" ></el-input>
7
-          <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
7
+          <el-button  type="primary" icon="el-icon-search" @click="seach" style="margin-bottom: 10px;">搜索</el-button>
8
              <el-table
8
              <el-table
9
               :row-style="{ color: '#303133' }"
9
               :row-style="{ color: '#303133' }"
10
               :header-cell-style="{
10
               :header-cell-style="{
34
       
34
       
35
               <el-table-column label="入库数量" align="center">
35
               <el-table-column label="入库数量" align="center">
36
                 <template slot-scope="scope">
36
                 <template slot-scope="scope">
37
-                  {{scope.row.sum_in_count}} {{scope.row.drug.min_unit }}
37
+                  {{getSumInCount(scope.row.child)}} {{scope.row.drug.min_unit }}
38
                  </template>
38
                  </template>
39
               </el-table-column>
39
               </el-table-column>
40
             
40
             
41
               <el-table-column label="出库数量" align="center">
41
               <el-table-column label="出库数量" align="center">
42
                 <template slot-scope="scope">
42
                 <template slot-scope="scope">
43
-                  {{scope.row.sum_act_out_count}} {{scope.row.drug.min_unit }}
43
+                  {{getSumActCount(scope.row.child)}}  {{scope.row.drug.min_unit }}
44
                </template>
44
                </template>
45
               </el-table-column>
45
               </el-table-column>
46
   
46
   
47
               <el-table-column label="退库数量" align="center">
47
               <el-table-column label="退库数量" align="center">
48
                 <template slot-scope="scope">
48
                 <template slot-scope="scope">
49
-                    {{scope.row.sum_cancel_count}} {{scope.row.drug.min_unit }}
49
+                    {{getSumCancelCount(scope.row.child)}} {{scope.row.drug.min_unit }}
50
                 </template>
50
                 </template>
51
               </el-table-column>
51
               </el-table-column>
52
   
52
   
53
                <el-table-column label="实际出库" align="center">
53
                <el-table-column label="实际出库" align="center">
54
                 <template slot-scope="scope">
54
                 <template slot-scope="scope">
55
                   <span>
55
                   <span>
56
-                    {{scope.row.sum_out_count}} {{scope.row.drug.min_unit }}
56
+                    {{getSumOutCount(scope.row.child)}} {{scope.row.drug.min_unit }}
57
                  </span>
57
                  </span>
58
                </template>
58
                </template>
59
               </el-table-column>
59
               </el-table-column>
61
               <el-table-column label="剩余库存" align="center">
61
               <el-table-column label="剩余库存" align="center">
62
                 <template slot-scope="scope">
62
                 <template slot-scope="scope">
63
                   <span>
63
                   <span>
64
-                    {{ scope.row.flush_count }} {{scope.row.drug.min_unit }}
64
+                    {{getSumFlushCount(scope.row.child) }} {{scope.row.drug.min_unit }}
65
                   </span>
65
                   </span>
66
                 </template>
66
                 </template>
67
               </el-table-column>
67
               </el-table-column>
91
              <el-pagination
91
              <el-pagination
92
               @size-change="handleSizeChange"
92
               @size-change="handleSizeChange"
93
               @current-change="handleCurrentChange"
93
               @current-change="handleCurrentChange"
94
-              :page-sizes="[10, 50, 100,200,300,400,500,1000]"
94
+              :page-sizes="[500,1000]"
95
               :page-size="10"
95
               :page-size="10"
96
               background
96
               background
97
               align="right"
97
               align="right"
137
        manufacturerList:[],
137
        manufacturerList:[],
138
        page:1,
138
        page:1,
139
        total:0,
139
        total:0,
140
-       limit:10,
140
+       limit:1000,
141
        pageone:1,
141
        pageone:1,
142
        totalone:0,
142
        totalone:0,
143
        keyword:"",
143
        keyword:"",
190
          }
190
          }
191
         specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
191
         specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
192
        
192
        
193
-        this.$router.push({path:"/stock/selfwarehouse/selfdrugflow?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count})
193
+        this.$router.push({path:"/stock/selfwarehouse/selfdrugflow?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
194
       },
194
       },
195
       toClickOne(val){
195
       toClickOne(val){
196
         var manufacturer_name = ""
196
         var manufacturer_name = ""
202
          }
202
          }
203
         specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
203
         specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
204
 
204
 
205
-        this.$router.push({path:"/stock/selfwarehouse/selfdrugbatchnumber?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count})
205
+        this.$router.push({path:"/stock/selfwarehouse/selfdrugbatchnumber?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
206
       },
206
       },
207
     
207
     
208
       open(){
208
       open(){
218
         getSelfDrugQuery(params).then(response=>{
218
         getSelfDrugQuery(params).then(response=>{
219
            if(response.data.state == 1){
219
            if(response.data.state == 1){
220
               var list = response.data.data.list
220
               var list = response.data.data.list
221
+              console.log("list==================",list)
222
+              if(list!=null && list.length >0){
223
+                 let dataInfo = {}
224
+                 list.forEach((item, index) => {
221
               
225
               
222
-              this.tableList =list
226
+                  let { drug_id } = item
227
+                  if (!dataInfo[drug_id]) {
228
+                    dataInfo[drug_id] = {
229
+                      drug_id:item.drug_id,
230
+                      drug:item.drug,
231
+                      advice_name:item.drug.drug_name,
232
+                      child: [],
233
+                      count:0,
234
+                      patient_id:0,
235
+                    }
236
+                  }
237
+                })
238
+                let arr = Object.values(dataInfo)
239
+              
240
+
241
+                if(arr!=null && arr.length >0){
242
+                  for(let i=0;i<arr.length;i++){
243
+                    for(let j=0;j<list.length;j++){
244
+                      if(arr[i].drug_id == list[j].drug_id){
245
+                          arr[i].child.push(list[j])
246
+                      }
247
+                    }
248
+                  }
249
+                }
250
+                console.log("arr----------------",arr)
251
+
252
+                this.tableList = []
253
+                this.tableList = arr
254
+              }
255
+           
223
               var total =  response.data.data.total
256
               var total =  response.data.data.total
224
               this.total = total
257
               this.total = total
225
               this.manufacturerList = response.data.data.manufacturerList
258
               this.manufacturerList = response.data.data.manufacturerList
387
         toPrint(){
420
         toPrint(){
388
           this.$router.push("/good/new/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keyword+"&storehouse_id="+this.storehouse_id+"&page="+this.page+"&limit="+this.limit+"&good_type="+this.good_type)
421
           this.$router.push("/good/new/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keyword+"&storehouse_id="+this.storehouse_id+"&page="+this.page+"&limit="+this.limit+"&good_type="+this.good_type)
389
         },
422
         },
423
+        getSumInCount(val){
424
+          var in_count =0
425
+          for(let i=0;i<val.length;i++){
426
+             in_count +=val[i].sum_in_count
427
+          }
428
+          return in_count
429
+        },
430
+        getSumActCount(val){
431
+          var in_count =0
432
+          for(let i=0;i<val.length;i++){
433
+             in_count +=val[i].sum_act_out_count
434
+          }
435
+          return in_count
436
+        },
437
+        getSumCancelCount(val){
438
+          var in_count =0
439
+          for(let i=0;i<val.length;i++){
440
+             in_count +=val[i].sum_cancel_count
441
+          }
442
+          return in_count
443
+        },
444
+        getSumOutCount(val){
445
+          var in_count =0
446
+          for(let i=0;i<val.length;i++){
447
+             in_count +=val[i].sum_out_count
448
+          }
449
+          return in_count
450
+        },
451
+        getSumFlushCount(val){
452
+          var in_count =0
453
+          for(let i=0;i<val.length;i++){
454
+             in_count +=val[i].flush_count
455
+          }
456
+          return in_count
457
+        }
390
     },
458
     },
391
     created(){
459
     created(){
392
       this.getlist()
460
       this.getlist()

+ 122 - 47
src/xt_pages/stock/selfPreparedMedicine/patientDrugQuery.vue Dosyayı Görüntüle

4
         element-loading-text="拼命加载中">
4
         element-loading-text="拼命加载中">
5
          <el-container>
5
          <el-container>
6
                <div style="width:27%">
6
                <div style="width:27%">
7
-                <el-row style="white-space:nowrap;display:flex;line-height: 31px;">
7
+                <!-- <el-row style="white-space:nowrap;display:flex;line-height: 31px;">
8
                    <span style="font-size:14px;color:#606266"> 时间:</span>
8
                    <span style="font-size:14px;color:#606266"> 时间:</span>
9
                     <el-date-picker
9
                     <el-date-picker
10
                       size="small"
10
                       size="small"
32
                         value-format="yyyy-MM-dd"
32
                         value-format="yyyy-MM-dd"
33
                         @change="endTimeChange"
33
                         @change="endTimeChange"
34
                     ></el-date-picker>
34
                     ></el-date-picker>
35
-                </el-row>
35
+                </el-row> -->
36
                 <el-row></el-row>
36
                 <el-row></el-row>
37
                  <el-row>
37
                  <el-row>
38
                    <el-col :span="24" style="display:flex">
38
                    <el-col :span="24" style="display:flex">
86
 
86
 
87
                    <el-tab-pane label="患者使用列表">
87
                    <el-tab-pane label="患者使用列表">
88
                      <div style="float:right;margin-bottom:10px">
88
                      <div style="float:right;margin-bottom:10px">
89
-                      <el-button type="primary" @click="toPrint">打印</el-button>
90
-                      <el-button type="primary" @click="exportList">导出</el-button>
89
+                      <!-- <el-button type="primary" @click="toPrint">打印</el-button>
90
+                      <el-button type="primary" @click="exportList">导出</el-button> -->
91
                       </div>
91
                       </div>
92
                      <el-table
92
                      <el-table
93
                           :data="tableList"
93
                           :data="tableList"
102
                         >
102
                         >
103
                      <el-table-column
103
                      <el-table-column
104
                        prop="date"
104
                        prop="date"
105
-                       label="名称"
105
+                       label="药品名称"
106
                       align="center"
106
                       align="center"
107
                       >
107
                       >
108
                       <template slot-scope="scope">
108
                       <template slot-scope="scope">
109
-                        {{scope.row.drug_name}}
109
+                        {{scope.row.drug.drug_name}}
110
+                      </template>
111
+                    </el-table-column>
112
+                    <el-table-column
113
+                       prop="date"
114
+                       label="药品规格"
115
+                      align="center"
116
+                      >
117
+                      <template slot-scope="scope">
118
+                        {{ scope.row.drug.dose}}{{ scope.row.drug.dose_unit }} * {{ scope.row.drug.min_number }}{{ scope.row.drug.min_unit }} /{{ scope.row.drug.max_unit }}
110
                       </template>
119
                       </template>
111
                     </el-table-column>
120
                     </el-table-column>
112
                      <el-table-column
121
                      <el-table-column
114
                       label="生产厂家"
123
                       label="生产厂家"
115
                       align="center">
124
                       align="center">
116
                       <template slot-scope="scope">
125
                       <template slot-scope="scope">
117
-                        {{scope.row.manufacturer}}
126
+                        {{ getManufacturName(scope.row.drug.manufacturer) }}
118
                       </template>
127
                       </template>
119
                      </el-table-column>
128
                      </el-table-column>
120
                       <el-table-column
129
                       <el-table-column
127
                      </el-table-column>
136
                      </el-table-column>
128
                       <el-table-column
137
                       <el-table-column
129
                        prop="name"
138
                        prop="name"
130
-                      label="数量"
139
+                      label="入库数量"
140
+                      align="center">
141
+                      <template slot-scope="scope">
142
+                         {{ scope.row.sum_in_count }}
143
+                      </template>
144
+                     </el-table-column>
145
+
146
+                     <el-table-column
147
+                       prop="name"
148
+                      label="出库数量"
149
+                      align="center">
150
+                      <template slot-scope="scope">
151
+                        {{ scope.row.sum_out_count }}
152
+                      </template>
153
+                     </el-table-column>
154
+
155
+                     <el-table-column
156
+                       prop="name"
157
+                      label="退库数量"
158
+                      align="center">
159
+                      <template slot-scope="scope">
160
+                        {{ scope.row.sum_cancel_count }}
161
+                      </template>
162
+                     </el-table-column>
163
+
164
+                     <el-table-column
165
+                       prop="name"
166
+                      label="实际出库"
167
+                      align="center">
168
+                      <template slot-scope="scope">
169
+                        {{ scope.row.sum_act_out_count }}
170
+                      </template>
171
+                     </el-table-column>
172
+
173
+
174
+                     
175
+                     <el-table-column
176
+                       prop="name"
177
+                      label="剩余库存"
131
                       align="center">
178
                       align="center">
132
                       <template slot-scope="scope">
179
                       <template slot-scope="scope">
133
-                         {{getCount(scope.row.child,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}
180
+                        {{ scope.row.flush_count }}
134
                       </template>
181
                       </template>
135
                      </el-table-column>
182
                      </el-table-column>
136
 
183
 
184
+                     <el-table-column label="操作" align="center" width="200px">
185
+               
186
+                      <template slot-scope="scope">
187
+                        <el-button
188
+                          size="small"
189
+                          type="primary"
190
+                          @click="toClick(scope.row)"
191
+                        >库存流水
192
+                        </el-button>
193
+                        <el-button
194
+                          size="small"
195
+                          type="primary"
196
+                          @click="toClickOne(scope.row)"
197
+                        >批次
198
+                        </el-button>
199
+        
200
+                      
201
+                        </template>
202
+                    </el-table-column>
203
+
137
                      </el-table>
204
                      </el-table>
138
                       <el-pagination
205
                       <el-pagination
139
                         @size-change="handleSizeChange"
206
                         @size-change="handleSizeChange"
200
     endTimeChange(){
267
     endTimeChange(){
201
       this.handleCurrentChange(this.patient)
268
       this.handleCurrentChange(this.patient)
202
     },
269
     },
270
+    getManufacturName(id){
271
+        var manufacturer_name = ""
272
+        for(let i=0;i<this.manufacturerList.length;i++){
273
+          if(id == this.manufacturerList[i].id){
274
+             manufacturer_name = this.manufacturerList[i].manufacturer_name
275
+          }
276
+        }
277
+        return manufacturer_name
278
+      },
279
+    getDearName(id){
280
+        var dear_name = ""
281
+        for(let i=0;i<this.dealerList.length;i++){
282
+          if(id == this.dealerList[i].id){
283
+            dear_name = this.dealerList[i].dealer_name
284
+          }
285
+        }
286
+        return dear_name
287
+    },
203
     getlist(){
288
     getlist(){
204
         this.loading = true
289
         this.loading = true
205
         var params = {
290
         var params = {
231
      getSelfDrugWarehouseOutDetailByPatientId(params).then(response=>{
316
      getSelfDrugWarehouseOutDetailByPatientId(params).then(response=>{
232
         if(response.data.state == 1){
317
         if(response.data.state == 1){
233
           var list = response.data.data.list
318
           var list = response.data.data.list
234
-          console.log("list233223232323",list)
235
-          var outlist = response.data.data.outlist
236
-          this.manufacturerList = response.data.data.manufacturerList
237
-          if(list!=null && list.length > 0){
238
-            for(let i=0;i<list.length;i++){
239
-              if(list[i].count_unit == list[i].drug.max_unit){
240
-                 list[i].count = list[i].count * list[i].drug.min_number
241
-              }
242
-            }
243
-          }
244
-          let dataInfo = {}
245
-          list.forEach((item, index) => {
246
-            let { drug_id } = item
247
-            if (!dataInfo[drug_id]) {
248
-              dataInfo[drug_id] = {
249
-                drug_id,
250
-                child: [],
251
-                dose:item.drug.dose,
252
-                dose_unit:item.drug.dose_unit,
253
-                min_number:item.drug.min_number,
254
-                min_unit:item.drug.min_unit,
255
-                max_unit:item.drug.max_unit,
256
-                drug_name:item.drug.drug_name,
257
-                manufacturer:this.getManufacturName(item.manufacturer),
258
-              }
259
-            }
260
-          })
261
-          let arr = Object.values(dataInfo)
262
-          arr.forEach((item,index)=>{
263
-            for(let i=0;i<outlist.length;i++){
264
-               if(item.drug_id == outlist[i].drug_id){
265
-                 item.child.push(outlist[i])
266
-               }
267
-            }
268
-          })
269
-        
270
-        
271
-          this.tableList = arr
319
+          this.tableList = list
272
           this.total = response.data.data.total
320
           this.total = response.data.data.total
321
+          this.manufacturerList = response.data.data.manufacturerList
273
         }
322
         }
274
      })
323
      })
275
    },
324
    },
411
           }
460
           }
412
         }
461
         }
413
         return patient_name
462
         return patient_name
463
+       },
464
+       toClick(val){
465
+       
466
+       var manufacturer_name = ""
467
+       var specification_name = ""
468
+       for(let i=0;i<this.manufacturerList.length;i++){
469
+          if(val.drug.manufacturer == this.manufacturerList[i].id){
470
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
471
+          }
414
        }
472
        }
473
+      specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
474
+     
475
+      this.$router.push({path:"/stock/selfwarehouse/selfdrugflow?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
476
+    },
477
+    toClickOne(val){
478
+      var manufacturer_name = ""
479
+       var specification_name = ""
480
+       for(let i=0;i<this.manufacturerList.length;i++){
481
+          if(val.drug.manufacturer == this.manufacturerList[i].id){
482
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
483
+          }
484
+       }
485
+      specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
486
+
487
+      this.$router.push({path:"/stock/selfwarehouse/selfdrugbatchnumber?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count+"&patient_id="+val.patient_id})
488
+    },
489
+      
415
   },
490
   },
416
   created(){
491
   created(){
417
     var nowDate = new Date();
492
     var nowDate = new Date();

+ 2 - 1
src/xt_pages/stock/selfPreparedMedicine/selfDrugBatchNumber.vue Dosyayı Görüntüle

6
       <div class="app-container ">
6
       <div class="app-container ">
7
         <div class="cell clearfix">
7
         <div class="cell clearfix">
8
          药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
8
          药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
-         库存: {{this.$route.query.over_plus}}
9
+         <!-- 库存: {{this.$route.query.over_plus}} -->
10
          规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
10
          规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
11
          厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
11
          厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12
         </div>
12
         </div>
266
              end_time:this.end_time,
266
              end_time:this.end_time,
267
              page:this.page,
267
              page:this.page,
268
              limit:this.limit,
268
              limit:this.limit,
269
+             patient_id:this.$route.query.patient_id,
269
          }
270
          }
270
         getSelfDrugBatchNumberList(params).then(response=>{
271
         getSelfDrugBatchNumberList(params).then(response=>{
271
            if(response.data.state ==1){
272
            if(response.data.state ==1){

+ 6 - 3
src/xt_pages/stock/selfPreparedMedicine/selfDrugFlow.vue Dosyayı Görüntüle

6
       <div class="app-container ">
6
       <div class="app-container ">
7
         <div class="cell clearfix">
7
         <div class="cell clearfix">
8
          药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
8
          药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
-         库存: {{this.$route.query.over_plus}}
9
+         库存: {{this.$route.query.overCount}}{{ drug.min_unit }}
10
          规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
10
          规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
11
          厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
11
          厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12
         </div>
12
         </div>
79
                <span v-if="scope.row.consumable_type == 12">调拨出库</span>
79
                <span v-if="scope.row.consumable_type == 12">调拨出库</span>
80
                <span v-if="scope.row.consumable_type == 13">调拨入库</span>
80
                <span v-if="scope.row.consumable_type == 13">调拨入库</span>
81
                <span v-if="scope.row.consumable_type == 15">结算出库</span>
81
                <span v-if="scope.row.consumable_type == 15">结算出库</span>
82
+               <span v-if="scope.row.consumable_type == 20">处方出库</span>
82
              </template>
83
              </template>
83
           </el-table-column>
84
           </el-table-column>
84
           <el-table-column prop="drug_name" label="出/入库单据编码" align="center">
85
           <el-table-column prop="drug_name" label="出/入库单据编码" align="center">
85
              <template slot-scope="scope">
86
              <template slot-scope="scope">
86
                <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
87
                <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
87
-                <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 12 || scope.row.consumable_type == 15">{{scope.row.warehouse_out_order_number}}</span>
88
+                <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 12 || scope.row.consumable_type == 15 || scope.row.consumable_type==20">{{scope.row.warehouse_out_order_number}}</span>
88
                 <span v-if="scope.row.consumable_type == 4 || scope.row.consumable_type == 7">{{scope.row.cancel_order_number}}</span>
89
                 <span v-if="scope.row.consumable_type == 4 || scope.row.consumable_type == 7">{{scope.row.cancel_order_number}}</span>
89
                 <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
90
                 <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
90
                 <span v-if="scope.row.consumable_type == 10 || scope.row.consumable_type == 11 || scope.row.consumable_type == 13">{{scope.row.warehousing_order}}</span>
91
                 <span v-if="scope.row.consumable_type == 10 || scope.row.consumable_type == 11 || scope.row.consumable_type == 13">{{scope.row.warehousing_order}}</span>
270
              end_time:this.end_time,
271
              end_time:this.end_time,
271
              page:this.page,
272
              page:this.page,
272
              limit:this.limit,
273
              limit:this.limit,
274
+             patient_id:this.$route.query.patient_id,
273
          }
275
          }
274
         getSelfDrugFlow(params).then(response=>{
276
         getSelfDrugFlow(params).then(response=>{
275
            if(response.data.state ==1){
277
            if(response.data.state ==1){
276
               var list = response.data.data.list
278
               var list = response.data.data.list
279
+             
277
               this.tableList =list
280
               this.tableList =list
278
               var total =  response.data.data.total
281
               var total =  response.data.data.total
279
               this.total = total
282
               this.total = total
280
               this.drug =response.data.data.drug
283
               this.drug =response.data.data.drug
281
-              this.patients= response.data.data.patients
284
+              this.patientList= response.data.data.patients
282
            }
285
            }
283
         })
286
         })
284
       },
287
       },

+ 35 - 31
src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue Dosyayı Görüntüle

90
         <!-- <el-button size="small" icon="el-icon-delete" @click="batchDelete"
90
         <!-- <el-button size="small" icon="el-icon-delete" @click="batchDelete"
91
           >删除</el-button
91
           >删除</el-button
92
         > -->
92
         > -->
93
-        <el-button size="small" type="primary" @click="drugPrint()"
93
+        <!-- <el-button size="small" type="primary" @click="drugPrint()"
94
           >打印</el-button
94
           >打印</el-button
95
         >
95
         >
96
-        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button>
96
+        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button> -->
97
         <div>
97
         <div>
98
           <span>&nbsp;&nbsp;</span>
98
           <span>&nbsp;&nbsp;</span>
99
           <label class="title"><span class="name">审核状态</span> :</label>
99
           <label class="title"><span class="name">审核状态</span> :</label>
238
           color: '#606266',
238
           color: '#606266',
239
         }"
239
         }"
240
       >
240
       >
241
-        <el-table-column align="center" type="selection" width="55">
242
-        </el-table-column>
243
-
244
-
241
+      
245
         <el-table-column label="药品名称" align="center">
242
         <el-table-column label="药品名称" align="center">
246
           <template slot-scope="scope">
243
           <template slot-scope="scope">
247
              {{ scope.row.drug_name }}
244
              {{ scope.row.drug_name }}
537
     },
534
     },
538
     handleSizeChange(val) {
535
     handleSizeChange(val) {
539
       this.limit = val;
536
       this.limit = val;
540
-      this.GetWarehouse();
537
+      this.getAllSelfDrugWarehouse();
541
     },
538
     },
542
     handleCurrentChange(val) {
539
     handleCurrentChange(val) {
543
       this.page = val;
540
       this.page = val;
544
-      this.GetWarehouse();
541
+      this.getAllSelfDrugWarehouse();
545
     },
542
     },
546
     startTimeChange(val) {
543
     startTimeChange(val) {
547
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
544
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
551
       } else {
548
       } else {
552
         this.startTime = this.getTimestamp(val);
549
         this.startTime = this.getTimestamp(val);
553
         this.start_time = val;
550
         this.start_time = val;
554
-        this.GetWarehouse();
551
+        this.getAllSelfDrugWarehouse();
555
       }
552
       }
556
     },
553
     },
557
     endTimeChange(val) {
554
     endTimeChange(val) {
561
         this.end_time = "";
558
         this.end_time = "";
562
       } else {
559
       } else {
563
         this.end_time = val;
560
         this.end_time = val;
564
-        this.GetWarehouse();
561
+        this.getAllSelfDrugWarehouse();
565
       }
562
       }
566
     },
563
     },
567
     getTimestamp(time) {
564
     getTimestamp(time) {
690
         .catch(() => {});
687
         .catch(() => {});
691
     },
688
     },
692
     handleCurrentChangeOne(val) {
689
     handleCurrentChangeOne(val) {
690
+         this.tableDataList = []
693
          getSelfDrugWarehouseInfoById(val.id).then(response=>{
691
          getSelfDrugWarehouseInfoById(val.id).then(response=>{
694
           if(response.data.state ==1){
692
           if(response.data.state ==1){
695
             var info = response.data.data.info
693
             var info = response.data.data.info
694
+            console.log("info==================",info)
695
+            for(let i=0;i<info.length;i++){
696
+              const tempObj = {};
697
+              tempObj["id"] = info[i].id;
698
+              tempObj["drug_id"] = info[i].drug_id;
699
+              tempObj["drug_name"] = info[i].drug.drug_name;
700
+              tempObj["max_unit"] = info[i].max_unit;
701
+              tempObj["min_unit"] = info[i].min_unit,
702
+              tempObj["product_date"] = this.getTimeOne(info[i].product_date);
703
+              tempObj["expiry_date"] = this.getTimeOne(info[i].expiry_date);
704
+              tempObj["warehousing_count"] = info[i].warehousing_count.toString();
705
+              tempObj["remark"] = info[i].remark;
706
+              tempObj["dealer"] =this.getDealer(info[i].dealer) 
707
+              tempObj["manufacturer"] = this.getManufacturer(info[i].manufacturer);
708
+              tempObj["batch_number"] = info[i].batch_number;
709
+              tempObj["drug_type"] =this.GetDrugTypeName(info[i].drug.drug_type) 
710
+              tempObj["number"] = info[i].number;
711
+              tempObj["count_unit"] = info[i].max_unit;
712
+              tempObj["name"] = info[i].drug.dose + info[i].drug.dose_unit + "*" + info[i].drug.min_number+info[i].drug.min_unit +"/"+info[i].drug.max_unit
713
+             
714
+              this.tableDataList.push(tempObj);
715
+          
716
+            }
717
+            console.log("i报个=-----------------------",this.tableDataList)
718
+         
696
 
719
 
697
             var warehouseInfo =  response.data.data.warehouseInfo
720
             var warehouseInfo =  response.data.data.warehouseInfo
698
 
721
 
713
              this.drugTypeList = response.data.data.drugTypeList
736
              this.drugTypeList = response.data.data.drugTypeList
714
              var warehouseInfo  =  response.data.data.warehouseInfo
737
              var warehouseInfo  =  response.data.data.warehouseInfo
715
              this.warehousing_id  = warehouseInfo.id
738
              this.warehousing_id  = warehouseInfo.id
716
-             const tempObj = {};
717
-             
718
-             tempObj["id"] = info.id;
719
-             tempObj["drug_id"] = info.drug_id;
720
-             tempObj["drug_name"] = info.drug.drug_name;
721
-             tempObj["max_unit"] = info.max_unit;
722
-             tempObj["min_unit"] = info.min_unit,
723
-             tempObj["product_date"] = this.getTimeOne(info.product_date);
724
-             tempObj["expiry_date"] = this.getTimeOne(info.expiry_date);
725
-             tempObj["warehousing_count"] = info.warehousing_count.toString();
726
-             tempObj["remark"] = info.remark;
727
-             tempObj["dealer"] =this.getDealer(info.dealer) 
728
-             tempObj["manufacturer"] = this.getManufacturer(info.manufacturer);
729
-             tempObj["batch_number"] = info.batch_number;
730
-             tempObj["drug_type"] =this.GetDrugTypeName(info.drug.drug_type) 
731
-             tempObj["number"] = info.number;
732
-             tempObj["count_unit"] = info.max_unit;
733
-           
734
-             tempObj["name"] = info.drug.dose + info.drug.dose_unit + "*" + info.drug.min_number+info.drug.min_unit +"/"+info.drug.max_unit
735
-             this.tableDataList = []
736
-             this.tableDataList.push(tempObj);
739
+ 
740
+          
737
           }
741
           }
738
 
742
 
739
        })
743
        })

+ 63 - 42
src/xt_pages/stock/selfPreparedMedicine/warehouseOut.vue Dosyayı Görüntüle

106
         <!-- <el-button size="small" icon="el-icon-delete" @click="batchDelete"
106
         <!-- <el-button size="small" icon="el-icon-delete" @click="batchDelete"
107
           >删除</el-button
107
           >删除</el-button
108
         > -->
108
         > -->
109
-        <el-button size="small" type="primary" @click="drugPrint()"
109
+        <!-- <el-button size="small" type="primary" @click="drugPrint()"
110
           >打印</el-button
110
           >打印</el-button
111
         >
111
         >
112
-        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button>
112
+        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button> -->
113
         <div>
113
         <div>
114
           <span>&nbsp;&nbsp;</span>
114
           <span>&nbsp;&nbsp;</span>
115
           <label class="title"><span class="name">审核状态</span> :</label>
115
           <label class="title"><span class="name">审核状态</span> :</label>
251
           color: '#606266',
251
           color: '#606266',
252
         }"
252
         }"
253
       >
253
       >
254
-        <el-table-column align="center" type="selection" width="55">
255
-        </el-table-column>
256
-
257
-    
258
         <el-table-column label="药品名称" align="center">
254
         <el-table-column label="药品名称" align="center">
259
           <template slot-scope="scope">
255
           <template slot-scope="scope">
260
              {{ scope.row.drug_name }}
256
              {{ scope.row.drug_name }}
285
           </template>
281
           </template>
286
         </el-table-column>
282
         </el-table-column>
287
 
283
 
288
-      
289
 
284
 
285
+        <el-table-column label="使用患者" align="center">
286
+          <template slot-scope="scope">
287
+             {{getPatientName(scope.row.patient_id )}}
288
+          </template>
289
+        </el-table-column>
290
+
291
+      
290
         <el-table-column label="生产厂家" align="center">
292
         <el-table-column label="生产厂家" align="center">
291
           <template slot-scope="scope">
293
           <template slot-scope="scope">
292
             {{scope.row.manufacturer}}
294
             {{scope.row.manufacturer}}
332
 import { getAllDrugList } from "@/api/data";
334
 import { getAllDrugList } from "@/api/data";
333
 import { getDictionaryDataConfig } from "@/utils/data";
335
 import { getDictionaryDataConfig } from "@/utils/data";
334
 import BreadCrumb from "../../components/bread-crumb";
336
 import BreadCrumb from "../../components/bread-crumb";
335
-  import { getallPatientList,getAllSelfDrugWarehouseOutList,deleteSelfWarehouseOutList,getAllSelfDrugWarehouseOut,getSelfDrugWarehouseOutById} from "@/api/drug/drug"
337
+  import { getallPatientList,deleteSelfWarehouseOutList,getAllSelfDrugWarehouseOut,getSelfDrugWarehouseOutById} from "@/api/drug/drug"
336
 export default {
338
 export default {
337
   name: "drugStockInOrder",
339
   name: "drugStockInOrder",
338
   components: { BreadCrumb },
340
   components: { BreadCrumb },
430
       doctorList:[],
432
       doctorList:[],
431
       recordDataList:[],
433
       recordDataList:[],
432
       loading:false,
434
       loading:false,
435
+      patientList:[],
433
     };
436
     };
434
   },
437
   },
435
 
438
 
580
     },
583
     },
581
     handleDelete: function (index, row) {
584
     handleDelete: function (index, row) {
582
 
585
 
586
+        if(row.is_check == 1){
587
+            this.$message.error("该出库单已经审核,无法删除!")
588
+            return false
589
+        }
590
+        if(row.is_sys ==1 ){
591
+          this.$message.error("自动出库,无法删除!")
592
+          return false
593
+        }
594
+
583
         this.$confirm('确定删除吗?', '提示', {
595
         this.$confirm('确定删除吗?', '提示', {
584
           confirmButtonText: '确定',
596
           confirmButtonText: '确定',
585
           cancelButtonText: '取消',
597
           cancelButtonText: '取消',
940
          return user_name
952
          return user_name
941
       },
953
       },
942
       getSelfDrugWarehouseOutById(id){
954
       getSelfDrugWarehouseOutById(id){
955
+        this.recordDataList = []
943
         getSelfDrugWarehouseOutById(id).then(response=>{
956
         getSelfDrugWarehouseOutById(id).then(response=>{
944
           if(response.data.state ==1){
957
           if(response.data.state ==1){
945
               var outInfo = response.data.data.outInfo
958
               var outInfo = response.data.data.outInfo
959
+              if(outInfo!=null && outInfo.length >0){
960
+                 for(let i=0;i<outInfo.length;i++){
961
+                  const tempObj = {};
962
+                  tempObj["id"] = outInfo[i].id;
963
+                  tempObj["drug_id"] = outInfo[i].drug_id;
964
+                  tempObj["max_unit"] = outInfo[i].count_unit;
965
+                  tempObj["min_unit"] = outInfo[i].min_unit, 
966
+                  tempObj["return_count"] = "";
967
+                  tempObj["price"] = "";
968
+                  tempObj["remark"] = outInfo[i].remark;
969
+                  tempObj["manufacturer"] = this.getManufacturer(outInfo[i].manufacturer)
970
+                  tempObj["batch_number"] = outInfo[i].batch_number;
971
+                  tempObj["drug_type"] = this.GetDrugTypeName(outInfo[i].drug.drug_type) 
972
+                  tempObj["dose"] = "";
973
+                  tempObj["dose_unit"] = "";
974
+                  tempObj["min_number"] = "";
975
+                  tempObj["dealer"] = this.getDealer(outInfo[i].dealer) 
976
+                  tempObj["number"] = "";
977
+                  tempObj["warehouse_info_id"] = outInfo[i].warehouse_info_id;
978
+                  tempObj["count"] = (outInfo[i].count).toString();
979
+                  tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
980
+                  tempObj["retail_price"] = 0;
981
+                  tempObj["last_price"] = "";
982
+                  tempObj["stock_count"] = "";
983
+                  tempObj["total_count"] = 0;
984
+                  tempObj["max_unit_fisrt"] = 0;
985
+                  tempObj["min_unit_fisrt"] = 0;
986
+                  tempObj["total_price"] = 0;
987
+                  tempObj["patient_id"] = outInfo[i].patient_id
988
+                  tempObj["product_date"] = this.getTimeOne(outInfo[i].product_date);
989
+                  tempObj["expiry_date"]=this.getTimeOne(outInfo[i].expiry_date)
990
+                  tempObj["class_type"] = ""
991
+                  tempObj["drug_name"] = outInfo[i].drug.drug_name
992
+                  tempObj["name"] = outInfo[i].drug.dose + outInfo[i].drug.dose_unit + "*" + outInfo[i].drug.min_number+outInfo[i].drug.min_unit +"/"+outInfo[i].drug.max_unit
993
+                
994
+                  this.recordDataList.push(tempObj);
995
+                 }
996
+              }
946
               this.isShow = true
997
               this.isShow = true
947
               if(outInfo.is_check == 2){
998
               if(outInfo.is_check == 2){
948
                this.showCheck = true
999
                this.showCheck = true
956
               this.dealerList = response.data.data.dealerList
1007
               this.dealerList = response.data.data.dealerList
957
               this.drugTypeList = response.data.data.drugTypeList
1008
               this.drugTypeList = response.data.data.drugTypeList
958
               console.log("out_info",outInfo)
1009
               console.log("out_info",outInfo)
959
-              const tempObj = {};
1010
+            
960
               this.patient_id = outInfo.patient_id
1011
               this.patient_id = outInfo.patient_id
961
               this.warehouse_out_time = this.getTimeOne(outInfo.sys_record_time);
1012
               this.warehouse_out_time = this.getTimeOne(outInfo.sys_record_time);
962
               this.warehouse_out_id  = outInfo.warehouse_out_id
1013
               this.warehouse_out_id  = outInfo.warehouse_out_id
963
-              tempObj["id"] = outInfo.id;
964
-              tempObj["drug_id"] = outInfo.drug_id;
965
-              tempObj["max_unit"] = outInfo.count_unit;
966
-              tempObj["min_unit"] = outInfo.min_unit, 
967
-              tempObj["return_count"] = "";
968
-              tempObj["price"] = "";
969
-              tempObj["remark"] = outInfo.remark;
970
-              tempObj["manufacturer"] = this.getManufacturer(outInfo.manufacturer)
971
-              tempObj["batch_number"] = outInfo.batch_number;
972
-              tempObj["drug_type"] = this.GetDrugTypeName(outInfo.drug.drug_type) 
973
-              tempObj["dose"] = "";
974
-              tempObj["dose_unit"] = "";
975
-              tempObj["min_number"] = "";
976
-              tempObj["dealer"] = this.getDealer(outInfo.dealer) 
977
-              tempObj["number"] = "";
978
-              tempObj["warehouse_info_id"] = outInfo.warehouse_info_id;
979
-              tempObj["count"] = (outInfo.count).toString();
980
-              tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
981
-              tempObj["retail_price"] = 0;
982
-              tempObj["last_price"] = "";
983
-              tempObj["stock_count"] = "";
984
-              tempObj["total_count"] = 0;
985
-              tempObj["max_unit_fisrt"] = 0;
986
-              tempObj["min_unit_fisrt"] = 0;
987
-              tempObj["total_price"] = 0;
988
-              tempObj["patient_id"] = outInfo.patient_id
989
-              tempObj["product_date"] = this.getTimeOne(outInfo.product_date);
990
-              tempObj["expiry_date"]=this.getTimeOne(outInfo.expiry_date)
991
-              tempObj["class_type"] = ""
992
-              tempObj["drug_name"] = outInfo.drug.drug_name
993
-              tempObj["name"] = outInfo.drug.dose + outInfo.drug.dose_unit + "*" + outInfo.drug.min_number+outInfo.drug.min_unit +"/"+outInfo.drug.max_unit
994
-              this.recordDataList = []
995
-              this.recordDataList.push(tempObj);
1014
+
1015
+              // this.patientList =response.data.data.patients
1016
+      
996
           }
1017
           }
997
         })
1018
         })
998
       },
1019
       },