Ver código fonte

透析数据

XMLWAN 4 anos atrás
pai
commit
c24211a725

+ 6 - 4
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Ver arquivo

@@ -421,7 +421,7 @@
421 421
         this.isVisibility = true
422 422
       }, 
423 423
       comfirm: function(val) {
424
-
424
+        console.log("Val2222222",val)
425 425
         this.$refs.dialog.hide()
426 426
         if (val.selectedGoodInfo.length > 0) {
427 427
           for (let i = val.selectedGoodInfo.length - 1; i >= 0; i--) {
@@ -443,7 +443,7 @@
443 443
               tempForm['remark'] = ''
444 444
               tempForm['dealer'] = ''
445 445
               tempForm['manufacturer'] = ''
446
-              tempForm['min_unit']=''
446
+              tempForm['min_unit']= val.selectedGoodInfo[i].min_unit
447 447
               this.recordInfo.recordData.splice(this.currentIndex + 1, 0, tempForm)
448 448
             }
449 449
           }
@@ -489,7 +489,7 @@
489 489
         })
490 490
       },
491 491
        typeName: function(drug_id) {
492
-         console.log("3333333过年",this.goodInfo)
492
+        
493 493
         let name = "";
494 494
         for (let i = 0; i < this.goodInfo.length; i++) {
495 495
           if (this.goodInfo[i].id == drug_id) {
@@ -506,7 +506,8 @@
506 506
           }
507 507
         }
508 508
         return name;
509
-      }, handleEdit: function(index, row) {
509
+      },
510
+       handleEdit: function(index, row) {
510 511
         const tempObj = {}
511 512
         tempObj['drug_id'] = 0
512 513
         tempObj['number'] = ''
@@ -518,6 +519,7 @@
518 519
         tempObj['remark'] = ''
519 520
         tempObj['dealer'] = ''
520 521
         tempObj['manufacturer'] = ''
522
+        tempObj['min_unit'] = ''
521 523
         this.recordInfo.recordData.push(tempObj)
522 524
       }, handleDelete: function(index, row) {
523 525
         if (this.recordInfo.recordData.length <= 1) {

+ 3 - 2
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Ver arquivo

@@ -341,6 +341,7 @@ export default {
341 341
             tempForm['price'] =  val.selectedGoodInfo[i].last_price.toString()
342 342
             tempForm['count'] = ''
343 343
             tempForm['remark'] = ''
344
+            tempForm['min_unit'] = val.selectedGoodInfo[i].min_unit
344 345
             this.recordInfo.recordData.splice(this.currentIndex + 1, 0, tempForm)
345 346
           }
346 347
         }
@@ -443,7 +444,7 @@ export default {
443 444
       tempObj["price"] = "";
444 445
       tempObj["retail_price"] = "";
445 446
       tempObj["remark"] = "";
446
-
447
+      tempObj["min_unit"] = "";
447 448
       this.recordInfo.recordData.push(tempObj);
448 449
     },
449 450
     handleDelete: function(index, row) {
@@ -597,7 +598,7 @@ export default {
597 598
     tempObj["return_count"] = 0;
598 599
     tempObj["price"] = "";
599 600
     tempObj["remark"] = "";
600
-
601
+    tempObj["min_unit"] = "";
601 602
 
602 603
     this.recordInfo.recordData.push(tempObj);
603 604
     this.GetConfigInfo();

+ 2 - 1
src/xt_pages/stock/stockInOrderAdd.vue Ver arquivo

@@ -475,6 +475,7 @@
475 475
         tempObj['remark'] = ''
476 476
         tempObj['dealer'] = ''
477 477
         tempObj['manufacturer'] = ''
478
+        tempObj['good_unit'] = ''
478 479
         this.recordInfo.recordData.push(tempObj)
479 480
       }, handleDelete: function(index, row) {
480 481
         if (this.recordInfo.recordData.length <= 1) {
@@ -496,7 +497,7 @@
496 497
         this.recordInfo.recordData = []
497 498
         getWarehouseInfoByOrdeNumber(params).then(response => {
498 499
           if (response.data.state != 0) {
499
-             console.log("8888888888mma",response.data.data.info)
500
+            
500 501
             for (let i = 0; i < response.data.data.info.length; i++) {
501 502
               this.recordInfo.recordData.push(response.data.data.info[i])
502 503
             }

+ 1 - 1
src/xt_pages/stock/stockOutOrderAdd.vue Ver arquivo

@@ -463,7 +463,7 @@ export default {
463 463
       tempObj["count"] = "";
464 464
       tempObj["price"] = "";
465 465
       tempObj["remark"] = "";
466
-
466
+      tempObj["good_unit"] = "";
467 467
       this.recordInfo.recordData.push(tempObj);
468 468
     },
469 469
     handleDelete: function(index, row) {