XMLWAN 3 years ago
parent
commit
8a07ef0722

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

@@ -418,6 +418,15 @@ export function getDrugCancelDetail(params){
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,6 +296,10 @@
296 296
           <span class="content" >{{ this.record.stroke_volume ? this.record.stroke_volume : ""  }}</span>
297 297
           <span class="unit">{{ this.record.stroke_volume ? "ml" : "" }}</span>
298 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 303
       </ul>
300 304
     </div>
301 305
     <div class="note">

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

@@ -595,8 +595,13 @@
595 595
             <el-input v-model="form.other_complication"></el-input>
596 596
           </el-form-item>
597 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 603
       </el-form>
604
+         
600 605
 
601 606
       <span slot="footer" class="dialog-footer">
602 607
         <el-button @click="hide">取 消</el-button>
@@ -748,7 +753,8 @@ export default {
748 753
         supine_diastolic_blood_pressure:'',
749 754
         diastolic_pressure:'',
750 755
         additional_weight:'',
751
-        other_complication:''
756
+        other_complication:'',
757
+        ktv:""
752 758
       }
753 759
     }
754 760
   },
@@ -952,6 +958,7 @@ export default {
952 958
       data["diastolic_pressure"] = this.form.diastolic_pressure
953 959
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
954 960
       data["other_complication"] = this.form.other_complication
961
+      data["ktv"] = this.form.ktv
955 962
       postAssessmentAfterDislysis(ParamsQuery, data)
956 963
         .then(response => {
957 964
           this.loading = false

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

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

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

@@ -479,8 +479,27 @@
479 479
       getDictionaryDataConfig(module, filed_name) {
480 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 503
         this.form.p_type = 14
485 504
         this.form.sick_type = this.sick[0].id
486 505
         this.form.diagnosis = this.diagnoses[0].id
@@ -498,9 +517,10 @@
498 517
         // if( this.form.social_type == 0){
499 518
         //   this.form.social_type = ""
500 519
         // }
501
-        this.visibility = true
502 520
 
503
-      }, hide: function () {
521
+      },
522
+      
523
+      hide: function () {
504 524
         this.visibility = false
505 525
         this.$refs['formValue'].resetFields()
506 526
       }, cancel: function (formName) {

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

@@ -360,6 +360,9 @@
360 360
                 </div>
361 361
               </el-tab-pane>
362 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 366
                 <div style="width: 100%;flex:1;overflow-y: auto;">
364 367
                   <el-table :data="tabPrjectTeam" border
365 368
                             :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
@@ -573,8 +576,9 @@
573 576
             }
574 577
           }
575 578
         },
576
-        hisList:[]
577
-
579
+        hisList:[],
580
+        project_item_keyword:"",
581
+        projectList:[] 
578 582
       }
579 583
     },
580 584
     methods: {
@@ -1393,7 +1397,8 @@
1393 1397
         }
1394 1398
         this.$refs.additionalCharges.hide()
1395 1399
 
1396
-      }, searchProjectAction() {
1400
+      }, 
1401
+      searchProjectAction() {
1397 1402
 
1398 1403
         if (this.search_project_keyword.length == 0) {
1399 1404
           this.tabProject = this.allProject
@@ -1410,6 +1415,20 @@
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 1432
       searchAction() {
1414 1433
         if (this.search_keyword.length == 0) {
1415 1434
           this.drugs = this.allDrugs
@@ -1932,6 +1951,8 @@
1932 1951
               'prescriptions': this.prescriptions
1933 1952
             }
1934 1953
             isLoading = true
1954
+           
1955
+            
1935 1956
             createHisPrescription(data, params).then(response => {
1936 1957
               if (response.data.state == 1) {
1937 1958
                 this.$emit('change')
@@ -2464,6 +2485,7 @@
2464 2485
             var team = response.data.data.team
2465 2486
             console.log("team2222",team)
2466 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,13 +63,13 @@
63 63
           :picker-options="pickerOptions"
64 64
         ></el-date-picker>
65 65
       </div>
66
-       <!-- <div class="cell clearfix">
66
+       <div class="cell clearfix">
67 67
         <label class="title"><span class="name">转归情况</span> : </label>
68 68
         <div class="time ">
69 69
           <ul class="">
70 70
             <li
71 71
               :class="item.lapseto == lapsetoType ? 'active' : ''"
72
-              @click="selectLapseTo(item.lapseto)"
72
+              @click="selectLapseOne(item.lapseto)"
73 73
               v-for="item in lapsetoArr"
74 74
               :key="item.value"
75 75
             >
@@ -77,8 +77,8 @@
77 77
             </li>
78 78
           </ul>
79 79
         </div>
80
-      </div> -->
81
-      <!-- <div class="cell clearfix">
80
+      </div>
81
+      <div class="cell clearfix">
82 82
         <label class="title"><span class="name">病人来源</span> : </label>
83 83
         <div class="time ">
84 84
           <ul class="">
@@ -92,7 +92,7 @@
92 92
             </li>
93 93
           </ul>
94 94
         </div>
95
-      </div> -->
95
+      </div>
96 96
 
97 97
        <div class="cell clearfix" v-show="treatShow">
98 98
         <label class="title">
@@ -243,10 +243,12 @@
243 243
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
244 244
               </div>
245 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 252
               </div>
251 253
             </div>
252 254
             <div class="infoOne">
@@ -327,7 +329,7 @@
327 329
         </div>
328 330
         <div>
329 331
 
330
-        <div class="cell clearfix" v-show="treatShow">
332
+        <!-- <div class="cell clearfix" v-show="treatShow">
331 333
         <label class="title">
332 334
           <span class="name">转归状态</span> :
333 335
         </label>
@@ -341,7 +343,7 @@
341 343
             >{{ item.label }}</li>
342 344
           </ul>
343 345
         </div>
344
-       </div>
346
+       </div> -->
345 347
 
346 348
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
347 349
           <line-chart :options="bar"></line-chart>
@@ -421,7 +423,7 @@ export default {
421 423
         { value: 0, label: '全部', source: 0, lapseto: 0 },
422 424
         { value: 1, label: '转出', source: 0, lapseto: 2 },
423 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 428
       sourceType: 0,
427 429
       sourceArr: [
@@ -652,7 +654,7 @@ export default {
652 654
         //统计转归状态
653 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 659
         this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
658 660
         //统计年龄
@@ -662,7 +664,7 @@ export default {
662 664
         this.start = timeStar
663 665
         this.end =timeEnd
664 666
         this.getCountModeId()
665
-        this.getRolloutCount(timeStar,timeEnd)
667
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
666 668
       }
667 669
     },
668 670
     changeEndTime(val) {
@@ -690,7 +692,7 @@ export default {
690 692
         this.start = timeStar
691 693
         this.end =timeEnd
692 694
         this.getCountModeId()
693
-        this.getRolloutCount(timeStar,timeEnd)
695
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
694 696
       }
695 697
     },
696 698
     selectLapseTo(state) {
@@ -728,7 +730,7 @@ export default {
728 730
         this.start = timeStar
729 731
         this.end = timeEnd
730 732
         this.getCountModeId()
731
-        this.getRolloutCount(timeStar,timeEnd)
733
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
732 734
       }
733 735
       //近三月
734 736
       if(state == 1){
@@ -757,7 +759,7 @@ export default {
757 759
         this.start = startunitx
758 760
         this.end = endunitx
759 761
         this.getCountModeId()
760
-        this.getRolloutCount(startunitx,endunitx)
762
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
761 763
       }
762 764
 
763 765
      //近半年
@@ -788,7 +790,7 @@ export default {
788 790
         this.start = startunitx
789 791
         this.end = endunitx
790 792
         this.getCountModeId()
791
-        this.getRolloutCount(startunitx,endunitx)
793
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
792 794
      }
793 795
 
794 796
      //近一年
@@ -815,11 +817,10 @@ export default {
815 817
         this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
816 818
         //统计透析年龄
817 819
         this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
818
-
819 820
         this.start = startunitx
820 821
         this.end = endunitx
821 822
         this.getCountModeId()
822
-        this.getRolloutCount(startunitx,endunitx)
823
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
823 824
      }
824 825
 
825 826
 
@@ -846,8 +847,8 @@ export default {
846 847
           this.modetype = modetype
847 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 852
           // console.log("数据",this.modetype)
852 853
           var modedate = response.data.data.modetype
853 854
           for(let i=0;i<modedate.length;i++){
@@ -919,60 +920,52 @@ export default {
919 920
       })
920 921
     },
921 922
     //统计转归
922
-    getTotalLapseCount(startDate,endDate){
923
+    getTotalLapseCount(startDate,endDate,lapsetoType,sourceType ){
924
+   
923 925
        this.modesDataTwo.series = []
924 926
        this.modesDataTwo.xAxis = []
925
-      getTotalLapseCount(startDate,endDate).then(response=>{
927
+      getTotalLapseCount(startDate,endDate,lapsetoType,sourceType).then(response=>{
926 928
          if(response.data.state == 1){
927 929
            var arr = [
928 930
              {name:"留治",count:0},
929 931
              {name:"转出",count:0}
930 932
            ]
931 933
           var patients =  response.data.data.patients
932
-
934
+      
933 935
           this.rollOutTotal = patients.length
936
+
934 937
           var patienttwo = response.data.data.patienttwo
935 938
           this.outTotal = patienttwo.length
936 939
           var count = response.data.data.count
937 940
           this.patientCount = count
938 941
 
939 942
           var rollout = response.data.data.rollout
940
-          console.log("rollout",rollout)
943
+        
941 944
 
942 945
           for(let i=0;i<arr.length;i++){
943 946
             arr[0].count = this.rollOutTotal
944 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 955
         if(response.data.state === 1){
956
+          console.log("resp2222",response.data.data.totalWoman)
962 957
           var total = response.data.data.total
963
-        //  console.log("总人数",total)
964 958
           this.totalGender = total
965 959
           var totalMan = response.data.data.totalSex
966
-       //  console.log("男人",totalMan)
967 960
           this.totalMan = totalMan
968
-          var totalWoman = total - totalMan
961
+          var totalWoman = response.data.data.totalWoman
969 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 969
            if(response.data.state === 1){
977 970
              this.InfectiousTotal = response.data.data.total
978 971
              var infectious = response.data.data.count
@@ -995,11 +988,10 @@ export default {
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 993
          if(response.data.state == 1){
1001 994
           var ageCount =  response.data.data.ageCount
1002
-          // console.log("ageCount",ageCount)
1003 995
           var arr = []
1004 996
           arr =  ageCount.sort(this.compare('age'))
1005 997
           this.ageCount = arr
@@ -1017,8 +1009,8 @@ export default {
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 1014
          if(response.data.state == 1){
1023 1015
            var dataage =  response.data.data.dataage
1024 1016
           //  console.log("dataage",dataage)
@@ -1175,7 +1167,9 @@ export default {
1175 1167
        this.modesDataTwo.xAxis = []
1176 1168
         const params = {
1177 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 1174
       getRolloutCount(params).then(response=>{
1181 1175
          if(response.data.state == 1){
@@ -1224,8 +1218,10 @@ export default {
1224 1218
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1225 1219
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1226 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 1225
       this.lapsetoType = lapseto
1230 1226
       this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1231 1227
       this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
@@ -1233,6 +1229,7 @@ export default {
1233 1229
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1234 1230
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1235 1231
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1232
+      this.getRolloutCount(this.lapsetoType,this.sourceType)
1236 1233
     },
1237 1234
   },
1238 1235
   created() {
@@ -1269,7 +1266,7 @@ export default {
1269 1266
       this.start = timeStar
1270 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,7 +293,7 @@ import {
293 293
   GetAllConfig,
294 294
   getDrugWarehouseInfoList,
295 295
   getDrugWarehouseList,
296
-  
296
+ 
297 297
 } from "@/api/drug/drug_stock";
298 298
 import BreadCrumb from "../../components/bread-crumb";
299 299
 
@@ -339,6 +339,7 @@ export default {
339 339
     this.GetWarehouse();
340 340
     // this.GetConfigInfo();
341 341
     this.fetchAllAdminUsers();
342
+   
342 343
   },
343 344
   data() {
344 345
     return {
@@ -665,7 +666,8 @@ export default {
665 666
           });
666 667
         })
667 668
         .catch(() => {});
668
-    }
669
+    },
670
+   
669 671
   }
670 672
 };
671 673
 </script>

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

@@ -145,7 +145,7 @@
145 145
                 size="small"
146 146
                 type="warning"
147 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 150
               </el-button>
151 151
             </el-tooltip>
@@ -233,7 +233,8 @@
233 233
               <span>单价</span>
234 234
             </template>
235 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 238
             </template>
238 239
           </el-table-column>
239 240
 
@@ -242,13 +243,15 @@
242 243
               <span>出库数量</span>
243 244
             </template>
244 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 248
             </template>
248 249
           </el-table-column>
249 250
           <el-table-column label="总价" min-width="20" align="center">
250 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 255
             </template>
253 256
           </el-table-column>
254 257
 
@@ -357,7 +360,8 @@ import {
357 360
   GetAllConfig,
358 361
   getDrugWarehouseOutList,
359 362
   getDrugWarehouseOutInfo,
360
-  getDrugWarehouseOutUser
363
+  getDrugWarehouseOutUser,
364
+  getDrugAutoMaticList
361 365
 } from "@/api/drug/drug_stock";
362 366
 import BreadCrumb from "../../components/bread-crumb";
363 367
 
@@ -436,7 +440,9 @@ export default {
436 440
        info: {}
437 441
       },
438 442
       userList:[],
439
-     
443
+      list:[],
444
+      drugConfig:{},
445
+      drugList:[]
440 446
     };
441 447
   },
442 448
   methods: {
@@ -486,6 +492,7 @@ export default {
486 492
           for (let i = 0; i < response.data.data.list.length; i++) {
487 493
             this.warehouseOutDate.push(response.data.data.list[i]);
488 494
           }
495
+          console.log("列表22222",this.warehouseOutDate)
489 496
         }
490 497
       });
491 498
     },
@@ -581,9 +588,12 @@ export default {
581 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 593
       this.warehousingOutInfo.warehousingOutData = []
586 594
       this.GetOrderDetail(id)
595
+      this.list = []
596
+      this.getDrugAutoMaticList(id,time,warehouse_out_order_number)
587 597
       this.dialogVisible = true
588 598
       
589 599
     },
@@ -777,7 +787,46 @@ export default {
777 787
           }
778 788
         })
779 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 832
 </script>

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

@@ -389,8 +389,8 @@
389 389
             </el-form-item>
390 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 394
               <el-input v-model="addPlan.conductivity"></el-input>
395 395
             </el-form-item>
396 396
           </el-col>