zhaoxiaohai 3 лет назад
Родитель
Сommit
4cdc4030bd
3 измененных файлов с 18 добавлено и 2 удалено
  1. 13 1
      packageA/offers/detail.js
  2. 3 1
      packageA/offers/detail.json
  3. 2 0
      packageA/offers/detail.wxml

+ 13 - 1
packageA/offers/detail.js

@@ -9,11 +9,17 @@ Page({
         }, {
             label: "产品清单",
             num: 132
+        }, {
+            label: "关联客户",
+            num: 132
         }, {
             label: "跟进动态",
             num: 132
         }, {
-            label: "关联客户",
+            label: "操作记录",
+            num: 132
+        }, {
+            label: "附件",
             num: 132
         }],
         tabbarList: [{
@@ -165,6 +171,12 @@ Page({
                 model = "#Setclient"
                 id = this.data.detail.sa_customersid;
                 break;
+            case "操作记录":
+                model = "#Record"
+                break;
+            case "附件":
+                model = "#Files"
+                break;
         };
         if (model) {
             // 确定好模块ID total = null 是第一次加载 加载数据

+ 3 - 1
packageA/offers/detail.json

@@ -4,7 +4,9 @@
         "Trace": "../setclient/modules/trace/index",
         "Project": "./modules/project/index",
         "Setclient": "./modules/setclient/index",
-        "Product": "./modules/product/index"
+        "Product": "./modules/product/index",
+        "Record":"/packageA/public/record/index",
+        "Files":"/packageA/public/files/index"
     },
     "navigationBarTitleText": "报价单详情"
 }

+ 2 - 0
packageA/offers/detail.wxml

@@ -14,6 +14,8 @@
     <Product slot='产品清单' disabled='{{detail.status!="新建"}}' id='Product' />
     <Project slot='项目商机' id='Project' />
     <Setclient slot='关联客户' id='Setclient' />
+    <Record slot='操作记录' id="Record" ownertable='sa_quotedprice' ownerid='{{detail.sa_quotedpriceid}}' />
+    <Files slot='附件' id="Files" ownertable='sa_quotedprice' ownerid='{{detail.sa_quotedpriceid}}' />
     <view style="height: 140rpx;" />
 </Yl_FunTabs>