| | |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <CheckManageDialog v-bind="dialogProps" /> |
| | | <ManualCheckManageDialog v-bind="dialogManualProps" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | import { EnumBillingMethodUnitText } from '@/constants'; |
| | | import dayjs from 'dayjs'; |
| | | import CheckManageDialog from './components/CheckManageDialog.vue'; |
| | | import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'CheckReceiveTaskDetail', |
| | |
| | | |
| | | const BaseState = { |
| | | loading: true, |
| | | checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod, |
| | | }; |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | |
| | | let res = await taskCheckReceiveServices.getCheckReceiveTask(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | | state.checkReceiveMethod = res.objectData?.checkReceiveMethod; |
| | | return res; |
| | | } catch (error) {} |
| | | }, |
| | |
| | | ); |
| | | |
| | | function openDialog(row: API.GetCheckReceiveTaskQueryResultItem, isDetail = false) { |
| | | if (state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn) { |
| | | handleManualEdit({ |
| | | id: row.id, |
| | | }); |
| | | } |
| | | handleEdit({ |
| | | id: row.id, |
| | | isDetail, |
| | |
| | | isDetail: false, |
| | | }, |
| | | }); |
| | | |
| | | const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({ |
| | | defaultFormParams: { |
| | | id: '', |
| | | }, |
| | | }); |
| | | </script> |