浏览代码

新分支

28169 1 个月前
父节点
当前提交
506d945ed9

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -239,7 +239,7 @@
239 239
                     </div>
240 240
 
241 241
                     <div class="row" style="padding: 2px 0; line-height: 23px">
242
-                      <div class="inline_block">
242
+                      <div class="inline_block" v-if="org_id!=10624">
243 243
                         T:
244 244
                         <div
245 245
                           class="under_line"
@@ -2765,7 +2765,7 @@
2765 2765
                       class="row"
2766 2766
                       style="padding: 2px 0; line-height: 23px; display: flex"
2767 2767
                     >
2768
-                      <div class="inline_block" style="flex: 1">
2768
+                      <div class="inline_block" style="flex: 1" v-if="org_id!=10624">
2769 2769
                         T:
2770 2770
                         <div
2771 2771
                           class="under_line"

+ 18 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -3100,6 +3100,24 @@ export default {
3100 3100
       if(val == 37){
3101 3101
         name ="HDF1000"
3102 3102
       }
3103
+      if(val == 38){
3104
+        name ="HDF80"
3105
+      }
3106
+      if(val == 39){
3107
+        name ="HF16"
3108
+      }
3109
+      if(val == 40){
3110
+        name ="HD(无肝素)"
3111
+      }
3112
+      if(val == 41){
3113
+        name ="HDF17H"
3114
+      }
3115
+      if(val == 42){
3116
+        name ="HD."
3117
+      }
3118
+      if(val == 43){
3119
+        name ="HD(2)"
3120
+      }
3103 3121
       return name
3104 3122
     },
3105 3123
   },

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -229,7 +229,7 @@
229 229
                   </div>
230 230
 
231 231
                   <div class="row" style="padding: 2px 0; line-height: 23px">
232
-                    <div class="inline_block">
232
+                    <div class="inline_block" v-if="org_id!=10624">
233 233
                       T:
234 234
                       <div
235 235
                         class="under_line"
@@ -2548,7 +2548,7 @@
2548 2548
                     class="row"
2549 2549
                     style="padding: 2px 0; line-height: 23px; display: flex"
2550 2550
                   >
2551
-                    <div class="inline_block" style="flex: 1">
2551
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10624">
2552 2552
                       T:
2553 2553
                       <div
2554 2554
                         class="under_line"

+ 6 - 3
src/xt_pages/medicalScheduling/index.vue 查看文件

@@ -733,7 +733,7 @@ export default {
733 733
             getStaffScheduleList(params).then(response=>{
734 734
                 if(response.data.state == 1){
735 735
                     var staffList =  response.data.data.staffList
736
-                    console.log("获取所有排班",staffList)
736
+                    // console.log("获取所有排班",staffList)
737 737
                     var sevenStr = ""
738 738
                     var oneStr = ""
739 739
                     var twoStr = ""
@@ -2230,9 +2230,12 @@ export default {
2230 2230
             }
2231 2231
 
2232 2232
         }
2233
-      var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
2233
+    //   var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
2234
+      
2235
+      var now = moment().subtract(7, 'days').format('YYYY-MM-DD 00:00:00')
2236
+      console.log("日期==========---------------",now)
2234 2237
       this.timeNow = this.getTimestamp(now)
2235
-     
2238
+      console.log("haaaaaaaaaaaaaaaaaaa",this.timeNow)
2236 2239
       this.getStaffScheduleRemarkList()
2237 2240
 
2238 2241
     }

+ 8 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue 查看文件

@@ -391,13 +391,20 @@ export default {
391 391
         keywords: this.searchKey,
392 392
         storehouse_id:this.storehouse_id,
393 393
       };
394
-
394
+      const loading = this.$loading({
395
+          lock: true,
396
+          text: 'Loading',
397
+          spinner: 'el-icon-loading',
398
+          background: 'rgba(0, 0, 0, 0.7)'
399
+       })
395 400
       this.cancelStockDate = [];
396 401
       getStockDetail(Params).then(response => {
397 402
         if (response.data.state == 0) {
398 403
           this.$message.error(response.data.msg);
404
+          loading.close()
399 405
           return false;
400 406
         } else {
407
+          loading.close()
401 408
           this.total = response.data.data.total;
402 409
           var obj = {id:0,storehouse_name:"全部"}
403 410
           this.houseList = []

+ 14 - 3
src/xt_pages/stock/detail/stockInDetail.vue 查看文件

@@ -396,11 +396,19 @@ export default {
396 396
         storehouse_id:this.storehouse_id,
397 397
       };
398 398
       this.cancelStockDate = [];
399
+      const loading = this.$loading({
400
+          lock: true,
401
+          text: 'Loading',
402
+          spinner: 'el-icon-loading',
403
+          background: 'rgba(0, 0, 0, 0.7)'
404
+       })
399 405
       getStockDetail(Params).then(response => {
400 406
         if (response.data.state == 0) {
401 407
           this.$message.error(response.data.msg);
408
+          loading.close()
402 409
           return false;
403 410
         } else {
411
+          loading.close()
404 412
           this.total = response.data.data.total;
405 413
           var obj = {id:0,storehouse_name:"全部"}
406 414
           this.houseList = []
@@ -842,6 +850,8 @@ export default {
842 850
           this.tableDataList[i].total_price = (this.tableDataList[i].warehousing_count * this.tableDataList[i].price).toFixed(2)
843 851
           this.tableDataList[i].manufacturer_name = this.getManufactuerName(this.tableDataList[i].manufacturer)
844 852
           this.tableDataList[i].dealer_name = this.getDealerName(this.tableDataList[i].dealer)
853
+          this.tableDataList[i].expiry_date_name = this.getTime(this.tableDataList[i].expiry_date)
854
+          this.tableDataList[i].product_date_name = this.getTime(this.tableDataList[i].product_date)
845 855
           total += this.tableDataList[i].warehousing_count * this.tableDataList[i].price
846 856
           
847 857
         }
@@ -849,12 +859,13 @@ export default {
849 859
         this.tableDataList.push(obj)
850 860
       
851 861
         import('@/vendor/Export2Excel').then(excel => {
852
-        const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','生产厂商','进销商','操作时间','制单人','进货价','数量','总价']
853
-        const filterVal = ['index','warehousing_order', 'good_type_name', 'good_name','specification_name','manufacturer_name','dealer_name','time','user_name','price','warehousing_count','total_price']
862
+        const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','数量','总价']
863
+        const filterVal = ['index','warehousing_order', 'good_type_name', 'good_name','specification_name','manufacturer_name','dealer_name','number','product_date_name','expiry_date_name','time','user_name','price','warehousing_count','total_price']
854 864
 
855 865
 
856 866
         const data = this.formatJson(filterVal, this.tableDataList)
857
-
867
+        console.log("this.tableDataList",this.tableDataList)
868
+       
858 869
           excel.export_json_to_excel({
859 870
             header: tHeader,
860 871
             data,

+ 16 - 4
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

@@ -428,12 +428,19 @@ export default {
428 428
         storehouse_id:this.storehouse_id,
429 429
       };
430 430
       this.cancelStockDate = [];
431
+      const loading = this.$loading({
432
+          lock: true,
433
+          text: 'Loading',
434
+          spinner: 'el-icon-loading',
435
+          background: 'rgba(0, 0, 0, 0.7)'
436
+       })
431 437
       getStockDetail(Params).then(response => {
432 438
         if (response.data.state == 0) {
439
+          loading.close()
433 440
           this.$message.error(response.data.msg);
434 441
           return false;
435 442
         } else {
436
-
443
+          loading.close()
437 444
           this.total = response.data.data.total;
438 445
           var obj = {id:0,storehouse_name:"全部"}
439 446
           this.houseList = []
@@ -529,7 +536,9 @@ export default {
529 536
       // this.getPrintStockGood()
530 537
     },
531 538
     getAllQuery(){
539
+      this.cancelStockDate = []
532 540
       this.GetCancelStock();
541
+      this.getGoodDetailPrintList()
533 542
     },
534 543
     startTimeChange(val) {
535 544
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
@@ -962,6 +971,7 @@ export default {
962 971
      },
963 972
      exportListDetail(){
964 973
         console.log("hahhdhafhhahdf",this.tableDataList)
974
+      
965 975
         var obj = {index:"合计",total_price:0}
966 976
         var total = 0
967 977
         for(let i=0;i<this.tableDataList.length;i++){
@@ -984,15 +994,17 @@ export default {
984 994
           }
985 995
           this.tableDataList[i].in_price = this.tableDataList[i].WarehousingInfoNight.price
986 996
 
987
-          this.tableDataList[i].expiry_date = this.getTime(this.tableDataList[i].expiry_date)
997
+          this.tableDataList[i].expiry_date_name = this.getTime(this.tableDataList[i].expiry_date)
998
+
999
+          this.tableDataList[i].product_date_name = this.getTime(this.tableDataList[i].product_date)
988 1000
         }
989 1001
         obj.total_price = total.toFixed(2)
990 1002
         console.log("WOHHAHHAHAH",this.tableDataList)
991 1003
       
992 1004
         this.tableDataList.push(obj)
993 1005
        import('@/vendor/Export2Excel').then(excel => {
994
-       const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','生产厂商','进销商','操作时间','制单人','进货价','出货价','数量','总价']
995
-       const filterVal = ['index','warehouse_out_order_number', 'good_type_name', 'good_name','specification_name','manufacturer_name','dealer_name','time','user_name','in_price','price','out_count','total_price']
1006
+       const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','出货价','数量','总价']
1007
+       const filterVal = ['index','warehouse_out_order_number', 'good_type_name', 'good_name','specification_name','manufacturer_name','dealer_name','time','number','product_date_name','expiry_date_name','user_name','in_price','price','out_count','total_price']
996 1008
 
997 1009
        const data = this.formatJson(filterVal, this.tableDataList)
998 1010
 

+ 9 - 0
src/xt_pages/stock/drugs/components/drugCancelDetail.vue 查看文件

@@ -367,8 +367,15 @@ export default {
367 367
         limit:this.limit,
368 368
         page:this.page,
369 369
        }
370
+       const loading = this.$loading({
371
+          lock: true,
372
+          text: 'Loading',
373
+          spinner: 'el-icon-loading',
374
+          background: 'rgba(0, 0, 0, 0.7)'
375
+       })
370 376
       getDrugCancelDetail(params).then(response=>{
371 377
          if(response.data.state == 1){
378
+           loading.close()
372 379
            var order =  response.data.data.order
373 380
            var list = response.data.data.orderPrint
374 381
            this.dealerList =  response.data.data.dealerList
@@ -410,6 +417,8 @@ export default {
410 417
            this.tableList = order
411 418
            var total = response.data.data.total
412 419
            this.total = total
420
+         }else{
421
+          loading.close()
413 422
          }
414 423
       })
415 424
     },

+ 9 - 0
src/xt_pages/stock/drugs/components/drugCancelOrder.vue 查看文件

@@ -397,14 +397,23 @@ export default {
397 397
         limit:this.limit,
398 398
         page:this.page,
399 399
       }
400
+      const loading = this.$loading({
401
+          lock: true,
402
+          text: 'Loading',
403
+          spinner: 'el-icon-loading',
404
+          background: 'rgba(0, 0, 0, 0.7)'
405
+       })
400 406
       getDrugCancelOrder(params).then(response=>{
401 407
         if(response.data.state == 1){
408
+          loading.close()
402 409
           var order = response.data.data.order
403 410
           console.log("order",order)
404 411
           this.tableData = order
405 412
           this.tableList = order
406 413
           var total =  response.data.data.total
407 414
           this.total = total
415
+        }else{
416
+          loading.close()
408 417
         }
409 418
       }) 
410 419
     },

+ 16 - 3
src/xt_pages/stock/drugs/components/drugInOrder.vue 查看文件

@@ -373,8 +373,15 @@ export default {
373 373
         page:this.page,
374 374
         storehouse_id:this.storehouse_id,
375 375
        }
376
+       const loading = this.$loading({
377
+          lock: true,
378
+          text: 'Loading',
379
+          spinner: 'el-icon-loading',
380
+          background: 'rgba(0, 0, 0, 0.7)'
381
+       })
376 382
       getDrugIndetail(params).then(response=>{
377 383
         if(response.data.state == 1){
384
+          loading.close()
378 385
           var drugInOrder = response.data.data.detail
379 386
           var drugTypeParent = response.data.data.drugTypeParent
380 387
           var obj = {id:0,storehouse_name:"全部"}
@@ -445,6 +452,8 @@ export default {
445 452
           this.tableList = list
446 453
           var total = response.data.data.total
447 454
           this.total = total
455
+        }else{
456
+          loading.close()
448 457
         }
449 458
       })
450 459
     },
@@ -539,13 +548,13 @@ export default {
539 548
      exportListDetail(){
540 549
        
541 550
        import('@/vendor/Export2Excel').then(excel => {
542
-       const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','操作时间','制单人','进货价','数量','总价']
543
-       const filterVal = ['index','warehousing_order','drugtype','drug_name', 'specification_name','manufacturer_name','dealer_name','time','user_name','price','warehousing_count','total']
551
+       const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','数量','总价']
552
+       const filterVal = ['index','warehousing_order','drugtype','drug_name', 'specification_name','manufacturer_name','dealer_name','number_batch','product_date_name','expiry_date_name','time','user_name','price','warehousing_count','total']
544 553
 
545 554
        var newArr = []
546 555
        newArr = this.cancelStockDate
547 556
        console.log("newArrwowowowoow",newArr)
548
-     
557
+      
549 558
        let obj = {'index':'合计','total':0}
550 559
        for(let i=0;i<newArr.length;i++){
551 560
           newArr.specification_name = ""
@@ -555,6 +564,10 @@ export default {
555 564
          newArr[i].manufacturer_name = this.getManufacturerName(newArr[i].manufacturer)
556 565
          newArr[i].dealer_name = this.getDealerName(newArr[i].dealer)
557 566
          newArr[i].time = this.getTime(newArr[i].ctime)
567
+         newArr[i].expiry_date_name = this.getTime(newArr[i].expiry_date)
568
+         newArr[i].product_date_name = this.getTime(newArr[i].product_date)
569
+         newArr[i].number_batch=""
570
+         newArr[i].number_batch=newArr[i].batch_number
558 571
          newArr[i].user_name = this.getAdminUser(newArr[i].creater)
559 572
          newArr[i].total = (newArr[i].price * newArr[i].warehousing_count).toFixed(2)
560 573
          obj.total += (newArr[i].price * newArr[i].warehousing_count)

+ 26 - 8
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

@@ -9,7 +9,7 @@
9 9
       >打印
10 10
     </el-button>
11 11
      <el-button
12
-      v-if="org_id != 10265 && org_id!=0&&org_id!=10480"
12
+      v-if="org_id != 10265&&org_id!=10480"
13 13
       style="float: right;margin-right:10px"
14 14
       size="small"
15 15
       @click="exportListDetai"
@@ -25,7 +25,7 @@
25 25
       >明细导出
26 26
     </el-button>
27 27
     <el-button
28
-      v-if="org_id == 10480|| org_id == 0"
28
+      v-if="org_id == 10480"
29 29
       style="float: right;margin-right:10px"
30 30
       size="small"
31 31
       @click="exportListDetaiTwo"
@@ -456,13 +456,20 @@ export default {
456 456
          limit:this.limit,
457 457
          storehouse_id:this.storehouse_id,
458 458
       }
459
-      console.log("jajjfjajfjajfdj")
459
+      const loading = this.$loading({
460
+          lock: true,
461
+          text: 'Loading',
462
+          spinner: 'el-icon-loading',
463
+          background: 'rgba(0, 0, 0, 0.7)'
464
+       })
460 465
       getDrugOutDetail(params).then(response=>{
466
+       
461 467
         this.tableData = []
462 468
         this.tableList = []
463 469
         if(response.data.state == 1){
470
+          loading.close()
464 471
           var order = response.data.data.order
465
-          console.log("order233322332323223",order)
472
+          // console.log("order233322332323223",order)
466 473
 
467 474
           var obj = {id:0,storehouse_name:"全部"}
468 475
           this.houseList = []
@@ -610,6 +617,8 @@ export default {
610 617
           this.tableList = list
611 618
           var total = response.data.data.total
612 619
           this.total = total
620
+        }else{
621
+          loading.close()
613 622
         }
614 623
       })
615 624
     },
@@ -721,12 +730,12 @@ export default {
721 730
         return jsonData.map(v => filterVal.map(j => v[j]));
722 731
      },
723 732
     exportListDetai(){
733
+      console.log("hwhhwhwhwhwhw",this.tableData)
734
+     
724 735
       import('@/vendor/Export2Excel').then(excel => {
725
-       const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','操作时间','制单人','进货价','出货价','数量','总价']
726
-       const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','manufacturer_name','dealer_name','time','user_name','in_price','price','count','total_price']
736
+       const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','出货价','数量','总价']
737
+       const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','manufacturer_name','dealer_name','number_bath','product_date_name','expiry_date_name','time','user_name','in_price','price','count','total_price']
727 738
 
728
-       console.log("hwhhwhwhwhwhw",this.tableData)
729
-       
730 739
        for(let i=0;i<this.tableData.length;i++){
731 740
          if(this.tableData[i].is_total == 0){
732 741
             this.tableData[i].index = i+1
@@ -763,9 +772,18 @@ export default {
763 772
               if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit ==this.tableData[i].min_unit){
764 773
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)*this.tableData[i].min_number
765 774
               }
775
+
776
+              this.tableData[i].number_bath =""
777
+              this.tableData[i].number_bath =  this.tableData[i].batch_number
778
+
779
+              this.tableData[i].expiry_date_name = this.getTime(this.tableData[i].expiry_date)
780
+
781
+              this.tableData[i].product_date_name = this.getTime(this.tableData[i].product_date)
766 782
             }
767 783
          }
768 784
        }
785
+      
786
+      
769 787
        const data = this.formatJson(filterVal, this.tableData)
770 788
 
771 789
 

+ 1 - 1
src/xt_pages/stock/stockOutOrder.vue 查看文件

@@ -2295,7 +2295,7 @@ export default {
2295 2295
           "warehouse_out_time",
2296 2296
           "good_name",
2297 2297
           "good_type_id",
2298
-          "unit",
2298
+          "specification_name",
2299 2299
           "count",
2300 2300
           "price",
2301 2301
           "total_price",

+ 25 - 2
src/xt_pages/user/doctorAdvice.vue 查看文件

@@ -102,6 +102,8 @@
102 102
           </ul>
103 103
         </div>
104 104
       </div>
105
+     
106
+
105 107
       <div class="cell clearfix">
106 108
         <label class="title"><span class="name">日期查询</span> : </label>
107 109
         <el-date-picker
@@ -2276,7 +2278,9 @@ export default {
2276 2278
         keywords: "",
2277 2279
         id: 0,
2278 2280
         limit: 10,
2279
-        page: 1
2281
+        page: 1,
2282
+        delivery_way:0,
2283
+        delivery_way_one:""
2280 2284
       },
2281 2285
       total: 0,
2282 2286
       addLoading: false,
@@ -2306,10 +2310,15 @@ export default {
2306 2310
       drug_id: 0,
2307 2311
       src_type:"",
2308 2312
       org_id:0,
2309
-     
2313
+      deliveryWay:[],
2314
+    
2310 2315
     };
2311 2316
   },
2312 2317
   methods: {
2318
+    selectDeliveryWay(val){
2319
+       this.listQuery.delivery_way = val
2320
+       this.getList()
2321
+    },
2313 2322
     clickuseradvicecell(row, column, cell, event) {
2314 2323
       // console.log("row1", row);
2315 2324
       // console.log("column", column);
@@ -3524,6 +3533,16 @@ export default {
3524 3533
       };
3525 3534
     },
3526 3535
     getList() {
3536
+      //  var name = ""
3537
+      //   for(let i=0;i<this.deliveryWay.length;i++){
3538
+      //       if(this.listQuery.delivery_way == this.deliveryWay[i].id){
3539
+      //         name = this.deliveryWay[i].name
3540
+      //       }
3541
+      //   }
3542
+      //   if(name == '全部'){
3543
+      //     name = ""
3544
+      //   }
3545
+      //  this.listQuery.delivery_way_one = name
3527 3546
       getDoctorAdviceList(this.listQuery).then(response => {
3528 3547
         if (response.data.state == 1) {
3529 3548
           this.adviceTableData = response.data.data.advices;
@@ -4506,6 +4525,10 @@ export default {
4506 4525
           this.deliveryWayOptions =
4507 4526
             response.data.data.drugways === null? []: response.data.data.drugways;
4508 4527
           this.executionFrequencyOptions = response.data.data.efs === null ? [] : response.data.data.efs;
4528
+          // var dics  =  response.data.data.dics
4529
+          // var obj = {id:0,name:"全部"}
4530
+          // this.deliveryWay.push(obj)
4531
+          // this.deliveryWay.push(...dics)
4509 4532
         }
4510 4533
       });
4511 4534
     },

+ 13 - 13
src/xt_permission.js 查看文件

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))