Sfoglia il codice sorgente

公海客户关联项

xiaohaizhao 3 anni fa
parent
commit
0750c4455c

+ 2 - 2
packageA/contract/add/type4/index.js

@@ -23,14 +23,14 @@ Page({
             error: false,
             errMsg: "",
             type: "route",
-            url: "/packageA/select/setclient/select",
+            url: "/packageA/contract/add/setclient/select",
             value: "",
             params: {
                 "id": 20220920083901,
                 "content": {
                     "where": {
                         "condition": "",
-                        "type": 1,
+                        "type": 2,
                         typemx: "居间协议"
                     }
                 }

+ 2 - 2
packageA/project/modules/task/add.js

@@ -17,7 +17,7 @@ Page({
             let isUser = res.data[0].option ? true : false;
             if (res.data[0].option) {
                 res.data.map(v => {
-                    v.sa_projtaskmag_optionsid = v.option[0].sa_projtaskmag_optionsid,
+                    v.sa_projtaskmag_optionsid = v.option[0].sa_projtaskmag_optionsid || 0,
                         v.score = v.option[0].score
                 })
             } else {
@@ -25,7 +25,7 @@ Page({
                     option: {
                         ...res.data
                     },
-                    sa_projtaskmag_optionsid: res.data[0].sa_projtaskmag_optionsid,
+                    sa_projtaskmag_optionsid: res.data[0].sa_projtaskmag_optionsid || 0,
                     score: res.data[0].score,
                     sa_project_partiesid: 0,
                 }]

+ 12 - 12
packageA/project/modules/task/list/index.js

@@ -22,8 +22,8 @@ Component({
                 taskname: item.taskname,
                 content: {
                     sa_projectid: page.data.detail.sa_projectid,
-                    "sa_projtaskmagid": item.sa_projtaskmagid,
-                    "sa_projstagemagid": item.sa_projstagemagid,
+                    sa_projtaskmagid: item.sa_projtaskmagid,
+                    sa_projstagemagid: item.sa_projstagemagid,
                 }
             })
             if (item.partiestype.length != 0) {
@@ -31,28 +31,27 @@ Component({
                     url: '/packageA/select/setclient/select?params=' + JSON.stringify({
                         "id": 20221129152204,
                         content: {
-                            model: "#Task",
                             nocache: true,
                             sa_projectid: page.data.detail.sa_projectid,
-                            "sa_projtaskmagid": item.sa_projtaskmagid,
-                            pageNumber: 1,
-                            pageTotal: 1,
-                            pageSize: 20,
-                            total: null,
+                            sa_projtaskmagid: item.sa_projtaskmagid,
                             where: {
                                 condition: "",
                             }
                         },
                     }),
                 });
+                getApp().globalData.handleSelect = this.handleAdd.bind(this);
             } else {
-                this.handleAdd([]);
+                this.handleAdd({
+                    result: []
+                });
             }
         },
-        handleAdd(ids) {
+
+        handleAdd(e) {
             let content = this.data.content;
-            content.sa_project_partiesids = ids
-            if (ids.length) {
+            content.sa_project_partiesids = e.result;
+            if (e.result.length) {
                 wx.redirectTo({
                     url: '/packageA/project/modules/task/add?content=' + JSON.stringify(content) + '&taskname=' + this.data.taskname,
                 })
@@ -62,6 +61,7 @@ Component({
                 })
             }
         },
+
         viewHistory(e) {
             const {
                 sa_projectid,

+ 63 - 19
packageA/publicCustomer/detail.js

@@ -6,25 +6,69 @@ Page({
         detail: {}, //详情数据
         briefs: [], //简介列表
         tabsList: [{
-            label: "详细信息",
-            icon: "icon-tabxiangxixinxi1"
-        }, {
-            label: "跟进动态",
-            icon: "icon-tabgenjinjilu",
-            model: "#Trace"
-        }, {
-            label: "客户地址",
-            icon: "icon-tabdizhi",
-            model: "#Address"
-        }, {
-            label: "联系人",
-            icon: "icon-tablianxiren",
-            model: "#Contacts"
-        }, {
-            label: "任务",
-            icon: "icon-tabrenwu",
-            model: "#Work"
-        }],
+                label: "详细信息",
+                icon: "icon-tabxiangxixinxi1"
+            }, {
+                label: "跟进动态",
+                icon: "icon-tabgenjinjilu",
+                model: "#Trace"
+            }, {
+                label: "线索",
+                icon: "icon-tabxiansuo",
+                model: "#Clue"
+            },
+            {
+                label: "项目商机",
+                icon: "icon-tabxiangmu",
+                model: "#Project"
+            }, {
+                label: "客户地址",
+                icon: "icon-tabdizhi",
+                model: "#Address"
+            }, {
+                label: "联系人",
+                icon: "icon-tablianxiren",
+                model: "#Contacts"
+            }, {
+                label: "报价单",
+                icon: "icon-tabbaojiadan",
+                model: "#Offers"
+            },
+            {
+                label: "合同",
+                icon: "icon-tabhetong",
+                model: "#Contract"
+            },
+            {
+                label: "账户余额",
+                icon: "icon-tabkaipiaoxinxi",
+                model: "#Account"
+            },
+
+
+            {
+                label: "银行卡信息",
+                icon: "icon-tabchanpin",
+                model: "#Bankcard"
+            }, {
+                label: "开票信息",
+                icon: "icon-tabbaojiadan",
+                model: "#Financing"
+            },
+            {
+                label: "任务",
+                icon: "icon-tabrenwu",
+                model: "#Work"
+            }, {
+                label: "操作",
+                icon: "icon-tabcaozuojilu1",
+                model: "#Record"
+            }, {
+                label: "附件",
+                icon: "icon-tabfujian1",
+                model: "#Files"
+            }
+        ],
         list1: [], //基本信息
         list2: [], //系统信息
         tabbarList: []

+ 11 - 1
packageA/publicCustomer/detail.json

@@ -5,7 +5,17 @@
         "Preview": "../setclient/modules/preview/index",
         "Contacts": "../setclient/modules/contacts/index",
         "Address": "../setclient/modules/address/index",
-        "Work": "/packageA/public/work/index"
+        "Clue": "/packageA/setclient/modules/clue/index",
+        "Project": "/packageA/setclient/modules/project/index",
+        "Work": "/packageA/public/work/index",
+        "Record": "/packageA/public/record/index",
+        "Files": "/packageA/public/files/index",
+        "Financing": "/packageA/setclient/modules/financing/index",
+        "Bankcard": "/packageA/setclient/modules/bankcard/index",
+        "Account": "/packageA/setclient/modules/account/index",
+        "Contract": "/packageA/setclient/modules/contract/index",
+        "Offers": "/packageA/setclient/modules/offers/index"
+
     },
     "navigationBarTitleText": "客户详情"
 }

+ 9 - 0
packageA/publicCustomer/detail.wxml

@@ -23,6 +23,15 @@
     <Work slot='任务' id='Work' ownertable='sa_customers' ownerid='{{detail.sa_customersid}}' disabled="{{isAdmin}}" />
     <Address slot='客户地址' id='Address' disabled="{{per.query(options,'address')||isAdmin}}" />
     <Contacts slot='联系人' id='Contacts' disabled="{{per.query(options,'contact')||isAdmin}}" path='/packageA/setclient/modules/contacts/quickly/index' />
+    <Project slot='项目商机' id="Project" />
+    <Clue slot='线索' id='Clue' disabled="{{false}}" />
+    <Offers slot='报价单' id='Offers' disabled="{{per.query(options,'offer')||isAdmin||isLeader}}" />
+    <Contract slot='合同' id='Contract' />
+    <Account slot='账户余额' id='Account' />
+    <Bankcard slot='银行卡信息' id="Bankcard" />
+    <Financing slot='开票信息' id="Financing" disabled="{{per.query(options,'invoice')||isAdmin}}" />
+    <Record slot="操作" id="Record" ownertable='sa_customers' ownerid='{{detail.sa_customersid}}' />
+    <Files slot="附件" id="Files" ownertable='sa_customers' ownerid='{{detail.sa_customersid}}' />
     <view style="height: 140rpx;" />
 </Yl_FunTabs>
 <!-- 底部 -->

+ 0 - 2
packageA/setclient/detail.js

@@ -51,12 +51,10 @@ Page({
             label: "任务",
             icon: "icon-tabrenwu",
             model: "#Work"
-
         }, {
             label: "操作",
             icon: "icon-tabcaozuojilu1",
             model: "#Record"
-
         }, {
             label: "附件",
             icon: "icon-tabfujian1",

+ 9 - 1
packageA/setclient/modules/financing/list/index.js

@@ -56,6 +56,7 @@ Component({
                                         title: res.msg,
                                         icon: "none"
                                     });
+                                    let page = null;
                                     getCurrentPages().forEach(v => {
                                         switch (v.__route__) {
                                             //退出详情界面
@@ -64,7 +65,14 @@ Component({
                                                 break;
                                                 //列表页更新数据
                                             case 'packageA/setclient/detail':
-                                                let page = v.selectComponent("#Financing");
+                                                page = v.selectComponent("#Financing");
+                                                page.setData({
+                                                    list: page.data.list.filter(v => v.sys_enterprise_financeid != item.sys_enterprise_financeid)
+                                                });
+                                                page.changeTotal();
+                                                break;
+                                            case 'packageA/publicCustomer/detail':
+                                                page = v.selectComponent("#Financing");
                                                 page.setData({
                                                     list: page.data.list.filter(v => v.sys_enterprise_financeid != item.sys_enterprise_financeid)
                                                 });