|
|
@ -103,14 +103,14 @@ export default { |
|
|
|
name: "print-shd", |
|
|
|
size: 'mini' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'info', |
|
|
|
icon: 'el-icon-printer', |
|
|
|
label: '打印退货单', |
|
|
|
name: "print-thd", |
|
|
|
hide: () => { return this.hideButton('bhgpshmx') }, |
|
|
|
size: 'mini' |
|
|
|
}, |
|
|
|
// { |
|
|
|
// type: 'info', |
|
|
|
// icon: 'el-icon-printer', |
|
|
|
// label: '打印退货单', |
|
|
|
// name: "print-thd", |
|
|
|
// hide: () => { return this.hideButton('bhgpshmx') }, |
|
|
|
// size: 'mini' |
|
|
|
// }, |
|
|
|
], |
|
|
|
// 自定义详情明细汇总等table页 |
|
|
|
dropdownTabsData: [ |
|
|
@ -230,24 +230,24 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
// 打印退货单(不合格品收货明细显示) |
|
|
|
if(val == 'print-thd'){ |
|
|
|
this.toPrintHttp(()=>{ |
|
|
|
let _printData = JSON.parse(JSON.stringify(this.propsData)) |
|
|
|
_printData.details = [] |
|
|
|
this.propsData.details.forEach(item => { |
|
|
|
if(item.purchaseReceiptInspectStatus == 3){ |
|
|
|
_printData.details.push(item) |
|
|
|
} |
|
|
|
}); |
|
|
|
let _option = { |
|
|
|
details:{ |
|
|
|
reason:"failedReason" |
|
|
|
} |
|
|
|
} |
|
|
|
let data = initPrintAllData(_printData,'thd.rdlx','UnqualifiedReason',_option); |
|
|
|
this.Print(data) |
|
|
|
}) |
|
|
|
} |
|
|
|
// if(val == 'print-thd'){ |
|
|
|
// this.toPrintHttp(()=>{ |
|
|
|
// let _printData = JSON.parse(JSON.stringify(this.propsData)) |
|
|
|
// _printData.details = [] |
|
|
|
// this.propsData.details.forEach(item => { |
|
|
|
// if(item.purchaseReceiptInspectStatus == 3){ |
|
|
|
// _printData.details.push(item) |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// let _option = { |
|
|
|
// details:{ |
|
|
|
// reason:"failedReason" |
|
|
|
// } |
|
|
|
// } |
|
|
|
// let data = initPrintAllData(_printData,'thd.rdlx','UnqualifiedReason',_option); |
|
|
|
// this.Print(data) |
|
|
|
// }) |
|
|
|
// } |
|
|
|
}, |
|
|
|
// 明细table按钮 |
|
|
|
currenDrawerButtonClick(row){ |
|
|
|