Browse Source

隐藏不合格品打印退货单按钮

dev_web_online
安虹睿 2 years ago
parent
commit
f52a77eab6
  1. 52
      fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseReceiptNote-msQuery.vue

52
fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseReceiptNote-msQuery.vue

@ -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){

Loading…
Cancel
Save