|
|
@ -334,6 +334,15 @@ const isShowMainButton = (row,val) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 根据收货来源判断该按钮是否显示 |
|
|
|
const isShowSourceTypeButton = (row) => { |
|
|
|
if (row.sourceType == 'EDI' || row.sourceType == 'ASN_ExternalReceipt') { |
|
|
|
return true |
|
|
|
} else { |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isASNShowMainButton = (row,val) => { |
|
|
|
if (val.indexOf(row.status) > -1) { |
|
|
@ -370,7 +379,7 @@ const butttondata = (row,$index) => { |
|
|
|
defaultButtons.mainListPointBtn({ hide: isASNShowMainButton(row, ['3','6','8']) }), // 标签打印 |
|
|
|
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchasereceipt-request-main:handle'}), // 处理 |
|
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:purchasereceipt-request-main:close'}), // 关闭 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({}), // 查看质检报告 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), // 查看质检报告 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|