Browse Source

单据开关 隐藏

hella_online_20240829
wangyufei 4 months ago
parent
commit
d6a90e12b5
  1. 22
      src/views/wms/basicDataManage/documentSetting/switch/index.vue

22
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -32,8 +32,8 @@
<span>{{ row.code }}</span> <span>{{ row.code }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row, $index }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row, $index)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -129,10 +129,20 @@ const buttonBaseClick = (val, item) => {
} }
// - // -
const butttondata = [
defaultButtons.mainListEditBtn(null), // const butttondata = (row, $index)=>{
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:switch:delete'}), // 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) => { const buttonTableClick = async (val, row) => {

Loading…
Cancel
Save