|
|
@ -183,14 +183,14 @@ const isShowSourceTypeButton = (row) => { |
|
|
|
const butttondata = (row,$index) => { |
|
|
|
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
|
|
if(findIndex>-1&&findIndex<$index){ |
|
|
|
return [defaultButtons.mainListPrintInspectionBtn(null)] |
|
|
|
return [defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')})] |
|
|
|
} |
|
|
|
return [ |
|
|
|
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 |
|
|
|
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),// 生成采购上架申请 |
|
|
|
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), // 查看质检报告 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), // 查看质检报告 |
|
|
|
defaultButtons.mainListPrintInspectionBtn(null), |
|
|
|
defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')}) |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|