|
|
@@ -122,8 +122,8 @@ Page({
|
|
|
label: "项目阶段",
|
|
|
value: data.stagename
|
|
|
}, {
|
|
|
- label: "赢率",
|
|
|
- value: data.winrate ? data.winrate + "%" : data.winrate
|
|
|
+ label: "状态",
|
|
|
+ value: data.status
|
|
|
}],
|
|
|
list1: [{
|
|
|
label: "项目编号",
|
|
|
@@ -175,7 +175,7 @@ Page({
|
|
|
label: "预计签约金额(元)",
|
|
|
value: CNY(data.signamount_due)
|
|
|
}, {
|
|
|
- label: "项目签约金额(元)",
|
|
|
+ label: "项目成交金额",
|
|
|
value: CNY(data.dealamount)
|
|
|
}, {
|
|
|
label: "领域",
|
|
|
@@ -223,7 +223,7 @@ Page({
|
|
|
value: data.endreason
|
|
|
}, {
|
|
|
label: "失败原因",
|
|
|
- value: data.defeatreason
|
|
|
+ value: data.defeattype + (data.defeatreason ? "," + data.defeatreason : data.defeatreason)
|
|
|
}, {
|
|
|
label: "转手次数",
|
|
|
value: data.changecount
|
|
|
@@ -250,58 +250,63 @@ Page({
|
|
|
}].concat(tabbarList);
|
|
|
|
|
|
if (isLeader || isAdmin) {
|
|
|
+ if (status != '已失败' && status != '已结案') {
|
|
|
+ _Http.basic({
|
|
|
+ "classname": "sysmanage.develop.datafunction.datafunction",
|
|
|
+ "method": "execute",
|
|
|
+ "content": {
|
|
|
+ functionname: "bpmswitch"
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("查询是否启用BPM流程", res)
|
|
|
+ if (res.msg != '失败') paramvalue = res.data[0].paramvalue == "true";
|
|
|
+ })
|
|
|
+ tabbarList = tabbarList.concat([{
|
|
|
+ icon: "icon-bianji",
|
|
|
+ label: "编辑"
|
|
|
+ }, {
|
|
|
+ icon: "icon-genjin",
|
|
|
+ label: "提交报备"
|
|
|
+ }])
|
|
|
+ if (editdataleader) tabbarList.push({
|
|
|
+ icon: "icon-zhuanyi",
|
|
|
+ label: "更换负责人"
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
- _Http.basic({
|
|
|
- "classname": "sysmanage.develop.datafunction.datafunction",
|
|
|
- "method": "execute",
|
|
|
- "content": {
|
|
|
- functionname: "bpmswitch"
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("查询是否启用BPM流程", res)
|
|
|
- if (res.msg != '失败') paramvalue = res.data[0].paramvalue == "true";
|
|
|
- })
|
|
|
-
|
|
|
- if (status != '已失败' && status != '已结案') tabbarList = tabbarList.concat([{
|
|
|
- icon: "icon-bianji",
|
|
|
- label: "编辑"
|
|
|
- }, {
|
|
|
- icon: "icon-genjin",
|
|
|
- label: "提交报备"
|
|
|
- }])
|
|
|
+ if (isLeader) {
|
|
|
+ if (status == '已成交') tabbarList.push({
|
|
|
+ icon: "icon-dibu-jieshu",
|
|
|
+ label: "结案"
|
|
|
+ })
|
|
|
+ if (status == '跟进中') tabbarList.push({
|
|
|
+ icon: "icon-dibu-wuxiao",
|
|
|
+ label: "失败"
|
|
|
+ })
|
|
|
|
|
|
+ if (status == '已失败' || status == '已结案') tabbarList = [{
|
|
|
+ icon: "icon-dibu-chehui",
|
|
|
+ label: "恢复"
|
|
|
+ }]
|
|
|
+ }
|
|
|
|
|
|
- if (editdataleader) tabbarList.push({
|
|
|
- icon: "icon-zhuanyi",
|
|
|
- label: "更换负责人"
|
|
|
- })
|
|
|
tabbarList.push({
|
|
|
icon: "icon-shanchu",
|
|
|
label: "作废"
|
|
|
})
|
|
|
}
|
|
|
- if (isLeader && status != '已失败') {
|
|
|
- tabbarList.push({
|
|
|
- icon: "icon-dibu-wuxiao",
|
|
|
- label: "失败"
|
|
|
- })
|
|
|
- if (status == '已结案') tabbarList.push({
|
|
|
- icon: "icon-dibu-chehui",
|
|
|
- label: "恢复"
|
|
|
- })
|
|
|
- if (status == '已成交') tabbarList.push({
|
|
|
- icon: "icon-dibu-jieshu",
|
|
|
- label: "结案"
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
if (this.data.options.find(v => v == 'viewRepetition')) tabbarList.push({
|
|
|
icon: "icon-a-shouyejingangquhehuoren",
|
|
|
label: "查看重复"
|
|
|
});
|
|
|
+
|
|
|
this.setData({
|
|
|
isLeader,
|
|
|
tabbarList,
|
|
|
- editdataleader
|
|
|
+ editdataleader,
|
|
|
+ disabled: status != '已失败' && status != '已结案'
|
|
|
});
|
|
|
},
|
|
|
//详情按钮回调
|