|
@ -181,17 +181,17 @@ const isShowSourceTypeButton = (row) => { |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row,$index) => { |
|
|
const butttondata = (row,$index) => { |
|
|
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
|
// const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
|
if(findIndex>-1&&findIndex<$index){ |
|
|
// if(findIndex>-1&&findIndex<$index){ |
|
|
return [defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')})] |
|
|
// return [defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')})] |
|
|
} |
|
|
// } |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 |
|
|
// 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.mainPutawayRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),// 生成采购上架申请 |
|
|
defaultButtons.mainPurchasereturnRecordBtn({hasPermi:'wms:purchasereceipt-record-main:createPurchasereturnRecord',hide:row.purchasereturnRecordFlag == "FALSE" }),// 生成采购退后记录申请 |
|
|
defaultButtons.mainPurchasereturnRecordBtn({hasPermi:'wms:purchasereceipt-record-main:createPurchasereturnRecord',hide:row.purchasereturnRecordFlag == "FALSE" }),// 生成采购退后记录申请 |
|
|
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), // 查看质检报告 |
|
|
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), // 查看质检报告 |
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), // 查看质检报告 |
|
|
// defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), // 查看质检报告 |
|
|
defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')}) |
|
|
// defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')}) |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -203,10 +203,12 @@ const buttonTableClick = async (val, row) => { |
|
|
handleCreateInspectRequest(row.number) |
|
|
handleCreateInspectRequest(row.number) |
|
|
}else if(val == 'purchasereturnRecord'){//生成采购退后记录申请 |
|
|
}else if(val == 'purchasereturnRecord'){//生成采购退后记录申请 |
|
|
handleCreatePurchasereturnRecord(row.number) |
|
|
handleCreatePurchasereturnRecord(row.number) |
|
|
}else if(val == 'mainPlanCheckQualityReport'){ |
|
|
} |
|
|
// 查看质检报告 |
|
|
// else if(val == 'mainPlanCheckQualityReport'){ |
|
|
checkQualityReport(row) |
|
|
// // 查看质检报告 |
|
|
}else if (val == 'printInspection'){ |
|
|
// checkQualityReport(row) |
|
|
|
|
|
// } |
|
|
|
|
|
else if (val == 'printInspection'){ |
|
|
handlePrint(row) |
|
|
handlePrint(row) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|