|
@@ -65,7 +65,8 @@ class FlowChart extends Component {
|
|
|
} else {
|
|
|
let pstatus = -1;
|
|
|
let info = data.data;
|
|
|
- let tpname = ["-", info.zc, info.zc, info.zc, info.dsz, info.dsz, info.dsz][info.approval];
|
|
|
+ // 0-非特批 ,1-总裁待审核,2-总裁通过,3-总裁驳回 4董事长待审核 5董事长通过 6董事长驳回 7副总裁待审核 8副总裁通过 9副总裁驳回
|
|
|
+ let tpname = ["-", info.zc, info.zc, info.zc, info.dsz, info.dsz, info.dsz, info.fzc, info.fzc, info.fzc][info.approval];
|
|
|
theArr = [
|
|
|
{ status: 0, title: "营销员发起", name: info.yxy, time: "" },
|
|
|
{ status: 1, title: "经理审核", name: !info.yxjl ? "-" : info.yxjl, time: "" },
|
|
@@ -138,7 +139,7 @@ class FlowChart extends Component {
|
|
|
{ status: 5, title: "技术总监审核", name: info.zxsgly, time: "" },
|
|
|
{ status: 6, title: "财务专员审核", name: info.cwzy, time: "" },
|
|
|
{ status: 7, title: "财务总监审核", name: info.cwgly, time: "" },
|
|
|
- { status: 8, title: "总裁审核", name: info.zc, time: "" },
|
|
|
+ { status: 8, title: info.isHN == 1 ? "副总裁审核" : "总裁审核", name: info.isHN == 1 ? info.fzc : info.zc, time: "" },
|
|
|
{ status: 9, title: "董事长审核", name: info.changeAmount > 0.2 ? info.dsz : "-", time: "" },
|
|
|
]
|
|
|
// 1 项目&金额
|
|
@@ -151,7 +152,7 @@ class FlowChart extends Component {
|
|
|
{ status: 5, title: "技术总监审核", name: info.zxsgly, time: "" },
|
|
|
{ status: 6, title: "财务专员审核", name: info.cwzy, time: "" },
|
|
|
{ status: 7, title: "财务总监审核", name: info.cwgly, time: "" },
|
|
|
- { status: 8, title: "总裁审核", name: info.zc, time: "" },
|
|
|
+ { status: 8, title: info.isHN == 1 ? "副总裁审核" : "总裁审核", name: info.isHN == 1 ? info.fzc : info.zc, time: "" },
|
|
|
]
|
|
|
// 2 仅项目
|
|
|
let theArr2 = [
|
|
@@ -163,7 +164,7 @@ class FlowChart extends Component {
|
|
|
{ status: 5, title: "技术总监审核", name: info.zxsgly, time: "" },
|
|
|
{ status: 6, title: "财务专员审核", name: info.cwzy, time: "" },
|
|
|
{ status: 7, title: "财务总监审核", name: info.cwgly, time: "" },
|
|
|
- { status: 8, title: "总裁审核", name: info.zc, time: "" },
|
|
|
+ { status: 8, title: info.isHN == 1 ? "副总裁审核" : "总裁审核", name: info.isHN == 1 ? info.fzc : info.zc, time: "" },
|
|
|
]
|
|
|
// 3 仅金额
|
|
|
let theArr3 = [
|
|
@@ -173,7 +174,7 @@ class FlowChart extends Component {
|
|
|
{ status: 5, title: "技术总监审核", name: info.zxsgly, time: "" },
|
|
|
{ status: 6, title: "财务专员审核", name: info.cwzy, time: "" },
|
|
|
{ status: 7, title: "财务总监审核", name: info.cwgly, time: "" },
|
|
|
- { status: 8, title: "总裁审核", name: info.zc, time: "" },
|
|
|
+ { status: 8, title: info.isHN == 1 ? "副总裁审核" : "总裁审核", name: info.isHN == 1 ? info.fzc : info.zc, time: "" },
|
|
|
]
|
|
|
// 4 重报
|
|
|
let theArr4 = [
|
|
@@ -184,7 +185,7 @@ class FlowChart extends Component {
|
|
|
{ status: 4, title: "技术经理审核", name: info.zxsjl, time: "" },
|
|
|
{ status: 6, title: "财务专员审核", name: info.cwzy, time: "" },
|
|
|
{ status: 7, title: "财务总监审核", name: info.cwgly, time: "" },
|
|
|
- { status: 8, title: "总裁审核", name: info.zc, time: "" },
|
|
|
+ { status: 8, title: info.isHN == 1 ? "副总裁审核" : "总裁审核", name: info.isHN == 1 ? info.fzc : info.zc, time: "" },
|
|
|
]
|
|
|
// 5 赠送
|
|
|
let theArr5 = [
|
|
@@ -192,7 +193,7 @@ class FlowChart extends Component {
|
|
|
{ status: 1, title: "经理审核", name: !info.yxjl ? "-" : info.yxjl, time: "" },
|
|
|
{ status: 2, title: "营销管理员审核", name: info.yxgly, time: "" },
|
|
|
{ status: 6, title: "财务专员审核", name: info.cwzy, time: "" },
|
|
|
- { status: 8, title: "总裁审核", name: info.zc, time: "" },
|
|
|
+ { status: 8, title: info.isHN == 1 ? "副总裁审核" : "总裁审核", name: info.isHN == 1 ? info.fzc : info.zc, time: "" },
|
|
|
]
|
|
|
// 6 退单不退款
|
|
|
let theArr6 = [
|
|
@@ -204,7 +205,7 @@ class FlowChart extends Component {
|
|
|
{ status: 5, title: "技术总监审核", name: info.zxsgly, time: "" },
|
|
|
{ status: 6, title: "财务专员审核", name: info.cwzy, time: "" },
|
|
|
{ status: 7, title: "财务总监审核", name: info.cwgly, time: "" },
|
|
|
- { status: 8, title: "总裁审核", name: info.zc, time: "" },
|
|
|
+ { status: 8, title: info.isHN == 1 ? "副总裁审核" : "总裁审核", name: info.isHN == 1 ? info.fzc : info.zc, time: "" },
|
|
|
]
|
|
|
// 7 仅变更合同
|
|
|
let theArr7 = [
|
|
@@ -263,6 +264,8 @@ class FlowChart extends Component {
|
|
|
list.forEach((item, index) => {
|
|
|
if (item.status == info.processState) {
|
|
|
pstatus = index
|
|
|
+ } else if (info.processState == 10 && item.status == 8) { // 副总裁审核processState == 10
|
|
|
+ pstatus = index
|
|
|
}
|
|
|
})
|
|
|
} else if (info.status == 2) {
|