|
|
@ -32,8 +32,8 @@ |
|
|
|
<span>{{ row.code }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
<template #action="{ row }"> |
|
|
|
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> |
|
|
|
<template #action="{ row, $index }"> |
|
|
|
<ButtonBase :Butttondata="butttondata(row, $index)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
|
</template> |
|
|
|
</Table> |
|
|
|
</ContentWrap> |
|
|
@ -129,10 +129,20 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = [ |
|
|
|
defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
|
|
|
|
|
const butttondata = (row, $index)=>{ |
|
|
|
const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated', |
|
|
|
'CreateBackflushRecordAfterProductreceiptRecordCreated', |
|
|
|
'CreateProductputawayRequestAfterProductreceiptRecordCreated', |
|
|
|
'ExecuteProductreceiptJobPredictIsCreatePutawayRequest', |
|
|
|
'CreatePurchasePlanAfterDiscretePurchaseOrderPublished', |
|
|
|
'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated', |
|
|
|
'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated'] |
|
|
|
return [ |
|
|
|
defaultButtons.mainListEditBtn({hide:hiddenArray.indexOf(row.code)>-1}), // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:switch:delete'}), // 删除 |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|