|
|
@@ -20,6 +20,9 @@ Page({
|
|
|
tabbarList: [{
|
|
|
icon: "icon-bianji",
|
|
|
label: "编辑"
|
|
|
+ }, {
|
|
|
+ icon: "icon-zhuanyi",
|
|
|
+ label: "分配"
|
|
|
}, {
|
|
|
icon: "icon-dibu-tuihui",
|
|
|
label: "撤回"
|
|
|
@@ -31,6 +34,9 @@ Page({
|
|
|
label: "作废"
|
|
|
}],
|
|
|
oldtabbarList: [{
|
|
|
+ icon: "icon-bianji",
|
|
|
+ label: "编辑"
|
|
|
+ },{
|
|
|
icon: "icon-dibu-tuihui",
|
|
|
label: "撤回"
|
|
|
}, {
|
|
|
@@ -159,12 +165,14 @@ Page({
|
|
|
}],
|
|
|
tabsList: this.data.tabsList,
|
|
|
});
|
|
|
- let arr = this.data.oldtabbarList
|
|
|
+ var arr = this.data.tabbarList
|
|
|
if (res.data.status != '待跟进') {
|
|
|
- arr = this.data.tabbarList.filter(item => {
|
|
|
+ arr = arr.filter(item => {
|
|
|
return item.label != '编辑' && item.label != '撤回'
|
|
|
})
|
|
|
- };
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/* 更新列表中状态 */
|
|
|
let page = getCurrentPages().find(v => v.__route__ == 'packageA/publicClue/index');
|
|
|
@@ -243,6 +251,11 @@ Page({
|
|
|
url: `/packageA/publicClue/addClue?rowData=${JSON.stringify(this.data.detail)}`,
|
|
|
})
|
|
|
break;
|
|
|
+ case "分配":
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/packageA/publicClue/distribution?data=${JSON.stringify(this.data.detail)}`,
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "作废":
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
@@ -261,12 +274,14 @@ Page({
|
|
|
icon: "none"
|
|
|
});
|
|
|
setTimeout(() => {
|
|
|
- let pages = getCurrentPages(),
|
|
|
- page = pages[pages.length - 2];
|
|
|
- if (page.getList) page.setData({
|
|
|
- list: page.data.list.filter(v => v.sat_orderclueid != that.data.detail.sat_orderclueid)
|
|
|
+ wx.navigateBack()
|
|
|
+ getCurrentPages().forEach(v => {
|
|
|
+ if (v.__route__=="packageA/publicClue/index") {
|
|
|
+ v.getList(true)
|
|
|
+ }
|
|
|
})
|
|
|
}, 300)
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
})
|