| | |
| | | |
| | | 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, |
| | |
| | | const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({ |
| | | defaultFormParams: { |
| | | id: '', |
| | | isDetail: false, |
| | | }, |
| | | }); |
| | | </script> |