|
@@ -8,27 +8,16 @@ import DetailModal from './DetailModal';
|
|
import ExecutionModal from './ExecutionModal';
|
|
import ExecutionModal from './ExecutionModal';
|
|
import MemberModal from './MemberModal';
|
|
import MemberModal from './MemberModal';
|
|
import QualityOperateModal from './QualityOperateModal';
|
|
import QualityOperateModal from './QualityOperateModal';
|
|
|
|
+import BudgetModal from './BudgetModal';
|
|
import { connect } from 'dva';
|
|
import { connect } from 'dva';
|
|
|
|
|
|
const { Option } = Select;
|
|
const { Option } = Select;
|
|
//状态
|
|
//状态
|
|
const STATUS = [
|
|
const STATUS = [
|
|
- {
|
|
|
|
- value: 0,
|
|
|
|
- label: '售前',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: 1,
|
|
|
|
- label: '转执行',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: 2,
|
|
|
|
- label: '转运营',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: 3,
|
|
|
|
- label: '转质保',
|
|
|
|
- },
|
|
|
|
|
|
+ { value: 0, label: '售前' },
|
|
|
|
+ { value: 1, label: '转执行' },
|
|
|
|
+ { value: 2, label: '转运营' },
|
|
|
|
+ { value: 3, label: '转质保' },
|
|
];
|
|
];
|
|
|
|
|
|
function List(props) {
|
|
function List(props) {
|
|
@@ -49,6 +38,7 @@ function List(props) {
|
|
const [executionVisible, setExecutionVisible] = useState(false);
|
|
const [executionVisible, setExecutionVisible] = useState(false);
|
|
const [qualityOperateVisible, setQualityOperateVisible] = useState(false);
|
|
const [qualityOperateVisible, setQualityOperateVisible] = useState(false);
|
|
const [memberVisible, setMemberVisible] = useState(false);
|
|
const [memberVisible, setMemberVisible] = useState(false);
|
|
|
|
+ const [budgetVisible, setBudgetVisible] = useState(false);
|
|
const [selfItems, setSelfItems] = useState(false);
|
|
const [selfItems, setSelfItems] = useState(false);
|
|
const [currentItem, setCurrentItem] = useState({});
|
|
const [currentItem, setCurrentItem] = useState({});
|
|
const [qualityOperate, setQualityOperate] = useState(0);
|
|
const [qualityOperate, setQualityOperate] = useState(0);
|
|
@@ -352,6 +342,15 @@ function List(props) {
|
|
);
|
|
);
|
|
let statusBtn = (
|
|
let statusBtn = (
|
|
<>
|
|
<>
|
|
|
|
+ <a
|
|
|
|
+ onClick={() => {
|
|
|
|
+ setCurrentItem(record);
|
|
|
|
+ setBudgetVisible(true);
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ 设置人日预算
|
|
|
|
+ </a>
|
|
|
|
+ <Divider type="vertical" />
|
|
<a
|
|
<a
|
|
onClick={() => {
|
|
onClick={() => {
|
|
setCurrentItem(record);
|
|
setCurrentItem(record);
|
|
@@ -537,6 +536,13 @@ function List(props) {
|
|
onClose={() => setQualityOperateVisible(false)}
|
|
onClose={() => setQualityOperateVisible(false)}
|
|
qualityOperate={qualityOperate}
|
|
qualityOperate={qualityOperate}
|
|
/>
|
|
/>
|
|
|
|
+ <BudgetModal
|
|
|
|
+ visible={budgetVisible}
|
|
|
|
+ loading={loading}
|
|
|
|
+ currentItem={currentItem}
|
|
|
|
+ onCancel={() => setBudgetVisible(false)}
|
|
|
|
+ onOk={() => setBudgetVisible(false)}
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
}
|
|
}
|