|
@ -109,13 +109,17 @@ export default { |
|
|
if(val == 'print'){ |
|
|
if(val == 'print'){ |
|
|
if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){ |
|
|
if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){ |
|
|
getOneSupplierInfoByCode(this.propsData.supplierCode).then(async res => { |
|
|
getOneSupplierInfoByCode(this.propsData.supplierCode).then(async res => { |
|
|
if(res){this.propsData.supplierShortName = res.shortName || res.name} |
|
|
if(res){ |
|
|
|
|
|
this.propsData.supplierShortName = res.shortName || res.name |
|
|
|
|
|
this.tableDataDetails.supplierShortName = JSON.parse(JSON.stringify(this.propsData.supplierShortName)); |
|
|
|
|
|
} |
|
|
let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason'); |
|
|
let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason'); |
|
|
this.Print(data) |
|
|
this.Print(data) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
this.tableDataDetails.supplierShortName = JSON.parse(JSON.stringify(this.propsData.supplierShortName)); |
|
|
let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason'); |
|
|
let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason'); |
|
|
this.Print(data) |
|
|
this.Print(data) |
|
|
} |
|
|
} |
|
|