| | |
| | | ProFormCol, |
| | | ProFormColItem, |
| | | ProFormItemV2, |
| | | ProTableQueryFilterBar, |
| | | } from '@bole-core/components'; |
| | | import * as taskCheckReceiveServices from '@/services/api/taskCheckReceive'; |
| | | import * as taskServices from '@/services/api/task'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { OrderUtils } from '@/utils'; |
| | | import { EnumBillingMethodUnitText, EnumBillingMethod, EnumBillingMethodText } from '@/constants'; |
| | | import dayjs from 'dayjs'; |
| | | import CheckManageDialog from './components/CheckManageDialog.vue'; |
| | | import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue'; |
| | |
| | | detailBtn: { |
| | | emits: { |
| | | onClick: (role) => openDialog(role, true), |
| | | }, |
| | | }, |
| | | acceptanceBtn: { |
| | | emits: { |
| | | onClick: (role) => openDialog(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetCheckReceiveTaskQueryResultItem) => |
| | | !( |
| | | (row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive || |
| | | row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitSubmit) && |
| | | row.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.Submit) && |
| | | taskInfo.value?.isInternal |
| | | ), |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | const BaseState = { |
| | | loading: true, |
| | | checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[], |
| | | |
| | | isInternal: false, |
| | | }; |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | |
| | | showLoading: !state.loading, |
| | | }); |
| | | state.checkReceiveMethods = res.objectData?.checkReceiveMethods; |
| | | state.isInternal = res.objectData?.isInternal; |
| | | return res; |
| | | } catch (error) {} |
| | | }, |
| | |
| | | handleEdit({ |
| | | id: row.id, |
| | | checkReceiveMethods: state.checkReceiveMethods, |
| | | isInternal: state.isInternal, |
| | | tabType: state.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn) |
| | | ? 'signRecord' |
| | | : '', |
| | | isDetail, |
| | | }); |
| | | } |
| | |
| | | defaultFormParams: { |
| | | id: '', |
| | | checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[], |
| | | isInternal: false, |
| | | isDetail: false, |
| | | tabType: '', |
| | | }, |
| | | }); |
| | | |