Forráskód Böngészése

合同详情添加操作记录

xiaohaizhao 2 éve
szülő
commit
b0fdb69d83

+ 7 - 0
packageA/contract/detail.js

@@ -112,6 +112,13 @@ Page({
                 icon: "icon-tabrenwu",
                 model: "#Work"
             })
+
+            tabsList.push({
+                label: "操作记录",
+                icon: "icon-tabcaozuojilu1",
+                model: "#Record"
+            })
+
             this.setData({
                 detail: data,
                 loading: false,

+ 2 - 1
packageA/contract/detail.json

@@ -6,7 +6,8 @@
         "PiscountProduct": "./modules/discount/product/index",
         "PiscountType": "./modules/discount/type/index",
         "Work": "/packageA/public/work/index",
-        "Objective": "./modules/objective/index"
+        "Objective": "./modules/objective/index",
+        "Record": "/packageA/public/record/index"
     },
     "navigationBarTitleText": "合同详情"
 }

+ 1 - 0
packageA/contract/detail.wxml

@@ -18,6 +18,7 @@
     <Product wx:else slot='{{detail.type=="工具使用(借用)协议"?  "工具清单": "产品明细折扣"}}' disabled="{{(per.query(options,'app')||isAdmin||isLeader)&&detail.status!='新建'}}" id='Product' />
     <PiscountType slot='产品类别折扣' id='PiscountType' disabled="{{(per.query(options,'app')||isAdmin||isLeader)&&detail.status!='新建'}}" />
     <Objective slot='业绩目标' id='Objective' />
+    <Record slot="操作记录" id="Record" ownertable='sa_contract' ownerid='{{detail.sa_contractid}}' />
     <!-- <view slot='合同条款' /> -->
     <view style="height: 140rpx;" />
 </Yl_FunTabs>