|
|
|
@ -739,8 +739,8 @@
|
|
|
|
|
onSelect(record) { |
|
|
|
|
// console.log("0出发了",record.row); |
|
|
|
|
let isEr = true; |
|
|
|
|
if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined){ |
|
|
|
|
if( record.row.id !== undefined && record.row.id !== '' && this.isBu !== record.row.materialGroup ){ |
|
|
|
|
if(!!record.row.materialGroup){ |
|
|
|
|
if( !!record.row.id && this.isBu !== record.row.materialGroup ){ |
|
|
|
|
console.log("1出发了",record.row); |
|
|
|
|
this.isabled = false; |
|
|
|
|
this.fetchMerchandiseNews(record.row.materialGroup); |
|
|
|
@ -767,7 +767,7 @@
|
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
// console.log("5555出发了",record.row); |
|
|
|
|
if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined && record.row.materialNumber !== '' && record.row.materialNumber !== undefined && isEr){ |
|
|
|
|
if(!!record.row.materialGroup && !!record.row.materialNumber && isEr){ |
|
|
|
|
console.log("2出发了",record.row); |
|
|
|
|
let materialName = { } |
|
|
|
|
// console.log("this.bigIdMerchandiseNewsList",this.bigIdMerchandiseNewsList) |
|
|
|
@ -782,7 +782,7 @@
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// console.log(materialName); |
|
|
|
|
if(record.row.id !== undefined){ |
|
|
|
|
if(!!record.row.id ){ |
|
|
|
|
let values = [ |
|
|
|
|
{ |
|
|
|
|
rowKey: record.row.id, |
|
|
|
@ -790,7 +790,7 @@
|
|
|
|
|
'materialNumber': record.row.materialNumber, |
|
|
|
|
'materialGroup': record.row.materialGroup, |
|
|
|
|
// 'materialGroup': this.materialId, |
|
|
|
|
'materialSeries': '', |
|
|
|
|
'materialSeries': record.row.materialSeries, |
|
|
|
|
'materialName': materialName.name, |
|
|
|
|
'materialUnit': materialName.unit, |
|
|
|
|
'supplierId': materialName.supplierId |
|
|
|
@ -802,7 +802,7 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(record.row.materialQuantity !== '' && record.row.materialPrice !== '' && record.row.materialQuantity !== undefined && record.row.materialPrice !== undefined){ |
|
|
|
|
if(!!record.row.materialQuantity && !!record.row.materialPrice ){ |
|
|
|
|
// record.row.materialAmount = record.row.materialQuantity * record.row.materialPrice; |
|
|
|
|
console.log("3出发了",record.row); |
|
|
|
|
//如果单价大于5万 |
|
|
|
|