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", name: "print-shd",
size: 'mini' size: 'mini'
}, },
{ // {
type: 'info', // type: 'info',
icon: 'el-icon-printer', // icon: 'el-icon-printer',
label: '打印退货单', // label: '退',
name: "print-thd", // name: "print-thd",
hide: () => { return this.hideButton('bhgpshmx') }, // hide: () => { return this.hideButton('bhgpshmx') },
size: 'mini' // size: 'mini'
}, // },
], ],
// table // table
dropdownTabsData: [ dropdownTabsData: [
@ -230,24 +230,24 @@ export default {
}) })
} }
// 退 // 退
if(val == 'print-thd'){ // if(val == 'print-thd'){
this.toPrintHttp(()=>{ // this.toPrintHttp(()=>{
let _printData = JSON.parse(JSON.stringify(this.propsData)) // let _printData = JSON.parse(JSON.stringify(this.propsData))
_printData.details = [] // _printData.details = []
this.propsData.details.forEach(item => { // this.propsData.details.forEach(item => {
if(item.purchaseReceiptInspectStatus == 3){ // if(item.purchaseReceiptInspectStatus == 3){
_printData.details.push(item) // _printData.details.push(item)
} // }
}); // });
let _option = { // let _option = {
details:{ // details:{
reason:"failedReason" // reason:"failedReason"
} // }
} // }
let data = initPrintAllData(_printData,'thd.rdlx','UnqualifiedReason',_option); // let data = initPrintAllData(_printData,'thd.rdlx','UnqualifiedReason',_option);
this.Print(data) // this.Print(data)
}) // })
} // }
}, },
// table // table
currenDrawerButtonClick(row){ currenDrawerButtonClick(row){

Loading…
Cancel
Save