|
|
@ -81,6 +81,7 @@ |
|
|
|
:actionButton="true" |
|
|
|
:actionButton="true" |
|
|
|
@descriptionFetch="descriptionFetchDatas" |
|
|
|
@descriptionFetch="descriptionFetchDatas" |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<!-- @selectRowChange="selectRowChange"--> |
|
|
|
<!-- <template v-slot:group="props">--> |
|
|
|
<!-- <template v-slot:group="props">--> |
|
|
|
<!-- <a-auto-complete--> |
|
|
|
<!-- <a-auto-complete--> |
|
|
|
<!-- v-decorator="[`materialGroup`]"--> |
|
|
|
<!-- v-decorator="[`materialGroup`]"--> |
|
|
@ -591,6 +592,9 @@ |
|
|
|
// this.form.setFieldsValue("materialGroup",123123); |
|
|
|
// this.form.setFieldsValue("materialGroup",123123); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
selectRowChange(a,b,c){ |
|
|
|
|
|
|
|
console.log("执行了",a,b,c); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// handleChange(value, key, column) { |
|
|
|
// handleChange(value, key, column) { |
|
|
|
// const newData = [...this.data]; |
|
|
|
// const newData = [...this.data]; |
|
|
@ -742,7 +746,7 @@ |
|
|
|
let isEr = true; |
|
|
|
let isEr = true; |
|
|
|
if(!!record.row.materialGroup){ |
|
|
|
if(!!record.row.materialGroup){ |
|
|
|
if( !!record.row.id && this.isBu !== record.row.materialGroup ){ |
|
|
|
if( !!record.row.id && this.isBu !== record.row.materialGroup ){ |
|
|
|
console.log("1出发了",record.row); |
|
|
|
// console.log("1出发了",record.row); |
|
|
|
this.isabled = false; |
|
|
|
this.isabled = false; |
|
|
|
this.fetchMerchandiseNews(record.row.materialGroup); |
|
|
|
this.fetchMerchandiseNews(record.row.materialGroup); |
|
|
|
this.isBu = record.row.materialGroup; |
|
|
|
this.isBu = record.row.materialGroup; |
|
|
@ -769,7 +773,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
// console.log("5555出发了",record.row); |
|
|
|
// console.log("5555出发了",record.row); |
|
|
|
if(!!record.row.materialGroup && !!record.row.materialNumber && isEr){ |
|
|
|
if(!!record.row.materialGroup && !!record.row.materialNumber && isEr){ |
|
|
|
console.log("2出发了",record.row); |
|
|
|
// console.log("2出发了",record.row); |
|
|
|
let materialName = { } |
|
|
|
let materialName = { } |
|
|
|
// console.log("this.bigIdMerchandiseNewsList",this.bigIdMerchandiseNewsList) |
|
|
|
// console.log("this.bigIdMerchandiseNewsList",this.bigIdMerchandiseNewsList) |
|
|
|
this.bigIdMerchandiseNewsList.forEach( item => { |
|
|
|
this.bigIdMerchandiseNewsList.forEach( item => { |
|
|
@ -805,7 +809,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
if(!!record.row.materialQuantity && !!record.row.materialPrice ){ |
|
|
|
if(!!record.row.materialQuantity && !!record.row.materialPrice ){ |
|
|
|
// record.row.materialAmount = record.row.materialQuantity * record.row.materialPrice; |
|
|
|
// record.row.materialAmount = record.row.materialQuantity * record.row.materialPrice; |
|
|
|
console.log("3出发了",record.row); |
|
|
|
// console.log("3出发了",record.row); |
|
|
|
//如果单价大于5万 |
|
|
|
//如果单价大于5万 |
|
|
|
if(record.row.materialPrice>50000){ |
|
|
|
if(record.row.materialPrice>50000){ |
|
|
|
this.materialPrice=record.row.materialPrice |
|
|
|
this.materialPrice=record.row.materialPrice |
|
|
|