|
|
|
@ -2181,7 +2181,7 @@ export default { |
|
|
|
this.partData.partNo = this.modalData.partNo |
|
|
|
queryPartList(this.partData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
if (data.rows.length === 1) { |
|
|
|
this.modalData.partDesc = data.rows[0].partDesc |
|
|
|
this.modalData.printUnit = data.rows[0].printUnit |
|
|
|
this.modalData.printUnitName = data.rows[0].printUnitName |
|
|
|
@ -2270,7 +2270,7 @@ export default { |
|
|
|
this.componentPartData.partNo = this.componentData.componentPart |
|
|
|
queryPartList(this.componentPartData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
if (data.rows.length === 1) { |
|
|
|
this.componentData.componentPartDesc = data.rows[0].partDesc |
|
|
|
this.componentData.printUnit = data.rows[0].printUnit |
|
|
|
this.componentData.printUnitName = data.rows[0].printUnitName |
|
|
|
|