XMLWAN 3 years ago
parent
commit
8a07ef0722

+ 9 - 0
src/api/drug/drug_stock.js View File

418
 }
418
 }
419
 
419
 
420
 
420
 
421
+export function getDrugAutoMaticList(params){
422
+  
423
+  return request({
424
+    url:"/api/drugstock/getdrugautomaticlist",
425
+    method:"Get",
426
+    params:params,
427
+  })
428
+}
429
+
421
 
430
 
422
 
431
 
423
 
432
 

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

296
           <span class="content" >{{ this.record.stroke_volume ? this.record.stroke_volume : ""  }}</span>
296
           <span class="content" >{{ this.record.stroke_volume ? this.record.stroke_volume : ""  }}</span>
297
           <span class="unit">{{ this.record.stroke_volume ? "ml" : "" }}</span>
297
           <span class="unit">{{ this.record.stroke_volume ? "ml" : "" }}</span>
298
         </li>
298
         </li>
299
+        <li v-if="isShow('KT/V')">
300
+          <label>KT/V: </label>
301
+          <span class="content" >{{ this.record.ktv ? this.record.ktv : ""  }}</span>
302
+        </li>
299
       </ul>
303
       </ul>
300
     </div>
304
     </div>
301
     <div class="note">
305
     <div class="note">

+ 9 - 2
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

595
             <el-input v-model="form.other_complication"></el-input>
595
             <el-input v-model="form.other_complication"></el-input>
596
           </el-form-item>
596
           </el-form-item>
597
         </el-col>
597
         </el-col>
598
-
598
+        <el-col :span="24" v-if="isShow('KT/V')">
599
+            <el-form-item label="KT/V:">
600
+              <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
601
+            </el-form-item>
602
+        </el-col>
599
       </el-form>
603
       </el-form>
604
+         
600
 
605
 
601
       <span slot="footer" class="dialog-footer">
606
       <span slot="footer" class="dialog-footer">
602
         <el-button @click="hide">取 消</el-button>
607
         <el-button @click="hide">取 消</el-button>
748
         supine_diastolic_blood_pressure:'',
753
         supine_diastolic_blood_pressure:'',
749
         diastolic_pressure:'',
754
         diastolic_pressure:'',
750
         additional_weight:'',
755
         additional_weight:'',
751
-        other_complication:''
756
+        other_complication:'',
757
+        ktv:""
752
       }
758
       }
753
     }
759
     }
754
   },
760
   },
952
       data["diastolic_pressure"] = this.form.diastolic_pressure
958
       data["diastolic_pressure"] = this.form.diastolic_pressure
953
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
959
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
954
       data["other_complication"] = this.form.other_complication
960
       data["other_complication"] = this.form.other_complication
961
+      data["ktv"] = this.form.ktv
955
       postAssessmentAfterDislysis(ParamsQuery, data)
962
       postAssessmentAfterDislysis(ParamsQuery, data)
956
         .then(response => {
963
         .then(response => {
957
           this.loading = false
964
           this.loading = false

+ 2 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue View File

132
                         &nbsp;
132
                         &nbsp;
133
                        <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
133
                        <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
134
                         &nbsp;
134
                         &nbsp;
135
+                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('扣眼') > -1 ? true : false" showValue="扣眼"></label-box>
136
+                        &nbsp;
135
                     </div>
137
                     </div>
136
                 </td>
138
                 </td>
137
                 <td width='10'></td>
139
                 <td width='10'></td>

+ 24 - 4
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

479
       getDictionaryDataConfig(module, filed_name) {
479
       getDictionaryDataConfig(module, filed_name) {
480
         return getDictionaryDataConfig(module, filed_name)
480
         return getDictionaryDataConfig(module, filed_name)
481
       },
481
       },
482
-      show: function () {
483
-        this.form = Object.assign({}, this.resetForm)
482
+    show: function() {
483
+        this.visibility = true
484
+        // this.form = Object.assign({}, this.resetForm)
485
+        this.form.id = 0
486
+        this.form.settlement_value = ''
487
+        this.form.medical_insurance_card = ''
488
+        this.form.name = ''
489
+        this.form.gender = ''
490
+        this.form.medical_care = ''
491
+        this.form.birthda = ''
492
+        this.form.age = ''
493
+        this.form.id_card = ''
494
+        this.form.register = ''
495
+        this.form.doctor = ''
496
+        this.form.department = ''
497
+        this.form.registration_fee = ''
498
+        this.form.medical_expenses = ''
499
+        this.form.cost = ''
500
+        this.form.phone = ''
501
+        this.form.social_type = ''
502
+
484
         this.form.p_type = 14
503
         this.form.p_type = 14
485
         this.form.sick_type = this.sick[0].id
504
         this.form.sick_type = this.sick[0].id
486
         this.form.diagnosis = this.diagnoses[0].id
505
         this.form.diagnosis = this.diagnoses[0].id
498
         // if( this.form.social_type == 0){
517
         // if( this.form.social_type == 0){
499
         //   this.form.social_type = ""
518
         //   this.form.social_type = ""
500
         // }
519
         // }
501
-        this.visibility = true
502
 
520
 
503
-      }, hide: function () {
521
+      },
522
+      
523
+      hide: function () {
504
         this.visibility = false
524
         this.visibility = false
505
         this.$refs['formValue'].resetFields()
525
         this.$refs['formValue'].resetFields()
506
       }, cancel: function (formName) {
526
       }, cancel: function (formName) {

+ 25 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

360
                 </div>
360
                 </div>
361
               </el-tab-pane>
361
               </el-tab-pane>
362
               <el-tab-pane label="项目组套" name="2">
362
               <el-tab-pane label="项目组套" name="2">
363
+                <el-input style="width:100%;" @input="searchProjectList" @keyup.enter.native='searchProjectList'
364
+                            v-model.trim="project_item_keyword"
365
+                            placeholder="请输入项目组套名称"></el-input>
363
                 <div style="width: 100%;flex:1;overflow-y: auto;">
366
                 <div style="width: 100%;flex:1;overflow-y: auto;">
364
                   <el-table :data="tabPrjectTeam" border
367
                   <el-table :data="tabPrjectTeam" border
365
                             :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
368
                             :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
573
             }
576
             }
574
           }
577
           }
575
         },
578
         },
576
-        hisList:[]
577
-
579
+        hisList:[],
580
+        project_item_keyword:"",
581
+        projectList:[] 
578
       }
582
       }
579
     },
583
     },
580
     methods: {
584
     methods: {
1393
         }
1397
         }
1394
         this.$refs.additionalCharges.hide()
1398
         this.$refs.additionalCharges.hide()
1395
 
1399
 
1396
-      }, searchProjectAction() {
1400
+      }, 
1401
+      searchProjectAction() {
1397
 
1402
 
1398
         if (this.search_project_keyword.length == 0) {
1403
         if (this.search_project_keyword.length == 0) {
1399
           this.tabProject = this.allProject
1404
           this.tabProject = this.allProject
1410
         }
1415
         }
1411
 
1416
 
1412
       },
1417
       },
1418
+      searchProjectList(){
1419
+         if(this.project_item_keyword.length == 0){
1420
+             this.tabPrjectTeam = this.projectList
1421
+         }else{
1422
+           let arr = []
1423
+           for(let i=0;i<this.projectList.length;i++){
1424
+              if(this.projectList[i].project_team.indexOf(this.project_item_keyword)!=-1){
1425
+                 arr = arr.concat(this.projectList[i])
1426
+              }
1427
+           }
1428
+           this.tabPrjectTeam = arr
1429
+         }
1430
+      },
1431
+
1413
       searchAction() {
1432
       searchAction() {
1414
         if (this.search_keyword.length == 0) {
1433
         if (this.search_keyword.length == 0) {
1415
           this.drugs = this.allDrugs
1434
           this.drugs = this.allDrugs
1932
               'prescriptions': this.prescriptions
1951
               'prescriptions': this.prescriptions
1933
             }
1952
             }
1934
             isLoading = true
1953
             isLoading = true
1954
+           
1955
+            
1935
             createHisPrescription(data, params).then(response => {
1956
             createHisPrescription(data, params).then(response => {
1936
               if (response.data.state == 1) {
1957
               if (response.data.state == 1) {
1937
                 this.$emit('change')
1958
                 this.$emit('change')
2464
             var team = response.data.data.team
2485
             var team = response.data.data.team
2465
             console.log("team2222",team)
2486
             console.log("team2222",team)
2466
             this.tabPrjectTeam = team
2487
             this.tabPrjectTeam = team
2488
+            this.projectList = team
2467
           }
2489
           }
2468
         })
2490
         })
2469
       },
2491
       },

+ 47 - 50
src/xt_pages/qcd/basicInformationAnalysis.vue View File

63
           :picker-options="pickerOptions"
63
           :picker-options="pickerOptions"
64
         ></el-date-picker>
64
         ></el-date-picker>
65
       </div>
65
       </div>
66
-       <!-- <div class="cell clearfix">
66
+       <div class="cell clearfix">
67
         <label class="title"><span class="name">转归情况</span> : </label>
67
         <label class="title"><span class="name">转归情况</span> : </label>
68
         <div class="time ">
68
         <div class="time ">
69
           <ul class="">
69
           <ul class="">
70
             <li
70
             <li
71
               :class="item.lapseto == lapsetoType ? 'active' : ''"
71
               :class="item.lapseto == lapsetoType ? 'active' : ''"
72
-              @click="selectLapseTo(item.lapseto)"
72
+              @click="selectLapseOne(item.lapseto)"
73
               v-for="item in lapsetoArr"
73
               v-for="item in lapsetoArr"
74
               :key="item.value"
74
               :key="item.value"
75
             >
75
             >
77
             </li>
77
             </li>
78
           </ul>
78
           </ul>
79
         </div>
79
         </div>
80
-      </div> -->
81
-      <!-- <div class="cell clearfix">
80
+      </div>
81
+      <div class="cell clearfix">
82
         <label class="title"><span class="name">病人来源</span> : </label>
82
         <label class="title"><span class="name">病人来源</span> : </label>
83
         <div class="time ">
83
         <div class="time ">
84
           <ul class="">
84
           <ul class="">
92
             </li>
92
             </li>
93
           </ul>
93
           </ul>
94
         </div>
94
         </div>
95
-      </div> -->
95
+      </div>
96
 
96
 
97
        <div class="cell clearfix" v-show="treatShow">
97
        <div class="cell clearfix" v-show="treatShow">
98
         <label class="title">
98
         <label class="title">
243
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
243
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
244
               </div>
244
               </div>
245
               <div class="borderBox1">
245
               <div class="borderBox1">
246
-                <p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
247
-                <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
248
-                <p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
249
-                <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
246
+                 <span v-if="lapsetoType == 0 || lapsetoType == 1"><p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
247
+                  <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
248
+                </span>
249
+                <span v-if="lapsetoType == 0 || lapsetoType == 2"><p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
250
+                 <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
251
+                </span> 
250
               </div>
252
               </div>
251
             </div>
253
             </div>
252
             <div class="infoOne">
254
             <div class="infoOne">
327
         </div>
329
         </div>
328
         <div>
330
         <div>
329
 
331
 
330
-        <div class="cell clearfix" v-show="treatShow">
332
+        <!-- <div class="cell clearfix" v-show="treatShow">
331
         <label class="title">
333
         <label class="title">
332
           <span class="name">转归状态</span> :
334
           <span class="name">转归状态</span> :
333
         </label>
335
         </label>
341
             >{{ item.label }}</li>
343
             >{{ item.label }}</li>
342
           </ul>
344
           </ul>
343
         </div>
345
         </div>
344
-       </div>
346
+       </div> -->
345
 
347
 
346
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
348
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
347
           <line-chart :options="bar"></line-chart>
349
           <line-chart :options="bar"></line-chart>
421
         { value: 0, label: '全部', source: 0, lapseto: 0 },
423
         { value: 0, label: '全部', source: 0, lapseto: 0 },
422
         { value: 1, label: '转出', source: 0, lapseto: 2 },
424
         { value: 1, label: '转出', source: 0, lapseto: 2 },
423
         { value: 2, label: '留治', source: 0, lapseto: 1 },
425
         { value: 2, label: '留治', source: 0, lapseto: 1 },
424
-        { value: 3, label: '死亡', source:0,  lapseto: 3 },
426
+        // { value: 3, label: '死亡', source:0,  lapseto: 3 },
425
       ],
427
       ],
426
       sourceType: 0,
428
       sourceType: 0,
427
       sourceArr: [
429
       sourceArr: [
652
         //统计转归状态
654
         //统计转归状态
653
         this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
655
         this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
654
         //统计男女比例
656
         //统计男女比例
655
-        this.getTotalSexCount(timeStar,timeEnd)
657
+        this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
656
         //统计传染病
658
         //统计传染病
657
         this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
659
         this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
658
         //统计年龄
660
         //统计年龄
662
         this.start = timeStar
664
         this.start = timeStar
663
         this.end =timeEnd
665
         this.end =timeEnd
664
         this.getCountModeId()
666
         this.getCountModeId()
665
-        this.getRolloutCount(timeStar,timeEnd)
667
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
666
       }
668
       }
667
     },
669
     },
668
     changeEndTime(val) {
670
     changeEndTime(val) {
690
         this.start = timeStar
692
         this.start = timeStar
691
         this.end =timeEnd
693
         this.end =timeEnd
692
         this.getCountModeId()
694
         this.getCountModeId()
693
-        this.getRolloutCount(timeStar,timeEnd)
695
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
694
       }
696
       }
695
     },
697
     },
696
     selectLapseTo(state) {
698
     selectLapseTo(state) {
728
         this.start = timeStar
730
         this.start = timeStar
729
         this.end = timeEnd
731
         this.end = timeEnd
730
         this.getCountModeId()
732
         this.getCountModeId()
731
-        this.getRolloutCount(timeStar,timeEnd)
733
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
732
       }
734
       }
733
       //近三月
735
       //近三月
734
       if(state == 1){
736
       if(state == 1){
757
         this.start = startunitx
759
         this.start = startunitx
758
         this.end = endunitx
760
         this.end = endunitx
759
         this.getCountModeId()
761
         this.getCountModeId()
760
-        this.getRolloutCount(startunitx,endunitx)
762
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
761
       }
763
       }
762
 
764
 
763
      //近半年
765
      //近半年
788
         this.start = startunitx
790
         this.start = startunitx
789
         this.end = endunitx
791
         this.end = endunitx
790
         this.getCountModeId()
792
         this.getCountModeId()
791
-        this.getRolloutCount(startunitx,endunitx)
793
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
792
      }
794
      }
793
 
795
 
794
      //近一年
796
      //近一年
815
         this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
817
         this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
816
         //统计透析年龄
818
         //统计透析年龄
817
         this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
819
         this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
818
-
819
         this.start = startunitx
820
         this.start = startunitx
820
         this.end = endunitx
821
         this.end = endunitx
821
         this.getCountModeId()
822
         this.getCountModeId()
822
-        this.getRolloutCount(startunitx,endunitx)
823
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
823
      }
824
      }
824
 
825
 
825
 
826
 
846
           this.modetype = modetype
847
           this.modetype = modetype
847
           var total =  response.data.data.total
848
           var total =  response.data.data.total
848
           
849
           
849
-          // this.total = total.count
850
-          this.total = total
850
+          this.total = total.count
851
+          // this.total = total
851
           // console.log("数据",this.modetype)
852
           // console.log("数据",this.modetype)
852
           var modedate = response.data.data.modetype
853
           var modedate = response.data.data.modetype
853
           for(let i=0;i<modedate.length;i++){
854
           for(let i=0;i<modedate.length;i++){
919
       })
920
       })
920
     },
921
     },
921
     //统计转归
922
     //统计转归
922
-    getTotalLapseCount(startDate,endDate){
923
+    getTotalLapseCount(startDate,endDate,lapsetoType,sourceType ){
924
+   
923
        this.modesDataTwo.series = []
925
        this.modesDataTwo.series = []
924
        this.modesDataTwo.xAxis = []
926
        this.modesDataTwo.xAxis = []
925
-      getTotalLapseCount(startDate,endDate).then(response=>{
927
+      getTotalLapseCount(startDate,endDate,lapsetoType,sourceType).then(response=>{
926
          if(response.data.state == 1){
928
          if(response.data.state == 1){
927
            var arr = [
929
            var arr = [
928
              {name:"留治",count:0},
930
              {name:"留治",count:0},
929
              {name:"转出",count:0}
931
              {name:"转出",count:0}
930
            ]
932
            ]
931
           var patients =  response.data.data.patients
933
           var patients =  response.data.data.patients
932
-
934
+      
933
           this.rollOutTotal = patients.length
935
           this.rollOutTotal = patients.length
936
+
934
           var patienttwo = response.data.data.patienttwo
937
           var patienttwo = response.data.data.patienttwo
935
           this.outTotal = patienttwo.length
938
           this.outTotal = patienttwo.length
936
           var count = response.data.data.count
939
           var count = response.data.data.count
937
           this.patientCount = count
940
           this.patientCount = count
938
 
941
 
939
           var rollout = response.data.data.rollout
942
           var rollout = response.data.data.rollout
940
-          console.log("rollout",rollout)
943
+        
941
 
944
 
942
           for(let i=0;i<arr.length;i++){
945
           for(let i=0;i<arr.length;i++){
943
             arr[0].count = this.rollOutTotal
946
             arr[0].count = this.rollOutTotal
944
             arr[1].count = this.outTotal
947
             arr[1].count = this.outTotal
945
           }
948
           }
946
-
947
-          // for(let j=0;j<arr.length;j++){
948
-          //   this.modesDataTwo.xAxis.push(arr[j].name)
949
-          //   this.modesDataTwo.series.push(((arr[j].count/count)*100).toFixed(1))
950
-          // }
951
-          // this.bar.series[0].data = this.modesDataTwo.series
952
-          // this.bar.xAxis.data = this.modesDataTwo.xAxis
953
-          // this.getArrLength(this.bar.xAxis.data)
954
-
955
          }
949
          }
956
       })
950
       })
957
     },
951
     },
958
     //统计男女比例
952
     //统计男女比例
959
-    getTotalSexCount(timeStar,timeEnd){
960
-      getTotalSexCount(timeStar,timeEnd).then(response=>{
953
+    getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType){
954
+      getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
961
         if(response.data.state === 1){
955
         if(response.data.state === 1){
956
+          console.log("resp2222",response.data.data.totalWoman)
962
           var total = response.data.data.total
957
           var total = response.data.data.total
963
-        //  console.log("总人数",total)
964
           this.totalGender = total
958
           this.totalGender = total
965
           var totalMan = response.data.data.totalSex
959
           var totalMan = response.data.data.totalSex
966
-       //  console.log("男人",totalMan)
967
           this.totalMan = totalMan
960
           this.totalMan = totalMan
968
-          var totalWoman = total - totalMan
961
+          var totalWoman = response.data.data.totalWoman
969
           this.totalWoman = totalWoman
962
           this.totalWoman = totalWoman
970
         }
963
         }
971
       })
964
       })
972
     },
965
     },
973
     //统计传染病
966
     //统计传染病
974
-    getTotalInfectiousCount(timeStar,timeEnd){
975
-       getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
967
+    getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType){
968
+       getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
976
            if(response.data.state === 1){
969
            if(response.data.state === 1){
977
              this.InfectiousTotal = response.data.data.total
970
              this.InfectiousTotal = response.data.data.total
978
              var infectious = response.data.data.count
971
              var infectious = response.data.data.count
995
            }
988
            }
996
        })
989
        })
997
     },
990
     },
998
-    getTotalAgeCount(timeStar,timeEnd){
999
-      getTotalAgeCount(timeStar,timeEnd).then(response=>{
991
+    getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType){
992
+      getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
1000
          if(response.data.state == 1){
993
          if(response.data.state == 1){
1001
           var ageCount =  response.data.data.ageCount
994
           var ageCount =  response.data.data.ageCount
1002
-          // console.log("ageCount",ageCount)
1003
           var arr = []
995
           var arr = []
1004
           arr =  ageCount.sort(this.compare('age'))
996
           arr =  ageCount.sort(this.compare('age'))
1005
           this.ageCount = arr
997
           this.ageCount = arr
1017
           }
1009
           }
1018
       },
1010
       },
1019
     //统计透析年龄
1011
     //统计透析年龄
1020
-    getTotalDialysisCount(timeStar,timeEnd){
1021
-      getTotalDialysisCount(timeStar,timeEnd).then(response=>{
1012
+    getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType){
1013
+      getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
1022
          if(response.data.state == 1){
1014
          if(response.data.state == 1){
1023
            var dataage =  response.data.data.dataage
1015
            var dataage =  response.data.data.dataage
1024
           //  console.log("dataage",dataage)
1016
           //  console.log("dataage",dataage)
1175
        this.modesDataTwo.xAxis = []
1167
        this.modesDataTwo.xAxis = []
1176
         const params = {
1168
         const params = {
1177
           start_time:this.start,
1169
           start_time:this.start,
1178
-          end_time:this.end
1170
+          end_time:this.end,
1171
+          lapsetotype:this.lapsetoType,
1172
+          sourcetype:this.sourceType,
1179
         }
1173
         }
1180
       getRolloutCount(params).then(response=>{
1174
       getRolloutCount(params).then(response=>{
1181
          if(response.data.state == 1){
1175
          if(response.data.state == 1){
1224
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1218
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1225
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1219
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1226
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1220
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1221
+      this.getRolloutCount(this.lapsetoType,this.sourceType)
1227
     },
1222
     },
1228
-    selectLapseTo(lapseto) {
1223
+    selectLapseOne(lapseto) {
1224
+      console.log("lapseto22222",lapseto)
1229
       this.lapsetoType = lapseto
1225
       this.lapsetoType = lapseto
1230
       this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1226
       this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1231
       this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1227
       this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1233
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1229
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1234
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1230
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1235
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1231
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1232
+      this.getRolloutCount(this.lapsetoType,this.sourceType)
1236
     },
1233
     },
1237
   },
1234
   },
1238
   created() {
1235
   created() {
1269
       this.start = timeStar
1266
       this.start = timeStar
1270
       this.end = timeEnd
1267
       this.end = timeEnd
1271
 
1268
 
1272
-     this.getRolloutCount(timeStar,timeEnd)
1269
+     this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1273
 
1270
 
1274
 
1271
 
1275
   },
1272
   },

+ 4 - 2
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

293
   GetAllConfig,
293
   GetAllConfig,
294
   getDrugWarehouseInfoList,
294
   getDrugWarehouseInfoList,
295
   getDrugWarehouseList,
295
   getDrugWarehouseList,
296
-  
296
+ 
297
 } from "@/api/drug/drug_stock";
297
 } from "@/api/drug/drug_stock";
298
 import BreadCrumb from "../../components/bread-crumb";
298
 import BreadCrumb from "../../components/bread-crumb";
299
 
299
 
339
     this.GetWarehouse();
339
     this.GetWarehouse();
340
     // this.GetConfigInfo();
340
     // this.GetConfigInfo();
341
     this.fetchAllAdminUsers();
341
     this.fetchAllAdminUsers();
342
+   
342
   },
343
   },
343
   data() {
344
   data() {
344
     return {
345
     return {
665
           });
666
           });
666
         })
667
         })
667
         .catch(() => {});
668
         .catch(() => {});
668
-    }
669
+    },
670
+   
669
   }
671
   }
670
 };
672
 };
671
 </script>
673
 </script>

+ 57 - 8
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

145
                 size="small"
145
                 size="small"
146
                 type="warning"
146
                 type="warning"
147
                 icon="el-icon-document"
147
                 icon="el-icon-document"
148
-                @click="handleSearch(scope.row.id)"
148
+                @click="handleSearch(scope.row.id,scope.row.warehouse_out_time,scope.row.warehouse_out_order_number)"
149
               >
149
               >
150
               </el-button>
150
               </el-button>
151
             </el-tooltip>
151
             </el-tooltip>
233
               <span>单价</span>
233
               <span>单价</span>
234
             </template>
234
             </template>
235
             <template slot-scope="scope">
235
             <template slot-scope="scope">
236
-              <span>{{scope.row.price}}</span>
236
+              <!-- <span>{{scope.row.price}}</span> -->
237
+              <span>{{getRetailPrice(scope.row.drug_id)}}</span>
237
             </template>
238
             </template>
238
           </el-table-column>
239
           </el-table-column>
239
 
240
 
242
               <span>出库数量</span>
243
               <span>出库数量</span>
243
             </template>
244
             </template>
244
             <template slot-scope="scope">
245
             <template slot-scope="scope">
245
-              <span>{{scope.row.count}}</span>
246
-
246
+              <span v-if="drugConfig.is_open == 0 || drugConfig.is_open ==2 ">{{scope.row.count}}</span>
247
+              <span v-if="drugConfig.is_open ==1">{{getDrugCount(scope.row.drug_id)}}</span>
247
             </template>
248
             </template>
248
           </el-table-column>
249
           </el-table-column>
249
           <el-table-column label="总价" min-width="20" align="center">
250
           <el-table-column label="总价" min-width="20" align="center">
250
             <template slot-scope="scope">
251
             <template slot-scope="scope">
251
-              {{calculate(scope.row.price*scope.row.count)}}
252
+              <!-- {{calculate(scope.row.price*scope.row.count)}} -->
253
+              <span v-if="drugConfig.is_open == 0 || drugConfig.is_open == 2">{{(scope.row.count * getRetailPrice(scope.row.drug_id)).toFixed(2)}}</span>
254
+              <span v-if="drugConfig.is_open == 1">{{(getRetailPrice(scope.row.drug_id) * getDrugCount(scope.row.drug_id)).toFixed(2)}}</span>
252
             </template>
255
             </template>
253
           </el-table-column>
256
           </el-table-column>
254
 
257
 
357
   GetAllConfig,
360
   GetAllConfig,
358
   getDrugWarehouseOutList,
361
   getDrugWarehouseOutList,
359
   getDrugWarehouseOutInfo,
362
   getDrugWarehouseOutInfo,
360
-  getDrugWarehouseOutUser
363
+  getDrugWarehouseOutUser,
364
+  getDrugAutoMaticList
361
 } from "@/api/drug/drug_stock";
365
 } from "@/api/drug/drug_stock";
362
 import BreadCrumb from "../../components/bread-crumb";
366
 import BreadCrumb from "../../components/bread-crumb";
363
 
367
 
436
        info: {}
440
        info: {}
437
       },
441
       },
438
       userList:[],
442
       userList:[],
439
-     
443
+      list:[],
444
+      drugConfig:{},
445
+      drugList:[]
440
     };
446
     };
441
   },
447
   },
442
   methods: {
448
   methods: {
486
           for (let i = 0; i < response.data.data.list.length; i++) {
492
           for (let i = 0; i < response.data.data.list.length; i++) {
487
             this.warehouseOutDate.push(response.data.data.list[i]);
493
             this.warehouseOutDate.push(response.data.data.list[i]);
488
           }
494
           }
495
+          console.log("列表22222",this.warehouseOutDate)
489
         }
496
         }
490
       });
497
       });
491
     },
498
     },
581
         query: { id: row.id, type: this.type }
588
         query: { id: row.id, type: this.type }
582
       });
589
       });
583
     },
590
     },
584
-    handleSearch(id){
591
+    handleSearch(id,time,warehouse_out_order_number){
592
+    
585
       this.warehousingOutInfo.warehousingOutData = []
593
       this.warehousingOutInfo.warehousingOutData = []
586
       this.GetOrderDetail(id)
594
       this.GetOrderDetail(id)
595
+      this.list = []
596
+      this.getDrugAutoMaticList(id,time,warehouse_out_order_number)
587
       this.dialogVisible = true
597
       this.dialogVisible = true
588
       
598
       
589
     },
599
     },
777
           }
787
           }
778
         })
788
         })
779
         this.sameRowArr = sameRowArr
789
         this.sameRowArr = sameRowArr
790
+      },
791
+    getDrugAutoMaticList(id,recordTime,warehouse_out_order_number){
792
+        var params = {
793
+          warehous_out_id:id,
794
+          record_time:recordTime,
795
+          warehouse_out_order_number:warehouse_out_order_number,
796
+        }
797
+      getDrugAutoMaticList(params).then(response=>{
798
+         if(response.data.state ==1){
799
+           var list =   response.data.data.list
800
+           console.log("list222222",list)
801
+           this.list = list
802
+           var drugConfig =  response.data.data.drugConfig
803
+           console.log("drugconfig",drugConfig)
804
+           this.drugConfig = drugConfig
805
+           var drugList = response.data.data.drugList
806
+           console.log("药品列表",drugList)
807
+           this.drugList = drugList
808
+         }
809
+      })
810
+    },
811
+    getDrugCount(id){
812
+      
813
+      var count = 0 
814
+      for(let i=0;i<this.list.length;i++){
815
+         if(this.list[i].drug_id == id){
816
+            count = this.list[i].Total
817
+         }
780
       }
818
       }
819
+      return count
820
+    },
821
+    getRetailPrice(id){
822
+      var price = 0
823
+      for(let i=0;i<this.drugList.length;i++){
824
+         if(id == this.drugList[i].id){
825
+            price = this.drugList[i].retail_price
826
+         }
827
+      }
828
+      return price
829
+    }
781
   }
830
   }
782
 };
831
 };
783
 </script>
832
 </script>

+ 2 - 2
src/xt_pages/user/dialysisSolution.vue View File

389
             </el-form-item>
389
             </el-form-item>
390
           </el-col>
390
           </el-col>
391
 
391
 
392
-          <el-col :span="8" v-if="isShows('电导')">
393
-            <el-form-item label="电导(mS/cm): " prop="conductivity">
392
+          <el-col :span="8" v-if="isShows('电导')">
393
+            <el-form-item label="电导(mS/cm): " prop="conductivity">
394
               <el-input v-model="addPlan.conductivity"></el-input>
394
               <el-input v-model="addPlan.conductivity"></el-input>
395
             </el-form-item>
395
             </el-form-item>
396
           </el-col>
396
           </el-col>