import React,{Component} from 'react';
import {Button, Input, message, Select, Spin, Table, Tag, Popconfirm, Tabs} from "antd";
import AddSoftWritingPrice from './addSoftWritingPrice'
import $ from "jquery/src/ajax";
import '../content.less';
import {ChooseList} from "../../order/orderNew/chooseList";
const TabPane = Tabs.TabPane;
class SoftwareConfigure extends Component{
constructor(props) {
super(props);
this.state={
companyName:'', //公司名称
urgent: undefined, //加急
material: undefined, //材料
pagination: {
defaultCurrent: 1,
defaultPageSize: 10,
showQuickJumper: true,
pageSize: 10,
onChange: function (page) {
this.loadData(page);
}.bind(this),
showTotal: function (total) {
return '共' + total + '条数据';
}
},
dataSource: [],
columns: [
{
title: '供应商名称',
dataIndex: 'companyName',
key: 'companyName',
},
{
title: '材料',
dataIndex: 'material',
key: 'material',
render: (text) => {
return text === 0 ? '无材料' : '有材料'
}
},
{
title: '加急天数',
dataIndex: 'urgent',
key: 'urgent',
render: (text) => {
switch (text) {
case 0:
return '无加急';
case 1:
return '加急3-5个工作日';
case 2:
return '加急6-10个工作日';
case 3:
return '加急11-15个工作日';
case 4:
return '加急16-20个工作日';
case 5:
return '加急21-25个工作日';
case 6:
return '加急26-30个工作日';
}
}
},
{
title: '价格万元/个',
dataIndex: 'unitPrice',
key: 'unitPrice',
},
{
title: '备注',
dataIndex: 'remarks',
key: 'remarks',
},
{
title: '状态',
dataIndex: 'status',
key: 'status',
render: (text) => {
return text === 0 ?