zhaoxiaohai 3 years ago
parent
commit
31cec2b3cc
3 changed files with 17 additions and 1 deletions
  1. 12 0
      packageA/project/detail.js
  2. 3 1
      packageA/project/detail.json
  3. 2 0
      packageA/project/detail.wxml

+ 12 - 0
packageA/project/detail.js

@@ -24,6 +24,12 @@ Page({
         }, {
             label: "跟进动态",
             num: 132
+        }, {
+            label: "操作记录",
+            num: 132
+        }, {
+            label: "附件",
+            num: 132
         }],
         tabbarList: [{
             icon: "icon-genjin",
@@ -252,6 +258,12 @@ Page({
             case "联系人":
                 model = "#Contacts"
                 break;
+            case "操作记录":
+                model = "#Record"
+                break;
+            case "附件":
+                model = "#Files"
+                break;
         };
         if (model) {
             // 确定好模块ID total = null 是第一次加载 加载数据

+ 3 - 1
packageA/project/detail.json

@@ -7,7 +7,9 @@
         "TaskTabs": "./modules/task/tabs/index",
         "Treaty": "./modules/treaty/index",
         "Contacts": "./modules/contacts/index",
-        "Product": "./modules/product/index"
+        "Product": "./modules/product/index",
+        "Record": "/packageA/public/record/index",
+        "Files": "/packageA/public/files/index"
     },
     "navigationBarTitleText": "项目详情"
 }

+ 2 - 0
packageA/project/detail.wxml

@@ -19,6 +19,8 @@
     <Offers slot='报价单' id='Offers' />
     <Product slot='产品配置单' id='Product' />
     <Contacts slot='联系人' id='Contacts' />
+    <Record slot='操作记录' id="Record" ownertable='sa_project' ownerid='{{detail.sa_projectid}}' />
+    <Files slot='附件' id="Files" ownertable='sa_project' ownerid='{{detail.sa_projectid}}' />
     <view style="height: 140rpx;" />
 </Yl_FunTabs>