text: import React, { Component } from "react";
  import { actions } from "mirrorx";
  
  import Grid from "components/Grid";
  
  import "bee-complex-grid/build/Grid.css";
  import "bee-pagination/build/Pagination.css";
  import "bee-table/build/Table.css";
  import "./index.less";
  
  class QuoteTable extends Component {
    columns = [
      {
        title: "报价名称",
        dataIndex: "quotename",
        key: "quotename",
        width: 100
      },
      {
        title: "报价金额",
        dataIndex: "ppTotalAmount",
        key: "ppTotalAmount",
        width: 100
      },
      {
        title: "状态",
        dataIndex: "usedFlag",
        key: "usedFlag",
        width: 100,
        render(record, text, index) {
          return record === "0" ? "未使用" : "已使用";
        }
      }
    ];
  
    render() {
      const { quoteList, quoteIndex,showLoading } = this.props;
  
      const paginationObj = {
        // 分页
        // horizontalPosition: "right",
        verticalPosition: "none"
      };
      return (
        <div>
          <Grid
            multiSelect={false} //false 单选，默认多选
            rowKey={(r, i) => r.id}
            columns={this.columns}
            data={quoteList}
            paginationObj={paginationObj}
            getSelectedDataFunc={() => {}}
            rowClassName={(record, index, indent) => {
              return quoteIndex === index ? "selected" : "";
            }}
            scroll={{ y: 200 }}
            onRowClick={(record, index) => {
  
              actions.quote.updateState({ quoteIndex: index, pid:record.id,quoteMoney:record});
              actions.quote.getParts({id:record.id})
            }}
            // loading={{show: showLoading, loadingType: "line"}}
          />
        </div>
      );
    }
  }
  
  export default QuoteTable;
  