|
@@ -10,7 +10,6 @@ class SelectReject extends Component {
|
|
|
super(props);
|
|
|
this.state = {
|
|
|
selValue: 0,
|
|
|
- opList: [],
|
|
|
// 0 退单退款
|
|
|
theArr0: [
|
|
|
{ value: 0, lable: "营销员", },
|
|
@@ -21,7 +20,7 @@ class SelectReject extends Component {
|
|
|
{ value: 5, lable: "技术总监", },
|
|
|
{ value: 6, lable: "财务专员", },
|
|
|
{ value: 7, lable: "财务总监", },
|
|
|
- { value: 8, lable: "总裁", },
|
|
|
+ { value: 8, lable: "公司/部门管理", },
|
|
|
{ value: 9, lable: "董事长", },
|
|
|
],
|
|
|
// 1 项目&金额
|
|
@@ -34,7 +33,7 @@ class SelectReject extends Component {
|
|
|
{ value: 5, lable: "技术总监", },
|
|
|
{ value: 6, lable: "财务专员", },
|
|
|
{ value: 7, lable: "财务总监", },
|
|
|
- { value: 8, lable: "总裁审核", },
|
|
|
+ { value: 8, lable: "公司/部门管理", },
|
|
|
],
|
|
|
// 2 仅项目
|
|
|
theArr2: [
|
|
@@ -46,7 +45,7 @@ class SelectReject extends Component {
|
|
|
{ value: 5, lable: "技术总监", },
|
|
|
{ value: 6, lable: "财务专员", },
|
|
|
{ value: 7, lable: "财务总监", },
|
|
|
- { value: 8, lable: "总裁", },
|
|
|
+ { value: 8, lable: "公司/部门管理", },
|
|
|
],
|
|
|
// 3 仅金额
|
|
|
theArr3: [
|
|
@@ -56,7 +55,7 @@ class SelectReject extends Component {
|
|
|
{ value: 5, lable: "技术总监", },
|
|
|
{ value: 6, lable: "财务专员", },
|
|
|
{ value: 7, lable: "财务总监", },
|
|
|
- { value: 8, lable: "总裁", },
|
|
|
+ { value: 8, lable: "公司/部门管理", },
|
|
|
],
|
|
|
// 4 重报
|
|
|
theArr4: [
|
|
@@ -67,7 +66,7 @@ class SelectReject extends Component {
|
|
|
{ value: 4, lable: "技术经理", },
|
|
|
{ value: 6, lable: "财务专员", },
|
|
|
{ value: 7, lable: "财务总监", },
|
|
|
- { value: 8, lable: "总裁", },
|
|
|
+ { value: 8, lable: "公司/部门管理", },
|
|
|
],
|
|
|
// 5 赠送
|
|
|
theArr5: [
|
|
@@ -75,7 +74,7 @@ class SelectReject extends Component {
|
|
|
{ value: 1, lable: "营销经理", },
|
|
|
{ value: 2, lable: "营销管理员", },
|
|
|
{ value: 6, lable: "财务专员", },
|
|
|
- { value: 8, lable: "总裁", },
|
|
|
+ { value: 8, lable: "公司/部门管理", },
|
|
|
],
|
|
|
// 6 退单不退款
|
|
|
theArr6: [
|
|
@@ -87,12 +86,19 @@ class SelectReject extends Component {
|
|
|
{ value: 5, lable: "技术总监", },
|
|
|
{ value: 6, lable: "财务专员", },
|
|
|
{ value: 7, lable: "财务总监", },
|
|
|
- { value: 8, lable: "总裁", },
|
|
|
+ { value: 8, lable: "公司/部门管理", },
|
|
|
],
|
|
|
// 7 仅变更合同
|
|
|
theArr7: [
|
|
|
- { value: 0, lable: "营销员发起", },
|
|
|
- { value: 2, lable: "营销管理员审核", },
|
|
|
+ { value: 0, lable: "营销员", },
|
|
|
+ { value: 2, lable: "营销管理员", },
|
|
|
+ ],
|
|
|
+ // 8 框架协议
|
|
|
+ theArr8: [
|
|
|
+ { value: 0, lable: "营销员", },
|
|
|
+ { value: 1, lable: "营销经理", },
|
|
|
+ { value: 2, lable: "营销管理员", },
|
|
|
+ { value: 6, lable: "财务专员", },
|
|
|
],
|
|
|
};
|
|
|
this.onChange = this.onChange.bind(this);
|
|
@@ -108,18 +114,7 @@ class SelectReject extends Component {
|
|
|
}
|
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
- const { theArr0, theArr1, theArr2, theArr3, theArr4, theArr5, theArr6, theArr7 } = this.state
|
|
|
- const { type } = this.props
|
|
|
- this.setState({
|
|
|
- opList: type == 0
|
|
|
- ? theArr0 : type == 1
|
|
|
- ? theArr1 : type == 2
|
|
|
- ? theArr2 : type == 3
|
|
|
- ? theArr3 : type == 4
|
|
|
- ? theArr4 : type == 5
|
|
|
- ? theArr5 : type == 6
|
|
|
- ? theArr6 : type == 7 && theArr7
|
|
|
- })
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -132,8 +127,17 @@ class SelectReject extends Component {
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
- const { selValue, opList } = this.state
|
|
|
- const { processState } = this.props
|
|
|
+ const { selValue, theArr0, theArr1, theArr2, theArr3, theArr4, theArr5, theArr6, theArr7, theArr8 } = this.state
|
|
|
+ const { processState, type } = this.props
|
|
|
+ const opList = type == 0
|
|
|
+ ? theArr0 : type == 1
|
|
|
+ ? theArr1 : type == 2
|
|
|
+ ? theArr2 : type == 3
|
|
|
+ ? theArr3 : type == 4
|
|
|
+ ? theArr4 : type == 5
|
|
|
+ ? theArr5 : type == 6
|
|
|
+ ? theArr6 : type == 7
|
|
|
+ ? theArr7 : type == 8 && theArr8
|
|
|
return (
|
|
|
opList.length > 0 &&
|
|
|
<Select
|