mainqaq vor 3 Jahren
Ursprung
Commit
bfa2640ba9

+ 1 - 1
src/xt_pages/role/components/AdminRoleInfoForm.vue Datei anzeigen

@@ -43,7 +43,7 @@
43 43
       <el-form-item label="职位 : ">
44 44
         <el-input v-model="form.user_title_name" placeholder="输入职位"></el-input>
45 45
       </el-form-item>
46
-      
46
+
47 47
       <el-form-item label="介绍 : ">
48 48
         <Tinymce :height="400" menubar ref="editor" v-model="form.intro" :show_upload_img="false"/>
49 49
       </el-form-item>

+ 38 - 38
src/xt_pages/stock/drugs/drugStockOutOrder.vue Datei anzeigen

@@ -60,7 +60,7 @@
60 60
         </div>
61 61
       </div>
62 62
 
63
-      
63
+
64 64
 
65 65
       <div class="cell clearfix">
66 66
         <el-checkbox
@@ -135,8 +135,8 @@
135 135
 
136 136
         <el-table-column label="操作" align="center" width="240">
137 137
           <template slot-scope="scope">
138
-           
139
-         
138
+
139
+
140 140
             <el-tooltip
141 141
               class="item"
142 142
               effect="dark"
@@ -261,7 +261,7 @@
261 261
           </el-table-column>
262 262
           <el-table-column label="批准文号" align="center">
263 263
             <template slot-scope="scope">
264
-             <span v-if="scope.row.number!=''">{{scope.row.number}}</span> 
264
+             <span v-if="scope.row.number!=''">{{scope.row.number}}</span>
265 265
              <span v-if="scope.row.number == '0'"></span>
266 266
             </template>
267 267
           </el-table-column>
@@ -323,7 +323,7 @@
323 323
               <span>{{scope.row.ctime | parseTime('{y}-{m}-{d} {h}:{i}')}} </span>
324 324
             </template>
325 325
           </el-table-column>
326
-      
326
+
327 327
         </el-table>
328 328
       </span>
329 329
       <span slot="footer" class="dialog-footer">
@@ -538,7 +538,7 @@ export default {
538 538
           for (let i = 0; i < response.data.data.list.length; i++) {
539 539
             this.warehouseOutDate.push(response.data.data.list[i]);
540 540
           }
541
-         
541
+
542 542
         }
543 543
       });
544 544
     },
@@ -627,11 +627,11 @@ export default {
627 627
     },
628 628
 
629 629
     handleEdit: function(index, row) {
630
-   
630
+
631 631
       this.$router.push({path:"/drug/out/drugstockoutorderedit?id="+row.id+"&type="+this.type+"&is_sys="+row.is_sys})
632 632
     },
633 633
     handleSearch(val){
634
-      
634
+
635 635
        this.getInitializtion()
636 636
        this.getSinleOrderDetail(val.id,val.warehouse_out_time,val.is_sys)
637 637
        this.list = []
@@ -688,7 +688,7 @@ export default {
688 688
       }
689 689
     },
690 690
     select(selection) {
691
-     
691
+
692 692
       var ids= []
693 693
       for(let i=0;i<selection.length;i++){
694 694
          ids.push(selection[i].id)
@@ -699,7 +699,7 @@ export default {
699 699
     },
700 700
     batchDelete() {
701 701
       console.log("232322323",this.selectedTableData)
702
-      
702
+
703 703
       if (this.selectedTableData.length <= 0) {
704 704
         this.$message.error("请选择要删除的记录");
705 705
         return;
@@ -718,7 +718,7 @@ export default {
718 718
       }
719 719
       if(idsOne.length > 0){
720 720
         this.$message.error("采购出库数据不能删除!")
721
-        return 
721
+        return
722 722
       }
723 723
       const idStr = ids.join(",");
724 724
       const params = {
@@ -755,7 +755,7 @@ export default {
755 755
     },
756 756
 
757 757
     jump(id){
758
-    
758
+
759 759
       this.GetOrderDetailTwo(id)
760 760
       this.userList=[]
761 761
       this.dialogVisibleTwo = true
@@ -779,13 +779,13 @@ export default {
779 779
               this.userList.push(obj)
780 780
               total = total + response.data.data.list[i].count
781 781
             }
782
-           
782
+
783 783
             this.userList.push({
784 784
               is_total: 1,
785 785
               total: total,
786 786
             })
787 787
 
788
-            
788
+
789 789
           }
790 790
         })
791 791
       },
@@ -845,7 +845,7 @@ export default {
845 845
            var list =   response.data.data.list
846 846
            this.list = list
847 847
            var drugConfig =  response.data.data.drugConfig
848
-         
848
+
849 849
            this.drugConfig = drugConfig
850 850
            var drugList = response.data.data.drugList
851 851
            this.drugList = drugList
@@ -855,8 +855,8 @@ export default {
855 855
       })
856 856
     },
857 857
     getDrugCount(id){
858
-      
859
-      var count = 0 
858
+
859
+      var count = 0
860 860
       for(let i=0;i<this.list.length;i++){
861 861
          if(this.list[i].drug_id == id){
862 862
             count = this.list[i].Total
@@ -897,7 +897,7 @@ export default {
897 897
      for(let i=0;i<this.drugTypeList.length;i++){
898 898
        if(id == this.drugTypeList[i].value){
899 899
            name = this.drugTypeList[i].name
900
-       } 
900
+       }
901 901
      }
902 902
      return name
903 903
    },
@@ -924,13 +924,13 @@ export default {
924 924
          id:id,
925 925
          start_time:start_time,
926 926
        }
927
-      console.log("is_sys22222",is_sys) 
927
+      console.log("is_sys22222",is_sys)
928 928
      getSinleOrderDetail(params).then(response=>{
929 929
         if(response.data.state == 1){
930 930
           this.tableShow = true
931 931
           this.tableList = []
932 932
           var list =  response.data.data.list
933
-         
933
+
934 934
          this.manufacturerList = response.data.data.manufacturerList
935 935
          this.dealerList = response.data.data.dealerList
936 936
          var drugFlowList = response.data.data.drugFlowList
@@ -940,7 +940,7 @@ export default {
940 940
                   drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
941 941
               }
942 942
               if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
943
-                  drugFlowList[i].count = drugFlowList[i].count 
943
+                  drugFlowList[i].count = drugFlowList[i].count
944 944
               }
945 945
 
946 946
            }
@@ -954,7 +954,7 @@ export default {
954 954
                   flowlist[i].count = flowlist[i].count * list[i].min_number
955 955
               }
956 956
               if(flowlist[i].count_unit == flowlist[i].min_unit){
957
-                  flowlist[i].count = flowlist[i].count 
957
+                  flowlist[i].count = flowlist[i].count
958 958
               }
959 959
             }
960 960
             this.drugFlowList = flowlist
@@ -985,15 +985,15 @@ export default {
985 985
     //  console.log("使用明细",params)
986 986
      getAutoDrugDetail(params).then(response=>{
987 987
        if(response.data.state == 1){
988
-        
988
+
989 989
         this.userList = response.data.data.list
990 990
         console.log("自动出库数据",this.userList)
991 991
         if(val.is_sys == 1){
992
-        
992
+
993 993
           this.drugDialogVisible = true
994 994
         }
995 995
         if(val.is_sys == 0){
996
-         
996
+
997 997
           this.drugDialogVisibleTwo = true
998 998
         }
999 999
          var userListOne = response.data.data.outList
@@ -1019,7 +1019,7 @@ export default {
1019 1019
           start_time:this.start_time,
1020 1020
           end_time:this.end_time,
1021 1021
          }
1022
-       
1022
+
1023 1023
         getDrugCountList(params).then(response=>{
1024 1024
           if(response.data.state == 1){
1025 1025
             var countlist =  response.data.data.countList
@@ -1045,7 +1045,7 @@ export default {
1045 1045
           }
1046 1046
         })
1047 1047
       },
1048
-    
1048
+
1049 1049
       getCount(drug_id,min_number,max_unit,min_unit){
1050 1050
         var count= 0
1051 1051
         var str = ""
@@ -1082,12 +1082,12 @@ export default {
1082 1082
               min_str =  total%min_number + min_unit
1083 1083
             }
1084 1084
          }
1085
-        
1085
+
1086 1086
         if (total < min_number){
1087 1087
             str = ""
1088 1088
             min_str = total + min_unit
1089 1089
         }
1090
-       
1090
+
1091 1091
          return str + min_str
1092 1092
       },
1093 1093
       getTotalCountOne(id,min_number,max_unit,min_unit){
@@ -1112,7 +1112,7 @@ export default {
1112 1112
             min_str =  total%min_number + min_unit
1113 1113
           }
1114 1114
         }
1115
-        return str + min_str 
1115
+        return str + min_str
1116 1116
       },
1117 1117
 
1118 1118
       getAllPrice(drug_id,price,min_price){
@@ -1131,9 +1131,9 @@ export default {
1131 1131
             }
1132 1132
            }
1133 1133
          }
1134
-         strprice = str * price 
1135
-         minstrprice = min_str * min_price 
1136
-       
1134
+         strprice = str * price
1135
+         minstrprice = min_str * min_price
1136
+
1137 1137
          total_price = strprice + minstrprice
1138 1138
          return  total_price
1139 1139
       },
@@ -1149,7 +1149,7 @@ export default {
1149 1149
         }
1150 1150
         return arr.join(",")
1151 1151
       },
1152
-    
1152
+
1153 1153
       getExportOutOrderDrugList(){
1154 1154
 
1155 1155
          var params = {
@@ -1194,9 +1194,9 @@ export default {
1194 1194
                 this.exportList[i].dealer = this.dealerList[z].dealer_name
1195 1195
             }
1196 1196
           }
1197
-         
1197
+
1198 1198
         }
1199
-      
1199
+
1200 1200
        import('@/vendor/Export2Excel').then(excel => {
1201 1201
         for(let i=0;i<this.exportList.length;i++){
1202 1202
           for(let j=0;j<this.drugTypeList.length;j++){
@@ -1209,7 +1209,7 @@ export default {
1209 1209
         const filterVal = ['drug_name','drug_type','unit','batch_number', 'count','price','retail_price','total_price','manufacturer','product_date','expiry_date','dealer','number','remark']
1210 1210
 
1211 1211
         // console.log("table",this.exportList)
1212
-         
1212
+
1213 1213
         const data = this.formatJson(filterVal, this.exportList)
1214 1214
         excel.export_json_to_excel({
1215 1215
           header: tHeader,
@@ -1231,7 +1231,7 @@ export default {
1231 1231
           }
1232 1232
         }
1233 1233
         all_price = total * price
1234
-      
1234
+
1235 1235
         return  all_price
1236 1236
       },
1237 1237
   }

+ 24 - 24
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Datei anzeigen

@@ -130,7 +130,7 @@
130 130
                   </el-select>
131 131
                 </div>
132 132
               </el-form-item>
133
-              
133
+
134 134
             </template>
135 135
           </el-table-column>
136 136
          <el-table-column width="120" align="center">
@@ -138,7 +138,7 @@
138 138
               <span>出货价<span style="color: red">*</span></span>
139 139
             </template>
140 140
             <template slot-scope="scope">
141
-            
141
+
142 142
               <el-form-item
143 143
                 :prop="'recordData.' + scope.$index + '.price'"
144 144
                 :rules="tableRules.price"
@@ -380,7 +380,7 @@
380 380
         this.propForm.goods = [];
381 381
 
382 382
         this.propForm.goodType = [];
383
-      }, 
383
+      },
384 384
       GetConfigInfo: function() {
385 385
         const loading = this.$loading({
386 386
           lock: true,
@@ -419,7 +419,7 @@
419 419
         return name;
420 420
       },
421 421
       specificationName: function(drug_id) {
422
-      
422
+
423 423
         let name = "";
424 424
         for (let i = 0; i < this.goodInfo.length; i++) {
425 425
           if (this.goodInfo[i].id == drug_id) {
@@ -432,7 +432,7 @@
432 432
         if(row.supply_cancel_out_id >0){
433 433
          this.$message.error("采购出库数据不能新增!")
434 434
          return
435
-        } 
435
+        }
436 436
         this.unitShow = false
437 437
         if(this.drug_show == true){
438 438
           this.$message.error("自动出库数据不能编辑")
@@ -458,7 +458,7 @@
458 458
          this.$message.error("采购出库数据不能删除!")
459 459
          return
460 460
         }
461
-       
461
+
462 462
         if(this.drug_show == true){
463 463
           this.$message.error("采购出库数据不能编辑")
464 464
           return
@@ -487,7 +487,7 @@
487 487
           }).catch(() => {
488 488
           })
489 489
         }
490
-      }, 
490
+      },
491 491
       // getTime(val, temp) {
492 492
       //   if (val != 0) {
493 493
       //     return uParseTime(val, temp)
@@ -555,7 +555,7 @@
555 555
 
556 556
       back() {
557 557
         this.$router.go(-1)
558
-      }, 
558
+      },
559 559
       submit() {
560 560
         this.$refs['tableForm'].validate((valid) => {
561 561
           if (valid) {
@@ -581,7 +581,7 @@
581 581
                     this.recordInfo.recordData[i].dealer = this.dealerList[z].id
582 582
                  }
583 583
                }
584
-               
584
+
585 585
                for(let y=0;y<this.numberList.length;y++){
586 586
                   if(this.recordInfo.recordData[i].batch_number == this.numberList[y].id){
587 587
                      this.recordInfo.recordData[i].batch_number = this.numberList[y].batch_number
@@ -603,7 +603,7 @@
603 603
               'stockOut': this.recordInfo.recordData
604 604
             }
605 605
             console.log("param23322323233222323",params)
606
-           
606
+
607 607
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
608 608
               if (response.data.state == 0) {
609 609
                 this.$message.error(response.data.msg)
@@ -618,7 +618,7 @@
618 618
                 var min_unit =  response.data.data.min_unit
619 619
                 var max_unit =  response.data.data.max_unit
620 620
                 var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
621
-               loading.close()  
621
+               loading.close()
622 622
               if(msg == 1){
623 623
                 this.$message.error(str + "库存不足,请入库")
624 624
                 loading.close()
@@ -634,7 +634,7 @@
634 634
             return false
635 635
           }
636 636
         })
637
-      }, 
637
+      },
638 638
       GetOrderDetail: function(order_id) {
639 639
         const params = {
640 640
           'id': order_id
@@ -644,7 +644,7 @@
644 644
             this.$message.error(response.data.msg)
645 645
             return false
646 646
           } else {
647
-            
647
+
648 648
 
649 649
             var manulist = response.data.data.manulist
650 650
             this.manufacturerList = manulist
@@ -658,13 +658,13 @@
658 658
               }else{
659 659
                 response.data.data.list[i].number = response.data.data.list[i].number
660 660
               }
661
-              
661
+
662 662
               if(response.data.data.list[i].manufacturer == "0" || response.data.data.list[i].manufacturer == 0){
663 663
                 response.data.data.list[i].manufacturer = ""
664 664
               }else{
665 665
                 response.data.data.list[i].manufacturer = response.data.data.list[i].drug.manufacturer
666 666
               }
667
-              
667
+
668 668
               response.data.data.list[i].price = response.data.data.list[i].price.toString()
669 669
               response.data.data.list[i].retail_price = response.data.data.list[i].price.toString()
670 670
               response.data.data.list[i].count = response.data.data.list[i].count.toString()
@@ -673,7 +673,7 @@
673 673
               }else{
674 674
                 response.data.data.list[i].dealer = response.data.data.list[i].dealer
675 675
               }
676
-             
676
+
677 677
               response.data.data.list[i].product_date = this.getTime(response.data.data.list[i].product_date,"{y}-{h}-{d}")
678 678
               response.data.data.list[i].expiry_date = this.getTime(response.data.data.list[i].expiry_date,"{y}-{h}-{d}")
679 679
               this.recordInfo.recordData.push(response.data.data.list[i])
@@ -693,7 +693,7 @@
693 693
 
694 694
             this.warehouseOut = response.data.data.info
695 695
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
696
-          
696
+
697 697
 
698 698
           }
699 699
 
@@ -729,22 +729,22 @@
729 729
         postSearchDrugList(key).then(response => {
730 730
           if (response.data.state == 1) {
731 731
             searchArray = response.data.data.list;
732
-            
732
+
733 733
              var list = response.data.data.list
734
-            
734
+
735 735
 
736 736
              this.drugList = list
737 737
              var manufacturerList = response.data.data.manufacturerList
738 738
              this.manufacturerList = manufacturerList
739 739
              for(let i=0;i<this.drugList.length;i++){
740
-             
740
+
741 741
                 for(let j=0;j<this.manufacturerList.length;j++){
742 742
                   if(this.drugList[i].manufacturer == this.manufacturerList[j].id){
743 743
                      this.drugList[i].manufacturer = this.manufacturerList[j].manufacturer_name
744 744
                   }
745 745
                 }
746 746
              }
747
-           
747
+
748 748
              cb(this.drugList)
749 749
           } else {
750 750
             cb([])
@@ -784,7 +784,7 @@
784 784
              }
785 785
            }
786 786
         }
787
- 
787
+
788 788
       },
789 789
       getDictionaryDataConfig(module, filed_name) {
790 790
         return getDictionaryDataConfig(module, filed_name)
@@ -799,14 +799,14 @@
799 799
         getDrugBatchNumber(params).then(response=>{
800 800
            if(response.data.state == 1){
801 801
              var list = response.data.data.list
802
-           
802
+
803 803
              this.numberList = list
804 804
            }
805 805
         })
806 806
       }
807 807
     },
808 808
     created() {
809
-      this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
809
+      this.drugTypeList = getDictionaryDataConfig('system','drug_type')
810 810
       this.GetConfigInfo()
811 811
       this.propForm.goodUnit = this.$store.getters.good_unit
812 812
       const order_id = this.$route.query.id

+ 14 - 17
src/xt_pages/supply/components/addGoodOrder.vue Datei anzeigen

@@ -76,7 +76,6 @@
76 76
           <el-button size="small" type="primary" @click="checkGoodOrder" v-if="is_check == 2" >审核</el-button>
77 77
           <el-button size="small" type="primary" @click="MofyGoodOrder" v-if="is_check == 1">反审核</el-button>
78 78
           <el-button size="small" type="primary" @click="toClick" v-if="is_check == 1" >生成采购退货单</el-button>
79
-          <el-button size="small" type="primary" @click="toPrint" v-show="showSix" >打印</el-button>
80 79
         </div>
81 80
       </div>
82 81
 
@@ -562,8 +561,7 @@ export default {
562 561
       warese_out_id: 0,
563 562
       return_remark: "",
564 563
       is_warehouse:0,
565
-      tableDataList:[],
566
-      showSix:false,
564
+      tableDataList:[]
567 565
     };
568 566
   },
569 567
    watch: {
@@ -715,7 +713,7 @@ export default {
715 713
           this.recordInfo.tableList[i].supply_type = val.supply_type;
716 714
           this.recordInfo.tableList[i].supply_specification_name = val.supply_specification_name;
717 715
           this.recordInfo.tableList[i].supply_total = val.supply_total;
718
-          this.recordInfo.tableList[i].min_price = val.min_price  
716
+          this.recordInfo.tableList[i].min_price = val.min_price
719 717
           if (val.supply_count == NaN) {
720 718
             this.recordInfo.tableList[i].supply_count = "";
721 719
           } else {
@@ -801,9 +799,9 @@ export default {
801 799
           min_str = (total % min_number) + min_unit;
802 800
         }
803 801
       }
804
-     
802
+
805 803
       return max_str + min_str;
806
-    
804
+
807 805
     },
808 806
     getTotalStockCount(arr) {
809 807
       var total_count = 0;
@@ -815,7 +813,7 @@ export default {
815 813
       }else{
816 814
         return ""
817 815
       }
818
-     
816
+
819 817
     },
820 818
 
821 819
     calculate: function (val) {
@@ -855,7 +853,7 @@ export default {
855 853
       }
856 854
       this.discount_amount = discount_amount;
857 855
       if(this.payment > 0) this.count_payment()
858
-      
856
+
859 857
     },
860 858
     count_discount() {
861 859
       this.rate_of_concession = (
@@ -958,7 +956,7 @@ export default {
958 956
           this.tableDataList = []
959 957
           this.tableDataList = orderInfo
960 958
           console.log("changed23323232233232",this.tableDataList)
961
-         
959
+
962 960
         }
963 961
       });
964 962
     },
@@ -1014,7 +1012,7 @@ export default {
1014 1012
               this.number = ""
1015 1013
              }
1016 1014
           }
1017
-          
1015
+
1018 1016
           var params = {
1019 1017
             stockIn: this.recordInfo.tableList,
1020 1018
             return_remake: this.return_remark,
@@ -1026,7 +1024,6 @@ export default {
1026 1024
               this.$message.success("保存成功!");
1027 1025
               this.showOne = false;
1028 1026
               this.showTwo = true;
1029
-              this.showSix = true
1030 1027
               var orderInfo = response.data.data.list;
1031 1028
               var warehouseOut = response.data.data.warehouseOut;
1032 1029
               this.is_check = 2
@@ -1174,7 +1171,7 @@ export default {
1174 1171
           var purcaseOrder = response.data.data.purcaseOrder;
1175 1172
           var goodOrder = response.data.data.goodOrder;
1176 1173
           var drugList = response.data.data.drugList;
1177
-     
1174
+
1178 1175
           var is_warehouse = 0;
1179 1176
           for (let i = 0; i < purcaseOrder.length; i++) {
1180 1177
             for (let j = 0; j < drugList.length; j++) {
@@ -1289,7 +1286,7 @@ export default {
1289 1286
             this.is_check = 2
1290 1287
             this.disabled = false
1291 1288
             this.Reviewed = false
1292
-           
1289
+
1293 1290
           }
1294 1291
           if (msg == 2) {
1295 1292
             var cancelList = response.data.data.cancelList
@@ -1377,13 +1374,13 @@ export default {
1377 1374
                   }
1378 1375
                 }
1379 1376
               }
1380
-            
1377
+
1381 1378
               console.log("arr233232233232",arr)
1382 1379
              if (arr.length == 0) {
1383 1380
                 //未入库
1384 1381
                 var is_warehouse = 2;
1385 1382
                 this.ModefySupplyWarehousing(is_warehouse, this.id);
1386
-                
1383
+
1387 1384
               }
1388 1385
               if (arr.length > 0) {
1389 1386
                 //部分入库
@@ -1454,7 +1451,7 @@ export default {
1454 1451
                }
1455 1452
             }
1456 1453
 
1457
-          
1454
+
1458 1455
 
1459 1456
             let objInfo = {};
1460 1457
             if(cancelOrderList.length >0){
@@ -1469,7 +1466,7 @@ export default {
1469 1466
                 }
1470 1467
               });
1471 1468
               let newArr = Object.values(objInfo)
1472
-            
1469
+
1473 1470
               for (let i = 0; i < cancelOrderList.length; i++) {
1474 1471
                 for (let j = 0; j < newArr.length; j++) {
1475 1472
                   if (cancelOrderList[i].project_id == newArr[j].project_id) {

+ 30 - 30
src/xt_pages/supply/components/addGoodReturn.vue Datei anzeigen

@@ -42,7 +42,7 @@
42 42
             value-format="yyyy-MM-dd"
43 43
             :disabled="disabled"
44 44
           ></el-date-picker>
45
-         
45
+
46 46
           <span>单据编码:{{ number }}</span>
47 47
         </div>
48 48
         <div>
@@ -68,7 +68,7 @@
68 68
             >打印</el-button
69 69
           >
70 70
           <el-button size="small" type="primary" v-if="is_check == 2" @click="checkReturnOrder">审核</el-button>
71
-          <el-button size="small" type="primary" v-if="is_check == 1" @click="modefyReturnOrder">反审核</el-button> 
71
+          <el-button size="small" type="primary" v-if="is_check == 1" @click="modefyReturnOrder">反审核</el-button>
72 72
         </div>
73 73
       </div>
74 74
 
@@ -398,7 +398,7 @@
398 398
         ></span>
399 399
       </div>
400 400
     </div>
401
-    
401
+
402 402
   </div>
403 403
 </template>
404 404
 
@@ -616,7 +616,7 @@ export default {
616 616
             for (let j = 0; j < goodList[i].unitList.length; j++) {
617 617
               goodList[i].unitList[0].name = goodList[i].packing_unit;
618 618
             }
619
-        
619
+
620 620
             goodList[i].sum_count = this.getTotalStockCountTwo(
621 621
               goodList[i].good_warehouse_info
622 622
             );
@@ -727,7 +727,7 @@ export default {
727 727
           total += parseInt(arr[i].stock_max_number+ arr[i].stock_min_number);
728 728
         }
729 729
       }
730
-    
730
+
731 731
       if (total < min_number) {
732 732
         min_str = total + min_unit;
733 733
       }
@@ -765,7 +765,7 @@ export default {
765 765
       }else{
766 766
         return ""
767 767
       }
768
-      
768
+
769 769
     },
770 770
     getTotalStockCountTwo(arr) {
771 771
       var total_count = 0;
@@ -773,7 +773,7 @@ export default {
773 773
         total_count += arr[i].stock_count;
774 774
       }
775 775
       return total_count
776
-    
776
+
777 777
     },
778 778
     calculate: function (val) {
779 779
       if (isNaN(val)) {
@@ -802,7 +802,7 @@ export default {
802 802
       }else{
803 803
         return ""
804 804
       }
805
-     
805
+
806 806
     },
807 807
     addressChange() {
808 808
       var discount_amount = 0;
@@ -813,7 +813,7 @@ export default {
813 813
         ).toFixed(2);
814 814
       }
815 815
       this.discount_amount = discount_amount;
816
-     
816
+
817 817
     },
818 818
     count_discount() {
819 819
       this.rate_of_concession = (
@@ -859,7 +859,7 @@ export default {
859 859
           this.supplier_name = out.supplier_id;
860 860
           this.rate_of_concession = out.rate_of_concession;
861 861
           this.discount_amount = out.discount_amount;
862
-      
862
+
863 863
           this.start_time = this.getTimes(out.document_date);
864 864
           var orderInfo = response.data.data.list;
865 865
           console.log("orderINFO233232232332", orderInfo);
@@ -882,7 +882,7 @@ export default {
882 882
             }
883 883
             orderInfo[i].id = orderInfo[i].id;
884 884
             orderInfo[i].supply_count = orderInfo[i].supply_count;
885
-            
885
+
886 886
             orderInfo[i].supply_price = orderInfo[i].price;
887 887
             orderInfo[i].supply_remake = orderInfo[i].remark;
888 888
             orderInfo[i].type = orderInfo[i].is_source;
@@ -897,7 +897,7 @@ export default {
897 897
             orderInfo[i].warehousing_id = orderInfo[i].warehousing_id
898 898
             orderInfo[i].warehouse_info_id = orderInfo[i].warehouse_info_id
899 899
             orderInfo[i].deposit_rate = ""
900
-           
900
+
901 901
             if (orderInfo[i].is_source == 1) {
902 902
               for (let j = 0; j < drugList.length; j++) {
903 903
                 if (orderInfo[i].project_id == drugList[j].id) {
@@ -924,7 +924,7 @@ export default {
924 924
                   orderInfo[i].max_unit =drugList[j].max_unit
925 925
                   orderInfo[i].min_unit =drugList[j].min_unit
926 926
                 }
927
-               
927
+
928 928
               }
929 929
               orderInfo[i].count = orderInfo[i].count + orderInfo[i].supply_unit
930 930
             }
@@ -961,8 +961,8 @@ export default {
961 961
       var warehouse_out_id = this.$route.query.id
962 962
       this.$refs["tableForm"].validate((valid)=>{
963 963
         if(valid){
964
-        
965
-        
964
+
965
+
966 966
           for(let i=0;i<this.recordInfo.tableList.length;i++){
967 967
             if(this.recordInfo.tableList[i].count == ""){
968 968
               this.$message.error(this.recordInfo.tableList[i].name+"无可退库数量,保存失败!")
@@ -989,7 +989,7 @@ export default {
989 989
               }
990 990
 
991 991
             }
992
-          } 
992
+          }
993 993
            //判断是否在采购单数据中做了删除,如果长度相等则代表没有删除,如果不等则代表做了删除或者新增
994 994
            if(this.recordInfo.tableList.length < this.tableDataList.length){
995 995
              warehouse_out_id = 0
@@ -1007,7 +1007,7 @@ export default {
1007 1007
             return_marke:this.return_remark,
1008 1008
            }
1009 1009
            console.log("2323323232",params)
1010
-          
1010
+
1011 1011
            saveGoodReturnOrder(params,warehouse_out_id,this.start_time,this.rate_of_concession,this.discount_amount,this.arrearage,this.payment,this.supplier_name).then(response=>{
1012 1012
              if(response.data.state == 1){
1013 1013
                 this.loading = false
@@ -1036,16 +1036,16 @@ export default {
1036 1036
                 }else{
1037 1037
                   this.payment = out.payment
1038 1038
                 }
1039
-               
1039
+
1040 1040
                 if(out.arrearage == 0){
1041 1041
                    this.arrearage = ""
1042 1042
                 }else{
1043 1043
                   this.arrearage = out.arrearage
1044 1044
                 }
1045
-               
1045
+
1046 1046
                 this.start_time = this.getTimes(out.document_date)
1047 1047
                 var orderInfo = response.data.data.list
1048
-                
1048
+
1049 1049
                 for(let i=0;i< orderInfo.length;i++){
1050 1050
                   orderInfo[i].name = orderInfo[i].name
1051 1051
                   orderInfo[i].id = orderInfo[i].id
@@ -1078,7 +1078,7 @@ export default {
1078 1078
                             orderInfo[i].unitList[0].name = this.drugList[j].max_unit
1079 1079
                            }
1080 1080
 
1081
-                          
1081
+
1082 1082
 
1083 1083
                         }
1084 1084
                      }
@@ -1097,7 +1097,7 @@ export default {
1097 1097
                 this.recordInfo.tableList = orderInfo
1098 1098
              }
1099 1099
            })
1100
-          
1100
+
1101 1101
         }
1102 1102
       })
1103 1103
     },
@@ -1111,8 +1111,8 @@ export default {
1111 1111
       var warehouse_out_id = this.id;
1112 1112
       this.$refs["tableForm"].validate((valid)=>{
1113 1113
         if(valid){
1114
-         
1115
-        
1114
+
1115
+
1116 1116
           for(let i=0;i<this.recordInfo.tableList.length;i++){
1117 1117
             if(this.recordInfo.tableList[i].count == ""){
1118 1118
               this.$message.error(this.recordInfo.tableList[i].name+"无可退库数量,保存失败!")
@@ -1159,7 +1159,7 @@ export default {
1159 1159
      console.log("审核2322323232323",params)
1160 1160
      checkReturnOrder(params).then(response=>{
1161 1161
        if(response.data.state == 1){
1162
-      
1162
+
1163 1163
         var msg = response.data.data.msg
1164 1164
         if(msg == 1){
1165 1165
           this.loading = false
@@ -1187,7 +1187,7 @@ export default {
1187 1187
               var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
1188 1188
               this.$message.error(str + "库存不足,审核失败!")
1189 1189
           }
1190
-       
1190
+
1191 1191
        }
1192 1192
      })
1193 1193
     },
@@ -1211,7 +1211,7 @@ export default {
1211 1211
     getSupplyCount(supply_count,sum_count,supply_unit,type,min_number,max_unit,min_unit,index){
1212 1212
      console.log("val23322323",supply_count,sum_count,supply_unit,type,min_number,max_unit,min_unit)
1213 1213
       var total_count = 0
1214
-      
1214
+
1215 1215
       if(type == 1){
1216 1216
        if(supply_unit == max_unit){
1217 1217
           total_count = supply_count * min_number
@@ -1236,7 +1236,7 @@ export default {
1236 1236
           }
1237 1237
          }
1238 1238
       }
1239
-       
1239
+
1240 1240
       if(type == 2){
1241 1241
          if(supply_count > sum_count){
1242 1242
           this.$message.error("数量不能大于可退数量!")
@@ -1253,7 +1253,7 @@ export default {
1253 1253
           }
1254 1254
          }
1255 1255
       }
1256
-    
1256
+
1257 1257
     },
1258 1258
     toPrint() {
1259 1259
       this.$router.push({ path: "/good/return/print?&id=" + this.id });
@@ -1292,7 +1292,7 @@ export default {
1292 1292
     tempObj["max_unit"] = ""
1293 1293
     tempObj["min_unit"] = ""
1294 1294
     this.recordInfo.tableList.push(tempObj);
1295
-   
1295
+
1296 1296
     this.getInitOrder();
1297 1297
     if(parseInt(this.$route.query.id) > 0){
1298 1298
 

+ 24 - 57
src/xt_pages/supply/components/addPurchaseOrder.vue Datei anzeigen

@@ -76,7 +76,7 @@
76 76
             @click="checkPurchaseOrder"
77 77
             v-show="showOne">审核
78 78
          </el-button>
79
-        
79
+
80 80
         <el-button
81 81
             size="small"
82 82
             type="primary"
@@ -89,7 +89,7 @@
89 89
             @click="checkReturnOrder"
90 90
             v-if="is_check == 1">反审核
91 91
          </el-button>
92
-         
92
+
93 93
           <el-button
94 94
             size="small"
95 95
             type="primary"
@@ -449,15 +449,6 @@ export default {
449 449
       is_check: 2,
450 450
     };
451 451
   },
452
-
453
-  watch: {
454
-    total_price: function (newval, oldval) {
455
-      if(this.rate_of_concession != ""){
456
-        this.addressChange()
457
-      }
458
-    }
459
-  },
460
-
461 452
   methods: {
462 453
     getInitOrder() {
463 454
       getInitOrder().then((response) => {
@@ -807,12 +798,7 @@ export default {
807 798
       for (let i = 0; i < arr.length; i++) {
808 799
         total_count += arr[i].stock_count;
809 800
       }
810
-      if(total_count > 0){
811
-        return total_count;
812
-      }else{
813
-        return ""
814
-      }
815
-    
801
+      return total_count;
816 802
     },
817 803
     calculate: function (val) {
818 804
       if (isNaN(val)) {
@@ -888,7 +874,17 @@ export default {
888 874
         }
889 875
       });
890 876
     },
891
-  
877
+    getAllPrice() {
878
+      var total_price = 0;
879
+      for (let i = 0; i < this.recordInfo.tableList.length; i++) {
880
+        total_price +=
881
+          this.recordInfo.tableList[i].supply_price *
882
+          this.recordInfo.tableList[i].supply_count;
883
+      }
884
+      this.total_price = total_price;
885
+      this.discount_amount = (this.total_price * this.rate_of_concession * 0.01).toFixed(2);
886
+      return total_price.toFixed(2);
887
+    },
892 888
     count_discount() {
893 889
       this.rate_of_concession = (
894 890
         this.discount_amount /
@@ -924,19 +920,7 @@ export default {
924 920
     getDataConfig(module, filed_name) {
925 921
       return getDataConfig(module, filed_name);
926 922
     },
927
-
928
-     getAllPrice() {
929
-      var total_price = 0;
930
-      for (let i = 0; i < this.recordInfo.tableList.length; i++) {
931
-        total_price +=
932
-          this.recordInfo.tableList[i].supply_price *
933
-          this.recordInfo.tableList[i].supply_count;
934
-      }
935
-      this.total_price = total_price;
936
-      // this.discount_amount = (this.total_price * this.rate_of_concession * 0.01).toFixed(2);
937
-      return total_price.toFixed(2);
938
-    },
939
-     addressChange() {
923
+    addressChange() {
940 924
       var discount_amount = 0;
941 925
       if (this.rate_of_concession > 0) {
942 926
         discount_amount = (
@@ -945,7 +929,6 @@ export default {
945 929
         ).toFixed(2);
946 930
       }
947 931
       this.discount_amount = discount_amount;
948
-     
949 932
     },
950 933
     checkReturnOrder() {
951 934
       var id = this.id;
@@ -955,7 +938,6 @@ export default {
955 938
           this.disabled = false;
956 939
           this.showOne = true;
957 940
           this.is_check = 2;
958
-          this.Reviewed = false
959 941
           this.$message.success("反审核成功!");
960 942
         }
961 943
       });
@@ -971,9 +953,9 @@ export default {
971 953
           var purcaseOrder = response.data.data.purcaseOrder;
972 954
 
973 955
           var goodOrder = response.data.data.goodOrder;
974
-         
956
+
975 957
           var drugList = response.data.data.drugList;
976
-      
958
+
977 959
           var ids = "";
978 960
           // 如果采购单没有数据,则代表改订单第一次生成采购订单数据
979 961
           if (goodOrder.length == 0) {
@@ -1020,7 +1002,7 @@ export default {
1020 1002
                 }
1021 1003
               }
1022 1004
             }
1023
-     
1005
+
1024 1006
 
1025 1007
             for (let i = 0; i < newArr.length; i++) {
1026 1008
               for (let j = 0; j < newArr[i].child.length; j++) {
@@ -1081,7 +1063,7 @@ export default {
1081 1063
               }
1082 1064
             }
1083 1065
            }
1084
-     
1066
+
1085 1067
           }
1086 1068
         }
1087 1069
       });
@@ -1143,25 +1125,10 @@ export default {
1143 1125
   transform: translateX(-50%);
1144 1126
   top: 30%;
1145 1127
 }
1146
-/deep/ .el-table--scrollable-x .el-table__body-wrapper {
1147
-  overflow: auto;
1148
-}
1149
-/deep/ .gutter {
1150
-  width: 15px !important;
1151
-  display: inline-block !important;
1152
-}
1153
-/deep/ .el-table__fixed-right-patch {
1154
-  width: 15px !important;
1155
-}
1156 1128
 
1157
-/deep/ .el-table__fixed-right {
1158
-  bottom: 0 !important;
1159
-  left: auto;
1160
-  right: 0;
1161
-}
1162 1129
 /deep/ .el-table__body-wrapper::-webkit-scrollbar {
1163
-  width: 15px !important;
1164
-  height: 15px !important;
1130
+  width: 10px;
1131
+  height: 10px;
1165 1132
 }
1166 1133
 </style>
1167 1134
 
@@ -1188,9 +1155,9 @@ export default {
1188 1155
 .el-table::before {
1189 1156
   background-color: #d0d3da;
1190 1157
 }
1191
-/* .el-table__fixed-right {
1158
+.el-table__fixed-right {
1192 1159
   width: 150px;
1193 1160
   bottom: 20px;
1194 1161
   height: 100%;
1195
-} */
1196
-</style>
1162
+}
1163
+</style>

+ 27 - 27
src/xt_pages/user/doctorAdvice.vue Datei anzeigen

@@ -160,7 +160,7 @@
160 160
         </el-table-column>
161 161
 
162 162
163
-        
163
+
164 164
         <el-table-column
165 165
           label="开嘱时间"
166 166
           width="180"
@@ -168,8 +168,8 @@
168 168
           align="center"
169 169
         >
170 170
           <template slot-scope="scope">
171
-            <span v-if="org_id == 10215">{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span> 
172
-            <span v-else>{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span> 
171
+            <span v-if="org_id == 10215">{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span>
172
+            <span v-else>{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span>
173 173
           </template>
174 174
         </el-table-column>
175 175
         <el-table-column
@@ -968,7 +968,7 @@
968 968
             <el-col :span="14">
969 969
               <el-form-item label="药品规格 :" prop="advice_desc">
970 970
                 <el-col :span="6">
971
-               
971
+
972 972
                 <el-autocomplete
973 973
                   style="width:100px;"
974 974
                   class="inline-input"
@@ -1049,7 +1049,7 @@
1049 1049
                     >
1050 1050
                     </el-option>
1051 1051
                   </el-select>
1052
-                
1052
+
1053 1053
                 </el-col>
1054 1054
               </el-form-item>
1055 1055
             </el-col>
@@ -1518,7 +1518,7 @@
1518 1518
             </li>
1519 1519
             <li v-if="currentPatient.user_org_id!=10090">
1520 1520
               <span class="name">科别:</span>
1521
-             
1521
+
1522 1522
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1523 1523
             </li>
1524 1524
             <li>
@@ -1650,17 +1650,17 @@
1650 1650
             </li>
1651 1651
             <li v-if="currentPatient.user_org_id!=10090">
1652 1652
               <span class="name" style="width:30px;">科:</span>
1653
-             
1653
+
1654 1654
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1655 1655
             </li>
1656 1656
             <li v-if="currentPatient.user_org_id!=10090">
1657 1657
               <span class="name" style="width:30px;">区:</span>
1658
-             
1658
+
1659 1659
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1660 1660
             </li>
1661 1661
             <li v-if="currentPatient.user_org_id!=10090">
1662 1662
               <span class="name" style="width:30px;">房:</span>
1663
-              
1663
+
1664 1664
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1665 1665
             </li>
1666 1666
             <li v-if="currentPatient.user_org_id!=10090">
@@ -2223,7 +2223,7 @@ export default {
2223 2223
           }
2224 2224
 
2225 2225
           console.log("2323223",this.adviceForm)
2226
-        
2226
+
2227 2227
           EditNewDoctorAdvice(
2228 2228
             this.patientID,
2229 2229
             this.adviceForm.id,
@@ -2277,7 +2277,7 @@ export default {
2277 2277
       });
2278 2278
     },
2279 2279
     submitgroupAdvice(formName) {
2280
-     
2280
+
2281 2281
       this.addLoading = true;
2282 2282
       this.$refs[formName].validate(valid => {
2283 2283
         if (valid) {
@@ -2290,8 +2290,8 @@ export default {
2290 2290
             remark: this.groupForm.remark,
2291 2291
             parent_id: this.groupForm.parent_id,
2292 2292
           };
2293
-        
2294
-         
2293
+
2294
+
2295 2295
           var adviceNames = [];
2296 2296
           for (const index in this.groupForm.adviceNames) {
2297 2297
             this.groupForm.adviceNames[
@@ -2312,7 +2312,7 @@ export default {
2312 2312
             mode = "1-3"
2313 2313
           }
2314 2314
         console.log("长期医嘱3333",submitForm)
2315
-       
2315
+
2316 2316
         if(this.private_drug_config != null&&this.private_drug_config.drug_start == 1){
2317 2317
               for(let index=0;index<submitForm.adviceNames.length;index++){
2318 2318
                   for(let i=0;i<this.medicals.length;i++){
@@ -2324,7 +2324,7 @@ export default {
2324 2324
               }
2325 2325
           }
2326 2326
           console.log("模板数据",submitForm)
2327
-        
2327
+
2328 2328
           CreateNewGroupAdvice(this.patientID, 0, submitForm, mode).then(
2329 2329
             response => {
2330 2330
               if (response.data.state == 0) {
@@ -2417,7 +2417,7 @@ export default {
2417 2417
               this.adviceForm.advice_name = arr[0]
2418 2418
           }
2419 2419
           console.log("222222",this.adviceForm)
2420
-         
2420
+
2421 2421
           CreateNewDoctorAdvice(this.patientID, this.adviceForm, mode).then(
2422 2422
             response => {
2423 2423
               if (response.data.state == 0) {
@@ -3028,7 +3028,7 @@ export default {
3028 3028
           row_key: this.rowKey,
3029 3029
           table: []
3030 3030
         };
3031
-      
3031
+
3032 3032
         if (item.id in childMap) {
3033 3033
           for (const key in childMap[item.id]) {
3034 3034
             this.rowKey++;
@@ -3068,7 +3068,7 @@ export default {
3068 3068
     },
3069 3069
 
3070 3070
     openEdit(index, row) {
3071
-      
3071
+
3072 3072
       this.currentIndex = index;
3073 3073
       (this.dialogTitle = "修改医嘱"), (this.isEdit = true);
3074 3074
 
@@ -4038,7 +4038,7 @@ export default {
4038 4038
       });
4039 4039
     },
4040 4040
     submitNameForm(formName) {
4041
-       
4041
+
4042 4042
        if(this.src_type == ""){
4043 4043
           this.nameForm.way = 0
4044 4044
           this.nameForm.drug_id = 0
@@ -4049,7 +4049,7 @@ export default {
4049 4049
           this.nameForm.advice_name = arr[0]
4050 4050
        }
4051 4051
       console.log("医嘱2222",this.nameForm)
4052
-     
4052
+
4053 4053
       var _this = this;
4054 4054
       this.$refs[formName].validate(valid => {
4055 4055
         if (valid) {
@@ -4355,17 +4355,17 @@ export default {
4355 4355
     // 获取勾选中的行
4356 4356
     getPrintInfo(ids) {
4357 4357
       console.log("23332332323232",this.adviceType,"33333333",this.stopType)
4358
-     
4358
+
4359 4359
       getPrintInfo({ids:ids},this.adviceType,this.stopType).then(response => {
4360 4360
         if (response.data.state === 1) {
4361 4361
           var doctoradvice = response.data.data.doctoradvice;
4362 4362
           console.log("doctoradvice", doctoradvice);
4363
-         
4363
+
4364 4364
           this.dataAdvice = doctoradvice;
4365 4365
           if (this.adviceType === 3 || this.adviceType === 2 || this.adviceType == 4) {
4366
-           
4366
+
4367 4367
             this.lstableData = this.dataAdvice;
4368
-            
4368
+
4369 4369
           } else if (this.adviceType === 1) {
4370 4370
             this.cqtableData = doctoradvice;
4371 4371
           }
@@ -4503,7 +4503,7 @@ export default {
4503 4503
             this.private_drug_config = response.data.data.private_drug_config
4504 4504
             console.log("medicals",medicalList)
4505 4505
             this.medicals = medicalList
4506
-          
4506
+
4507 4507
       })
4508 4508
     },
4509 4509
     changeDrugNameTwo(name){
@@ -4514,7 +4514,7 @@ export default {
4514 4514
         if (this.all_drug[i].drug_name == name) {
4515 4515
             this.drugSpec = this.all_drug[i].drug_specs
4516 4516
           }
4517
-       }   
4517
+       }
4518 4518
     },
4519 4519
    changeDrugDescTwo(name){
4520 4520
       this.current_drug_spec = name
@@ -4611,7 +4611,7 @@ export default {
4611 4611
 
4612 4612
       handleSelect1(val){
4613 4613
         this.drug_id = val.drug_id
4614
-        
4614
+
4615 4615
       },
4616 4616
       handleSelect(val){
4617 4617
         this.src_type = 1