|
@@ -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) {
|