|
|
@@ -237,14 +237,11 @@ Page({
|
|
|
isLeader = s.data.editable == 1;
|
|
|
editdataleader = s.data.editdataleader == 1;
|
|
|
}
|
|
|
- /* , {
|
|
|
- icon: "icon-genjin",
|
|
|
- label: "报备驳回(退回)"
|
|
|
- } */
|
|
|
if (isAdmin) tabbarList = [{
|
|
|
icon: "icon-genjin",
|
|
|
label: "报备审核"
|
|
|
}].concat(tabbarList);
|
|
|
+
|
|
|
if (isLeader || isAdmin) {
|
|
|
if (status != '已失败') tabbarList = tabbarList.concat([{
|
|
|
icon: "icon-bianji",
|
|
|
@@ -662,9 +659,17 @@ Page({
|
|
|
onGetList({
|
|
|
detail
|
|
|
}) {
|
|
|
- if (detail.data.systemtag.includes('报备中')) this.setData({
|
|
|
- tabbarList: this.data.tabbarList.filter(v => v.label != '提交报备')
|
|
|
- })
|
|
|
+ if (detail.data.systemtag.includes('报备中')) {
|
|
|
+ let tabbarList = this.data.tabbarList.filter(v => v.label != '提交报备')
|
|
|
+ let index = tabbarList.findIndex(v => v.label == '报备审核');
|
|
|
+ if (index != -1) tabbarList.splice(index, 0, {
|
|
|
+ icon: "icon-genjin",
|
|
|
+ label: "报备驳回(退回)"
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ tabbarList
|
|
|
+ })
|
|
|
+ }
|
|
|
this.setData({
|
|
|
isInsert: detail.data.systemtag.includes('已报备')
|
|
|
})
|