浏览代码

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1 个月前
父节点
当前提交
a130ca391a

+ 9 - 0
src/api/pharmacy.js 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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"+",透析过程顺利,安全下机" + " "

文件差异内容过多而无法显示
+ 506 - 402
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue


+ 4 - 5
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue 查看文件

@@ -2,8 +2,7 @@
2 2
   <div>
3 3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5
-      <div
6
-        id="dialysis-print-box-1-1"
5
+      <div id="dialysis-print-box-1-1"
7 6
         class="dialysis-print-order print-template-two print_page_main_content"
8 7
       >
9 8
 
@@ -293,7 +292,7 @@
293 292
             <td width="10%">核对者签名</td>
294 293
           </tr>
295 294
           <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
296
-            <td style="height:25px;line-height:25px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
295
+            <td style="height:25px;line-height:25px">{{ getTime(advice.start_time, "{h}:{i}") }}</td>
297 296
             <td class="parent">
298 297
               <span v-if="advice.parent_id > 0">---></span>
299 298
               <span>{{ advice.advice_name }}</span>
@@ -317,7 +316,7 @@
317 316
                 <img style="height:25px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
318 317
               </span>
319 318
             </td>
320
-            <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
319
+            <td>{{ getTime(advice.execution_time, "{h}:{i}") }}</td>
321 320
             <td>
322 321
               <span v-if="setAdminUserES(advice.execution_staff) == ''">
323 322
                 {{
@@ -1465,7 +1464,7 @@ export default {
1465 1464
             this.isShowZero = true
1466 1465
           }
1467 1466
           if (this.monitors.length < 7) {
1468
-            var nl = 8 - this.monitors.length
1467
+            var nl = 7 - this.monitors.length
1469 1468
             for (let index = 0; index < nl; index++) {
1470 1469
               this.monitors.push([])
1471 1470
             }

+ 5 - 5
src/xt_pages/outpatientTool/labelPrint.vue 查看文件

@@ -134,7 +134,7 @@
134 134
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
135 135
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
136 136
                           </div>
137
-                          <img style="height: 85px;" v-if="$store.getters.xt_user.org.id != 10138 && $store.getters.xt_user.org.id != 10217"  id="barcode">
137
+                          <img style="" v-if="$store.getters.xt_user.org.id != 10138 && $store.getters.xt_user.org.id != 10217"  id="barcode">
138 138
                       </div>
139 139
                       <div style="margin-bottom:0px;">{{current_number}}</div>
140 140
                       <div style="display:flex;">
@@ -491,10 +491,10 @@
491 491
                   format: 'CODE39',
492 492
                   lineColor: '#000',
493 493
                   background: '#EBEEF5',
494
-                  // width: 3,
495
-                  // height: 200,
496
-                  width: 1,
497
-                  height: 90,
494
+                  width: 3,
495
+                  height: 200,
496
+                  // width: 1,
497
+                  // height: 90,
498 498
                   displayValue: false,
499 499
                   fontOptions:"bold italic",//使文字加粗体或变斜体
500 500
                   font:"fantasy",//设置文本的字体

+ 14 - 7
src/xt_pages/stock/query/purchaseNewStockQuery.vue 查看文件

@@ -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 查看文件

@@ -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
        }

+ 3 - 8
src/xt_pages/user/coursePrint.vue 查看文件

@@ -45,19 +45,15 @@
45 45
 
46 46
             </div>
47 47
           </div>
48
-          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;" v-for="(item,index) in this.record" :key="index">
48
+          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:30px;" v-for="(item,index) in this.record" :key="index">
49 49
             <div class="inline_block" style="display: inline-block;">
50 50
               <div>{{getTime(item.record_time,'{y}-{m}-{d} {h}:{i}')}}</div>
51 51
             </div>
52 52
             <div class="inline_block" style="margin-left: 30px;display: inline-block;">
53 53
               <div>{{item.title}}</div>
54 54
             </div>
55
-
56
-            <!-- <div class="inline_block" style="width:100%; word-wrap: break-word; word-break: break-all;"> -->
57
-              <div v-html="item.content" ></div>
58
-            <!-- </div> class="printP" -->
59
-
60
-            <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;float:right">
55
+            <div v-html="item.content" ></div>
56
+            <div class="row" style="padding: 2px 0;line-height:24px;float:right">
61 57
              医生签名:
62 58
              <span v-if="setAdminUserES(item.recorder?item.recorder:item.recorder) == ''">
63 59
                   {{getName(item.recorder)}}
@@ -68,7 +64,6 @@
68 64
             </div>
69 65
           </div>
70 66
 
71
-
72 67
         </div>
73 68
         <div class="print_page_main_content" v-if="org_id ==10206" >
74 69
           <div v-for="(item,index) in this.record" :key="index" style="page-break-after: always;">