|
|
@@ -74,7 +74,7 @@ Page({
|
|
|
icon: "none"
|
|
|
});
|
|
|
this.setPreview(res);
|
|
|
- this.setTabbar(res.data.status, res.data.leader[0].userid == wx.getStorageSync('userMsg').userid);
|
|
|
+ this.setTabbar(res.data.status, res.data.leader.length ? res.data.leader[0].userid == wx.getStorageSync('userMsg').userid : false);
|
|
|
this.setData({
|
|
|
loading: false,
|
|
|
detail: res.data,
|
|
|
@@ -162,7 +162,7 @@ Page({
|
|
|
value: res.data.status
|
|
|
}, {
|
|
|
label: "负责人",
|
|
|
- value: res.data.leader[0].name
|
|
|
+ value: res.data.leader.length ? res.data.leader[0].name : ""
|
|
|
}, {
|
|
|
label: "备注",
|
|
|
value: res.data.remarks
|
|
|
@@ -202,7 +202,7 @@ Page({
|
|
|
value: res.data.deletereason
|
|
|
}, {
|
|
|
label: "转手次数",
|
|
|
- value: res.data.leader[0].leadernum
|
|
|
+ value: res.data.leader.length ? res.data.leader[0].leadernum : ""
|
|
|
}],
|
|
|
})
|
|
|
},
|
|
|
@@ -250,8 +250,9 @@ Page({
|
|
|
label: '撤回'
|
|
|
});
|
|
|
}
|
|
|
+ let status = this.data.detail.status;
|
|
|
//拥有管理权限 提交状态可以审核 审核状态可以反审核
|
|
|
- if (this.data.isAdmin && (res.data.status == '审核' || res.data.status == '提交')) tabbarList.unshift(res.data.status == '审核' ? {
|
|
|
+ if (this.data.isAdmin && (status == '审核' || status == '提交')) tabbarList.unshift(status == '审核' ? {
|
|
|
icon: "icon-guanlian-fuzhi",
|
|
|
label: "反审核"
|
|
|
} : {
|