zhengyiming
2 天以前 f51b20beaeaaade5e3336b5eff749066c6a34b03
src/views/FlexJobManage/FlexJobManage.vue
@@ -322,24 +322,27 @@
  },
});
function openDialog(row: API.GetEnterpriseEmployeesQueryResultItem, isDetail = false) {
  handleStaffInfoEdit({
    id: row.id,
    name: row.name,
    identity: row.identity,
    contactPhoneNumber: row.contactPhoneNumber,
    gender: row.gender,
    age: row.age ?? null,
    idFrontUrl: convertApi2FormUrlOnlyOne(row.idFrontUrl),
    idBackUrl: convertApi2FormUrlOnlyOne(row.idBackUrl),
    contractUrl: convertApi2FormUrlOnlyOne(row.contractUrl, {
      fileName: row.contractUrl ? row.contractUrl.split('/').pop() : '合同',
    }),
    regiterTime: row.regiterTime ?? '',
    userRealTime: row.userRealTime,
    userSignContractTime: row.userSignContractTime,
    isDetail: isDetail,
  });
async function openDialog(row: API.GetEnterpriseEmployeesQueryResultItem, isDetail = false) {
  try {
    let detail = await enterpriseEmployeeServices.getEnterpriseEmployee({ id: row.id });
    handleStaffInfoEdit({
      id: row.id,
      name: row.name,
      identity: row.identity,
      contactPhoneNumber: row.contactPhoneNumber,
      gender: detail.gender,
      age: detail.age ?? null,
      idFrontUrl: convertApi2FormUrlOnlyOne(detail.identityImg),
      idBackUrl: convertApi2FormUrlOnlyOne(detail.identityBackImg),
      contractUrl: convertApi2FormUrlOnlyOne(detail.contractUrl, {
        fileName: detail.contractUrl ? detail.contractUrl.split('/').pop() : '合同',
      }),
      regiterTime: detail.applyTime ?? '',
      userRealTime: row.userRealTime ?? '',
      userSignContractTime: row.userSignContractTime ?? '',
      isDetail: isDetail,
    });
  } catch (error) {}
}
async function handleAddOrEdit() {}