wupengfei
6 天以前 ae01c3d1add7715afe9bfb348889eb0ae139701e
src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -48,6 +48,7 @@
      </ProTableV2>
    </AppContainer>
    <CheckManageDialog v-bind="dialogProps" />
    <ManualCheckManageDialog v-bind="dialogManualProps" />
  </LoadingLayout>
</template>
@@ -72,6 +73,7 @@
import { EnumBillingMethodUnitText } from '@/constants';
import dayjs from 'dayjs';
import CheckManageDialog from './components/CheckManageDialog.vue';
import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue';
defineOptions({
  name: 'CheckReceiveTaskDetail',
@@ -120,6 +122,7 @@
const BaseState = {
  loading: true,
  checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
};
const state = reactive({ ...BaseState });
@@ -155,6 +158,7 @@
      let res = await taskCheckReceiveServices.getCheckReceiveTask(params, {
        showLoading: !state.loading,
      });
      state.checkReceiveMethod = res.objectData?.checkReceiveMethod;
      return res;
    } catch (error) {}
  },
@@ -171,6 +175,11 @@
);
function openDialog(row: API.GetCheckReceiveTaskQueryResultItem, isDetail = false) {
  if (state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn) {
    handleManualEdit({
      id: row.id,
    });
  }
  handleEdit({
    id: row.id,
    isDetail,
@@ -183,4 +192,10 @@
    isDetail: false,
  },
});
const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({
  defaultFormParams: {
    id: '',
  },
});
</script>