Browse Source

【nev-pc】上架前/后退货,打印单据数据处理

ag_report_nev
安虹睿 10 months ago
parent
commit
0fa5078e4e
  1. 6
      fe/PC/src/views/rawMaterialManage/beforeGroundingReturn/beforeGroundingReturnNote.vue
  2. 6
      fe/PC/src/views/rawMaterialManage/purchaseReturn/returnNote.vue

6
fe/PC/src/views/rawMaterialManage/beforeGroundingReturn/beforeGroundingReturnNote.vue

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

6
fe/PC/src/views/rawMaterialManage/purchaseReturn/returnNote.vue

@ -109,13 +109,17 @@ export default {
if(val == 'print'){
if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){
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','PurReturnReason');
this.Print(data)
}).catch(err => {
console.log(err)
})
}else{
this.tableDataDetails.supplierShortName = JSON.parse(JSON.stringify(this.propsData.supplierShortName));
let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
this.Print(data)
}

Loading…
Cancel
Save