|
@@ -3,6 +3,7 @@ import { Button, Input, message, Select, Spin, Table, Tag, Popconfirm, Tabs } fr
|
|
|
import AddSoftWritingPrice from './addSoftWritingPrice'
|
|
|
import $ from "jquery/src/ajax";
|
|
|
import '../content.less';
|
|
|
+import { getMaterialStatus } from "@/tools";
|
|
|
import { ChooseList } from "../../order/orderNew/chooseList";
|
|
|
|
|
|
const TabPane = Tabs.TabPane;
|
|
@@ -13,7 +14,7 @@ class SoftwareConfigure extends Component {
|
|
|
this.state = {
|
|
|
companyName: '', //公司名称
|
|
|
urgent: undefined, //加急
|
|
|
- material: undefined, //材料
|
|
|
+ material: undefined, //方案
|
|
|
pagination: {
|
|
|
defaultCurrent: 1,
|
|
|
defaultPageSize: 10,
|
|
@@ -34,12 +35,12 @@ class SoftwareConfigure extends Component {
|
|
|
key: 'companyName',
|
|
|
},
|
|
|
{
|
|
|
- title: '材料',
|
|
|
+ title: '方案',
|
|
|
dataIndex: 'material',
|
|
|
key: 'material',
|
|
|
- render: (text) => {
|
|
|
- return text === 0 ? '无材料' : '有材料'
|
|
|
- }
|
|
|
+ render: (text, record) => {
|
|
|
+ return getMaterialStatus(text)
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '加急天数',
|
|
@@ -138,7 +139,7 @@ class SoftwareConfigure extends Component {
|
|
|
pageSize: this.state.pagination.pageSize,
|
|
|
companyName: this.state.companyName || undefined, //公司名称
|
|
|
urgent: this.state.urgent, //加急
|
|
|
- material: this.state.material, //材料
|
|
|
+ material: this.state.material, //方案
|
|
|
},
|
|
|
success: function (data) {
|
|
|
if (!data.data || !data.data.list) {
|
|
@@ -179,7 +180,7 @@ class SoftwareConfigure extends Component {
|
|
|
this.setState({
|
|
|
companyName: '', //公司名称
|
|
|
urgent: undefined, //加急
|
|
|
- material: undefined, //材料
|
|
|
+ material: undefined, //方案
|
|
|
}, () => {
|
|
|
this.loadData();
|
|
|
})
|
|
@@ -236,9 +237,9 @@ class SoftwareConfigure extends Component {
|
|
|
value={this.state.companyName}
|
|
|
onChange={(e) => { this.setState({ companyName: e.target.value }); }} />
|
|
|
<div style={{ display: 'flex', flexFlow: 'row nowrap' }}>
|
|
|
- <div style={{ marginLeft: 10, marginRight: 10 }}>材料:</div>
|
|
|
+ <div style={{ marginLeft: 10, marginRight: 10 }}>方案:</div>
|
|
|
<Select
|
|
|
- placeholder="材料"
|
|
|
+ placeholder="方案"
|
|
|
style={{ width: '200px', marginRight: '10px' }}
|
|
|
value={this.state.material}
|
|
|
onChange={(e) => { this.setState({ material: e }) }}>
|