wupengfei
6 天以前 ae01c3d1add7715afe9bfb348889eb0ae139701e
src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -122,6 +122,7 @@
const BaseState = {
  loading: true,
  checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
};
const state = reactive({ ...BaseState });
@@ -157,6 +158,7 @@
      let res = await taskCheckReceiveServices.getCheckReceiveTask(params, {
        showLoading: !state.loading,
      });
      state.checkReceiveMethod = res.objectData?.checkReceiveMethod;
      return res;
    } catch (error) {}
  },
@@ -173,6 +175,11 @@
);
function openDialog(row: API.GetCheckReceiveTaskQueryResultItem, isDetail = false) {
  if (state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn) {
    handleManualEdit({
      id: row.id,
    });
  }
  handleEdit({
    id: row.id,
    isDetail,
@@ -189,7 +196,6 @@
const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({
  defaultFormParams: {
    id: '',
    isDetail: false,
  },
});
</script>