Browse Source

单据开关 隐藏

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

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

@ -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) => {

Loading…
Cancel
Save