Browse Source

新分支

28169 1 week ago
parent
commit
506d945ed9

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

239
                     </div>
239
                     </div>
240
 
240
 
241
                     <div class="row" style="padding: 2px 0; line-height: 23px">
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
                         T:
243
                         T:
244
                         <div
244
                         <div
245
                           class="under_line"
245
                           class="under_line"
2765
                       class="row"
2765
                       class="row"
2766
                       style="padding: 2px 0; line-height: 23px; display: flex"
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
                         T:
2769
                         T:
2770
                         <div
2770
                         <div
2771
                           class="under_line"
2771
                           class="under_line"

+ 18 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue View File

3100
       if(val == 37){
3100
       if(val == 37){
3101
         name ="HDF1000"
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
       return name
3121
       return name
3104
     },
3122
     },
3105
   },
3123
   },

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

229
                   </div>
229
                   </div>
230
 
230
 
231
                   <div class="row" style="padding: 2px 0; line-height: 23px">
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
                       T:
233
                       T:
234
                       <div
234
                       <div
235
                         class="under_line"
235
                         class="under_line"
2548
                     class="row"
2548
                     class="row"
2549
                     style="padding: 2px 0; line-height: 23px; display: flex"
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
                       T:
2552
                       T:
2553
                       <div
2553
                       <div
2554
                         class="under_line"
2554
                         class="under_line"

+ 6 - 3
src/xt_pages/medicalScheduling/index.vue View File

733
             getStaffScheduleList(params).then(response=>{
733
             getStaffScheduleList(params).then(response=>{
734
                 if(response.data.state == 1){
734
                 if(response.data.state == 1){
735
                     var staffList =  response.data.data.staffList
735
                     var staffList =  response.data.data.staffList
736
-                    console.log("获取所有排班",staffList)
736
+                    // console.log("获取所有排班",staffList)
737
                     var sevenStr = ""
737
                     var sevenStr = ""
738
                     var oneStr = ""
738
                     var oneStr = ""
739
                     var twoStr = ""
739
                     var twoStr = ""
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
       this.timeNow = this.getTimestamp(now)
2237
       this.timeNow = this.getTimestamp(now)
2235
-     
2238
+      console.log("haaaaaaaaaaaaaaaaaaa",this.timeNow)
2236
       this.getStaffScheduleRemarkList()
2239
       this.getStaffScheduleRemarkList()
2237
 
2240
 
2238
     }
2241
     }

+ 8 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue View File

391
         keywords: this.searchKey,
391
         keywords: this.searchKey,
392
         storehouse_id:this.storehouse_id,
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
       this.cancelStockDate = [];
400
       this.cancelStockDate = [];
396
       getStockDetail(Params).then(response => {
401
       getStockDetail(Params).then(response => {
397
         if (response.data.state == 0) {
402
         if (response.data.state == 0) {
398
           this.$message.error(response.data.msg);
403
           this.$message.error(response.data.msg);
404
+          loading.close()
399
           return false;
405
           return false;
400
         } else {
406
         } else {
407
+          loading.close()
401
           this.total = response.data.data.total;
408
           this.total = response.data.data.total;
402
           var obj = {id:0,storehouse_name:"全部"}
409
           var obj = {id:0,storehouse_name:"全部"}
403
           this.houseList = []
410
           this.houseList = []

+ 14 - 3
src/xt_pages/stock/detail/stockInDetail.vue View File

396
         storehouse_id:this.storehouse_id,
396
         storehouse_id:this.storehouse_id,
397
       };
397
       };
398
       this.cancelStockDate = [];
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
       getStockDetail(Params).then(response => {
405
       getStockDetail(Params).then(response => {
400
         if (response.data.state == 0) {
406
         if (response.data.state == 0) {
401
           this.$message.error(response.data.msg);
407
           this.$message.error(response.data.msg);
408
+          loading.close()
402
           return false;
409
           return false;
403
         } else {
410
         } else {
411
+          loading.close()
404
           this.total = response.data.data.total;
412
           this.total = response.data.data.total;
405
           var obj = {id:0,storehouse_name:"全部"}
413
           var obj = {id:0,storehouse_name:"全部"}
406
           this.houseList = []
414
           this.houseList = []
842
           this.tableDataList[i].total_price = (this.tableDataList[i].warehousing_count * this.tableDataList[i].price).toFixed(2)
850
           this.tableDataList[i].total_price = (this.tableDataList[i].warehousing_count * this.tableDataList[i].price).toFixed(2)
843
           this.tableDataList[i].manufacturer_name = this.getManufactuerName(this.tableDataList[i].manufacturer)
851
           this.tableDataList[i].manufacturer_name = this.getManufactuerName(this.tableDataList[i].manufacturer)
844
           this.tableDataList[i].dealer_name = this.getDealerName(this.tableDataList[i].dealer)
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
           total += this.tableDataList[i].warehousing_count * this.tableDataList[i].price
855
           total += this.tableDataList[i].warehousing_count * this.tableDataList[i].price
846
           
856
           
847
         }
857
         }
849
         this.tableDataList.push(obj)
859
         this.tableDataList.push(obj)
850
       
860
       
851
         import('@/vendor/Export2Excel').then(excel => {
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
         const data = this.formatJson(filterVal, this.tableDataList)
866
         const data = this.formatJson(filterVal, this.tableDataList)
857
-
867
+        console.log("this.tableDataList",this.tableDataList)
868
+       
858
           excel.export_json_to_excel({
869
           excel.export_json_to_excel({
859
             header: tHeader,
870
             header: tHeader,
860
             data,
871
             data,

+ 16 - 4
src/xt_pages/stock/detail/stockOutDetail.vue View File

428
         storehouse_id:this.storehouse_id,
428
         storehouse_id:this.storehouse_id,
429
       };
429
       };
430
       this.cancelStockDate = [];
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
       getStockDetail(Params).then(response => {
437
       getStockDetail(Params).then(response => {
432
         if (response.data.state == 0) {
438
         if (response.data.state == 0) {
439
+          loading.close()
433
           this.$message.error(response.data.msg);
440
           this.$message.error(response.data.msg);
434
           return false;
441
           return false;
435
         } else {
442
         } else {
436
-
443
+          loading.close()
437
           this.total = response.data.data.total;
444
           this.total = response.data.data.total;
438
           var obj = {id:0,storehouse_name:"全部"}
445
           var obj = {id:0,storehouse_name:"全部"}
439
           this.houseList = []
446
           this.houseList = []
529
       // this.getPrintStockGood()
536
       // this.getPrintStockGood()
530
     },
537
     },
531
     getAllQuery(){
538
     getAllQuery(){
539
+      this.cancelStockDate = []
532
       this.GetCancelStock();
540
       this.GetCancelStock();
541
+      this.getGoodDetailPrintList()
533
     },
542
     },
534
     startTimeChange(val) {
543
     startTimeChange(val) {
535
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
544
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
962
      },
971
      },
963
      exportListDetail(){
972
      exportListDetail(){
964
         console.log("hahhdhafhhahdf",this.tableDataList)
973
         console.log("hahhdhafhhahdf",this.tableDataList)
974
+      
965
         var obj = {index:"合计",total_price:0}
975
         var obj = {index:"合计",total_price:0}
966
         var total = 0
976
         var total = 0
967
         for(let i=0;i<this.tableDataList.length;i++){
977
         for(let i=0;i<this.tableDataList.length;i++){
984
           }
994
           }
985
           this.tableDataList[i].in_price = this.tableDataList[i].WarehousingInfoNight.price
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
         obj.total_price = total.toFixed(2)
1001
         obj.total_price = total.toFixed(2)
990
         console.log("WOHHAHHAHAH",this.tableDataList)
1002
         console.log("WOHHAHHAHAH",this.tableDataList)
991
       
1003
       
992
         this.tableDataList.push(obj)
1004
         this.tableDataList.push(obj)
993
        import('@/vendor/Export2Excel').then(excel => {
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
        const data = this.formatJson(filterVal, this.tableDataList)
1009
        const data = this.formatJson(filterVal, this.tableDataList)
998
 
1010
 

+ 9 - 0
src/xt_pages/stock/drugs/components/drugCancelDetail.vue View File

367
         limit:this.limit,
367
         limit:this.limit,
368
         page:this.page,
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
       getDrugCancelDetail(params).then(response=>{
376
       getDrugCancelDetail(params).then(response=>{
371
          if(response.data.state == 1){
377
          if(response.data.state == 1){
378
+           loading.close()
372
            var order =  response.data.data.order
379
            var order =  response.data.data.order
373
            var list = response.data.data.orderPrint
380
            var list = response.data.data.orderPrint
374
            this.dealerList =  response.data.data.dealerList
381
            this.dealerList =  response.data.data.dealerList
410
            this.tableList = order
417
            this.tableList = order
411
            var total = response.data.data.total
418
            var total = response.data.data.total
412
            this.total = total
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 View File

397
         limit:this.limit,
397
         limit:this.limit,
398
         page:this.page,
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
       getDrugCancelOrder(params).then(response=>{
406
       getDrugCancelOrder(params).then(response=>{
401
         if(response.data.state == 1){
407
         if(response.data.state == 1){
408
+          loading.close()
402
           var order = response.data.data.order
409
           var order = response.data.data.order
403
           console.log("order",order)
410
           console.log("order",order)
404
           this.tableData = order
411
           this.tableData = order
405
           this.tableList = order
412
           this.tableList = order
406
           var total =  response.data.data.total
413
           var total =  response.data.data.total
407
           this.total = total
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 View File

373
         page:this.page,
373
         page:this.page,
374
         storehouse_id:this.storehouse_id,
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
       getDrugIndetail(params).then(response=>{
382
       getDrugIndetail(params).then(response=>{
377
         if(response.data.state == 1){
383
         if(response.data.state == 1){
384
+          loading.close()
378
           var drugInOrder = response.data.data.detail
385
           var drugInOrder = response.data.data.detail
379
           var drugTypeParent = response.data.data.drugTypeParent
386
           var drugTypeParent = response.data.data.drugTypeParent
380
           var obj = {id:0,storehouse_name:"全部"}
387
           var obj = {id:0,storehouse_name:"全部"}
445
           this.tableList = list
452
           this.tableList = list
446
           var total = response.data.data.total
453
           var total = response.data.data.total
447
           this.total = total
454
           this.total = total
455
+        }else{
456
+          loading.close()
448
         }
457
         }
449
       })
458
       })
450
     },
459
     },
539
      exportListDetail(){
548
      exportListDetail(){
540
        
549
        
541
        import('@/vendor/Export2Excel').then(excel => {
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
        var newArr = []
554
        var newArr = []
546
        newArr = this.cancelStockDate
555
        newArr = this.cancelStockDate
547
        console.log("newArrwowowowoow",newArr)
556
        console.log("newArrwowowowoow",newArr)
548
-     
557
+      
549
        let obj = {'index':'合计','total':0}
558
        let obj = {'index':'合计','total':0}
550
        for(let i=0;i<newArr.length;i++){
559
        for(let i=0;i<newArr.length;i++){
551
           newArr.specification_name = ""
560
           newArr.specification_name = ""
555
          newArr[i].manufacturer_name = this.getManufacturerName(newArr[i].manufacturer)
564
          newArr[i].manufacturer_name = this.getManufacturerName(newArr[i].manufacturer)
556
          newArr[i].dealer_name = this.getDealerName(newArr[i].dealer)
565
          newArr[i].dealer_name = this.getDealerName(newArr[i].dealer)
557
          newArr[i].time = this.getTime(newArr[i].ctime)
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
          newArr[i].user_name = this.getAdminUser(newArr[i].creater)
571
          newArr[i].user_name = this.getAdminUser(newArr[i].creater)
559
          newArr[i].total = (newArr[i].price * newArr[i].warehousing_count).toFixed(2)
572
          newArr[i].total = (newArr[i].price * newArr[i].warehousing_count).toFixed(2)
560
          obj.total += (newArr[i].price * newArr[i].warehousing_count)
573
          obj.total += (newArr[i].price * newArr[i].warehousing_count)

+ 26 - 8
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

9
       >打印
9
       >打印
10
     </el-button>
10
     </el-button>
11
      <el-button
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
       style="float: right;margin-right:10px"
13
       style="float: right;margin-right:10px"
14
       size="small"
14
       size="small"
15
       @click="exportListDetai"
15
       @click="exportListDetai"
25
       >明细导出
25
       >明细导出
26
     </el-button>
26
     </el-button>
27
     <el-button
27
     <el-button
28
-      v-if="org_id == 10480|| org_id == 0"
28
+      v-if="org_id == 10480"
29
       style="float: right;margin-right:10px"
29
       style="float: right;margin-right:10px"
30
       size="small"
30
       size="small"
31
       @click="exportListDetaiTwo"
31
       @click="exportListDetaiTwo"
456
          limit:this.limit,
456
          limit:this.limit,
457
          storehouse_id:this.storehouse_id,
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
       getDrugOutDetail(params).then(response=>{
465
       getDrugOutDetail(params).then(response=>{
466
+       
461
         this.tableData = []
467
         this.tableData = []
462
         this.tableList = []
468
         this.tableList = []
463
         if(response.data.state == 1){
469
         if(response.data.state == 1){
470
+          loading.close()
464
           var order = response.data.data.order
471
           var order = response.data.data.order
465
-          console.log("order233322332323223",order)
472
+          // console.log("order233322332323223",order)
466
 
473
 
467
           var obj = {id:0,storehouse_name:"全部"}
474
           var obj = {id:0,storehouse_name:"全部"}
468
           this.houseList = []
475
           this.houseList = []
610
           this.tableList = list
617
           this.tableList = list
611
           var total = response.data.data.total
618
           var total = response.data.data.total
612
           this.total = total
619
           this.total = total
620
+        }else{
621
+          loading.close()
613
         }
622
         }
614
       })
623
       })
615
     },
624
     },
721
         return jsonData.map(v => filterVal.map(j => v[j]));
730
         return jsonData.map(v => filterVal.map(j => v[j]));
722
      },
731
      },
723
     exportListDetai(){
732
     exportListDetai(){
733
+      console.log("hwhhwhwhwhwhw",this.tableData)
734
+     
724
       import('@/vendor/Export2Excel').then(excel => {
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
        for(let i=0;i<this.tableData.length;i++){
739
        for(let i=0;i<this.tableData.length;i++){
731
          if(this.tableData[i].is_total == 0){
740
          if(this.tableData[i].is_total == 0){
732
             this.tableData[i].index = i+1
741
             this.tableData[i].index = i+1
763
               if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit ==this.tableData[i].min_unit){
772
               if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit ==this.tableData[i].min_unit){
764
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)*this.tableData[i].min_number
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
        const data = this.formatJson(filterVal, this.tableData)
787
        const data = this.formatJson(filterVal, this.tableData)
770
 
788
 
771
 
789
 

+ 1 - 1
src/xt_pages/stock/stockOutOrder.vue View File

2295
           "warehouse_out_time",
2295
           "warehouse_out_time",
2296
           "good_name",
2296
           "good_name",
2297
           "good_type_id",
2297
           "good_type_id",
2298
-          "unit",
2298
+          "specification_name",
2299
           "count",
2299
           "count",
2300
           "price",
2300
           "price",
2301
           "total_price",
2301
           "total_price",

+ 25 - 2
src/xt_pages/user/doctorAdvice.vue View File

102
           </ul>
102
           </ul>
103
         </div>
103
         </div>
104
       </div>
104
       </div>
105
+     
106
+
105
       <div class="cell clearfix">
107
       <div class="cell clearfix">
106
         <label class="title"><span class="name">日期查询</span> : </label>
108
         <label class="title"><span class="name">日期查询</span> : </label>
107
         <el-date-picker
109
         <el-date-picker
2276
         keywords: "",
2278
         keywords: "",
2277
         id: 0,
2279
         id: 0,
2278
         limit: 10,
2280
         limit: 10,
2279
-        page: 1
2281
+        page: 1,
2282
+        delivery_way:0,
2283
+        delivery_way_one:""
2280
       },
2284
       },
2281
       total: 0,
2285
       total: 0,
2282
       addLoading: false,
2286
       addLoading: false,
2306
       drug_id: 0,
2310
       drug_id: 0,
2307
       src_type:"",
2311
       src_type:"",
2308
       org_id:0,
2312
       org_id:0,
2309
-     
2313
+      deliveryWay:[],
2314
+    
2310
     };
2315
     };
2311
   },
2316
   },
2312
   methods: {
2317
   methods: {
2318
+    selectDeliveryWay(val){
2319
+       this.listQuery.delivery_way = val
2320
+       this.getList()
2321
+    },
2313
     clickuseradvicecell(row, column, cell, event) {
2322
     clickuseradvicecell(row, column, cell, event) {
2314
       // console.log("row1", row);
2323
       // console.log("row1", row);
2315
       // console.log("column", column);
2324
       // console.log("column", column);
3524
       };
3533
       };
3525
     },
3534
     },
3526
     getList() {
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
       getDoctorAdviceList(this.listQuery).then(response => {
3546
       getDoctorAdviceList(this.listQuery).then(response => {
3528
         if (response.data.state == 1) {
3547
         if (response.data.state == 1) {
3529
           this.adviceTableData = response.data.data.advices;
3548
           this.adviceTableData = response.data.data.advices;
4506
           this.deliveryWayOptions =
4525
           this.deliveryWayOptions =
4507
             response.data.data.drugways === null? []: response.data.data.drugways;
4526
             response.data.data.drugways === null? []: response.data.data.drugways;
4508
           this.executionFrequencyOptions = response.data.data.efs === null ? [] : response.data.data.efs;
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 View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))