Browse Source

hah阿凡达

28169 1 month ago
parent
commit
26ab401f3e

+ 9 - 0
src/api/pharmacy.js View File

@@ -192,6 +192,15 @@ export function changeDrugCode(params){
192 192
   })
193 193
 }
194 194
 
195
+export function changeBloodCode(params){
196
+  
197
+  return request({
198
+    url:"/api/pharmacy/changebloodcode",
199
+    method:"get",
200
+    params:params,
201
+  })
202
+}
203
+
195 204
 export function getDrugTocalCount(params){
196 205
 
197 206
   return request({

+ 44 - 11
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -562,7 +562,6 @@ export default {
562 562
     getTotal(){
563 563
       if(this.textarea!=null){
564 564
         var  textAreaList = this.textarea.split(",")
565
-        console.log("textArrleti",textAreaList)
566 565
         var arr = []
567 566
         if(textAreaList!=null && textAreaList.length>0){
568 567
           for(let i=0;i<textAreaList.length;i++){
@@ -671,6 +670,8 @@ export default {
671 670
       }
672 671
     },
673 672
     saveTextArea(){
673
+
674
+
674 675
       
675 676
        var params = {
676 677
         id:this.id,
@@ -698,21 +699,20 @@ export default {
698 699
         var textarea = ""
699 700
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
700 701
 
701
-        console.log("textarea==============",textarea)
702
-
703
-        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610|| this.$store.getters.xt_user.org.id == 10537){
702
+      
703
+        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537){
704 704
           
705 705
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
706
-          console.log("drugindentification===================",drugindentificaitoncode)
706
+          // console.log("drugindentification===================",drugindentificaitoncode)
707 707
 
708 708
           var scan_code = this.getDrugScanCode(this.drug_id)
709 709
           
710
-          console.log("scan_code============",scan_code)
710
+          // console.log("scan_code============",scan_code)
711 711
 
712 712
           var total_one = 0
713 713
           var total_two = 0
714 714
 
715
-          console.log("newArr-------------",this.newArrList)
715
+          // console.log("newArr-------------",this.newArrList)
716 716
 
717 717
           var arr= []
718 718
           arr = textarea.split(",")
@@ -786,10 +786,10 @@ export default {
786 786
           }
787 787
 
788 788
 
789
-          console.log("数量1--------------",total_one)
790
-          console.log("数量2---------------",total_two)
789
+          // console.log("数量1--------------",total_one)
790
+          // console.log("数量2---------------",total_two)
791 791
         
792
-          console.log("scan_code=====",scan_code)
792
+          // console.log("scan_code=====",scan_code)
793 793
           
794 794
           if(scan_code>0){
795 795
             if((total_one + total_two)>scan_code){
@@ -800,11 +800,44 @@ export default {
800 800
          
801 801
          var is_arr = this.hasDuplicates(arr)
802 802
 
803
-         console.log("is_arr-=--------------",is_arr)
803
+        //  console.log("is_arr-=--------------",is_arr)
804 804
 
805 805
         this.textarea = arr.join(",")
806 806
 
807 807
         }else{
808
+          // console.log("textarea22==============",textarea)
809
+
810
+          var newArr = []
811
+          var is_err_check = 0
812
+          var i_index = ""
813
+          var arr = textarea.split(",")
814
+          if(arr!=null && arr.length>0){
815
+            
816
+            for(let i=0;i<arr.length;i++){
817
+              console.log("arrp[i].")
818
+              i_index = i
819
+              if(arr[i]!=""){
820
+                if(arr[i].length!=20){
821
+                 this.$message.error("药品追溯码长度没有满足20位!")
822
+                  is_err_check = 1
823
+                }else{
824
+                  newArr.push(arr[i])
825
+                }
826
+                
827
+              }
828
+            }
829
+          }
830
+          // console.log("is_err_check==============",is_err_check)
831
+          // console.log("i_index=====",i_index)
832
+          if(is_err_check == 1){
833
+             newArr.splice(i_index,1)
834
+          }
835
+
836
+          
837
+          if(newArr!=null && newArr.length>0){
838
+           
839
+            this.textarea = newArr.join(",")
840
+          }
808 841
           this.textarea = textarea
809 842
         }
810 843
        

+ 52 - 12
src/xt_pages/Pharmacy/drugCode.vue View File

@@ -80,6 +80,17 @@
80 80
           </el-option>
81 81
         </el-select>
82 82
       </div>&nbsp;&nbsp;
83
+
84
+      <div>数据来源:
85
+        <el-select size="small" v-model="is_type" placeholder="请选择" style="width:100px;" @change="changeType">
86
+          <el-option
87
+            v-for="item,index in advice_items"
88
+            :key="index"
89
+            :label="item.name"
90
+            :value="item.id">
91
+          </el-option>
92
+        </el-select>
93
+      </div>&nbsp;&nbsp;
83 94
     </div>
84 95
     <el-table v-loading="isloading" :data="tableData" border :row-style="{ color: '#303133' }" ref="table2"
85 96
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
@@ -125,7 +136,7 @@
125 136
         </template>
126 137
       </el-table-column>
127 138
 
128
-      <el-table-column align="center" prop="name" label="发药状态">
139
+      <el-table-column align="center" prop="name" label="发药状态" v-if="is_type == 1">
129 140
         <template slot-scope="scope">
130 141
           <div v-if="scope.row.is_medicine == 1">已发药</div>
131 142
           <div v-if="scope.row.is_medicine == 2 || scope.row.is_medicine == 0">未发药</div>
@@ -133,8 +144,9 @@
133 144
       </el-table-column>
134 145
 
135 146
 
136
-      <el-table-column align="center" prop="name" label="结算状态">
147
+      <el-table-column align="center" prop="name" label="结算状态" v-if="is_type == 1">
137 148
         <template slot-scope="scope">
149
+          
138 150
           <div v-if="scope.row.pre.order_status == 2">已结算</div>
139 151
           <div v-if="scope.row.pre.order_status != 2">未结算</div>
140 152
         </template>
@@ -224,6 +236,7 @@ export default {
224 236
       value: 0,
225 237
       keywords:"",
226 238
       is_sale: "0",
239
+      is_type:"1",
227 240
       items: [
228 241
         {id: "0", name: '全部'},
229 242
         {id: "1", name: '已上传'},
@@ -240,6 +253,10 @@ export default {
240 253
         {id: "2", name: '已结算'},
241 254
         {id: "1", name: '未结算'},
242 255
       ],
256
+      advice_items:[
257
+        {id:"1",name:"HIS系统"},
258
+        {id:"2",name:"血透系统"},
259
+      ],
243 260
       patientList: [],
244 261
       drugList: [],
245 262
       dialogVisibleOne: false,
@@ -388,6 +405,10 @@ export default {
388 405
         this.textarea = textarea
389 406
       }
390 407
     },
408
+    changeType(val){
409
+      this.is_type =val
410
+      this.getlist()
411
+    },
391 412
     getDrugCode(id, DataSources, DrugCode, index) {
392 413
       this.id = id
393 414
       this.textarea = DrugCode
@@ -401,17 +422,36 @@ export default {
401 422
         drug_code: this.textarea,
402 423
       }
403 424
       console.log("paramss", params)
404
-      changeDrugCode(params).then(response => {
405
-        if (response.data.state == 1) {
406
-          this.$message.success("保存成功!")
407
-          for (let i = 0; i < this.tableData.length; i++) {
408
-            if (this.currentIndex == i) {
409
-              this.tableData[i].drug_code = this.textarea
425
+      if(this.is_type == 1){
426
+        changeDrugCode(params).then(response => {
427
+          if (response.data.state == 1) {
428
+            this.$message.success("保存成功!")
429
+            for (let i = 0; i < this.tableData.length; i++) {
430
+              if (this.currentIndex == i) {
431
+                this.tableData[i].drug_code = this.textarea
432
+              }
410 433
             }
434
+            this.dialogVisibleOne = false
411 435
           }
412
-          this.dialogVisibleOne = false
413
-        }
414
-      })
436
+       })
437
+      }
438
+      if(this.is_type == 2){
439
+        var params = {
440
+          id: this.id,
441
+          data_source: 2,
442
+          drug_code: this.textarea,
443
+         }
444
+        changeDrugCode(params).then(response=>{
445
+          this.$message.success("保存成功!")
446
+            for (let i = 0; i < this.tableData.length; i++) {
447
+              if (this.currentIndex == i) {
448
+                this.tableData[i].drug_code = this.textarea
449
+              }
450
+            }
451
+            this.dialogVisibleOne = false
452
+         })
453
+      }
454
+     
415 455
     },
416 456
     getPatientName(id) {
417 457
       var name = ""
@@ -626,7 +666,7 @@ export default {
626 666
         is_settle:this.is_settle,
627 667
         is_code:this.is_code,
628 668
         keywords:this.keywords,
629
-
669
+        is_type:parseInt(this.is_type),
630 670
       }
631 671
       getHisDrugCodeQueryList(params).then(response => {
632 672
         if (response.data.state == 0) {

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

@@ -2240,14 +2240,14 @@
2240 2240
             </el-form-item>
2241 2241
           </el-col>
2242 2242
 
2243
-          <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340)">
2243
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340 || org_id==10517)">
2244 2244
             <el-form-item label="累计血容量(L):" :prop="isName('累计血容量')"
2245 2245
               :rules="isCheckmust('累计血容量')">
2246 2246
               <el-input v-model="form.accumulated_blood_volume"></el-input>
2247 2247
             </el-form-item>
2248 2248
           </el-col>
2249 2249
 
2250
-          <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && org_id!=9538 && org_id!=10340)">
2250
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && org_id!=9538 && org_id!=10340 && org_id!=10517)">
2251 2251
             <el-form-item label="累计血容量(ml):" :prop="isName('累计血容量')"
2252 2252
               :rules="isCheckmust('累计血容量')">
2253 2253
               <el-input v-model="form.accumulated_blood_volume"></el-input>

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

@@ -590,7 +590,7 @@ export default {
590 590
 
591 591
 
592 592
        if(this.org_id ==10090){
593
-          var str = "患者今日常规进行血液透析治疗,目前诊断:1.尿毒症 2.肾性贫血 3.肾性骨病 4肉毒碱缺乏症 5.心功能不全,需继续使用促红素、左卡尼汀、帕立骨化醇治疗。 "+"血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
593
+          var str = "患者今日常规进行血液透析治疗,患者透前未诉头晕乏力抽筋不适,未诉咳嗽喘憋及夜间呼吸困难,未诉牙龈出血,未见出血点及瘀斑。心肺无殊,双下肢无浮肿。目前诊断:1.尿毒症 2.肾性贫血 3.肾性骨病 4肉毒碱缺乏症 5.心功能不全,需继续使用促红素、左卡尼汀、帕立骨化醇治疗。 "+"血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
594 594
         ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus +
595 595
         ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"L" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +","+"透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
596 596
         ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"L"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "

+ 14 - 7
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

@@ -292,17 +292,18 @@ export default {
292 292
                if(this.org_id ==10697){
293 293
                   list[i].stock_in_price = list[i].buy_price
294 294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
295
-               }else if(this.org_id ==0){
295
+               }else if(this.org_id ==9671){
296 296
                 list[i].stock_in_price = list[i].buy_price
297 297
                 list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
298
-               }else if(this.org_id == 10644 || this.org_id == 10752){
298
+               }else if(this.org_id == 10644 || this.org_id == 10752 || this.org_id == 0){
299 299
                  list[i].stock_in_price = "/"
300
-                //  console.log("val1",this.getAllStockInPrice(list[i].StWarehousingInfoTwo))
301
-                //  console.log("val2",this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))
302
-                //  console.log("val3",this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) )
303
-                //  console.log("val4",this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow))
300
+                 console.log("val1",this.getAllStockInPrice(list[i].StWarehousingInfoTwo))
301
+                 console.log("val2",this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))
302
+                 console.log("val3",this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) )
303
+                 console.log("val4",this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow))
304 304
 
305 305
                 list[i].stockMoney = parseFloat(this.getAllStockInPrice(list[i].StWarehousingInfoTwo))  +parseFloat(this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))  - parseFloat(this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty))  - parseFloat(this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)) 
306
+                console.log("剩余33333333  ",list[i].stockMoney)
306 307
                 if(list[i].stockMoney>0){
307 308
                   list[i].stockMoney = list[i].stockMoney.toFixed(2)
308 309
                 }
@@ -1300,7 +1301,13 @@ export default {
1300 1301
        var total_price =0
1301 1302
        if(val!=null && val.length>0){
1302 1303
          for(let i=0;i<val.length;i++){
1303
-            total_price += val[i].warehousing_count * val[i].price
1304
+            if(this.org_id == 10644){
1305
+              total_price += val[i].warehousing_count * val[i].price
1306
+            }
1307
+            if(this.org_id != 10644){
1308
+              total_price += val[i].warehousing_count * val[i].packing_price
1309
+            }
1310
+           
1304 1311
          }
1305 1312
 
1306 1313
        }

+ 6 - 1
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue View File

@@ -822,7 +822,12 @@ export default {
822 822
        var total_price =0
823 823
        if(val!=null && val.length>0){
824 824
          for(let i=0;i<val.length;i++){
825
-            total_price += val[i].warehousing_count * val[i].price
825
+          if(this.org_id == 10644){
826
+              total_price += val[i].warehousing_count * val[i].price
827
+            }
828
+            if(this.org_id != 10644){
829
+              total_price += val[i].warehousing_count * val[i].packing_price
830
+            }
826 831
          }
827 832
 
828 833
        }