import { _ as __extends } from './index.js';
import { BaseTableOld, GeneralComponents_DictionarySelect_Display, formatTimeToStandard, BaseQuery, BaseListOld } from '@lm_fe/components_m';
import React__default from 'react';
import { APP_CONFIG, mchcEnv } from '@lm_fe/env';
import 'antd/es/tabs/style';
import 'antd/es/tabs';
import 'lodash/size';
import 'lodash/get';
import '@lm_fe/utils';
import 'lodash/orderBy';
import 'lodash/map';
import '@lm_fe/components';
import 'antd/es/collapse/style';
import 'antd/es/collapse';
import 'antd/es/badge/style';
import 'antd/es/badge';
import 'antd/es/button/style';
import 'antd/es/button';
import 'lodash/assign';
import '@ant-design/icons';
import '@lm_fe/service';
import '@lm_fe/pages';
var Table = function (_super) {
  __extends(Table, _super);
  function Table() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  return Table;
}(BaseTableOld);
var tableColumns = [{
  title: '就诊卡号',
  dataIndex: ['outpatientNO'],
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: '姓名',
  dataIndex: ['name'],
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: '任务标题',
  dataIndex: ['title'],
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: '推送内容类型',
  dataIndex: ['contentType'],
  width: APP_CONFIG.CELL_WIDTH_MIDDLE,
  render: function render(value) {
    return /*#__PURE__*/React__default.createElement(GeneralComponents_DictionarySelect_Display, {
      value: value,
      uniqueKey: "Task.contentType"
    });
  }
}, {
  title: '推送内容',
  dataIndex: 'content',
  width: APP_CONFIG.CELL_WIDTH_LARGE + 100,
  ellipsis: true
}, {
  title: '推送时间',
  dataIndex: 'pushTime',
  width: APP_CONFIG.CELL_WIDTH_LARGE,
  render: function render(value) {
    return formatTimeToStandard(value);
  }
}, {
  title: '推送状态',
  dataIndex: 'pushStatus',
  inputType: 'MS',
  width: APP_CONFIG.CELL_WIDTH_MIDDLE,
  inputProps: {
    optionKey: '推送状态'
  }
}, {
  title: '推送情况说明',
  dataIndex: 'pushNote',
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}];
var queryFormDescriptions = {
  title: {
    label: '标题',
    inputType: 'input',
    filterType: ''
  },
  pushStatus: {
    label: '推送状态',
    inputType: 'select',
    filterType: 'equals',
    options: mchcEnv.get_options('推送状态')
  }
};
var Query = function (_super) {
  __extends(Query, _super);
  function Query() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.state = {
      queryFormDescriptions: queryFormDescriptions
    };
    return _this;
  }
  return Query;
}(BaseQuery);
var List = function (_super) {
  __extends(List, _super);
  function List() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  List.defaultProps = {
    baseUrl: '/api/knowledge-logs',
    baseTitle: '宣教任务记录',
    rowKey: 'id',
    needPagination: true,
    showQuery: true,
    tableColumns: tableColumns,
    showAdd: false,
    Table: Table,
    Query: Query,
    otherTableProps: {
      scroll: {
        x: 920
      }
    }
  };
  return List;
}(BaseListOld);
export { List as default };
//# sourceMappingURL=src.pages.task-logs.js.map
