于继渤 2 лет назад
Родитель
Сommit
ae77de129b

+ 1 - 0
app.json

@@ -42,6 +42,7 @@
                 "pages/product-attribute/supplier-list/supplier-list",
                 "pages/customer-list/customer-list",
                 "pages/customer-reception/customer-reception",
+                "pages/customer-reception/measure-to/measure-to",
                 "pages/customer-follow-up/customer-follow-up",
                 "pages/customer-list/add/add",
                 "pages/customer-reception/add/add",

+ 33 - 1
package-basic-data/pages/customer-reception/customer-reception.js

@@ -114,7 +114,7 @@ Page({
       { name: 'followUpTasks', title: '跟进任务' },
       { name: 'customerRefundList', title: '销售订单' },
       { name: 'customerRefundList', title: '客户收款' },
-      { name: 'customerRefundList', title: '量尺回执' }
+
     ],
 
     totallength: 0, //视图下方提醒数量
@@ -125,6 +125,38 @@ Page({
     active: 0
   },
   /**
+  * @desc : 点击三个点事件
+  * @date : 2024/2/1 15:49
+  * @author : 于继渤
+  */
+  toPoint(e) {
+    let item = e.detail.item
+    let buttonList = this.data.buttonList
+    if (item.followStatus == '跟进状态-约尺' && item.measureStatus == '量尺状态-待量尺') {
+      buttonList = [
+        { name: 'followUp', title: '客户跟进' },
+        { name: 'followUpTasks', title: '跟进任务' },
+        { name: 'customerRefundList', title: '销售订单' },
+        { name: 'customerRefundList', title: '客户收款' },
+        { name: 'customerRefundList', title: '量尺回执' }
+      ]
+    } else {
+      buttonList = [
+        { name: 'followUp', title: '客户跟进' },
+        { name: 'followUpTasks', title: '跟进任务' },
+        { name: 'customerRefundList', title: '销售订单' },
+        { name: 'customerRefundList', title: '客户收款' }
+      ]
+    }
+    this.setData({
+      buttonList: buttonList
+    })
+
+  },
+
+
+
+  /**
  * @desc : 切换
  * @date : 2024/2/1 15:49
  * @author : 于继渤

+ 66 - 0
package-basic-data/pages/customer-reception/measure-to/measure-to.js

@@ -0,0 +1,66 @@
+// package-basic-data/pages/customer-reception/measure-to/measure-to.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
package-basic-data/pages/customer-reception/measure-to/measure-to.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
package-basic-data/pages/customer-reception/measure-to/measure-to.wxml

@@ -0,0 +1,2 @@
+<!--package-basic-data/pages/customer-reception/measure-to/measure-to.wxml-->
+<text>package-basic-data/pages/customer-reception/measure-to/measure-to.wxml</text>

+ 1 - 0
package-basic-data/pages/customer-reception/measure-to/measure-to.wxss

@@ -0,0 +1 @@
+/* package-basic-data/pages/customer-reception/measure-to/measure-to.wxss */