| | |
| | | <SearchInput |
| | | v-model="extraParamState.keywords" |
| | | style="width: 260px" |
| | | placeholder="任务名称" |
| | | placeholder="任务名称/客户" |
| | | @on-click-search="getList" |
| | | > |
| | | </SearchInput> |
| | |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | <template #userCount="{ row }"> |
| | | <el-button link type="primary" @click="goSignList(row)">{{ |
| | | <el-button v-if="!row.isInternal" link type="primary" @click="goSignList(row)">{{ |
| | | row.userCount || 0 |
| | | }}</el-button> |
| | | <span v-else>/</span> |
| | | </template> |
| | | </ProTableV2> |
| | | </AppContainer> |
| | |
| | | useTable, |
| | | FieldDatePicker, |
| | | FieldRadio, |
| | | defineOperationBtns, |
| | | } from '@bole-core/components'; |
| | | import { EnumTaskStatusText, EnumTaskReleaseStatusText } from '@/constants'; |
| | | import { useGlobalEventContext } from '@/hooks'; |
| | |
| | | onClick: (role) => goAddOrEdit(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetTaskInfosQueryResultItem) => row.status === EnumTaskStatus.Complete, |
| | | hide: (row: API.GetTaskInfosQueryResultItem) => |
| | | row.status === EnumTaskStatus.Complete || !row.isInternal, |
| | | }, |
| | | }, |
| | | detailBtn: { |
| | |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetTaskInfosQueryResultItem) => |
| | | row.releaseStatus === EnumTaskReleaseStatus.InProcess, |
| | | row.releaseStatus === EnumTaskReleaseStatus.InProcess || !row.isInternal, |
| | | }, |
| | | }, |
| | | unPublishBtn: { |
| | |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetTaskInfosQueryResultItem) => |
| | | row.releaseStatus === EnumTaskReleaseStatus.Stopped, |
| | | row.releaseStatus === EnumTaskReleaseStatus.Stopped || !row.isInternal, |
| | | }, |
| | | }, |
| | | arrangeBtn: { |
| | |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetTaskInfosQueryResultItem) => |
| | | row.releaseStatus === EnumTaskReleaseStatus.Stopped, |
| | | row.releaseStatus === EnumTaskReleaseStatus.Stopped || !row.isInternal, |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | beginTime: { type: 'date', format: 'YYYY-MM-DD' }, |
| | | endTime: { type: 'date', format: 'YYYY-MM-DD' }, |
| | | serviceFee: { |
| | | type: 'text', |
| | | type: 'money', |
| | | formatter: (row: API.GetTaskInfosQueryResultItem) => { |
| | | return OrderUtils.getServiceFeeText(row.serviceFee, row.billingMethod); |
| | | }, |
| | |
| | | params: { |
| | | id: row?.id ?? '', |
| | | }, |
| | | query: { |
| | | supplierEnterpriseId: row?.supplierEnterpriseId, |
| | | }, |
| | | }); |
| | | } |
| | | function goDetail(row: API.GetTaskInfosQueryResultItem) { |