|
|
@@ -2,23 +2,19 @@ const _Http = getApp().globalData.http;
|
|
|
Page({
|
|
|
data: {
|
|
|
isLeader: false, //是否为负责人
|
|
|
- tabsActive: 1, //tabs 选中项
|
|
|
+ tabsActive: 0, //tabs 选中项
|
|
|
sa_projectid: "",
|
|
|
tabsList: [{
|
|
|
label: "详细信息",
|
|
|
icon: "icon-tabxiangxixinxi1"
|
|
|
- }, {
|
|
|
- label: "项目评估",
|
|
|
- icon: "icon-tabxiangmupinggu",
|
|
|
- model: "#Task"
|
|
|
- }, {
|
|
|
- label: "合同",
|
|
|
- icon: "icon-tabhetong",
|
|
|
- model: "#Contract"
|
|
|
}, {
|
|
|
label: "关联客户",
|
|
|
icon: "icon-tabkehu",
|
|
|
model: "#Treaty"
|
|
|
+ }, {
|
|
|
+ label: "联系人",
|
|
|
+ icon: "icon-tablianxiren",
|
|
|
+ model: "#Contacts"
|
|
|
}, {
|
|
|
label: "产品配置单",
|
|
|
icon: "icon-tabchanpin",
|
|
|
@@ -27,22 +23,26 @@ Page({
|
|
|
label: "报价单",
|
|
|
icon: "icon-tabbaojiadan",
|
|
|
model: "#Offers"
|
|
|
- }, {
|
|
|
- label: "关联线索",
|
|
|
- icon: "icon-tabxiansuo",
|
|
|
- model: "#Clue"
|
|
|
}, {
|
|
|
label: "竞争对手",
|
|
|
icon: "icon-tabjingzhengduishou",
|
|
|
model: "#Opponent"
|
|
|
}, {
|
|
|
- label: "联系人",
|
|
|
- icon: "icon-tablianxiren",
|
|
|
- model: "#Contacts"
|
|
|
+ label: "合同",
|
|
|
+ icon: "icon-tabhetong",
|
|
|
+ model: "#Contract"
|
|
|
}, {
|
|
|
- label: "跟进动态",
|
|
|
- icon: "icon-tabgenjinjilu",
|
|
|
- model: "#Trace"
|
|
|
+ label: "关联线索",
|
|
|
+ icon: "icon-tabxiansuo",
|
|
|
+ model: "#Clue"
|
|
|
+ }, {
|
|
|
+ label: "项目评估",
|
|
|
+ icon: "icon-tabxiangmupinggu",
|
|
|
+ model: "#Task"
|
|
|
+ }, {
|
|
|
+ label: "任务",
|
|
|
+ icon: "icon-tabrenwu",
|
|
|
+ model: "#Work"
|
|
|
}, {
|
|
|
label: "附件",
|
|
|
icon: "icon-tabfujian1",
|
|
|
@@ -52,17 +52,17 @@ Page({
|
|
|
icon: "icon-tabcaozuojilu1",
|
|
|
model: "#Record"
|
|
|
}, {
|
|
|
- label: "任务",
|
|
|
- icon: "icon-tabrenwu",
|
|
|
- model: "#Work"
|
|
|
+ label: "跟进动态",
|
|
|
+ icon: "icon-tabgenjinjilu",
|
|
|
+ model: "#Trace"
|
|
|
}],
|
|
|
tabbarList: [],
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.setData({
|
|
|
sa_projectid: options.sa_projectid,
|
|
|
- isAdmin: wx.getStorageSync('auth').wCustomer.options.some(v => v == "admin"), //是否具有管理权限
|
|
|
- options: wx.getStorageSync('auth').wCustomer.options, //权限列表
|
|
|
+ isAdmin: wx.getStorageSync('auth').wproject.options.some(v => v == "admin"), //是否具有管理权限
|
|
|
+ options: wx.getStorageSync('auth').wproject.options, //权限列表
|
|
|
});
|
|
|
this.getDetail(true)
|
|
|
},
|
|
|
@@ -196,7 +196,7 @@ Page({
|
|
|
{
|
|
|
label: "预计完工时间",
|
|
|
value: data.enddate_due
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: "预计签约时间",
|
|
|
value: data.signdate_due
|
|
|
}, {
|