/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-01-06 14:26:54
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2023-01-09 13:50:07
 * @FilePath: /BudgetManaSystem/mock/monthlyInfo.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import mockjs from 'mockjs';

const list = [...new Array(100).keys()].map((item, index) => {
  return {
    account: 'admin',
    avatarUrl: '',
    departmentId: 'A00002',
    departmentName: '',
    doctorLevel: '2',
    entryTime: '2022-06-28 12:00:00',
    gender: 2,
    hospId: '30',
    hospName: '武汉市儿童医院',
    id: `30614${index}`,
    idCardNum: '',
    isOnService: 0,
    jobTitle: '2',
    major: '2',
    name: `管理员${index}`,
    password: 'e10adc3949ba59abbe56e057f20f883e',
    phoneNumber: '',
    practiceCate: '1',
    practiceCertificateNo: '',
    practiceStatus: '1',
    practiceSubject: '2',
    qualificationCertificateNo: '',
    remark: '',
    title: '2',
    userCate: '1',
    userId: '30614',
  };
});

const users = [
  { id: 0, name: 'Umi', nickName: 'U', gender: 'MALE' },
  { id: 1, name: 'Fish', nickName: 'B', gender: 'FEMALE' },
];

export default {
  'GET /performance/check/getUnitList': (req: any, res: any) => {
    console.log({ req, res });

    res.json({
      success: true,
      data: [
        {
          code: 8662827685293679,

          name: '病区护理',

          child: [
            {
              code: 3994166660344023,

              name: '心内科病区',

              child: [
                {
                  code: 8338644021754079,

                  name: '心内科一病区',
                },
              ],
            },
          ],
        },
      ],
      errorCode: 0,
    });
  },
  'GET /performance/check/empList': (req: any, res: any) => {
    res.json({
      success: true,
      data: [
        {
          unitCode: 1,

          empNo: '1',

          empName: '程静静',

          jobLevel: 'N3',

          jobTitle: '护士长',

          jobRate: '1.6',

          seniority: '17',
        },
      ],
    });
  },
  'GET /centerSys/user/list': (req: any, res: any) => {
    res.json({
      success: true,
      data: {
        current: 1,
        list: list,
        pageSize: 10,
        totalCount: 0,
        totalPage: 0,
      },
    });
  },
  'GET /performance/check/deptList': (req: any, res: any) => {
    res.json({
      success: true,
      data: {
        current: 1,
        list: [
          {
            unitCode: 1,

            deptCode: '1',

            deptName: '内一科',

            deptType: 2,

            describe: '临床科室',

            deptTypeName: '临床',
          },
          {
            unitCode: 2,

            deptCode: '2',

            deptName: '内一科',

            deptType: 2,

            describe: '临床科室',

            deptTypeName: '临床',
          },
        ],
        pageSize: 10,
        totalCount: 0,
        totalPage: 0,
      },
    });
  },
  'GET /performance/check/itemList': (req: any, res: any) => {
    res.json({
      success: true,
      data: {
        current: 1,
        list: [
          {
            itemCode: '000000040',

            itemName: 'I级护理',

            itemType: '护理费',

            itemPoint: 50,

            coreFlag: '1',
          },
          {
            itemCode: '000000041',

            itemName: 'I级护理',

            itemType: '护理费',

            itemPoint: 50,

            coreFlag: '1',
          },
        ],
        pageSize: 10,
        totalCount: 0,
        totalPage: 0,
      },
    });
  },
};
