XMLWAN 3 lat temu
rodzic
commit
3c55dcc120

+ 1 - 0
src/xt_pages/data/components/drugs.vue Wyświetl plik

@@ -734,6 +734,7 @@
734 734
             return false
735 735
           } else {
736 736
             this.total = response.data.data.total;
737
+            console.log("total22222",total)
737 738
             this.list = [];
738 739
             for (let i = 0; i < response.data.data.list.length; i++) {
739 740
               this.list.push(response.data.data.list[i])

+ 15 - 9
src/xt_pages/stock/drugs/query.vue Wyświetl plik

@@ -191,7 +191,6 @@
191 191
   export default {
192 192
     name: 'stockIn',
193 193
     created() {
194
-      //  this.GetAllDrugStockQueryList()
195 194
       var drugCategory = getDictionaryDataConfig('system','drug_category')
196 195
       this.drugCategory.push(...drugCategory)
197 196
       this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
@@ -346,11 +345,13 @@
346 345
       },
347 346
       handleSizeChange(val) {
348 347
         this.limit = val
349
-        this.GetAllDrugStockQueryList()
348
+        // this.GetAllDrugStockQueryList()
349
+        this.getlist()
350 350
       },
351 351
       handleCurrentChange(val) {
352 352
         this.page = val
353
-        this.GetAllDrugStockQueryList()
353
+        // this.GetAllDrugStockQueryList()
354
+        this.getlist()
354 355
       },
355 356
       calculate: function(val) {
356 357
         return Math.round(parseFloat(val) * 100) / 100
@@ -363,7 +364,8 @@
363 364
         this.$message.error("开始时间不能大于结束时间");
364 365
         this.start_time = "";
365 366
       } else {
366
-        this.GetAllDrugStockQueryList();
367
+        // this.GetAllDrugStockQueryList();
368
+        this.getlist()
367 369
       }
368 370
     },
369 371
     endTimeChange: function(val) {
@@ -372,7 +374,8 @@
372 374
         this.$message.error("结束时间不能小于开始时间");
373 375
         this.end_time = "";
374 376
       } else {
375
-        this.GetAllDrugStockQueryList();
377
+        // this.GetAllDrugStockQueryList();
378
+        this.getlist()
376 379
       }
377 380
      
378 381
     },
@@ -415,7 +418,8 @@
415 418
       showCancelStockDetailDialog: function() {
416 419
       },
417 420
       search: function() {
418
-        this.GetAllDrugStockQueryList()
421
+        // this.GetAllDrugStockQueryList()
422
+        this.getlist()
419 423
       }, 
420 424
       setting: function() {
421 425
         this.$refs.dialog.show()
@@ -447,7 +451,8 @@
447 451
         return (new Date(time)).getTime() / 1000
448 452
       },
449 453
       changeDrug(){
450
-       this.GetAllDrugStockQueryList()
454
+     
455
+      this.getlist()
451 456
       },
452 457
       printOrder(){
453 458
         this.$router.push({
@@ -466,13 +471,14 @@
466 471
           start_time:this.start_time,
467 472
           end_time:this.end_time,
468 473
         }
469
-       
474
+        
470 475
         getDrugStockList(params).then(response=>{
471 476
           if(response.data.state == 1){
472 477
              var list = response.data.data.list
473
-             console.log("list",list)
478
+             console.log("list99999",list)
474 479
              this.tableList = list
475 480
              var total = response.data.data.total
481
+             console.log("total",total)
476 482
              this.total = total
477 483
              this.manufacturerList = response.data.data.manufacturerList
478 484
            

+ 7 - 9
src/xt_pages/stock/stockQuery.vue Wyświetl plik

@@ -46,7 +46,7 @@
46 46
             style="width: 200px;margin-left:10px;"
47 47
             class="filter-item"
48 48
             v-model.trim="keywords"
49
-            placeholder="耗材名称/商品编码/商品名称/规格名称"
49
+            placeholder="耗材名称"
50 50
           />
51 51
           <el-button
52 52
             size="small"
@@ -288,7 +288,7 @@ export default {
288 288
       },
289 289
       options:[],
290 290
       value:"",
291
-      type_name:"",
291
+      type_name:0,
292 292
       types:[],
293 293
       tableList:[],
294 294
       manufacturerList:[]
@@ -391,12 +391,11 @@ export default {
391 391
     },
392 392
     handleSizeChange(val) {
393 393
       this.limit = val;
394
-      // this.GetAllStockQuery();
394
+     
395 395
       this.getlist()
396 396
     },
397 397
     handleCurrentChange(val) {
398 398
       this.page = val;
399
-      // this.GetAllStockQuery();
400 399
        this.getlist()
401 400
     },
402 401
     calculate: function(val) {
@@ -410,7 +409,6 @@ export default {
410 409
         this.start_time = "";
411 410
       } else {
412 411
         this.start_time = val
413
-        // this.GetAllStockQuery();
414 412
          this.getlist()
415 413
       }
416 414
     },
@@ -421,7 +419,6 @@ export default {
421 419
         this.end_time = "";
422 420
       } else {
423 421
         this.end_time = val
424
-        // this.GetAllStockQuery();
425 422
          this.getlist()
426 423
       }
427 424
      
@@ -460,7 +457,6 @@ export default {
460 457
     showStockOutDetailDialog: function() {},
461 458
     showCancelStockDetailDialog: function() {},
462 459
     search: function() {
463
-      // this.GetAllStockQuery();
464 460
       this.getlist()
465 461
     },
466 462
 
@@ -519,18 +515,20 @@ export default {
519 515
       const params = {
520 516
         page: this.page,
521 517
         limit: this.limit,
522
-        keyword: this.keywords,
518
+        keywords: this.keywords,
523 519
         start_time:this.start_time,
524 520
         end_time:this.end_time,
525 521
         type_name:this.type_name,
526 522
       };
527
-
523
+     console.log("params",params)
528 524
       getAllStockList(params).then(response=>{
529 525
          if(response.data.state == 1){
530 526
           var list = response.data.data.list
531 527
           console.log("list22222",list)
532 528
           this.tableList = list
533 529
           var total = response.data.data.total
530
+          console.log("total",total)
531
+          this.total = total
534 532
            var manufacturerList = response.data.data.manufacturerList
535 533
            this.manufacturerList = manufacturerList
536 534
          }