|
@@ -1693,7 +1693,12 @@ export default {
|
|
|
sleObj.drugId = selections.id
|
|
|
sleObj.drugCode = selections.code
|
|
|
sleObj.drugName = selections.name
|
|
|
- this.sysMaterialMedcineItemApply.push(sleObj)
|
|
|
+ // 便利表格内数据
|
|
|
+ if (this.sysMaterialMedcineItemApply.some(item => item.drugId == sleObj.drugId)) {
|
|
|
+ this.$modal.msgWarning("请勿选择重复物料")
|
|
|
+ } else {
|
|
|
+ this.sysMaterialMedcineItemApply.push(sleObj)
|
|
|
+ }
|
|
|
},
|
|
|
// 医药类别子表的显示列表
|
|
|
chooseDrug () {
|