|
|
|
@ -487,7 +487,7 @@
|
|
|
|
|
this.descriptionFetchDatas(); |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
console.log( this.$refs.processUdgetPlanMaterial); |
|
|
|
|
// console.log( this.$refs.processUdgetPlanMaterial); |
|
|
|
|
// this.form.setFieldsValue("materialGroup",123123); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -600,7 +600,7 @@
|
|
|
|
|
let isEr = true; |
|
|
|
|
if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined){ |
|
|
|
|
if( record.row.id !== undefined && record.row.id !== '' && this.isBu !== record.row.materialGroup ){ |
|
|
|
|
// console.log("1出发了",record.row); |
|
|
|
|
console.log("1出发了",record.row); |
|
|
|
|
this.fetchMerchandiseNews(record.row.materialGroup); |
|
|
|
|
this.isBu = record.row.materialGroup; |
|
|
|
|
let values = [ |
|
|
|
@ -620,10 +620,13 @@
|
|
|
|
|
this.$refs.processUdgetPlanMaterial.setValues(values); |
|
|
|
|
isEr = false; |
|
|
|
|
} |
|
|
|
|
// if( record.row.id !== undefined && record.row.id !== '' || record.row.materialNumber === '' || record.row.materialNumber === undefined){ |
|
|
|
|
// console.log("11出发了",record.row); |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
// console.log("5555出发了",record.row); |
|
|
|
|
if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined && record.row.materialNumber !== '' && record.row.materialNumber !== undefined && isEr){ |
|
|
|
|
// console.log("2出发了",record.row); |
|
|
|
|
console.log("2出发了",record.row); |
|
|
|
|
let materialName = { } |
|
|
|
|
// console.log("this.bigIdMerchandiseNewsList",this.bigIdMerchandiseNewsList) |
|
|
|
|
this.bigIdMerchandiseNewsList.forEach( item => { |
|
|
|
@ -659,7 +662,7 @@
|
|
|
|
|
|
|
|
|
|
if(record.row.materialQuantity !== '' && record.row.materialPrice !== '' && record.row.materialQuantity !== undefined && record.row.materialPrice !== undefined){ |
|
|
|
|
// record.row.materialAmount = record.row.materialQuantity * record.row.materialPrice; |
|
|
|
|
// console.log("3出发了",record.row); |
|
|
|
|
console.log("3出发了",record.row); |
|
|
|
|
//如果单价大于5万 |
|
|
|
|
if(record.row.materialPrice>50000){ |
|
|
|
|
this.materialPrice=record.row.materialPrice |
|
|
|
@ -707,7 +710,7 @@
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
getAction(this.url.merchandiseNewsList,par).then((res)=>{ |
|
|
|
|
console.log(res.result); |
|
|
|
|
console.log("12312",res.result); |
|
|
|
|
if(res.success){ |
|
|
|
|
let newList = res.result; |
|
|
|
|
if(numberList.length > 0){ |
|
|
|
@ -820,6 +823,7 @@
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.isBu = undefined; |
|
|
|
|
}, |
|
|
|
|
/*回显数据*/ |
|
|
|
|
init(){ |
|
|
|
|