Selaa lähdekoodia

待跟进状态不可以编辑

xiaohaizhao 2 vuotta sitten
vanhempi
commit
cabbed4af2
2 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. 11 1
      pages/threadedTree/details/index.js
  2. 1 1
      pages/threadedTree/details/index.wxml

+ 11 - 1
pages/threadedTree/details/index.js

@@ -94,7 +94,7 @@ Page({
         this.setData({
             sat_orderclueid: options.id,
             tagColor: options.color,
-            auth:wx.getStorageSync('authList').worderclue.optionnames
+            auth: wx.getStorageSync('authList').worderclue.optionnames
         })
         this.selectDetail();
         this.getFollowList();
@@ -175,6 +175,16 @@ Page({
                 sheetShow: true
             })
         } else {
+            if (e.currentTarget.dataset.status == '待跟进') {
+                wx.showToast({
+                    title: '请先执行跟进后再进行编辑!',
+                    icon: "none"
+                });
+                this.setData({
+                    sheetShow: true
+                })
+                return
+            }
             if (name == '线索编辑') this.selectComponent("#edit").initData()
             this.setData({
                 sheetTitle: name

+ 1 - 1
pages/threadedTree/details/index.wxml

@@ -38,7 +38,7 @@
             <view class="iconfont icon-genjin" />
             <view class="text">执行</view>
         </navigator>
-        <navigator wx:if="{{per.query(auth,'修改')}}" url="#" data-name="线索编辑" catchtap="openPoput">
+        <navigator wx:if="{{per.query(auth,'修改')}}" url="#" data-status="{{detailsData.status}}" data-name="线索编辑" catchtap="openPoput">
             <view class="iconfont icon-bianji" />
             <view class="text">编辑</view>
         </navigator>