Browse Source

修改报废金额

dev
caoyizhong 2 years ago
parent
commit
cb4154a247
  1. 18
      src/views/activiti/form/ProcessSmaterialsScrapForm.vue

18
src/views/activiti/form/ProcessSmaterialsScrapForm.vue

@ -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);
}

Loading…
Cancel
Save