Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
0e042dce50

+ 14 - 10
src/xt_pages/data/components/addDrugs.vue View File

20
                                       maxlength="30"></el-input>
20
                                       maxlength="30"></el-input>
21
                         </el-form-item>
21
                         </el-form-item>
22
 
22
 
23
-                        <!-- <el-form-item label="药品规格 : ">
24
-                            <el-input v-model="form.specification_name" style="width:160px;" placeholder=""
23
+                      <div v-if="org_id == 9671 || org_id == 7957 || org_id == 4">
24
+                        <el-form-item label="药品规格 : ">
25
+                            <el-input v-model="form.drug_spec" style="width:160px;" placeholder=""
25
                                       maxlength="30"></el-input>
26
                                       maxlength="30"></el-input>
26
-                        </el-form-item> -->
27
-
27
+                        </el-form-item>
28
+                      </div>
28
                         <el-form-item label="药品类别 : " prop="drug_category">
29
                         <el-form-item label="药品类别 : " prop="drug_category">
29
                             <el-select v-model="form.drug_category" style="width:160px;" placeholder="请选择">
30
                             <el-select v-model="form.drug_category" style="width:160px;" placeholder="请选择">
30
                                 <el-option
31
                                 <el-option
43
                               <el-input v-model="form.dose" type="number" style="width:100px;margin-right:5px;" placeholder="剂量" ></el-input>
44
                               <el-input v-model="form.dose" type="number" style="width:100px;margin-right:5px;" placeholder="剂量" ></el-input>
44
                             </el-form-item>
45
                             </el-form-item>
45
                             <el-form-item prop="dose_unit" class="noMargin">
46
                             <el-form-item prop="dose_unit" class="noMargin">
46
-                              <el-select v-model="form.dose_unit" style="width:160px;" placeholder="剂量单位" @change="changeDoseUnit">
47
+                              <el-select v-model="form.dose_unit" style="width:160px;" placeholder="剂量单位">
47
                                 <el-option
48
                                 <el-option
48
                                   v-for="(item,index) in getDataConfig('hemodialysis','units')"
49
                                   v-for="(item,index) in getDataConfig('hemodialysis','units')"
49
                                   :key="index"
50
                                   :key="index"
57
                               <el-input v-model="form.min_number" style="width:100px;margin-right:5px;"  type="number" placeholder="拆零"> </el-input>
58
                               <el-input v-model="form.min_number" style="width:100px;margin-right:5px;"  type="number" placeholder="拆零"> </el-input>
58
                             </el-form-item>
59
                             </el-form-item>
59
                             <el-form-item prop="min_unit" class="noMargin">
60
                             <el-form-item prop="min_unit" class="noMargin">
60
-                              <el-select v-model="form.min_unit" style="width:160px;"  placeholder="拆零单位"  @change="changeMinUnit">
61
+                              <el-select v-model="form.min_unit" style="width:160px;"  placeholder="拆零单位">
61
                                 <el-option
62
                                 <el-option
62
                                   v-for="(item,index) in getDataConfig('hemodialysis','units')"
63
                                   v-for="(item,index) in getDataConfig('hemodialysis','units')"
63
                                   :key="index"
64
                                   :key="index"
68
                             </el-form-item>
69
                             </el-form-item>
69
                           <span style="margin-bottom:20px;font-size:20px;padding:0 10px;">/</span>
70
                           <span style="margin-bottom:20px;font-size:20px;padding:0 10px;">/</span>
70
                           <el-form-item prop="max_unit" class="noMargin">
71
                           <el-form-item prop="max_unit" class="noMargin">
71
-                            <el-select v-model="form.max_unit" style="width:160px;" placeholder="包装单位" @change="changeMaxUnit">
72
+                            <el-select v-model="form.max_unit" style="width:160px;" placeholder="包装单位">
72
                               <el-option
73
                               <el-option
73
                                 v-for="(item,index) in getDataConfig('hemodialysis','units')"
74
                                 v-for="(item,index) in getDataConfig('hemodialysis','units')"
74
                                 :key="index"
75
                                 :key="index"
575
           dose:"",//剂量单位
576
           dose:"",//剂量单位
576
           prescribing_number_unit:"",
577
           prescribing_number_unit:"",
577
           total:"",
578
           total:"",
579
+          specification_name:"",
578
         },
580
         },
579
 
581
 
580
         rules: {
582
         rules: {
654
         this.$refs[formName].validate((valid) => {
656
         this.$refs[formName].validate((valid) => {
655
           console.log(valid)
657
           console.log(valid)
656
           if (valid) {
658
           if (valid) {
657
-            // console.log(1111,this.getValue())
658
             this.$emit('dialog-comfirm', this.getValue())
659
             this.$emit('dialog-comfirm', this.getValue())
659
           }
660
           }
660
         })
661
         })
697
           }
698
           }
698
           if(obj.max_unit == arr[i].name){
699
           if(obj.max_unit == arr[i].name){
699
             this.packingUnit.push(arr[i])
700
             this.packingUnit.push(arr[i])
700
-          } 
701
+          }
701
 
702
 
702
           let idArr = []
703
           let idArr = []
703
           this.unitList.map(item => {
704
           this.unitList.map(item => {
886
         form['dose_unit'] = this.form.dose_unit
887
         form['dose_unit'] = this.form.dose_unit
887
         form['min_price'] = this.form.min_price
888
         form['min_price'] = this.form.min_price
888
         form['prescribing_number_unit'] = this.form.prescribing_number_unit
889
         form['prescribing_number_unit'] = this.form.prescribing_number_unit
890
+        form['specification_name'] = this.form.specification_name
889
         return form
891
         return form
890
       },
892
       },
891
       getlist() {
893
       getlist() {
1018
       //       if(this.form.prescribing_number_unit == arr[i].id){
1020
       //       if(this.form.prescribing_number_unit == arr[i].id){
1019
       //         this.packingUnit.push(arr[i])
1021
       //         this.packingUnit.push(arr[i])
1020
       //       }
1022
       //       }
1021
-            
1023
+
1022
 
1024
 
1023
 
1025
 
1024
 
1026
 
1098
       }
1100
       }
1099
     },
1101
     },
1100
     created() {
1102
     created() {
1103
+      this.org_id = this.$store.getters.xt_user.org.id
1104
+      console.log("机构ID",this.org_id)
1101
       this.getInitializtion()
1105
       this.getInitializtion()
1102
        //获取所有经销商
1106
        //获取所有经销商
1103
       this.GetAllConfig()
1107
       this.GetAllConfig()

+ 1 - 1
src/xt_pages/data/components/drugs.vue View File

682
                  this.formValue.drug_classify = ""
682
                  this.formValue.drug_classify = ""
683
               }
683
               }
684
 
684
 
685
-
685
+              
686
 
686
 
687
               this.$refs.addDrugs.show(id, this.formValue)
687
               this.$refs.addDrugs.show(id, this.formValue)
688
 
688
 

+ 1 - 1
src/xt_pages/dialysis/PatientBox.vue View File

231
       temp_schedual: null,
231
       temp_schedual: null,
232
       date:'',
232
       date:'',
233
       modedata:0,
233
       modedata:0,
234
-      stockType:"",
234
+      stockType:[],
235
     };
235
     };
236
   },
236
   },
237
   props: {
237
   props: {

+ 7 - 4
src/xt_pages/dialysis/details/assessmentAfter.vue View File

109
 
109
 
110
         <li v-if="isShow('封管液配置')">
110
         <li v-if="isShow('封管液配置')">
111
           <label>封管液配置: </label>
111
           <label>封管液配置: </label>
112
-          <!-- <span class="content">{{ getSealingFluidDisposeName(this.record.sealing_fluid_dispose) }}</span> -->
113
-           <span class="content">{{this.record.sealing_fluid_dispose}}</span>
112
+           <span class="content">{{this.record.sealing_fluid_dispose?this.record.sealing_fluid_dispose:""}}</span>
114
         </li>
113
         </li>
115
 
114
 
116
-        <li v-if="isShow('封管液特殊') && this.record.sealing_fluid_dispose.indexOf('特殊')>-1">
115
+        <li v-if="isShow('封管液特殊') && this.record.id > 0">
117
           <label>封管液配置(特殊): </label>
116
           <label>封管液配置(特殊): </label>
118
-          <span class="content">{{ sealing_fluid_special }}</span>
117
+          <span class="content">
118
+            <span>
119
+              {{ sealing_fluid_special }}
120
+            </span>  
121
+          </span>
119
         </li>
122
         </li>
120
 
123
 
121
         <!-- <li style="height: 0.6rem;">
124
         <!-- <li style="height: 0.6rem;">

+ 4 - 4
src/xt_pages/dialysis/details/assessmentBefore.vue View File

283
 
283
 
284
         <li v-if="isShow('导管缝线')">
284
         <li v-if="isShow('导管缝线')">
285
           <label>导管缝线: </label>
285
           <label>导管缝线: </label>
286
-          <span class="content" v-if="this.record && this.record.catheter_suture.length > 0 && this.record.catheter_suture_other.length > 0 ">{{this.record.catheter_suture }},{{this.record.catheter_suture_other }}</span>
287
-          <span class="content" v-if="this.record &&this.record.catheter_suture.length > 0 && this.record.catheter_suture_other.length == 0 ">{{this.record.catheter_suture }}</span>
288
-          <span class="content" v-if="this.record &&this.record.catheter_suture.length == 0 && this.record.catheter_suture_other.length > 0 ">{{this.record.catheter_suture_other }}</span>
289
-          <span class="content" v-if="this.record && this.record.catheter_suture.length == 0 && this.record.catheter_suture_other.length == 0 "></span>
286
+          <span class="content" v-if="this.record.id > 0 && this.record.catheter_suture.length > 0 && this.record.catheter_suture_other.length > 0 ">{{this.record.catheter_suture }},{{this.record.catheter_suture_other }}</span>
287
+          <span class="content" v-if="this.record.id >0 && this.record.catheter_suture.length > 0 && this.record.catheter_suture_other.length == 0 ">{{this.record.catheter_suture }}</span>
288
+          <span class="content" v-if="this.record.id >0 && this.record.catheter_suture.length == 0 && this.record.catheter_suture_other.length > 0 ">{{this.record.catheter_suture_other }}</span>
289
+          <span class="content" v-if="this.record.id >0 && this.record.catheter_suture.length == 0 && this.record.catheter_suture_other.length == 0 "></span>
290
           <span class="unit"></span>
290
           <span class="unit"></span>
291
         </li>
291
         </li>
292
 
292
 

+ 2 - 3
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

1674
      
1674
      
1675
     },
1675
     },
1676
     changeDrugDesc(name) {
1676
     changeDrugDesc(name) {
1677
-      
1677
+        console.log("hhhhhhhhhh",this.drugSpec)
1678
         this.current_drug_spec = name
1678
         this.current_drug_spec = name
1679
         for (let i = 0; i < this.drugSpec.length; i++) {
1679
         for (let i = 0; i < this.drugSpec.length; i++) {
1680
           if (this.drugSpec[i].drug_spec == name) {
1680
           if (this.drugSpec[i].drug_spec == name) {
1736
         console.log("22222",val)
1736
         console.log("22222",val)
1737
         this.drug_id = val.id
1737
         this.drug_id = val.id
1738
         this.nameForm.way = 1 
1738
         this.nameForm.way = 1 
1739
-        console.log("hhhh23",this.drug_id) 
1740
-        console.log("hhhhhh",this.nameForm.way)
1739
+       
1741
       },
1740
       },
1742
       handleSelect1(){
1741
       handleSelect1(){
1743
 
1742
 

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

746
         }
746
         }
747
       },
747
       },
748
       lastAssessment:{
748
       lastAssessment:{
749
-        type:Array,
749
+        type:Object,
750
          default: () => {
750
          default: () => {
751
           return []
751
           return []
752
         }
752
         }

+ 3 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

1359
           { id: 1, name: '需' },
1359
           { id: 1, name: '需' },
1360
           { id: 2, name: '无' }
1360
           { id: 2, name: '无' }
1361
         ],
1361
         ],
1362
-        oxygenShow: false
1362
+        oxygenShow: false,
1363
+        hemodialysisPipelinesOptions: [],
1364
+        epoOptions: []
1363
       }
1365
       }
1364
     },
1366
     },
1365
     methods: {
1367
     methods: {

+ 6 - 4
src/xt_pages/dialysis/details/index.vue View File

1153
           console.log("stockTYPW",stockType)
1153
           console.log("stockTYPW",stockType)
1154
 
1154
 
1155
           var prepare = resp.data.prepare
1155
           var prepare = resp.data.prepare
1156
-          this.preparestock = prepare
1156
+          if(prepare!=null){
1157
+            this.preparestock = prepare
1158
+          }else{
1159
+            this.preparestock = []
1160
+          }
1157
           console.log("prepare222222",prepare)
1161
           console.log("prepare222222",prepare)
1158
 
1162
 
1159
           for (let i = 0; i <  this.doctor_advices.length; i++){
1163
           for (let i = 0; i <  this.doctor_advices.length; i++){
1249
             zone_options.push({ id: zone.id, text: zone.name })
1253
             zone_options.push({ id: zone.id, text: zone.name })
1250
           }
1254
           }
1251
           this.zone_options = zone_options
1255
           this.zone_options = zone_options
1252
-          // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1253
           this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
1256
           this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
1254
           this.requestDialysisSchedules()
1257
           this.requestDialysisSchedules()
1255
         } else {
1258
         } else {
1335
         var resp = rs.data
1338
         var resp = rs.data
1336
         if (resp.state == 1) {
1339
         if (resp.state == 1) {
1337
           var schedules = resp.data.schedules
1340
           var schedules = resp.data.schedules
1341
+          console.log("当前排班信息4444444444444444",schedules)
1338
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1342
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1339
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1343
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1340
           if (this.activeName == 'first') {
1344
           if (this.activeName == 'first') {
1369
       })
1373
       })
1370
     },
1374
     },
1371
     changePatient(schedual) {
1375
     changePatient(schedual) {
1372
-      console.log("schedual",schedual)
1373
       this.patient_id = schedual.patient_id
1376
       this.patient_id = schedual.patient_id
1374
       this.date = schedual.schedule_date
1377
       this.date = schedual.schedule_date
1375
       // this.getScheduleDetail();
1378
       // this.getScheduleDetail();
1716
       return strDate;
1719
       return strDate;
1717
     },
1720
     },
1718
     refresh(){
1721
     refresh(){
1719
-      console.log('1111111')
1720
       this.requestDialysisSchedules()
1722
       this.requestDialysisSchedules()
1721
     },
1723
     },
1722
     websocketSend(data) {
1724
     websocketSend(data) {

+ 1 - 2
src/xt_pages/dialysis/schedualPatient.vue View File

573
       //   // })
573
       //   // })
574
       // },
574
       // },
575
       handleScheduleDateChange: function(index) {
575
       handleScheduleDateChange: function(index) {
576
-        console.log("askdjlkas",index)
577
         this.zone_selected = 0
576
         this.zone_selected = 0
578
         this.schedule_type_selected = 0
577
         this.schedule_type_selected = 0
579
         this.patientStateVal = 0
578
         this.patientStateVal = 0
616
             // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
615
             // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
617
             this.requestDialysisSchedules()
616
             this.requestDialysisSchedules()
618
 
617
 
619
-            console.log(1111111111111,this.zone_schedules)
620
           } else {
618
           } else {
621
             this.$message.error(resp.msg)
619
             this.$message.error(resp.msg)
622
           }
620
           }
628
           var resp = rs.data
626
           var resp = rs.data
629
           if (resp.state == 1) {
627
           if (resp.state == 1) {
630
             var schedules = resp.data.schedules
628
             var schedules = resp.data.schedules
629
+            console.log("透析详情页面",schedules)
631
             this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
630
             this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
632
             this.allPatient = this.filtedSchedules
631
             this.allPatient = this.filtedSchedules
633
             this.getData()
632
             this.getData()

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

2002
           }
2002
           }
2003
 
2003
 
2004
           if (this.hisPatientInfo.id_card_type == 1) {
2004
           if (this.hisPatientInfo.id_card_type == 1) {
2005
-            if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088) {
2005
+            if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 ) {
2006
               this.pwdFormVisible = true
2006
               this.pwdFormVisible = true
2007
               this.pwd = ''
2007
               this.pwd = ''
2008
             } else {
2008
             } else {

+ 16 - 3
src/xt_pages/stock/drugs/drugStockFlow.vue View File

5
     </div>
5
     </div>
6
     <div class="app-container ">
6
     <div class="app-container ">
7
       <div class="cell clearfix">
7
       <div class="cell clearfix">
8
-       药品名称:<span>{{this.$route.query.drug_name}}</span>&nbsp;
9
-       库存: {{this.$route.query.overPlus}}
8
+       药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
+       库存: {{this.$route.query.over_plus}}
10
        规格:<span>{{this.$route.query.unit}}</span>&nbsp;
10
        规格:<span>{{this.$route.query.unit}}</span>&nbsp;
11
        厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
11
        厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12
 
12
 
240
         autoCountList:[],
240
         autoCountList:[],
241
         drugOutList:[],
241
         drugOutList:[],
242
         total:0,
242
         total:0,
243
+        drug:{},
243
       }
244
       }
244
     },
245
     },
245
     methods:{
246
     methods:{
246
        getlist(){
247
        getlist(){
248
+         console.log("2332233232",this.$route.query.drug_id)
247
            var params = {
249
            var params = {
248
              drug_id:this.$route.query.drug_id,
250
              drug_id:this.$route.query.drug_id,
249
              start_time:this.start_time,
251
              start_time:this.start_time,
252
              limit:this.limit,
254
              limit:this.limit,
253
              stock_type:this.stock_type,  
255
              stock_type:this.stock_type,  
254
            }
256
            }
257
+          console.log("params23322323232332",params)
255
          getDrugStockFlow(params).then(response=>{
258
          getDrugStockFlow(params).then(response=>{
256
            if(response.data.state == 1){
259
            if(response.data.state == 1){
257
             var list = response.data.data.list
260
             var list = response.data.data.list
264
             this.total = total
267
             this.total = total
265
             var manufacturerList = response.data.data.manufacturerList
268
             var manufacturerList = response.data.data.manufacturerList
266
             this.manufacturerList = manufacturerList
269
             this.manufacturerList = manufacturerList
267
-           
270
+         
268
            }
271
            }
269
          })  
272
          })  
270
        },
273
        },
487
             this.total =total
490
             this.total =total
488
             this.manufacturerList = response.data.data.manufacturerList
491
             this.manufacturerList = response.data.data.manufacturerList
489
             this.dealerList = response.data.data.dealerList
492
             this.dealerList = response.data.data.dealerList
493
+            var drug = response.data.data.drug
494
+            console.log("drug233223232323223",drug)
495
+            this.drug = drug
490
           }
496
           }
491
        })
497
        })
492
      },
498
      },
504
          str_min = total%min_number + min_unit
510
          str_min = total%min_number + min_unit
505
        }
511
        }
506
         return str+str_min
512
         return str+str_min
513
+     },
514
+     getName(drug_id){
515
+        var name = ""
516
+        if(drug_id == this.drug.id){
517
+           name = this.drug.drug_name
518
+        }
519
+        return name
507
      }
520
      }
508
     }
521
     }
509
   }
522
   }

+ 7 - 4
src/xt_pages/stock/drugs/query.vue View File

532
         return name
532
         return name
533
       },
533
       },
534
       handleDetail(val){
534
       handleDetail(val){
535
+        console.log("val232332323223323",val)
535
         var manufacturer_name = ""
536
         var manufacturer_name = ""
536
         for(let i=0;i<this.manufacturerList.length;i++){
537
         for(let i=0;i<this.manufacturerList.length;i++){
537
          if(val.manufacturer == this.manufacturerList[i].id){
538
          if(val.manufacturer == this.manufacturerList[i].id){
539
          }
540
          }
540
         }
541
         }
541
         var unit =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
542
         var unit =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
542
-        var overPlus = this.getOverFlushInfo(val.drug_warehouse_info,val.max_unit,val.min_unit,val.min_number)
543
+        var over_plus = this.getOverFlushInfo(val.drug_warehouse_info,val.max_unit,val.min_unit,val.min_number)
544
+        this.$router.push({path:'/drugstock/in/drugstockflow?drug_id='+val.id+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&over_plus="+over_plus})
543
         window.sessionStorage.setItem('start_time',this.start_time)
545
         window.sessionStorage.setItem('start_time',this.start_time)
544
         window.sessionStorage.setItem('end_time',this.end_time)
546
         window.sessionStorage.setItem('end_time',this.end_time)
545
-        this.$router.push({path:'/drugstock/in/drugstockflow?drug_id='+val.id+"&drug_name="+val.drug_name+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&overPlus="+overPlus})
547
+        
546
       },
548
       },
547
       handleBatch(val){
549
       handleBatch(val){
548
         var manufacturer_name = ""
550
         var manufacturer_name = ""
552
          }
554
          }
553
         }
555
         }
554
         var unit =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
556
         var unit =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
555
-        var overPlus = this.getOverFlushInfo(val.drug_warehouse_info,val.max_unit,val.min_unit,val.min_number)
557
+        var over_plus = this.getOverFlushInfo(val.drug_warehouse_info,val.max_unit,val.min_unit,val.min_number)
558
+       
556
         window.sessionStorage.setItem('start_time',this.start_time)
559
         window.sessionStorage.setItem('start_time',this.start_time)
557
         window.sessionStorage.setItem('end_time',this.end_time)
560
         window.sessionStorage.setItem('end_time',this.end_time)
558
-        this.$router.push({path:'/drugstock/in/drugbatchnumber?drug_id='+val.id+"&drug_name="+val.drug_name+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&overPlus="+overPlus})
561
+        this.$router.push({path:'/drugstock/in/drugbatchnumber?drug_id='+val.id+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&over_plus="+over_plus})
559
       },
562
       },
560
       getDrugCountList(){
563
       getDrugCountList(){
561
          var params = {
564
          var params = {

+ 4 - 4
src/xt_pages/stock/stockQuery.vue View File

108
        </el-table-column>
108
        </el-table-column>
109
        <el-table-column label="出库数量" align="center" v-if="showOne">
109
        <el-table-column label="出库数量" align="center" v-if="showOne">
110
          <template slot-scope="scope">
110
          <template slot-scope="scope">
111
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088">
111
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088 || org_id == 10191">
112
             <span>
112
             <span>
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114
             </span>
114
             </span>
125
 
125
 
126
        <el-table-column label="剩余库存量" align="center" v-if="showThree">
126
        <el-table-column label="剩余库存量" align="center" v-if="showThree">
127
          <template slot-scope="scope">
127
          <template slot-scope="scope">
128
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
128
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
129
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
129
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
130
          </template>
130
          </template>
131
        </el-table-column>
131
        </el-table-column>
359
            this.tableList[i].inCount =  this.getWareInfo(this.tableList[i].xt_warehouse_info)
359
            this.tableList[i].inCount =  this.getWareInfo(this.tableList[i].xt_warehouse_info)
360
 
360
 
361
           if(this.end_time == ""){
361
           if(this.end_time == ""){
362
-            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 ){
362
+            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191){
363
               this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
363
               this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
364
             }else{
364
             }else{
365
               this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
365
               this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
366
             }
366
             }
367
             
367
             
368
-            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 ){
368
+            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191){
369
                 this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
369
                 this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
370
             }else{
370
             }else{
371
               this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
371
               this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)

+ 1 - 0
src/xt_pages/user/dialysisRecord.vue View File

422
   },
422
   },
423
   methods: {
423
   methods: {
424
     getTime(record){
424
     getTime(record){
425
+      console.log("recode2332232332232332",record)
425
       if(record != null&&record.id > 0) {
426
       if(record != null&&record.id > 0) {
426
         let actual_treatment_hour = 0
427
         let actual_treatment_hour = 0
427
         let actual_treatment_minute = 0
428
         let actual_treatment_minute = 0