瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 5 月之前
父節點
當前提交
78baac1b68

+ 12 - 2
src/xt_pages/data/components/addConsumable.vue 查看文件

@@ -56,7 +56,7 @@
56 56
                         </div>
57 57
                        <div style="width:100%;display:flex;align-items:center;">
58 58
                             <el-form-item prop="dosage" class="noMargin">
59
-                              <el-input v-model="form.dosage" type="number" style="width:100px" placeholder="剂量" :disabled="dosageShow"></el-input>  
59
+                              <el-input v-model="form.dosage" type="number" style="width:100px" placeholder="剂量" :disabled="dosageShow"></el-input>
60 60
                             </el-form-item>
61 61
                             <el-form-item prop="max_unit" class="noMargin">
62 62
                               <el-select v-model="form.max_unit" style="width:160px;" placeholder="剂量单位" @change="changeMaxUnit">
@@ -94,7 +94,7 @@
94 94
                             </el-select>
95 95
                           </el-form-item>
96 96
                         </div>
97
-                       
97
+
98 98
                         <el-form-item label="生产厂商 : " prop="name" style="width:100%">
99 99
                             <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择">
100 100
                                 <el-option
@@ -137,6 +137,16 @@
137 137
                                 </el-option>
138 138
                             </el-select>
139 139
                         </el-form-item>
140
+                      <el-form-item label="是否拆零:" prop="name">
141
+                        <el-select v-model="form.is_zero_flag" style="width:160px;" placeholder="请选择">
142
+                          <el-option
143
+                            v-for="item in options"
144
+                            :key="item.value"
145
+                            :label="item.label"
146
+                            :value="item.value">
147
+                          </el-option>
148
+                        </el-select>
149
+                      </el-form-item>
140 150
                         <el-form-item label="是否备案:" prop="name">
141 151
                             <el-select v-model="form.is_record" style="width:160px;" placeholder="请选择">
142 152
                                 <el-option

+ 23 - 3
src/xt_pages/data/components/addDrugs.vue 查看文件

@@ -26,7 +26,7 @@
26 26
                                       maxlength="30"></el-input>
27 27
                         </el-form-item>
28 28
                       </div>
29
-                      
29
+
30 30
                       <!-- <div v-if="org_id == 0">
31 31
                         <el-form-item label="药品规格 : ">
32 32
                             <el-input v-model="form.specification_name" style="width:160px;" placeholder=""
@@ -331,6 +331,17 @@
331 331
                                 </el-option>
332 332
                             </el-select>
333 333
                         </el-form-item>
334
+
335
+                      <el-form-item label="是否拆零:" prop="is_special_diseases">
336
+                        <el-select v-model="form.is_zero_flag" style="width:160px;" placeholder="请选择">
337
+                          <el-option
338
+                            v-for="(item,index) in options"
339
+                            :key="index"
340
+                            :label="item.label"
341
+                            :value="item.value">
342
+                          </el-option>
343
+                        </el-select>
344
+                      </el-form-item>
334 345
                         <el-form-item label="是否备案 : " prop="is_record">
335 346
                             <el-select v-model="form.is_record" style="width:160px;" placeholder="请选择">
336 347
                                 <el-option
@@ -569,6 +580,9 @@
569 580
           label: '否'
570 581
           }
571 582
         ],
583
+
584
+
585
+
572 586
         Pharmacy: [
573 587
           {
574 588
             value: 1,
@@ -674,7 +688,8 @@
674 688
           is_project:"",
675 689
           is_show:"",
676 690
           is_self_drug:"2",
677
-        
691
+          is_zero_flag:"",
692
+
678 693
         },
679 694
 
680 695
         rules: {
@@ -758,7 +773,7 @@
758 773
     },
759 774
     methods: {
760 775
       changeText(retail_price){
761
-       
776
+
762 777
         this.form.min_price = (retail_price/this.form.min_number).toFixed(2)
763 778
       },
764 779
       changeTextOne(min_number){
@@ -878,6 +893,7 @@
878 893
             this.form[key] = obj[key]
879 894
           }
880 895
 
896
+
881 897
           this.form.drug_classify = parseInt(this.form.drug_classify)
882 898
           this.form['id'] = id
883 899
           this.drug_status = []
@@ -1017,6 +1033,10 @@
1017 1033
         form['is_project'] = this.form.is_project
1018 1034
         form['is_show'] = this.form.is_show
1019 1035
         form['is_self_drug'] = parseInt(this.form.is_self_drug)
1036
+        form['is_zero_flag'] = parseInt(this.form.is_zero_flag)
1037
+
1038
+
1039
+
1020 1040
         return form
1021 1041
       },
1022 1042
       getlist() {

+ 13 - 4
src/xt_pages/data/components/consumables.vue 查看文件

@@ -354,6 +354,8 @@
354 354
               bbx01:"",
355 355
               bby01:"",
356 356
               is_show:"",
357
+              is_zero_flag:"",
358
+
357 359
             },
358 360
             isVisibility: false,
359 361
           }
@@ -779,6 +781,13 @@
779 781
                 this.goodInfo.goodInfoDialog.formValue.is_show =  response.data.data.goodInfo.is_show.toString()
780 782
               }
781 783
 
784
+            if(response.data.data.goodInfo.is_zero_flag <=0){
785
+              this.goodInfo.goodInfoDialog.formValue.is_zero_flag = ''
786
+            }else{
787
+              this.goodInfo.goodInfoDialog.formValue.is_zero_flag =  response.data.data.goodInfo.is_zero_flag.toString()
788
+            }
789
+
790
+
782 791
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
783 792
 
784 793
           }
@@ -1303,7 +1312,7 @@
1303 1312
                 obj['default_count'] = ''
1304 1313
               } else {
1305 1314
              if (key == '*默认单次用量') {
1306
-               obj['default_count'] = parseInt(results[i][key].replace(/\s/g,"")) 
1315
+               obj['default_count'] = parseInt(results[i][key].replace(/\s/g,""))
1307 1316
               }
1308 1317
            }
1309 1318
 
@@ -1363,7 +1372,7 @@
1363 1372
               }
1364 1373
            }
1365 1374
 
1366
-         
1375
+
1367 1376
 
1368 1377
            if (results[i]['医保编码'] === undefined) {
1369 1378
                 obj['medical_insurance_number'] = ''
@@ -1527,7 +1536,7 @@
1527 1536
           'goods':tableData
1528 1537
         };
1529 1538
         console.log("param2332323223",params)
1530
-    
1539
+
1531 1540
         postGoodInformation(params).then(response=>{
1532 1541
            if(response.data.state == 1){
1533 1542
              var msg =  response.data.data.msg;
@@ -1665,7 +1674,7 @@
1665 1674
          }
1666 1675
          return manufacturer_name
1667 1676
        }
1668
-      
1677
+
1669 1678
     },
1670 1679
     created() {
1671 1680
       this.goodInfo.goodInfoDialog.formValue.is_user = "2"

+ 23 - 8
src/xt_pages/data/components/drugs.vue 查看文件

@@ -330,6 +330,7 @@
330 330
           is_default: '',//是否默认
331 331
           is_charge_predict: '',//是否收费预估项
332 332
           is_statistics_work: '',//是否统计工作量
333
+
333 334
           is_charge_use: '',//是否收费常用项
334 335
           drug_code: '',
335 336
           hosp_appr_flag:'',
@@ -388,6 +389,8 @@
388 389
           is_default: '',//是否默认
389 390
           is_charge_predict: '',//是否收费预估项
390 391
           is_statistics_work: '',//是否统计工作量
392
+          is_zero_flag: '',//是否拆零
393
+
391 394
           is_charge_use: '',//是否收费常用项
392 395
           drug_code: '',
393 396
           social_security_directory_code:'',
@@ -521,7 +524,7 @@
521 524
          }
522 525
           return ''
523 526
         }
524
-        
527
+
525 528
       },
526 529
       getDealer(id){
527 530
         if (id == 0) {
@@ -535,7 +538,7 @@
535 538
           }
536 539
           return name
537 540
         }
538
-       
541
+
539 542
       },
540 543
       goodInfoDialogComfirm: function(val) {
541 544
 
@@ -688,6 +691,18 @@
688 691
 
689 692
               }
690 693
 
694
+              if(this.formValue.is_zero_flag <= 0){
695
+
696
+                this.formValue.is_zero_flag = ''
697
+              } else{
698
+
699
+                this.formValue.is_zero_flag = this.formValue.is_zero_flag.toString()
700
+
701
+
702
+              }
703
+
704
+
705
+
691 706
               if(this.formValue.is_charge_use <= 0){
692 707
 
693 708
                 this.formValue.is_charge_use = ''
@@ -745,7 +760,7 @@
745 760
               if(this.formValue.drug_classify == 0){
746 761
                  this.formValue.drug_classify = ""
747 762
               }
748
-           
763
+
749 764
               if(this.formValue.is_project<=0){
750 765
                   this.formValue.is_project = ''
751 766
               }else{
@@ -1279,7 +1294,7 @@
1279 1294
            }
1280 1295
 
1281 1296
 
1282
-           
1297
+
1283 1298
 
1284 1299
            if (results[i]['限制性用药'] === undefined) {
1285 1300
                 obj['lmt_used_flag'] = ''
@@ -1519,7 +1534,7 @@
1519 1534
           'drugs':tableData
1520 1535
         };
1521 1536
         console.log("params222222222",params)
1522
-        
1537
+
1523 1538
         postDrugInformation(params).then(response=>{
1524 1539
            if(response.data.state == 1){
1525 1540
              var msg =  response.data.data.msg;
@@ -1527,7 +1542,7 @@
1527 1542
              this.getAllManufacturer();
1528 1543
              this.GetAllConfig();
1529 1544
              this.$message.success("导入成功!")
1530
-        
1545
+
1531 1546
            }else{
1532 1547
              this.$message.error("导入失败,请下载日志查看")
1533 1548
            }
@@ -1592,7 +1607,7 @@
1592 1607
 
1593 1608
 
1594 1609
          console.log("this.table",this.list)
1595
-         
1610
+
1596 1611
          for(let i=0;i<this.list.length;i++){
1597 1612
           for(let j=0;j<this.drugCategoryList.length;j++){
1598 1613
               if(this.list[i].drug_category == this.drugCategoryList[j].value){
@@ -1625,7 +1640,7 @@
1625 1640
 
1626 1641
              }
1627 1642
            }
1628
-           
1643
+
1629 1644
           this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
1630 1645
 
1631 1646
           if(this.list[i].is_special_diseases == 1 ){

+ 9 - 1
src/xt_pages/data/druguseTemplate.vue 查看文件

@@ -685,6 +685,12 @@
685 685
                     </el-form-item>
686 686
                   </el-col>
687 687
 
688
+                  <el-col :span="24">
689
+                      <el-form-item prop="remark" label="医嘱嘱托 :">
690
+                        <el-input style="width: 300px" v-model="templateFormEdit.remark"></el-input>&nbsp;
691
+                      </el-form-item>
692
+                  </el-col>
693
+
688 694
 
689 695
                 </el-row>
690 696
               </el-form>
@@ -1453,7 +1459,8 @@
1453 1459
           prescribing_number_unit: '',
1454 1460
           delivery_way: '',
1455 1461
           execution_frequency: '',
1456
-          id: 0
1462
+          id: 0,
1463
+          remark:""
1457 1464
         },
1458 1465
         drugdicForm: {
1459 1466
           name: '',
@@ -2584,6 +2591,7 @@
2584 2591
         this.templateFormEdit.weekday = row.week_days.split(',')
2585 2592
         this.templateFormEdit.drug_id = row.drug_id
2586 2593
         this.templateFormEdit.way  = row.way
2594
+        this.templateFormEdit.remark = row.remark
2587 2595
         this.templateEditFormVisible = true
2588 2596
         if (row.parent_id > 0) {
2589 2597
           this.editDialogTitle = '编辑子药'

+ 16 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -1307,6 +1307,7 @@ export default {
1307 1307
       }],
1308 1308
       tabIndex: 1,
1309 1309
       hisPatientInfo: {},
1310
+      lastHisPatientInfo: {},
1310 1311
       schedule:{},
1311 1312
       loadingtwo: false,
1312 1313
       patientTableData: [{}],
@@ -1918,7 +1919,7 @@ export default {
1918 1919
                 return false
1919 1920
               } else {
1920 1921
                 if (response.data.data.failed_code == -10) {
1921
-                  if(response.data.data.failed_type && response.data.data.failed_type == 100){
1922
+                  if(4 && response.data.data.failed_type == 100){
1922 1923
                     that.event_result = response.data.data.msg
1923 1924
                     that.roleTableData =  that.event_result.output.result
1924 1925
                     that.warm_type =  response.data.data.warm_type
@@ -6096,6 +6097,8 @@ export default {
6096 6097
             this.loading = false
6097 6098
             this.patientInfo = response.data.data.xt_info
6098 6099
             this.hisPatientInfo = response.data.data.his_info
6100
+            this.lastHisPatientInfo = response.data.data.last_his_patient_info
6101
+
6099 6102
             this.info = response.data.data.info
6100 6103
             this.order = response.data.data.order
6101 6104
             this.schedule = response.data.data.sch
@@ -6124,6 +6127,11 @@ export default {
6124 6127
               if (this.info.sick_type == 0) {
6125 6128
                 this.form.sick_type = ''
6126 6129
               }
6130
+
6131
+              if(this.org_id == 10721 && this.lastHisPatientInfo.id > 0){
6132
+                   this.form.sick_type = this.lastHisPatientInfo.sick_type
6133
+              }
6134
+
6127 6135
             } else {
6128 6136
               this.form.p_type = 14
6129 6137
               this.form.sick_type = this.sick[0].id
@@ -6134,9 +6142,15 @@ export default {
6134 6142
                   this.form.diagnosis.push(parseInt(response.data.data.last_info.diagnosis.split(',')[i]))
6135 6143
                 }
6136 6144
               }
6137
-
6138 6145
               this.sick_history = ''
6146
+              if(this.org_id == 10721  && this.lastHisPatientInfo.id > 0){
6147
+                this.form.sick_type = this.lastHisPatientInfo.sick_type
6148
+              }
6149
+
6139 6150
             }
6151
+            console.log("this.form.sick_type")
6152
+
6153
+            console.log(this.form.sick_type)
6140 6154
             this.addtions_charge = response.data.data.addtions_charge
6141 6155
 
6142 6156
             if (response.data.data.prescription.length > 0 && response.data.data.prescription[0].advices.length > 0) {

+ 8 - 2
src/xt_pages/outpatientTool/components/detailStatistics.vue 查看文件

@@ -332,8 +332,14 @@ export default {
332 332
           for (let i = 0; i < list.length; i++) {
333 333
             for (let j = 0; j < list[i].orders.length; j++) {
334 334
               for (let z = 0; z < list[i].orders[j].order_info.length; z++) {
335
-                list[i].orders[j].order_info[z].record_date =
336
-                  list[i].orders[j].settle_accounts_date;
335
+                if(list[i].orders[j].order_info[z].advice_id > 0){
336
+                  list[i].orders[j].order_info[z].record_date =
337
+                    list[i].orders[j].order_info[z].advice.advice_date;
338
+                }
339
+                if(list[i].orders[j].order_info[z].project_id > 0){
340
+                  list[i].orders[j].order_info[z].record_date =
341
+                    list[i].orders[j].order_info[z].project.record_date;
342
+                }
337 343
                 list[i].orders[j].order_info[z].number =
338 344
                   list[i].orders[j].number;
339 345
                 this.tableData.push(list[i].orders[j].order_info[z]);

+ 18 - 1
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

@@ -331,6 +331,18 @@
331 331
               </el-select>
332 332
           </el-form-item>
333 333
 
334
+
335
+          <el-form-item label="是否拆零: " prop="limit_remark" style="width:100%;">
336
+            <el-select v-model="form.is_zero_flag" style="width:160px;" filterable placeholder="请选择">
337
+              <el-option
338
+                v-for="item in options"
339
+                :key="item.value"
340
+                :label="item.label"
341
+                :value="item.value">
342
+              </el-option>
343
+            </el-select>
344
+          </el-form-item>
345
+
334 346
         </el-form>
335 347
       </el-tab-pane>
336 348
     </el-tabs>
@@ -426,7 +438,8 @@
426 438
           bbx01:"",
427 439
           bby01:"",
428 440
           is_show:"",
429
-          
441
+          is_zero_flag:"",
442
+
430 443
         },
431 444
 
432 445
         rules: {
@@ -663,6 +676,10 @@
663 676
         form["bbx01"] = this.form.bbx01
664 677
         form["bby01"] = this.form.bby01
665 678
         form["is_show"] = this.form.is_show
679
+        form["is_zero_flag"] = this.form.is_zero_flag
680
+
681
+
682
+
666 683
 
667 684
         return form
668 685
       }, changeSelected: function(val) {

+ 42 - 5
src/xt_pages/user/courseOfDisease_new.vue 查看文件

@@ -204,8 +204,8 @@
204 204
               </el-button>
205 205
             </div>
206 206
           </div>
207
-          <div>
208
-            <text_content @new_content="newcontent"></text_content>
207
+          <div v-if="AuToShow = true">
208
+            <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"></text_content>
209 209
           </div>
210 210
         </div>
211 211
 
@@ -300,7 +300,14 @@
300 300
         tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
301 301
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
302 302
         ],
303
-        
303
+        prescriptionList:[],
304
+        berforList:[],
305
+        monitorList:[],
306
+        dryweightList:[],
307
+        inpectionList:[],
308
+        dialysisOrderList:[],
309
+        patient:{},
310
+        AuToShow:false
304 311
       }
305 312
     },
306 313
     created() {
@@ -545,7 +552,7 @@
545 552
             }
546 553
           }
547 554
         })
548
-        this.auto_dialog = false
555
+       
549 556
         this.getAutoPatientContent()
550 557
       },
551 558
       // 本周
@@ -937,7 +944,7 @@
937 944
         return anticoagulant_name
938 945
       },
939 946
       getTime (time) {
940
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
947
+      return uParseTime(time, '{y}-{m}-{d}')
941 948
       },
942 949
       getTimeOne (time) {
943 950
       return uParseTime(time, '{y}-{m}-{d}')
@@ -954,17 +961,47 @@
954 961
           end_time:this.end_date,
955 962
           patient_id:this.patient_id,
956 963
         }
964
+        console.log("start_time==============",params)
957 965
        getAutoPatientContent(params).then(response=>{
958 966
           if(response.data.state == 1){
967
+          
959 968
             var prescription =  response.data.data.prescription
969
+            this.prescriptionList=[]
970
+            this.prescriptionList = prescription
960 971
 
961 972
             var berfor = response.data.data.berfor
973
+            this.berforList = []
974
+            this.berforList = berfor
962 975
 
963 976
             var monitorList  = response.data.data.monitorList
977
+            this.monitorList = []
978
+            this.monitorList = monitorList
964 979
 
965 980
             var dryweightList = response.data.data.dryweightList
966 981
 
982
+            this.dryweightList = []
983
+            this.dryweightList = dryweightList
984
+
967 985
             var inpectionList = response.data.data.inpectionList
986
+
987
+            this.inpectionList = []
988
+
989
+            this.inpectionList = inpectionList
990
+            
991
+            this.patient = {}
992
+            this.patient = response.data.data.patient
993
+            if(this.patient.gender == 1){
994
+               this.patient.gender_name = "男"
995
+            }
996
+            if(this.patient.gender == 2){
997
+               this.patient.gender_name = "女"
998
+            }
999
+
1000
+            this.dialysisOrderList=[]
1001
+            this.dialysisOrderList =response.data.data.dialysisOrder
1002
+
1003
+            this.AuToShow = true
1004
+           
968 1005
           }
969 1006
        })
970 1007
 

+ 54 - 2
src/xt_pages/user/text_content.vue 查看文件

@@ -142,7 +142,32 @@
142 142
 </template>
143 143
 
144 144
 <script>
145
+import { watch } from 'vue';
146
+
145 147
 export default{
148
+  props: {
149
+    patient: {
150
+      type: Object,
151
+    },
152
+    prescriptionList:{
153
+      type:Array
154
+    },
155
+    berforList:{
156
+      type:Array
157
+    },
158
+    monitorList:{
159
+      type:Array
160
+    },
161
+    dryweightList:{
162
+      type:Array
163
+    },
164
+    inpectionList:{
165
+      type:Array
166
+    },
167
+    dialysisOrder:{
168
+      type:Array
169
+    }
170
+  },
146 171
   data(){
147 172
     return {
148 173
       content:'',
@@ -150,7 +175,11 @@ export default{
150 175
       num:6,
151 176
       tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
152 177
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
153
-        ]
178
+        ],
179
+       name:"",
180
+       gander:"",
181
+       age:0,
182
+       dialysis_no:""
154 183
     }
155 184
   },
156 185
   created(){
@@ -162,7 +191,7 @@ export default{
162 191
               <tr>
163 192
                 <td width="130" style="padding: 5px;">基本信息</td>
164 193
                 <td style="padding: 5px;">
165
-                  <span>姓名:朱康林</span>  <span>性别:男</span>  <span>年龄:58</span>  <span>透析号:21000005</span>
194
+                  <span>姓名:${this.name } </span>  <span>性别:${ this.patient.gender_name  }</span>  <span>年龄:${ this.patient.age }</span>  <span>透析号:${ this.patient.dialysis_no }</span>
166 195
                 </td>
167 196
               </tr>
168 197
               <tr>
@@ -257,7 +286,30 @@ export default{
257 286
     this.content = contents
258 287
     
259 288
   },
289
+  watch:{
290
+     patient:function(){
291
+     
292
+     }
293
+  },
260 294
   mounted(){
295
+    console.log("patient---------------------",this.patient)
296
+    this.name = this.patient.name
297
+    this.gander = ""
298
+    this.age = 0
299
+    this.dialysis_no = ""
300
+    if(this.patient.gender == 1){
301
+      this.gander = "男"
302
+    }
303
+    if(this.patient.gender == 2){
304
+      this.gander = "女"
305
+    }
306
+    this.age = this.patient.age
307
+    this.dialysis_no = this.patient.dialysis_no
308
+
309
+    console.log("name:",this.name)
310
+    console.log("gander:",this.gander)
311
+    console.log("age:",this.age)
312
+    console.log("dialysis_no:",this.dialysis_no)
261 313
     console.log('document.getElementById3334',document.getElementById('editer'))
262 314
     const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
263 315
     var newListArr =[]