"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BaseService = void 0;
var _utils = require("@vtx/utils");
var _ahooks = require("ahooks");
var BaseService = exports.BaseService = {
  useBaseInfo: function useBaseInfo(id) {
    var _useRequest = (0, _ahooks.useRequest)(function () {
        return _utils.request.get('/cloud/zykh-reborn/checkRecord/get', {
          data: {
            id: id,
            coorType: 'bd09'
          }
        });
      }, {
        refreshDeps: [id]
      }),
      baseInfoRes = _useRequest.data;
    var info = baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data;
    var baseInfo = [{
      label: '考核对象',
      key: 'checkResourceName',
      value: info === null || info === void 0 ? void 0 : info.checkResourceName
    }, {
      label: '行政区划',
      key: 'divisionName',
      value: info === null || info === void 0 ? void 0 : info.divisionName
    }, {
      label: '分值',
      key: 'totalDeductPoints',
      value: info === null || info === void 0 ? void 0 : info.totalDeductPoints
    }, {
      label: '责任人员',
      key: 'responsibleStaffName',
      value: info === null || info === void 0 ? void 0 : info.responsibleStaffName
    }, {
      label: '责任单位',
      key: 'responsibleDeptName',
      value: info === null || info === void 0 ? void 0 : info.responsibleDeptName
    }, {
      label: '考核地址',
      key: 'address',
      value: info === null || info === void 0 ? void 0 : info.address
    }];
    var summaryInfo = [{
      label: '考核人员',
      key: 'checkUserName',
      value: info === null || info === void 0 ? void 0 : info.checkUserName
    }, {
      label: '考核分类',
      key: 'checkCategoryName',
      value: info === null || info === void 0 ? void 0 : info.checkCategoryName
    }, {
      label: '考核时间',
      key: 'checkDate',
      value: info === null || info === void 0 ? void 0 : info.checkDate
    }, {
      label: '考核单位',
      key: 'checkDepartName',
      value: info === null || info === void 0 ? void 0 : info.checkDepartName
    }];
    return {
      baseInfo: baseInfo,
      summaryInfo: summaryInfo,
      pointList: (info === null || info === void 0 ? void 0 : info.pointList) || [],
      baseInfoRes: baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data
    };
  }
};
//# sourceMappingURL=api.js.map
