| | |
| | | </QueryFilterItem> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | | v-bind="proTableProps" |
| | | :columns="RewardApplyTradeCheckColumns" |
| | | :operationBtns="operationBtns" |
| | | > |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | </ProTableV2> |
| | | <RewardApplyTradeCheckDialog isApplyTrade v-bind="dialogProps"></RewardApplyTradeCheckDialog> |
| | | </AppContainer> |
| | |
| | | import { ModelValueType } from 'element-plus'; |
| | | import RewardApplyTradeCheckDialog from './components/RewardApplyTradeCheckDialog.vue'; |
| | | import { convertApi2FormUrlObjectBySeparator, convertApi2FormUrlOnlyOne, format } from '@/utils'; |
| | | import { RewardApplyTradeCheckColumns } from './constants'; |
| | | import { useIndustrialParkDropDownList } from '@/hooks/industrialPark'; |
| | | import { useAccess } from '@/hooks'; |
| | | |
| | | defineOptions({ |
| | | name: 'RewardApplyTradeCheck', |
| | | }); |
| | | |
| | | const operationBtns = defineOperationBtns([ |
| | | { |
| | | data: { |
| | | enCode: 'detailBtn', |
| | | name: '详情', |
| | | }, |
| | | const operationBtnMap: Record<string, OperationBtnType> = { |
| | | detailBtn: { |
| | | emits: { |
| | | onClick: (role) => openDialog(role, true), |
| | | }, |
| | |
| | | row.auditStatus === EnumParkBountyTradeDetailAuditStatus.Wait, |
| | | }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'checkBtn', |
| | | name: '审批', |
| | | }, |
| | | checkBtn: { |
| | | emits: { |
| | | onClick: (row) => openDialog(row), |
| | | }, |
| | |
| | | row.auditStatus !== EnumParkBountyTradeDetailAuditStatus.Wait, |
| | | }, |
| | | }, |
| | | ]); |
| | | }; |
| | | |
| | | const { checkSubModuleItemShow, column, operationBtns } = useAccess({ |
| | | operationBtnMap, |
| | | }); |
| | | |
| | | const BaseState = { |
| | | loading: true, |