Pārlūkot izejas kodu

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

XMLWAN 3 gadus atpakaļ
vecāks
revīzija
219c11f098

+ 91 - 19
src/xt_pages/data/components/addDrugs.vue Parādīt failu

@@ -49,7 +49,7 @@
49 49
                             </el-form-item>
50 50
                             <span style="margin-bottom:20px;font-size:20px;padding:0 10px;">*</span>
51 51
                             <el-form-item prop="min_number" class="noMargin">
52
-                              <el-input v-model="form.min_number" style="width:100px;margin-right:5px;" :disabled="dosageShow" type="number" placeholder="拆零"> </el-input>
52
+                              <el-input v-model="form.min_number" style="width:100px;margin-right:5px;" :disabled="minNumberShow" type="number" placeholder="拆零"> </el-input>
53 53
                             </el-form-item>
54 54
                             <el-form-item prop="min_unit" class="noMargin">
55 55
                               <el-select v-model="form.min_unit" style="width:160px;"  placeholder="拆零单位"  @change="changeMinUnit">
@@ -120,10 +120,18 @@
120 120
                            </el-select>
121 121
                      </el-form-item>
122 122
                     <el-form-item label="默认开药数量:" prop="prescribing_number">
123
-                        <el-input v-model="form.prescribing_number" style="width:160px;" placeholder=""
123
+                        <el-input v-model="form.prescribing_number" style="width:70px;margin-right:5px;" placeholder=""
124 124
                                   maxlength="30"></el-input>
125
+                        <el-select v-model="form.prescribing_number_unit" style="width:80px;" placeholder="开药数量单位">
126
+                              <el-option
127
+                                v-for="(item,index) in packingUnit"
128
+                                :key="index"
129
+                                :label="item.name"
130
+                                :value="item.name">
131
+                              </el-option>
132
+                          </el-select>
125 133
                     </el-form-item>
126
-                     <el-form-item label="开药数量单位:" prop="prescribing_number">
134
+                     <!-- <el-form-item label="开药数量单位:" prop="prescribing_number">
127 135
                           <el-select v-model="form.prescribing_number_unit" style="width:160px;" placeholder="开药数量单位">
128 136
                               <el-option
129 137
                                 v-for="(item,index) in getDataConfig('hemodialysis','units')"
@@ -132,7 +140,7 @@
132 140
                                 :value="item.name">
133 141
                               </el-option>
134 142
                           </el-select>
135
-                    </el-form-item>
143
+                    </el-form-item> -->
136 144
                     <el-form-item label="默认开药天数:" prop="prescribing_number">
137 145
                         <el-input v-model="form.drug_day" style="width:160px;" placeholder=""
138 146
                                   maxlength="30"></el-input>
@@ -545,6 +553,7 @@
545 553
           dose_unit:"",//剂量
546 554
           dose:"",//剂量单位
547 555
           prescribing_number_unit:"",
556
+          total:"",
548 557
         },
549 558
 
550 559
         rules: {
@@ -593,7 +602,9 @@
593 602
         statisticsCategoryList:[],
594 603
         pharmacologyCategoryList:[],
595 604
         dosageShow:false,
596
-        unitList:[]
605
+        unitList:[],
606
+        minNumberShow:false,
607
+        packingUnit:[]
597 608
       }
598 609
     },
599 610
     props: {
@@ -654,16 +665,17 @@
654 665
       show(id, obj) {
655 666
 
656 667
         this.unitList = []
668
+        this.packingUnit = []
657 669
         var arr =  getDataConfig('hemodialysis','units')
658 670
         for(let i=0;i<arr.length;i++){
659
-            if(obj.max_unit == arr[i].name){
660
-              this.unitList.push(arr[i])
661
-            }
662
-        }
663
-        for(let i=0;i<arr.length;i++){
664
-            if(obj.min_unit == arr[i].name){
665
-              this.unitList.push(arr[i])
666
-            }
671
+          if(obj.min_unit == arr[i].name){
672
+            this.unitList.push(arr[i])
673
+            this.packingUnit.push(arr[i])
674
+          }
675
+          if(obj.max_unit == arr[i].name){
676
+            this.unitList.push(arr[i])
677
+            this.packingUnit.push(arr[i])
678
+          } 
667 679
         }
668 680
         console.log('this.unitList',this.unitList)
669 681
         this.getInitializtion()
@@ -705,6 +717,13 @@
705 717
           }
706 718
 
707 719
           this.formTitle = '编辑'
720
+          let unitArr = []
721
+          this.unitList.map(item => {
722
+            unitArr.push(item.id)
723
+          })
724
+          if(unitArr.indexOf(this.form.drug_dose_unit) == -1){
725
+            this.form.drug_dose_unit = ''
726
+          }
708 727
 
709 728
         }
710 729
         this.getAdviceConfig()
@@ -794,7 +813,7 @@
794 813
         form['drug_remark'] = this.form.drug_remark
795 814
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
796 815
         form['lmt_used_flag'] = this.form.lmt_used_flag
797
-
816
+        form['total'] = this.form.total
798 817
         form['min_number'] = this.form.min_number
799 818
         form["drug_day"] = this.form.drug_day
800 819
         form['dose'] = this.form.dose,
@@ -900,12 +919,12 @@
900 919
           this.form.min_number = 1
901 920
           this.dosageShow = true
902 921
         }
903
-        if(val != this.form.max_unit){
904
-          this.dosageShow = false
905
-        }
922
+        // if(val != this.form.max_unit){
923
+        //   this.dosageShow = false
924
+        // }
906 925
         if(val == this.form.max_unit){
907 926
           this.form.min_number = 1
908
-          this.dosageShow = true
927
+          this.minNumberShow = true
909 928
         }
910 929
 
911 930
         // if(this.form.dosage == "" || this.form.max_unit == ""){
@@ -913,16 +932,26 @@
913 932
         // }
914 933
         var arr = getDataConfig('hemodialysis','units')
915 934
         this.unitList = []
935
+        this.packingUnit = []
916 936
         for(let i=0;i<arr.length;i++){
917 937
             if(val == arr[i].name){
918 938
               this.unitList.push(arr[i])
939
+              this.packingUnit.push(arr[i])
919 940
             }
920 941
             if(this.form.max_unit == arr[i].name){
921 942
               this.unitList.push(arr[i])
943
+              this.packingUnit.push(arr[i])
922 944
             }
923 945
             if(this.form.drug_dose_unit == arr[i].id){
924 946
               this.unitList.push(arr[i])
925 947
             }
948
+            if(this.form.prescribing_number_unit == arr[i].id){
949
+              this.packingUnit.push(arr[i])
950
+            }
951
+            
952
+
953
+
954
+
926 955
             let idArr = []
927 956
             this.unitList.map(item => {
928 957
               idArr.push(item.id)
@@ -932,6 +961,15 @@
932 961
                 this.unitList.push(arr[i])
933 962
               }
934 963
             }
964
+            let packingIdArr = []
965
+            this.packingUnit.map(item => {
966
+              packingIdArr.push(item.id)
967
+            })
968
+            if(packingIdArr.indexOf(this.form.prescribing_number_unit) == -1){
969
+              if(this.form.prescribing_number_unit == arr[i].id){
970
+                this.packingUnit.push(arr[i])
971
+              }
972
+            }
935 973
         }
936 974
         let ojb = {};
937 975
         this.unitList = this.unitList.reduce(function(prevArr, currentItem) {
@@ -940,12 +978,46 @@
940 978
           return prevArr
941 979
         }, [])
942 980
 
981
+        let newojb = {};
982
+        this.packingUnit = this.packingUnit.reduce(function(prevArr, currentItem) {
983
+          //利用对象的键名无法重复的特点,mch_id是唯一区别的属性值
984
+          newojb[currentItem.name] ? '' : newojb[currentItem.name] = true && prevArr.push(currentItem);
985
+          return prevArr
986
+        }, [])
987
+
943 988
       },
944 989
       changeMaxUnit(val){
945 990
         if(val == this.form.min_unit){
946 991
           this.form.min_number = 1
947
-          this.dosageShow = true
992
+          this.minNumberShow = true
948 993
         }
994
+        var arr = getDataConfig('hemodialysis','units')
995
+        this.packingUnit = []
996
+        for(let i=0;i<arr.length;i++){
997
+            if(val == arr[i].name){
998
+              this.packingUnit.push(arr[i])
999
+            }
1000
+            if(this.form.min_unit == arr[i].name){
1001
+              this.packingUnit.push(arr[i])
1002
+            }
1003
+            let packingIdArr = []
1004
+            this.packingUnit.map(item => {
1005
+              packingIdArr.push(item.id)
1006
+            })
1007
+            if(packingIdArr.indexOf(this.form.prescribing_number_unit) == -1){
1008
+              if(this.form.prescribing_number_unit == arr[i].id){
1009
+                this.packingUnit.push(arr[i])
1010
+              }
1011
+            }
1012
+        }
1013
+
1014
+
1015
+        let newojb = {};
1016
+        this.packingUnit = this.packingUnit.reduce(function(prevArr, currentItem) {
1017
+          //利用对象的键名无法重复的特点,mch_id是唯一区别的属性值
1018
+          newojb[currentItem.name] ? '' : newojb[currentItem.name] = true && prevArr.push(currentItem);
1019
+          return prevArr
1020
+        }, [])
949 1021
       }
950 1022
     }, watch: {
951 1023
       visible(val) {

+ 12 - 1
src/xt_pages/data/components/consumables.vue Parādīt failu

@@ -34,7 +34,7 @@
34 34
             :value="item.value">
35 35
           </el-option>
36 36
         </el-select>
37
-       
37
+
38 38
       </div>
39 39
       <div>
40 40
         <el-button type="primary" @click="openForm()">新增</el-button>
@@ -312,6 +312,7 @@
312 312
               packing_price:'',
313 313
               default_count_unit:"",
314 314
               min_unit:"",
315
+              total:"",
315 316
             },
316 317
             isVisibility: false,
317 318
 
@@ -665,6 +666,13 @@
665 666
                 response.data.data.goodInfo.sort.toString()
666 667
             }
667 668
 
669
+            if (response.data.data.goodInfo.total <= 0) {
670
+              this.goodInfo.goodInfoDialog.formValue.total = ''
671
+            } else {
672
+              this.goodInfo.goodInfoDialog.formValue.total =
673
+                      response.data.data.goodInfo.total
674
+            }
675
+
668 676
 
669 677
             if (response.data.data.goodInfo.is_doctor_use <= 0) {
670 678
               this.goodInfo.goodInfoDialog.formValue.is_doctor_use = ''
@@ -696,6 +704,9 @@
696 704
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
697 705
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
698 706
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
707
+
708
+
709
+
699 710
           }
700 711
         })
701 712
       },

+ 25 - 22
src/xt_pages/data/components/drugs.vue Parādīt failu

@@ -7,7 +7,7 @@
7 7
         <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
8 8
                    @click="searchAction">搜索
9 9
         </el-button>
10
-      
10
+
11 11
        <label class="title"><span class="name">生产厂商</span> : </label>
12 12
         <el-select v-model="manufacturer" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeManufacture">
13 13
           <el-option
@@ -26,7 +26,7 @@
26 26
             :value="item.value">
27 27
           </el-option>
28 28
         </el-select>
29
-   
29
+
30 30
 
31 31
         <span style="color: #909399;font-size:14px;">备案 : &nbsp;</span>
32 32
         <el-select v-model="is_record" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeRecord">
@@ -40,7 +40,7 @@
40 40
       </div>
41 41
       <div>
42 42
         <el-button type="primary" @click="openForm(0)">新增</el-button>
43
-       
43
+
44 44
       </div>
45 45
 
46 46
     </div>
@@ -142,7 +142,7 @@
142 142
           <div>{{scope.row.drug_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
143 143
         </template>
144 144
       </el-table-column>
145
-      <el-table-column prop="date" label="操作" width="250" align="center" fixed="right">
145
+      <el-table-column prop="date" label="操作" width="280" align="center" fixed="right">
146 146
         <template slot-scope="scope">
147 147
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
148 148
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
@@ -315,7 +315,8 @@
315 315
           lmt_used_flag:'',
316 316
           dose_unit:'',
317 317
           min_price:'',
318
-          drug_day:"",//默认开药天数
318
+          drug_day:"",//默认开药天数,
319
+          total:"",
319 320
         },
320 321
         tempFormValue: {
321 322
           drug_name: '',//药品名称
@@ -373,6 +374,8 @@
373 374
           packing_unit:"",//包装单位
374 375
           packing_price:"",//包装零售价
375 376
           drug_day:"",//默认开药天数
377
+          total:"",
378
+
376 379
         },
377 380
 
378 381
         current_id: 0,
@@ -491,9 +494,9 @@
491 494
         if (val.id > 0) {
492 495
           //修改
493 496
           val['id'] = this.current_id;
494
-          
497
+
495 498
           val.min_number =  parseInt(val.min_number)
496
-         
499
+
497 500
           editBaseDrugLib(val,untit).then(response => {
498 501
             if (response.data.state == 0) {
499 502
               this.$message.error(response.data.msg);
@@ -506,7 +509,7 @@
506 509
           })
507 510
         } else if (val.id == 0) {
508 511
           //新增
509
-         
512
+
510 513
           createBaseDrugLib(val).then(response => {
511 514
             if (response.data.state == 0) {
512 515
               this.$message.error(response.data.msg);
@@ -937,7 +940,7 @@
937 940
            console.log("isHasMinUnit",isHasMinUnit)
938 941
           var isHasDosage =  header.includes('*剂量')
939 942
           console.log("isHasDosage",isHasDosage)
940
-        
943
+
941 944
           var isHasMaxUnit= header.includes('*剂量单位');
942 945
           console.log("isHasMaxUnit",isHasMaxUnit)
943 946
           var isHasPackingUnit = header.includes('*包装单位')
@@ -950,7 +953,7 @@
950 953
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
951 954
           var isHasDrugDosageForm = header.includes('*药品剂型');
952 955
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
953
-      
956
+
954 957
           var isHasUnitMatrixing= header.includes("*单位换算");
955 958
           console.log("isHasUnitMatrixing",isHasUnitMatrixing)
956 959
           var isHasRetailPrice = header.includes('*拆零零售价');
@@ -1022,7 +1025,7 @@
1022 1025
                obj['max_unit'] = results[i][key].replace(/\s/g,"")
1023 1026
               }
1024 1027
            }
1025
-          
1028
+
1026 1029
             if (results[i]['*包装单位'] === undefined) {
1027 1030
                 obj['packing_unit'] = ''
1028 1031
               } else {
@@ -1039,7 +1042,7 @@
1039 1042
                obj['delivery_way'] = results[i][key].replace(/\s/g,"")
1040 1043
               }
1041 1044
            }
1042
-          
1045
+
1043 1046
            if (results[i]['默认执行频率'] === undefined) {
1044 1047
                 obj['execution_frequency'] = ''
1045 1048
               } else {
@@ -1055,7 +1058,7 @@
1055 1058
                obj['drug_day'] = results[i][key].replace(/\s/g,"")
1056 1059
               }
1057 1060
            }
1058
-          
1061
+
1059 1062
 
1060 1063
 
1061 1064
             if (results[i]['*药品类型'] === undefined) {
@@ -1102,7 +1105,7 @@
1102 1105
            }
1103 1106
 
1104 1107
 
1105
-          
1108
+
1106 1109
 
1107 1110
             if (results[i]['*单位换算'] === undefined) {
1108 1111
                 obj['unit_matrixing'] = ''
@@ -1123,7 +1126,7 @@
1123 1126
               }
1124 1127
            }
1125 1128
 
1126
-          
1129
+
1127 1130
           if (results[i]['*包装零售价'] === undefined) {
1128 1131
                 obj['packing_price'] = ''
1129 1132
               } else {
@@ -1152,7 +1155,7 @@
1152 1155
 
1153 1156
 
1154 1157
 
1155
-          
1158
+
1156 1159
 
1157 1160
            if (results[i]['*默认单次用量'] === undefined) {
1158 1161
                 obj['drug_dose'] = ''
@@ -1188,7 +1191,7 @@
1188 1191
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1189 1192
               }
1190 1193
            }
1191
-          
1194
+
1192 1195
            if (results[i]['限制性用药'] === undefined) {
1193 1196
                 obj['lmt_used_flag'] = ''
1194 1197
               } else {
@@ -1196,7 +1199,7 @@
1196 1199
                 obj['lmt_used_flag'] = results[i][key].replace(/\s/g,"")
1197 1200
               }
1198 1201
            }
1199
-           
1202
+
1200 1203
 
1201 1204
 
1202 1205
            if (results[i]['药品别名'] === undefined) {
@@ -1207,7 +1210,7 @@
1207 1210
               }
1208 1211
            }
1209 1212
 
1210
-          
1213
+
1211 1214
              if (results[i]['药品类别'] === undefined) {
1212 1215
                 obj['drug_category'] = ''
1213 1216
               } else {
@@ -1234,7 +1237,7 @@
1234 1237
               }
1235 1238
            }
1236 1239
 
1237
-         
1240
+
1238 1241
 
1239 1242
             if (results[i]['审批标志'] === undefined) {
1240 1243
                 obj['hosp_appr_flag'] = ''
@@ -1341,7 +1344,7 @@
1341 1344
                 obj['limit_remark'] = results[i][key].replace(/\s/g,"")
1342 1345
               }
1343 1346
            }
1344
-           
1347
+
1345 1348
          }
1346 1349
          var newArr = [];
1347 1350
          tableData.push(obj);
@@ -1414,7 +1417,7 @@
1414 1417
           'drugs':tableData
1415 1418
         };
1416 1419
         console.log("params222222222",params)
1417
-        
1420
+
1418 1421
         postDrugInformation(params).then(response=>{
1419 1422
            if(response.data.state == 1){
1420 1423
              var msg =  response.data.data.msg;

+ 48 - 3
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Parādīt failu

@@ -512,6 +512,46 @@ export default {
512 512
             console.log("列表数据",schedules)
513 513
             var config = resp.data.config
514 514
             console.log("config222222",config.is_open)
515
+            let project_config = resp.data.project_config
516
+            console.log('project_config',resp.data.hisAdvices)
517
+            if(project_config.is_open == 1){
518
+              this.project = resp.data.project
519
+              resp.data.hisAdvices.map((item,index) => {
520
+                if(this.project[index].project.length > 0){
521
+                  this.project[index].project.map(it => {
522
+                    let obj = {
523
+                      advice_doctor: it.doctor,
524
+                      start_time:it.start_time,
525
+                      advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
526
+                      execution_time:it.execution_time,
527
+                      execution_state:it.execution_state,
528
+                      execution_staff:it.execution_staff,
529
+                      check_time:it.check_time,
530
+                      check_state:it.check_state,
531
+                      checker:it.checker,
532
+                      created_time:it.ctime,
533
+                      delivery_way:'',
534
+                      execution_frequency:'',
535
+                      remark:'',
536
+                      id:it.id,
537
+                      patient_id:it.patient_id,
538
+                      parent_id:0,
539
+                      groupno:0
540
+                    }
541
+                    // let advice = []
542
+                    // advice.push(obj)
543
+                    // let advices = {
544
+                    //   advices: advice,
545
+                    //   group_no: 123
546
+                    // }
547
+
548
+                //     // console.log(11111,item.new_advice)
549
+                    item.doctor_advice.push(obj)
550
+                  })
551
+                }
552
+              })
553
+            }
554
+            console.log('resp.data.hisAdvices',resp.data.hisAdvices)
515 555
            if(config.is_open == 0 || config.is_open == 2){
516 556
             this.show = true
517 557
             this.showOne = false
@@ -638,7 +678,7 @@ export default {
638 678
             this.indexInfoList = newArr
639 679
            }
640 680
          }
641
-        //  console.log("列表22222",this.scheduleMap)
681
+         console.log("列表22222",this.indexInfoList)
642 682
         })
643 683
     },
644 684
     getValue: function(val) {
@@ -878,7 +918,7 @@ export default {
878 918
             tempSingleDoseDesc =
879 919
               ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
880 920
           } else {
881
-            tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
921
+            tempSingleDoseDesc = row.single_dose ? row.single_dose : '' + '' + row.single_dose_unit ? row.single_dose_unit : ''
882 922
           }
883 923
         }
884 924
 
@@ -887,7 +927,12 @@ export default {
887 927
         }
888 928
 
889 929
         if (isChild == 1) {
890
-          // 不是子药
930
+          // 不是子药 
931
+          console.log(tempDrugSpecDesc)
932
+          console.log(tempPrescribingNumberDesc)
933
+          console.log(tempSingleDoseDesc)
934
+          console.log(11,row.delivery_way)
935
+          console.log(22,row.execution_frequency)
891 936
 
892 937
           return (
893 938
             row.advice_name +

+ 37 - 0
src/xt_pages/dialysis/doctorAdvicePrint.vue Parādīt failu

@@ -285,6 +285,43 @@ export default {
285 285
                 if (resp.state == 1) {
286 286
                 this.admin_user = resp.data.adminUser
287 287
                 var config = resp.data.config
288
+                let project_config = resp.data.project_config
289
+                console.log('project_config',resp.data.project_config)
290
+                if(project_config.is_open == 1){
291
+                    this.project = resp.data.project
292
+                    resp.data.hisAdvices.map((item,index) => {
293
+                    item.new_advice = item.new_advice ? item.new_advice : []
294
+                    if(this.project[index].project.length > 0){
295
+                        this.project[index].project.map(it => {
296
+                        let obj = {
297
+                            advice_doctor: it.doctor,
298
+                            start_time:it.start_time,
299
+                            advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
300
+                            execution_time:it.execution_time,
301
+                            execution_state:it.execution_state,
302
+                            execution_staff:it.execution_staff,
303
+                            check_time:it.check_time,
304
+                            check_state:it.check_state,
305
+                            checker:it.checker,
306
+                            created_time:it.ctime,
307
+                            remark:'',
308
+                            id:it.id,
309
+                            parent_id:0,
310
+                            groupno:0
311
+                        }
312
+                        // let advice = []
313
+                        // advice.push(obj)
314
+                        // let advices = {
315
+                        //   advices: advice,
316
+                        //   group_no: 123
317
+                        // }
318
+
319
+                        // console.log(11111,item.new_advice)
320
+                        item.doctor_advice.push(obj)
321
+                        })
322
+                    }
323
+                    })
324
+                }
288 325
                 if(config.is_open == 0 || config.is_open == 2){
289 326
                 
290 327
                    var schedulesArr = resp.data.scheduals

+ 2 - 2
src/xt_pages/hospitalStation/components/registerDialog.vue Parādīt failu

@@ -155,7 +155,7 @@
155 155
         </div>
156 156
       </el-form-item>
157 157
 
158
-      <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
158
+      <el-form-item label="挂号类型:" :validate-event="is_Name">
159 159
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
160 160
           <el-option
161 161
             v-for="item in register"
@@ -330,7 +330,7 @@
330 330
           name: [{required: true, message: "患者姓名不能为空", trigger: 'blur'}],
331 331
           gender: [{required: true, message: "患者性别不能为空", trigger: 'blur'}],
332 332
           id_card: [{required: true, message: '证件号码不能为空', trigger: 'blur'}],
333
-          register: [{required: true, message: '请选择挂号类型', trigger: 'blur'}],
333
+          // register: [{required: true, message: '请选择挂号类型', trigger: 'blur'}],
334 334
           doctor: [{required: true, message: '请选择医生', trigger: 'blur'}],
335 335
           department: [{required: true, message: '请填写科室', trigger: 'blur'}],
336 336
           age: [{required: true, message: "患者年龄不能为空", trigger: 'blur'}],

+ 1 - 2
src/xt_pages/outpatientCharges/components/registerDialog.vue Parādīt failu

@@ -155,7 +155,7 @@
155 155
                 </div>
156 156
             </el-form-item>
157 157
 
158
-            <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
158
+            <el-form-item label="挂号类型:" :validate-event="is_Name">
159 159
                 <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
160 160
                     <el-option
161 161
                             v-for="item in register"
@@ -327,7 +327,6 @@
327 327
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
328 328
           gender: [{ required: true, message: '患者性别不能为空', trigger: 'blur' }],
329 329
           id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
330
-          register: [{ required: true, message: '请选择挂号类型', trigger: 'blur' }],
331 330
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
332 331
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
333 332
           age: [{ required: true, message: '患者年龄不能为空', trigger: 'blur' }],

+ 106 - 102
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Parādīt failu

@@ -564,7 +564,9 @@
564 564
           patient_id: this.patientInfo.id,
565 565
           start_time: val,
566 566
           end_time: this.other_end_time,
567
-          p_type:2
567
+          p_type:2,
568
+          type: this.radio,
569
+
568 570
 
569 571
         };
570 572
         getDayOrMonthHisPrescription(params).then(response => {
@@ -1040,105 +1042,109 @@
1040 1042
                   })
1041 1043
 
1042 1044
                 } else {
1043
-                  that.radio = 1
1044
-                  that.$refs.register.hide();
1045
-                  let params = {
1046
-                    'record_date': that.record_date
1047
-                  };
1048
-                  getChargeHisPatientList(params).then(response => {
1049
-                    if (response.data.state == 0) {
1050
-                      that.$message.error(response.data.msg);
1051
-                      return false
1052
-                    } else {
1053
-
1054
-                      that.loadingone = false;
1055
-                      that.$message({ message: '挂号成功', type: 'success' });
1056
-
1057
-                      that.patientTableData = []
1058
-                      that.all_table_data = []
1059
-                      that.hisPatientDatas = []
1060
-                      let one_count = 0
1061
-                      let two_count = 0
1062
-                      let three_count = 0
1063
-                      for (let i = 0; i < response.data.data.list.length; i++) {
1064
-                        if (response.data.data.list[i].his_patient.length == 0) { //没挂号
1065
-                          if (response.data.data.list[i].prescription.length > 0) {
1066
-                            let obj = {
1067
-                              id: response.data.data.list[i].id,
1068
-                              name: response.data.data.list[i].name,
1069
-                              number: '',
1070
-                              order_status: 0,
1071
-                              order_number: '',
1072
-                              his_patient_id: 0
1073
-                            }
1074
-
1075
-                            that.all_table_data.push(obj)
1076
-                          }
1077
-
1078
-                        } else { //挂号
1079
-                          if (response.data.data.list[i].his_patient.length == 1) {
1080
-                            let obj = {
1081
-                              id: response.data.data.list[i].id,
1082
-                              name: response.data.data.list[i].name,
1083
-                              number: response.data.data.list[i].his_patient[0].number,
1084
-                              order_status: response.data.data.list[i].his_patient[0].order.order_status,
1085
-                              his_patient_id: response.data.data.list[i].his_patient[0].id,
1086
-                              order_number: response.data.data.list[i].his_patient[0].order.number,
1087
-                              order_id: response.data.data.list[i].his_patient[0].order.id
1088
-                            }
1089
-                            that.all_table_data.push(obj)
1090
-
1091
-                          }
1092
-
1093
-                          if (response.data.data.list[i].his_patient.length > 1) {
1094
-                            for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1095
-                              let obj = {
1096
-                                id: response.data.data.list[i].id,
1097
-                                name: response.data.data.list[i].name,
1098
-                                number: response.data.data.list[i].his_patient[b].number,
1099
-                                order_status: response.data.data.list[i].his_patient[b].order.order_status,
1100
-                                his_patient_id: response.data.data.list[i].his_patient[b].id,
1101
-                                order_number: response.data.data.list[i].his_patient[b].order.number,
1102
-                                order_id: response.data.data.list[i].his_patient[b].order.id
1103
-                              }
1104
-                              that.all_table_data.push(obj)
1105
-
1106
-                            }
1107
-                          }
1108
-                        }
1109
-
1110
-                      }
1111
-
1112
-                      for (let i = 0; i < that.all_table_data.length; i++) {
1113
-                        if (that.all_table_data[i].his_patient_id > 0) {
1114
-                          that.hisPatientDatas.push(this.all_table_data[i])
1115
-                        }
1116
-                      }
1117
-
1118
-                      for (let i = 0; i < that.all_table_data.length; i++) {
1119
-                        if (that.all_table_data[i].order_status == 0 || that.all_table_data[i].order_status == 1 || that.all_table_data[i].order_status == 3) {
1120
-                          one_count = one_count + 1
1121
-                          that.patientTableData.push(that.all_table_data[i])
1122
-                        }
1123
-                        if (that.all_table_data[i].order_status == 2) {
1124
-                          two_count = two_count + 1
1125
-                          that.patientTableData.push(that.all_table_data[i])
1126
-                        }
1127
-                      }
1128
-                      that.cal_one = one_count
1129
-                      that.cal_two = two_count
1130
-                      that.cal_three = three_count
1131
-                      that.current_index = 0
1132
-                      for (let i = 0; i < that.patientTableData.length; i++) {
1133
-                        if (that.patientTableData[i].his_patient_id == that.hisPatientInfo.id) {
1134
-                          that.$refs.tab.setCurrentRow(that.patientTableData[i])
1135
-                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order_number, that.patientTableData[i].his_patient_id)
1136
-                        }
1137
-                      }
1138
-                      var his_info = response.data.data.his_info
1139
-                      that.hisPatientInfo = his_info
1140
-                    }
1141
-                  })
1045
+                  that.changeRadio(1)
1046
+                  that.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1047
+                  that.$refs.register.hide()
1048
+                  that.loadingone = false
1049
+                  // that.radio = 1
1050
+                  // that.$refs.register.hide();
1051
+                  // let params = {
1052
+                  //   'record_date': that.record_date
1053
+                  // };
1054
+                  // getChargeHisPatientList(params).then(response => {
1055
+                  //   if (response.data.state == 0) {
1056
+                  //     that.$message.error(response.data.msg);
1057
+                  //     return false
1058
+                  //   } else {
1059
+                  //
1060
+                  //     that.loadingone = false;
1061
+                  //     that.$message({ message: '挂号成功', type: 'success' });
1062
+                  //
1063
+                  //     that.patientTableData = []
1064
+                  //     that.all_table_data = []
1065
+                  //     that.hisPatientDatas = []
1066
+                  //     let one_count = 0
1067
+                  //     let two_count = 0
1068
+                  //     let three_count = 0
1069
+                  //     for (let i = 0; i < response.data.data.list.length; i++) {
1070
+                  //       if (response.data.data.list[i].his_patient.length == 0) { //没挂号
1071
+                  //         if (response.data.data.list[i].prescription.length > 0) {
1072
+                  //           let obj = {
1073
+                  //             id: response.data.data.list[i].id,
1074
+                  //             name: response.data.data.list[i].name,
1075
+                  //             number: '',
1076
+                  //             order_status: 0,
1077
+                  //             order_number: '',
1078
+                  //             his_patient_id: 0
1079
+                  //           }
1080
+                  //
1081
+                  //           that.all_table_data.push(obj)
1082
+                  //         }
1083
+                  //
1084
+                  //       } else { //挂号
1085
+                  //         if (response.data.data.list[i].his_patient.length == 1) {
1086
+                  //           let obj = {
1087
+                  //             id: response.data.data.list[i].id,
1088
+                  //             name: response.data.data.list[i].name,
1089
+                  //             number: response.data.data.list[i].his_patient[0].number,
1090
+                  //             order_status: response.data.data.list[i].his_patient[0].order.order_status,
1091
+                  //             his_patient_id: response.data.data.list[i].his_patient[0].id,
1092
+                  //             order_number: response.data.data.list[i].his_patient[0].order.number,
1093
+                  //             order_id: response.data.data.list[i].his_patient[0].order.id
1094
+                  //           }
1095
+                  //           that.all_table_data.push(obj)
1096
+                  //
1097
+                  //         }
1098
+                  //
1099
+                  //         if (response.data.data.list[i].his_patient.length > 1) {
1100
+                  //           for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1101
+                  //             let obj = {
1102
+                  //               id: response.data.data.list[i].id,
1103
+                  //               name: response.data.data.list[i].name,
1104
+                  //               number: response.data.data.list[i].his_patient[b].number,
1105
+                  //               order_status: response.data.data.list[i].his_patient[b].order.order_status,
1106
+                  //               his_patient_id: response.data.data.list[i].his_patient[b].id,
1107
+                  //               order_number: response.data.data.list[i].his_patient[b].order.number,
1108
+                  //               order_id: response.data.data.list[i].his_patient[b].order.id
1109
+                  //             }
1110
+                  //             that.all_table_data.push(obj)
1111
+                  //
1112
+                  //           }
1113
+                  //         }
1114
+                  //       }
1115
+                  //
1116
+                  //     }
1117
+                  //
1118
+                  //     for (let i = 0; i < that.all_table_data.length; i++) {
1119
+                  //       if (that.all_table_data[i].his_patient_id > 0) {
1120
+                  //         that.hisPatientDatas.push(this.all_table_data[i])
1121
+                  //       }
1122
+                  //     }
1123
+                  //
1124
+                  //     for (let i = 0; i < that.all_table_data.length; i++) {
1125
+                  //       if (that.all_table_data[i].order_status == 0 || that.all_table_data[i].order_status == 1 || that.all_table_data[i].order_status == 3) {
1126
+                  //         one_count = one_count + 1
1127
+                  //         that.patientTableData.push(that.all_table_data[i])
1128
+                  //       }
1129
+                  //       if (that.all_table_data[i].order_status == 2) {
1130
+                  //         two_count = two_count + 1
1131
+                  //         that.patientTableData.push(that.all_table_data[i])
1132
+                  //       }
1133
+                  //     }
1134
+                  //     that.cal_one = one_count
1135
+                  //     that.cal_two = two_count
1136
+                  //     that.cal_three = three_count
1137
+                  //     that.current_index = 0
1138
+                  //     for (let i = 0; i < that.patientTableData.length; i++) {
1139
+                  //       if (that.patientTableData[i].his_patient_id == that.hisPatientInfo.id) {
1140
+                  //         that.$refs.tab.setCurrentRow(that.patientTableData[i])
1141
+                  //         that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order_number, that.patientTableData[i].his_patient_id)
1142
+                  //       }
1143
+                  //     }
1144
+                  //     var his_info = response.data.data.his_info
1145
+                  //     that.hisPatientInfo = his_info
1146
+                  //   }
1147
+                  // })
1142 1148
                 }
1143 1149
               }
1144 1150
             })
@@ -1158,8 +1164,6 @@
1158 1164
               this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1159 1165
               this.$refs.register.hide()
1160 1166
               this.loadingone = false
1161
-              var his_info = response.data.data.his_info
1162
-              this.hisPatientInfo = his_info
1163 1167
             }
1164 1168
           })
1165 1169
         }

+ 2 - 2
src/xt_pages/outpatientCharges/treatPrint.vue Parādīt failu

@@ -13,7 +13,7 @@
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
15 15
         <div class='dialysisPage'>
16
-            <printOne v-if="org_id != 4" v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
16
+            <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
17 17
             <printTwo v-else v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printTwo>
18 18
 
19 19
         </div>
@@ -86,7 +86,7 @@ export default {
86 86
       var ptime = Math.round(new Date().getTime() / 1000);
87 87
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
88 88
 
89
-      if(this.org_id == 4){
89
+      if(this.org_id == 10138){
90 90
         const style =
91 91
         '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
92 92
         printJS({

+ 15 - 18
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Parādīt failu

@@ -272,10 +272,11 @@
272 272
                                         </el-table-column>
273 273
                                         <el-table-column label="库存" width="60">
274 274
                                             <template slot-scope="scope">
275
-                                                {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}} / {{
276
-                                                scope.row.total * (scope.row.dose / scope.row.min_number)}}
277
-                                                {{(scope.row.total * (scope.row.dose /
278
-                                                scope.row.min_number))?scope.row.max_unit:''}}
275
+                                                {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}
276
+                                                <!--/ {{-->
277
+                                                <!--scope.row.total * (scope.row.dose / scope.row.min_number)}}-->
278
+                                                <!--{{(scope.row.total * (scope.row.dose /-->
279
+                                                <!--scope.row.min_number))?scope.row.max_unit:''}}-->
279 280
                                             </template>
280 281
                                         </el-table-column>
281 282
                                         <el-table-column label="单价" width="40">
@@ -365,14 +366,6 @@
365 366
                                         <el-table-column label="规格" width="60">
366 367
                                             <template slot-scope="scope">{{ scope.row.single_dose }}</template>
367 368
                                         </el-table-column>
368
-                                        <el-table-column label="库存" width="60">
369
-                                            <template slot-scope="scope">
370
-                                                {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}} / {{
371
-                                                scope.row.total * (scope.row.dose / scope.row.min_number)}}
372
-                                                {{(scope.row.total * (scope.row.dose /
373
-                                                scope.row.min_number))?scope.row.max_unit:''}}
374
-                                            </template>
375
-                                        </el-table-column>
376 369
                                         <el-table-column label="单价" width="40">
377 370
                                             <template slot-scope="scope">{{ scope.row.price }}</template>
378 371
                                         </el-table-column>
@@ -1893,7 +1886,7 @@
1893 1886
             this.doctorValue = hisPatientInfo.doctor
1894 1887
             this.departmentValue = hisPatientInfo.department
1895 1888
           } else {
1896
-            if (admin_info.user_type == 2 || admin_info.user_type == 1) {
1889
+            if (admin_info.user_type == 2) {
1897 1890
               this.doctorValue = admin_info.admin_user_id
1898 1891
               if (admin_info.department_id == 0) {
1899 1892
                 if (this.department.length > 0) {
@@ -2056,11 +2049,12 @@
2056 2049
                 this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2057 2050
                 this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2058 2051
                 this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2052
+                this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2059 2053
 
2060 2054
               }
2061 2055
 
2062 2056
               for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2063
-                this.prescriptions[i].addition[b].id = parseInt(this.prescriptions[i].addition[b].id)
2057
+                this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2064 2058
                 this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
2065 2059
                 this.prescriptions[i].addition[b].price = this.prescriptions[i].addition[b].price.toString()
2066 2060
                 this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
@@ -2485,12 +2479,12 @@
2485 2479
                   advice_id: 0,
2486 2480
                   id: temp3[b].id,
2487 2481
                   drug_name: temp3[b].advice_name,
2488
-                  single_dose: temp3[b].single_dose,
2482
+                  single_dose: temp3[b].single_dose.toString(),
2489 2483
                   delivery_way: temp3[b].delivery_way,
2490 2484
                   execution_frequency: temp3[b].execution_frequency,
2491 2485
                   retail_price: temp3[b].drug.retail_price.toString(),
2492 2486
                   remark: '',
2493
-                  day: 1,
2487
+                  day: "1",
2494 2488
                   prescribing_number: temp3[b].prescribing_number,
2495 2489
                   single_dose_unit: temp3[b].drug.min_unit,
2496 2490
                   prescribing_number_unit: temp3[b].drug.max_unit,
@@ -2500,6 +2494,7 @@
2500 2494
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2501 2495
                   obj.prescribing_number = 1
2502 2496
                 }
2497
+
2503 2498
                 this.prescriptions[i].advices.push(obj)
2504 2499
               }
2505 2500
               this.curStatus = 1
@@ -2527,9 +2522,11 @@
2527 2522
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2528 2523
                   obj.prescribing_number = 1
2529 2524
                 }
2525
+                console.log('obj',obj)
2530 2526
                 this.prescriptions[i].advices.push(obj)
2531 2527
               }
2532 2528
               this.curStatus = 1
2529
+
2533 2530
             }
2534 2531
 
2535 2532
             // if(this.activeName == 2){
@@ -2550,10 +2547,10 @@
2550 2547
                   project_id: temp2[b].id,
2551 2548
                   project_name: temp2[b].project_name,
2552 2549
                   statistical_classification: temp2[b].statistical_classification,
2553
-                  single_dose: temp2[b].single_dose,
2550
+                  single_dose: temp2[b].single_dose.toString(),
2554 2551
                   delivery_way: temp2[b].delivery_way,
2555 2552
                   execution_frequency: temp2[b].execution_frequency,
2556
-                  number_days: temp2[b].number_days,
2553
+                  number_days: temp2[b].number_days.toString(),
2557 2554
                   total: temp2[b].total,
2558 2555
                   price: temp2[b].price,
2559 2556
                   remark: '',

+ 3 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Parādīt failu

@@ -1297,6 +1297,7 @@
1297 1297
                   single_dose_unit: temp3[b].drug.min_unit,
1298 1298
                   prescribing_number_unit: temp3[b].drug.max_unit,
1299 1299
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
1300
+
1300 1301
                 }
1301 1302
 
1302 1303
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
@@ -1428,7 +1429,8 @@
1428 1429
                     single_dose_unit: prescription.advices[b].single_dose_unit,
1429 1430
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1430 1431
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1431
-                    id: prescription.advices[b].drug_id
1432
+                    id: prescription.advices[b].drug_id,
1433
+                    drug: prescription.advices[b].drug,
1432 1434
                   }
1433 1435
                   tempAdvice.push(obj)
1434 1436
                 }

+ 3 - 3
src/xt_pages/outpatientDoctorStation/print.vue Parādīt failu

@@ -13,11 +13,11 @@
13 13
       </template>
14 14
             
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <div v-if="org_id != 4">
16
+      <div v-if="org_id != 10138">
17 17
         <printOne v-if="org_id != 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18 18
         <printFour v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19 19
       </div>
20
-      <div>
20
+      <div v-else>
21 21
         <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
22 22
       </div>
23 23
     </div>
@@ -75,7 +75,7 @@ export default {
75 75
       var ptime = Math.round(new Date().getTime() / 1000);
76 76
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
77 77
       
78
-      if(this.org_id == 4){
78
+      if(this.org_id == 10138){
79 79
         
80 80
         const style =
81 81
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatPrint.vue Parādīt failu

@@ -13,7 +13,7 @@
13 13
       </template>
14 14
             
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne v-if="org_id != 4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
+        <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17 17
         <printTwo v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>
18 18
       </div>
19 19
   </div>
@@ -65,7 +65,7 @@ export default {
65 65
       var ptime = Math.round(new Date().getTime() / 1000);
66 66
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
67 67
 
68
-      if(this.org_id == 4){
68
+      if(this.org_id == 10138){
69 69
         
70 70
         const style =
71 71
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';

+ 11 - 11
src/xt_pages/outpatientRegistration/index.vue Parādīt failu

@@ -125,7 +125,7 @@
125 125
             <div class="nameTitle">患者挂号信息:</div>
126 126
             <div class="formMain">
127 127
                 <el-form class="basicForm" :model="form" :rules="rules2" ref="form" label-width="100px">
128
-                    <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
128
+                    <el-form-item label="挂号类型:" :validate-event="is_Name">
129 129
                         <el-select v-model="form.register" placeholder="请选择" @change="changeReg">
130 130
                             <el-option
131 131
                                     v-for="item in his_registers"
@@ -315,16 +315,16 @@
315 315
             <div class="nameTitle">患者挂号信息:</div>
316 316
             <div class="formMain">
317 317
                 <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
318
-                    <el-form-item label="挂号类型:" >
319
-                        <el-select v-model="form.register" placeholder="请选择">
320
-                            <el-option
321
-                                    v-for="item in his_registers"
322
-                                    :key="item.value"
323
-                                    :label="item.label"
324
-                                    :value="item.value">
325
-                            </el-option>
326
-                        </el-select>
327
-                    </el-form-item>
318
+                    <!--<el-form-item label="挂号类型:" >-->
319
+                        <!--<el-select v-model="form.register" placeholder="请选择">-->
320
+                            <!--<el-option-->
321
+                                    <!--v-for="item in his_registers"-->
322
+                                    <!--:key="item.value"-->
323
+                                    <!--:label="item.label"-->
324
+                                    <!--:value="item.value">-->
325
+                            <!--</el-option>-->
326
+                        <!--</el-select>-->
327
+                    <!--</el-form-item>-->
328 328
 
329 329
                     <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
330 330
                         <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""

+ 23 - 19
src/xt_pages/stock/Dialog/goodInfoDailog.vue Parādīt failu

@@ -51,7 +51,7 @@
51 51
                 </el-option>
52 52
               </el-select>
53 53
             </el-form-item>
54
-           
54
+
55 55
            <div style="width:100%;">
56 56
               <div><span style="color:red;">*</span>单位&规格: <span style="color:#999">例如:FX80 * 60盒</span></div>
57 57
           </div>
@@ -73,7 +73,7 @@
73 73
                     </el-option>
74 74
                   </el-select>
75 75
               </el-form-item> -->
76
-            
76
+
77 77
               <el-form-item prop="packing_unit" class="noMargin">
78 78
                 <el-select v-model="form.packing_unit" style="width:160px;" placeholder="包装单位" @change="changePackingUnit">
79 79
                   <el-option
@@ -85,9 +85,9 @@
85 85
                 </el-select>
86 86
               </el-form-item>
87 87
             </div>
88
-                       
88
+
89 89
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
90
-             
90
+
91 91
                <el-select v-model="form.manufacturer" style="width:100%;" filterable placeholder="请选择">
92 92
                   <el-option
93 93
                     v-for="(item,index) in form.manufacturers"
@@ -113,7 +113,7 @@
113 113
             <el-form-item label="拆零零售价 : " prop="retail_price">
114 114
               <el-input v-model="form.retail_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
115 115
             </el-form-item>
116
-         
116
+
117 117
             <el-form-item label="进货价 : " prop="buy_price">
118 118
               <el-input v-model="form.buy_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
119 119
             </el-form-item>
@@ -165,7 +165,7 @@
165 165
                 </el-option>
166 166
               </el-select>
167 167
             </el-form-item>
168
-          
168
+
169 169
             <el-form-item label="状态 : " prop="good_status">
170 170
               <el-checkbox-group v-model="good_status">
171 171
                 <el-checkbox label="停用">停用</el-checkbox>
@@ -188,7 +188,7 @@
188 188
               </el-select>
189 189
             </el-form-item>
190 190
 
191
-          
191
+
192 192
 
193 193
             <el-form-item label="特殊医用材料标志:">
194 194
               <el-select v-model="form.special_medical " style="width:160px;" placeholder="请选择">
@@ -201,10 +201,10 @@
201 201
               </el-select>
202 202
             </el-form-item>
203 203
 
204
-            
204
+
205 205
 
206 206
            <el-form-item label="经销商 : " style="width:100%">
207
-             
207
+
208 208
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
209 209
                   <el-option
210 210
                     v-for="(item,index) in dealer"
@@ -225,7 +225,7 @@
225 225
       <el-tab-pane label="扩展数据" name="second">
226 226
         <el-form :model="form" label-width="120px"
227 227
                  style="display: flex;flex-wrap: wrap;justify-content: space-between;">
228
-         
228
+
229 229
           <el-form-item label="标签:" prop="sign">
230 230
             <el-select v-model="form.sign" style="width:160px;" placeholder="请选择">
231 231
               <el-option
@@ -292,7 +292,7 @@
292 292
           <el-form-item label="代理商:" prop="agent">
293 293
             <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
294 294
           </el-form-item>
295
-         
295
+
296 296
           <el-form-item label="耗材编号:" prop="good_number">
297 297
             <el-input v-model="form.good_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
298 298
           </el-form-item>
@@ -383,6 +383,7 @@
383 383
           packing_price:'',
384 384
           default_count_unit:"",
385 385
           min_unit:"",
386
+          total:"",
386 387
         },
387 388
 
388 389
         rules: {
@@ -463,10 +464,10 @@
463 464
           if(form.packing_unit == arr[j].name){
464 465
               this.unitList.push(arr[j])
465 466
             }
466
-          } 
467
+          }
467 468
           console.log("列表222",this.unitList)
468 469
         }
469
-       
470
+
470 471
         this.visible = true
471 472
         this.good_status =[]
472 473
         this.getlist()
@@ -512,6 +513,7 @@
512 513
               packing_price:'',
513 514
               default_count_unit:"",
514 515
               min_unit:"",
516
+              total:"",
515 517
             }
516 518
           this.good_status = []
517 519
           for (let key in tempform) {
@@ -554,7 +556,7 @@
554 556
           });
555 557
       },
556 558
       getValue: function() {
557
-        
559
+
558 560
         const form = {}
559 561
         form['specification_name'] = this.form.specification_name
560 562
         form['good_unit'] = this.form.good_unit
@@ -599,6 +601,8 @@
599 601
         form["packing_unit"]= this.form.packing_unit
600 602
         form["packing_price"] = this.form.packing_price
601 603
         form["default_count_unit"] = this.form.default_count_unit
604
+        form["total"] = this.form.total
605
+
602 606
         return form
603 607
       }, changeSelected: function(val) {
604 608
         console.log(val)
@@ -608,10 +612,10 @@
608 612
              page:this.page,
609 613
              limit:this.limit
610 614
           }
611
-        
615
+
612 616
         getManufacturerList(params).then(response=>{
613 617
            var manufacturerList =   response.data.data.manufacturer
614
-         
618
+
615 619
            this.manufacturerList = manufacturerList
616 620
         })
617 621
       },
@@ -622,7 +626,7 @@
622 626
           return false;
623 627
         } else {
624 628
           this.dealer = response.data.data.dealer;
625
-          
629
+
626 630
         }
627 631
        });
628 632
       },
@@ -655,7 +659,7 @@
655 659
            this.unitList.push(arr[i])
656 660
           }
657 661
         }
658
-        
662
+
659 663
       },
660 664
       changePackingUnit(val){
661 665
         if(this.form.min_unit == val){
@@ -681,7 +685,7 @@
681 685
       visible(val) {
682 686
         this.form = this.formValue
683 687
         this.good_unit = this.formValue.good_unit
684
-      
688
+
685 689
         if (this.isCreated == 1) {
686 690
           this.good_unit = ''
687 691
         }