Browse Source

SCP供应商物料不展示操作

hella_online_20240829
wangyufei 5 months ago
parent
commit
329b806485
  1. 8
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

8
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -76,12 +76,16 @@ const route = useRoute() //路由信息
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(Supplieritem.allSchemas.tableColumns) const tableColumns = ref(Supplieritem.allSchemas.tableColumns)
if(routeName.value.includes('SCP')){
tableColumns.value = tableColumns.value.filter(item=>item.field!='action')
}
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
if(routeName.value.includes('SCP')){
val = val.filter(item=>item.field!='action')
}
tableColumns.value = val tableColumns.value = val
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: routeName.value.includes('SCP')?SupplieritemApi.getSupplieritemPageSCP:SupplieritemApi.getSupplieritemPage // getListApi: routeName.value.includes('SCP')?SupplieritemApi.getSupplieritemPageSCP:SupplieritemApi.getSupplieritemPage //
}) })

Loading…
Cancel
Save