28169 před 1 rokem
rodič
revize
b9dae075e6

+ 3 - 2
src/xt_pages/Pharmacy/PatientDispensing.vue Zobrazit soubor

142
               </el-option>
142
               </el-option>
143
             </el-select>
143
             </el-select>
144
           </div>
144
           </div>
145
+          
145
 
146
 
146
           <div>
147
           <div>
147
             <el-button type="primary" @click="toExport" v-if="state == 2"
148
             <el-button type="primary" @click="toExport" v-if="state == 2"
533
         if (res.data.state == 1) {
534
         if (res.data.state == 1) {
534
            var list = res.data.data.list;
535
            var list = res.data.data.list;
535
            console.log("hhhhawoowowow",list)
536
            console.log("hhhhawoowowow",list)
536
-          if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 || this.$store.getters.xt_user.org.id == 10387 ){
537
+          if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 || this.$store.getters.xt_user.org.id == 10387 ||  this.$store.getters.xt_user.org.id == 0  ||  this.$store.getters.xt_user.org.id == 10480  ){
537
             this.tableData = []
538
             this.tableData = []
538
             if(list!=null && list.length >0){
539
             if(list!=null && list.length >0){
539
               for(let i=0;i<list.length;i++){
540
               for(let i=0;i<list.length;i++){
544
             }
545
             }
545
 
546
 
546
           }
547
           }
547
-          if(this.$store.getters.xt_user.org.id != 10188 && this.$store.getters.xt_user.org.id != 10217 && this.$store.getters.xt_user.org.id != 10387){
548
+          if(this.$store.getters.xt_user.org.id != 10188 && this.$store.getters.xt_user.org.id != 10217 && this.$store.getters.xt_user.org.id != 10387 && this.$store.getters.xt_user.org.id != 0 && this.$store.getters.xt_user.org.id != 10480 ){
548
             this.tableData = []
549
             this.tableData = []
549
             this.tableData = list
550
             this.tableData = list
550
           }
551
           }

+ 16 - 3
src/xt_pages/data/components/addDrugs.vue Zobrazit soubor

488
                             </el-option>
488
                             </el-option>
489
                         </el-select>
489
                         </el-select>
490
                     </el-form-item>
490
                     </el-form-item>
491
+                    <el-form-item label="是否项目:" prop="is_pharmacy">
492
+                        <el-select v-model="form.is_project" style="width:160px;" placeholder="请选择">
493
+                            <el-option
494
+                                    v-for="item in projectList"
495
+                                    :key="item.id"
496
+                                    :label="item.name"
497
+                                    :value="item.id">
498
+                            </el-option>
499
+                        </el-select>
500
+                    </el-form-item>
491
                     <el-form-item label="" style="visibility: hidden;">
501
                     <el-form-item label="" style="visibility: hidden;">
492
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
502
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
493
                     </el-form-item>
503
                     </el-form-item>
632
           is_pharmacy:1,//是否通过药房发药
642
           is_pharmacy:1,//是否通过药房发药
633
           bbx01:"",
643
           bbx01:"",
634
           bby01:"",
644
           bby01:"",
645
+          is_project:"",
635
         },
646
         },
636
 
647
 
637
         rules: {
648
         rules: {
645
           unval:[{required:true,message:"请填写拆零",trigger:'change'}],
656
           unval:[{required:true,message:"请填写拆零",trigger:'change'}],
646
           min_number:[{required:true,message:"请填写拆零",trigger:'change'}],
657
           min_number:[{required:true,message:"请填写拆零",trigger:'change'}],
647
           packing_unit: [{ required: true, message: '请填写包装单位', trigger: 'change' }],
658
           packing_unit: [{ required: true, message: '请填写包装单位', trigger: 'change' }],
648
-          drug_type: [{ required: true, message: '请填写药品类型', trigger: 'blur' }],
659
+          // drug_type: [{ required: true, message: '请填写药品类型', trigger: 'blur' }],
649
           drug_stock_limit: [{ required: true, message: '请填写库存警戒', trigger: 'blur' }],
660
           drug_stock_limit: [{ required: true, message: '请填写库存警戒', trigger: 'blur' }],
650
           // drug_origin_place: [{ required: true, message: '请填写产地', trigger: 'blur' }],
661
           // drug_origin_place: [{ required: true, message: '请填写产地', trigger: 'blur' }],
651
-          drug_dosage_form: [{ required: true, message: '请填写药品剂型', trigger: 'blur' }],
662
+          // drug_dosage_form: [{ required: true, message: '请填写药品剂型', trigger: 'blur' }],
652
           medical_insurance_level: [{ required: true, message: '请选择医保等级', trigger: 'change' }],
663
           medical_insurance_level: [{ required: true, message: '请选择医保等级', trigger: 'change' }],
653
 
664
 
654
           unit_matrixing: [{ required: true, message: '请填写单位换算', trigger: 'blur' }],
665
           unit_matrixing: [{ required: true, message: '请填写单位换算', trigger: 'blur' }],
657
           packing_price:[{required:true,message:'请填写包装零售价',trigger:'blur'}],
668
           packing_price:[{required:true,message:'请填写包装零售价',trigger:'blur'}],
658
           drug_classify: [{ required: true, message: '请选择药物分类', trigger: 'change' }],
669
           drug_classify: [{ required: true, message: '请选择药物分类', trigger: 'change' }],
659
           drug_dose: [{ required: true, message: '请填写剂量', trigger: 'blur' }],
670
           drug_dose: [{ required: true, message: '请填写剂量', trigger: 'blur' }],
660
-          manufacturer: [{ required: true, message: '请选择生产产商', trigger: 'change' }],
671
+          // manufacturer: [{ required: true, message: '请选择生产产商', trigger: 'change' }],
661
           dealer: [{ required: true, message: '请选择经销商', trigger: 'change' }],
672
           dealer: [{ required: true, message: '请选择经销商', trigger: 'change' }],
662
           prescription_mark: [{ required: true, message: '请选择处方药标志' }],
673
           prescription_mark: [{ required: true, message: '请选择处方药标志' }],
663
           social_security_directory_code: [{ required: true, message: '请填写社保目录编码' }],
674
           social_security_directory_code: [{ required: true, message: '请填写社保目录编码' }],
690
           id: "2",
701
           id: "2",
691
           name: "否"
702
           name: "否"
692
         }],
703
         }],
704
+        projectList:[{id:"1",name:"是"},{id:"2",name:"否"}]
693
       }
705
       }
694
     },
706
     },
695
     props: {
707
     props: {
961
         form['is_pharmacy'] = this.form.is_pharmacy
973
         form['is_pharmacy'] = this.form.is_pharmacy
962
         form['bbx01'] = this.form.bbx01
974
         form['bbx01'] = this.form.bbx01
963
         form['bby01'] = this.form.bby01
975
         form['bby01'] = this.form.bby01
976
+        form['is_project'] = this.form.is_project
964
 
977
 
965
         return form
978
         return form
966
       },
979
       },

+ 6 - 1
src/xt_pages/data/components/drugs.vue Zobrazit soubor

725
               if(this.formValue.drug_classify == 0){
725
               if(this.formValue.drug_classify == 0){
726
                  this.formValue.drug_classify = ""
726
                  this.formValue.drug_classify = ""
727
               }
727
               }
728
-
728
+           
729
+              if(this.formValue.is_project<=0){
730
+                  this.formValue.is_project = ''
731
+              }else{
732
+                this.formValue.is_project = this.formValue.is_project.toString()
733
+              }
729
 
734
 
730
 
735
 
731
               this.$refs.addDrugs.show(id, this.formValue)
736
               this.$refs.addDrugs.show(id, this.formValue)

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Zobrazit soubor

82
           <div class="inline_block">
82
           <div class="inline_block">
83
             病区:
83
             病区:
84
             <div class="under_line" style="width: 50px; text-align: center">
84
             <div class="under_line" style="width: 50px; text-align: center">
85
-              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447 || org_id == 0 || org_id ==10460">{{
85
+              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447 || org_id == 0 || org_id ==10460 || org_id ==10567">{{
86
                 patientInfo.DialysisSchedule.device_zone.name
86
                 patientInfo.DialysisSchedule.device_zone.name
87
                   ? patientInfo.DialysisSchedule.device_zone.name
87
                   ? patientInfo.DialysisSchedule.device_zone.name
88
                   : ""
88
                   : ""
93
           <div class="inline_block" v-if="org_id!=10460">
93
           <div class="inline_block" v-if="org_id!=10460">
94
             床号:
94
             床号:
95
             <div class="under_line" style="width: 50px; text-align: center">
95
             <div class="under_line" style="width: 50px; text-align: center">
96
-              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460 || org_id ==10515">{{
96
+              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460 || org_id ==10515 || org_id == 10567">{{
97
                 dialysisOrder &&
97
                 dialysisOrder &&
98
                 dialysisOrder.DeviceNumber &&
98
                 dialysisOrder.DeviceNumber &&
99
                 dialysisOrder.DeviceNumber.number.length > 0
99
                 dialysisOrder.DeviceNumber.number.length > 0

+ 5 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue Zobrazit soubor

3088
           } else {
3088
           } else {
3089
             this.$refs.multipleTable.clearSelection()
3089
             this.$refs.multipleTable.clearSelection()
3090
           }
3090
           }
3091
-          this.$message.error(row.drug_name + '库存不足')
3092
-          return
3091
+          if (row.is_project == 0 || row.is_project == 2){
3092
+            this.$message.error(row.drug_name + '库存不足')
3093
+            return 
3094
+          }
3095
+        
3093
        }
3096
        }
3094
       }
3097
       }
3095
 
3098
 

+ 6 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

3233
       this.$refs.additionalCharges.show()
3233
       this.$refs.additionalCharges.show()
3234
     },
3234
     },
3235
     selectDrugs(selection, row) {
3235
     selectDrugs(selection, row) {
3236
+    
3236
       // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
3237
       // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
3237
       //     if (row.count <= 0) {
3238
       //     if (row.count <= 0) {
3238
       //       if (selection) {
3239
       //       if (selection) {
3274
         } else {
3275
         } else {
3275
           this.$refs.multipleTable.clearSelection()
3276
           this.$refs.multipleTable.clearSelection()
3276
         }
3277
         }
3277
-        this.$message.error(row.drug_name + '库存不足')
3278
-        return
3278
+        if (row.is_project == 0 || row.is_project == 2){
3279
+          this.$message.error(row.drug_name + '库存不足')
3280
+          return 
3281
+        }
3279
        }
3282
        }
3280
       }
3283
       }
3281
 
3284
 
3555
       this.teamList = row
3558
       this.teamList = row
3556
     },
3559
     },
3557
     selectChange(selection, row) {
3560
     selectChange(selection, row) {
3561
+    
3558
       // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
3562
       // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
3559
       //    if (row.stock_count <= 0) {
3563
       //    if (row.stock_count <= 0) {
3560
       //     if (row.type == 3) {
3564
       //     if (row.type == 3) {

+ 3 - 3
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue Zobrazit soubor

45
         :editable="false"
45
         :editable="false"
46
         style="width: 150px;"
46
         style="width: 150px;"
47
         type="date"
47
         type="date"
48
-        :picker-options="pickerOptions"
48
+       
49
         placeholder="选择日期时间"
49
         placeholder="选择日期时间"
50
         align="right"
50
         align="right"
51
         format="yyyy-MM-dd"
51
         format="yyyy-MM-dd"
57
         prefix-icon="el-icon-date"
57
         prefix-icon="el-icon-date"
58
         @change="changeEndTime"
58
         @change="changeEndTime"
59
         :editable="false"
59
         :editable="false"
60
-        :picker-options="pickerOptions"
60
+        
61
         style="width: 150px;"
61
         style="width: 150px;"
62
         type="date"
62
         type="date"
63
         placeholder="选择日期时间"
63
         placeholder="选择日期时间"
149
 
149
 
150
         pickerOptions: {
150
         pickerOptions: {
151
           disabledDate(time) {
151
           disabledDate(time) {
152
-            let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 1)).getTime() - 24 * 3600 * 1000
152
+            let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 2)).getTime() - 24 * 3600 * 1000
153
             return time.getTime() > Date.now() || time.getTime() < threeMonths
153
             return time.getTime() > Date.now() || time.getTime() < threeMonths
154
 
154
 
155
           }
155
           }

+ 3 - 3
src/xt_pages/qcd/indicatorControlAnalysis/components/personal.vue Zobrazit soubor

65
         :editable="false"
65
         :editable="false"
66
         style="width: 150px;"
66
         style="width: 150px;"
67
         type="date"
67
         type="date"
68
-        :picker-options="pickerOptions"
68
+       
69
         placeholder="选择日期时间"
69
         placeholder="选择日期时间"
70
         align="right"
70
         align="right"
71
         format="yyyy-MM-dd"
71
         format="yyyy-MM-dd"
77
         prefix-icon="el-icon-date"
77
         prefix-icon="el-icon-date"
78
         @change="changeEndTime"
78
         @change="changeEndTime"
79
         :editable="false"
79
         :editable="false"
80
-        :picker-options="pickerOptions"
80
+      
81
         style="width: 150px;"
81
         style="width: 150px;"
82
         type="date"
82
         type="date"
83
         placeholder="选择日期时间"
83
         placeholder="选择日期时间"
147
 
147
 
148
         pickerOptions: {
148
         pickerOptions: {
149
           disabledDate(time) {
149
           disabledDate(time) {
150
-            let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 1)).getTime() - 24 * 3600 * 1000
150
+            let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 2)).getTime() - 24 * 3600 * 1000
151
             return time.getTime() > Date.now() || time.getTime() < threeMonths
151
             return time.getTime() > Date.now() || time.getTime() < threeMonths
152
 
152
 
153
           }
153
           }