Преглед изворни кода

线索管理/公海线索功能权限修改

xiaohaizhao пре 2 година
родитељ
комит
57bafdc316

+ 4 - 4
packageA/publicClue/detail.js

@@ -227,11 +227,11 @@ Page({
                 icon: "icon-dibu-jieshu",
                 label: "删除"
             })
+            tabbarList.unshift({
+                icon: "icon-bianji",
+                label: "编辑"
+            })
         }
-        if (status == '待跟进') tabbarList.unshift({
-            icon: "icon-bianji",
-            label: "编辑"
-        })
         if (status == '已过期' && wx.getStorageSync('auth').worderclue_public.options.some(v => v == "recover")) tabbarList.unshift({
             icon: "icon-dibu-chehui",
             label: "恢复"

+ 1 - 1
packageA/publicCustomer/detail.js

@@ -155,7 +155,7 @@ Page({
                 })
                 break;
             case "跟进":
-                that.selectComponent("#Trace").insetr();
+                this.selectComponent("#Trace").insetr();
                 break;
             case "编辑":
                 data.parentid = data.superiorenterprisename ? [data.superiorenterprisename, [data.parentid]] : "";

+ 9 - 7
packageA/saleAdmin/detail.js

@@ -254,14 +254,14 @@ Page({
         let tabbarList = [];
         let detail = this.data.detail;
         if (this.data.isAdmin) {
-            if (this.data.detail.isprivate == 0 && this.data.detail.projectname1 == "") {
-                if (this.data.detail.allocationstatus == '待分配' && status != '已过期') {
+            if (this.data.detail.isprivate == 0 && this.data.detail.projectname1 == "" && status != '已过期') {
+                if (this.data.detail.allocationstatus == '待分配') {
                     tabbarList.push({
                         icon: "icon-zhuanyi",
                         label: "分配"
                     })
                 } else {
-                    if (status != '已转化' && status != '已无效') tabbarList.push({
+                    if (status == '待跟进') tabbarList.push({
                         icon: "icon-a-baobeibohuituihui",
                         label: "撤回"
                     })
@@ -271,11 +271,13 @@ Page({
                 icon: "icon-dibu-jieshu",
                 label: "删除"
             })
+
+            if (status != '已过期' && detail.allocationstatus != '已分配') tabbarList.unshift({
+                icon: "icon-bianji",
+                label: "编辑"
+            })
         }
-        if (detail.allocationstatus == '待分配' || detail.leader.some(v => v.userid == wx.getStorageSync('userMsg').userid) && status != '已过期') tabbarList.unshift({
-            icon: "icon-bianji",
-            label: "编辑"
-        })
+
         if (detail.leader.some(v => v.userid == wx.getStorageSync('userMsg').userid)) {
             if (detail.allocationstatus == '已分配') tabbarList.push({
                 icon: "icon-shanchu",

+ 3 - 0
packageA/saleAdmin/insert.js

@@ -500,6 +500,9 @@ Page({
         this.setData({
             form
         })
+        setTimeout(() => {
+            this.selectComponent("#Form").confirm();
+        }, 100)
     },
     getUnitname() {
         _Http.basic({

+ 7 - 5
packageA/setclient/detail.js

@@ -178,7 +178,7 @@ Page({
                 getApp().globalData.handleSelect = this.handleTransfer.bind(this);
                 break;
             case "跟进":
-                that.selectComponent("#Trace").insetr();
+                this.selectComponent("#Trace").insetr();
                 break;
             case "编辑":
                 data.parentid = data.superiorenterprisename ? [data.superiorenterprisename, [data.parentid]] : "";
@@ -235,7 +235,6 @@ Page({
         const {
             item
         } = e.currentTarget.dataset;
-        console.log(item)
         wx.navigateTo({
             url: '/packageA/setclient/detail?id=' + item.sa_customersid,
         })
@@ -350,7 +349,10 @@ Page({
         let isAdmin = this.data.isAdmin,
             isLeader = Leader,
             editdataleader = true,
-            tabbarList = [];
+            tabbarList = [{
+                icon: "icon-genjin",
+                label: "跟进"
+            }];
         if (!isLeader) {
             let s = await getApp().agentOrNot("sa_customers", this.data.sa_customersid);
             isLeader = s.data.editable == 1;
@@ -358,10 +360,10 @@ Page({
         }
         //负责人或管理员基础功能
         if (isLeader || isAdmin) {
-            tabbarList = [{
+            tabbarList.push({
                 icon: "icon-bianji",
                 label: "编辑"
-            }];
+            })
             if (editdataleader) tabbarList.push({
                 icon: "icon-zhuanyi",
                 label: "更换负责人"

+ 2 - 2
utils/Http.js

@@ -4,8 +4,8 @@ class HTTP {
         if (ENV === 'release') { // 正式版
             this.baseUrl = "https://oms.idcgroup.com.cn:8079";
         } else {
-            // this.baseUrl = "http://61.164.207.46:8000";
-            this.baseUrl = "https://oms.idcgroup.com.cn:8079";
+            this.baseUrl = "http://61.164.207.46:8000";
+            // this.baseUrl = "https://oms.idcgroup.com.cn:8079";
         }
         console.log("接口地址:", this.baseUrl)
     }