wupengfei
10 小时以前 c347827bdf71edb46e02f04c3c7df18ac9c60e1b
feat: 签约
2个文件已修改
55 ■■■■■ 已修改文件
src/views/EmploymentManage/components/CheckManageDialog.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/FlexJobManage/FlexJobManage.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/EmploymentManage/components/CheckManageDialog.vue
@@ -47,21 +47,26 @@
const columns = defineColumns([
  {
    id: '1',
    enCode: 'taskTime',
    name: '任务日期',
  },
  {
    id: '2',
    enCode: 'createdTime',
    name: '提交时间',
  },
  {
    id: '2',
    id: '3',
    enCode: 'files',
    name: '验收照片',
  },
  {
    id: '3',
    id: '4',
    enCode: 'checkReceiveStatus',
    name: '验收状态',
  },
  {
    id: '4',
    id: '5',
    enCode: 'checkReceiveTime',
    name: '验收时间',
  },
src/views/FlexJobManage/FlexJobManage.vue
@@ -163,7 +163,7 @@
  {
    data: {
      enCode: 'signBtn',
      name: '签约',
      name: '企业签约',
    },
    emits: {
      onClick: (role) => handleSign(role),
@@ -173,6 +173,22 @@
        !(
          row.userSignContractStatus === EnumTaskUserSignContractStatus.Pass &&
          row.enterpriseSignContractStatus === EnumTaskUserSignContractStatus.Wait
        ),
    },
  },
  {
    data: {
      enCode: 'signBtn',
      name: '邀请签约',
    },
    emits: {
      onClick: (role) => handleSign(role),
    },
    extraProps: {
      hide: (row: API.GetEnterpriseEmployeesQueryResultItem) =>
        !(
          row.userSignContractStatus === EnumTaskUserSignContractStatus.Wait ||
          row.userSignContractStatus === EnumTaskUserSignContractStatus.Refuse
        ),
    },
  },
@@ -419,17 +435,18 @@
async function handleSendShotMessage() {
  try {
    Message.warnMessage('功能开发中');
    // const selectionRows = getSelectionRows();
    // if (selectionRows) {
    //   if (selectionRows.some((x) => x.status === 10)) {
    //     await Message.tipMessage('勾选人员中包含已签约完成人员,确认要继续发送短信通知吗?');
    //   }
    //   handleShotMessageAdd({
    //     ids: selectionRows.map((x) => x.id),
    //     name: '人员签约通道短信',
    //   });
    // }
    const selectionRows = getSelectionRows();
    if (selectionRows) {
      if (
        selectionRows.some((x) => x.userSignContractStatus === EnumTaskUserSignContractStatus.Pass)
      ) {
        await Message.tipMessage('勾选人员中包含已签约完成人员,确认要继续发送短信通知吗?');
      }
      handleShotMessageAdd({
        ids: selectionRows.map((x) => x.id),
        name: '人员签约通道短信',
      });
    }
  } catch (error) {}
}
@@ -481,8 +498,7 @@
async function handleUnSign(row: API.GetEnterpriseEmployeesQueryResultItem) {
  try {
    Message.warnMessage('功能开发中');
    // await Message.tipMessage('确定解约用户?');
    await Message.tipMessage('确定解约用户?');
  } catch (error) {}
}