陈少旭 4 months ago
parent
commit
52022cead5

+ 12 - 2
src/xt_pages/data/components/addConsumable.vue View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 ){

+ 16 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -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 View File

@@ -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 View File

@@ -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) {