| | |
| | | !( |
| | | (row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive || |
| | | row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitSubmit) && |
| | | row.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.Submit) |
| | | row.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.Submit) && |
| | | taskInfo.value?.isInternal |
| | | ), |
| | | }, |
| | | }, |
| | | }; |
| | | |
| | | const { column, operationBtns } = useAccess({ |
| | | const { checkSubModuleItemShow, column, operationBtns } = useAccess({ |
| | | operationBtnMap, |
| | | }); |
| | | |
| | |
| | | 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) {} |
| | | }, |
| | |
| | | // id: row.id, |
| | | // }); |
| | | // } else { |
| | | // } |
| | | handleEdit({ |
| | | id: row.id, |
| | | checkReceiveMethods: state.checkReceiveMethods, |
| | | isInternal: state.isInternal, |
| | | tabType: state.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn) |
| | | ? 'signRecord' |
| | | : '', |
| | | checkReceiveMethods: state.checkReceiveMethods, |
| | | isDetail, |
| | | }); |
| | | // } |
| | | } |
| | | |
| | | const { dialogProps, handleEdit } = useFormDialog({ |
| | | defaultFormParams: { |
| | | id: '', |
| | | tabType: '', |
| | | checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[], |
| | | isInternal: false, |
| | | isDetail: false, |
| | | tabType: '', |
| | | }, |
| | | }); |
| | | |