|
|
|
@ -484,7 +484,6 @@
|
|
|
|
|
async onSelect(record){ |
|
|
|
|
//物料号 |
|
|
|
|
if(record.column.key == "equipment" && !!record.row.id || record.column.key == "materialName" && !!record.row.id ){ |
|
|
|
|
console.log("--",record) |
|
|
|
|
await this.pastSla(); |
|
|
|
|
let l = false; |
|
|
|
|
this.historyNumList.forEach( item =>{ |
|
|
|
@ -503,16 +502,25 @@
|
|
|
|
|
sous = true; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
console.log("11111111111") |
|
|
|
|
if(!sous){ |
|
|
|
|
console.log("22222222") |
|
|
|
|
await this.searchInformation(record.value); |
|
|
|
|
} |
|
|
|
|
console.log("333333") |
|
|
|
|
this.fuZhi(record.row.id,record.value); |
|
|
|
|
} |
|
|
|
|
await this.jinYong(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//计算金额 |
|
|
|
|
if(record.column.key = "materialAmount" && !!record.row.scrapNumber && this.disabled){ |
|
|
|
|
let values = [ |
|
|
|
|
{ |
|
|
|
|
rowKey: record.row.id, |
|
|
|
|
values: { |
|
|
|
|
// 'scrapNumber': record.row.scrapNumber > 0 ? record.row.scrapNumber : 1 , |
|
|
|
|
'materialAmount': accMul(record.row.materialAmount,record.row.materialPrice) > 0 ? accMul(record.row.materialAmount,record.row.materialPrice) : 1 * record.row.materialPrice, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
this.$refs.processSmaterialsScrapList.setValues(values); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|