xiaohaizhao 6 місяців тому
батько
коміт
d750dcaa26

+ 2 - 0
app.json

@@ -229,6 +229,8 @@
     "usingComponents": {
         "Preview": "/components/preview/index",
         "My_Empty": "/components/My_empty/index",
+        "Record": "/components/record/index",
+        "Files": "/components/files/index",
         "Yl_Files": "/components/Yl_Files/index",
         "Yl_Tabbar": "/components/Yl_Tabbar/index",
         "Yl-tags": "/pages/tags/modules/Yl-tags/index",

+ 92 - 0
components/files/index.js

@@ -0,0 +1,92 @@
+const _Http = getApp().globalData.http,
+    MFT = require("../../utils/matchingFeilType"),
+    checkFile = require("../../utils/checkFile");
+Component({
+    options: {
+        addGlobalClass: true
+    },
+    properties: {
+        ownertable: {
+            type: String
+        },
+        ownerid: {
+            type: String
+        },
+        disabled: {
+            type: Boolean,
+            value: true
+        }
+    },
+    data: {
+        content: {
+            nocache: true,
+            pageNumber: 1,
+            pageSize: 10,
+            pageTotal: 1,
+            total: null,
+            usetype: ""
+        },
+        list: []
+    },
+    lifetimes: {
+        attached: function () {
+            getApp().globalData.Language.getLanguagePackage(this)
+        }
+    },
+    methods: {
+        getList(id, init = false) {
+            let content = {
+                ...this.data.content,
+                "ownertable": this.data.ownertable,
+                "ownerid": this.data.ownerid,
+                nocache: true,
+            };
+            if (init) content.pageNumber = 1
+            _Http.basic({
+                "classname": "system.attachment.Attachment",
+                "method": "queryFileLink",
+                content
+            }).then(res => {
+                console.log("附件列表", res)
+                if (res.code != '1') return wx.showToast({
+                    title: res.data,
+                    icon: "none"
+                });
+                res.data = MFT.fileList(res.data)
+                this.setData({
+                    "content.pageNumber": res.pageNumber + 1,
+                    "content.pageTotal": res.pageTotal,
+                    "content.total": res.total,
+                    list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data)
+                })
+            })
+        },
+        addFiles({
+            detail
+        }) {
+            _Http.basic({
+                "classname": "system.attachment.Attachment",
+                "method": "createFileLink",
+                "content": {
+                    "ownertable": this.data.ownertable,
+                    "ownerid": this.data.ownerid,
+                    "usetype": "default",
+                    "attachmentids": detail
+                }
+            }).then(res => {
+                console.log('上传附件', res)
+                if (res.code != '1') return wx.showToast({
+                    title: res.msg,
+                    icon: "none"
+                });
+                this.getList(1, true);
+            })
+        },
+        openFile(e) {
+            const {
+                item
+            } = e.currentTarget.dataset;
+            checkFile.checkFile(item)
+        }
+    }
+})

+ 6 - 0
components/files/index.json

@@ -0,0 +1,6 @@
+{
+    "component": true,
+    "usingComponents": {
+        "My_upload": "/components/My_upload/index"
+    }
+}

+ 84 - 0
components/files/index.scss

@@ -0,0 +1,84 @@
+.head {
+    display: flex;
+    align-items: center;
+    width: 100vw;
+    height: 120rpx;
+    padding: 0 20rpx 0 30rpx;
+    box-sizing: border-box;
+
+    .count {
+        font-size: 28rpx;
+        font-family: PingFang SC-Regular, PingFang SC;
+        color: #333333;
+    }
+
+    .expand {
+        flex: 1;
+        display: flex;
+        justify-content: flex-end;
+        align-items: center;
+
+        .but {
+            flex-shrink: 0;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            width: 80rpx;
+            height: 80rpx;
+            background: #FFFFFF;
+            border-radius: 8rpx;
+            border: 2rpx solid #CCCCCC;
+            margin-left: 20rpx;
+            color: #666666;
+        }
+    }
+}
+
+.my-card {
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    width: 690rpx;
+    margin: 0 auto 10rpx;
+    height: 100rpx;
+    padding: 10rpx 30rpx 0;
+    background-color: #fff;
+    box-sizing: border-box;
+    border-radius: 8rpx;
+
+    .flie {
+        display: flex;
+        align-items: center;
+        height: 100%;
+
+        .image {
+            width: 58rpx;
+            height: 58rpx;
+        }
+
+        .details {
+            width: 500rpx;
+            height: 100%;
+            margin-left: 25rpx;
+
+            .name {
+                display: flex;
+                align-items: center;
+                height: 40rpx;
+                font-size: 28rpx;
+                font-family: PingFang SC-Bold, PingFang SC;
+                font-weight: bold;
+                color: #333333;
+                margin-right: 10rpx;
+            }
+
+            .time {
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                color: #999999;
+                margin-top: 14rpx;
+            }
+        }
+    }
+
+}

+ 26 - 0
components/files/index.wxml

@@ -0,0 +1,26 @@
+<view class="head">
+    <view class="count">
+        <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
+        <text wx:else>总共{{content.total}}个</text>
+    </view>
+    <view class="expand">
+        <My_upload wx:if="{{disabled}}" bind:uploadCallback='addFiles'>
+            <navigator url="#" class="but">
+                <van-icon name="plus" />
+            </navigator>
+        </My_upload>
+    </view>
+</view>
+<navigator class="my-card" url="#" wx:for="{{list}}" wx:key="attachmentid" data-item="{{item}}" bindtap="openFile">
+    <view class="flie">
+        <image class="image" src="{{item.cover}}" />
+        <view class="details">
+            <view class="name">
+                <view class="line-1">{{item.document}}</view>
+                <van-icon wx:if="{{item.isCollect==1}}" name="star" color='#FADB14' />
+            </view>
+            <view class="time">{{item.createdate}}</view>
+        </view>
+    </view>
+</navigator>
+<My_empty wx:if="{{list.length==0}}" />

+ 58 - 0
components/record/index.js

@@ -0,0 +1,58 @@
+const _Http = getApp().globalData.http;
+Component({
+    options: {
+        addGlobalClass: true
+    },
+    properties: {
+        ownertable: {
+            type: String
+        },
+        ownerid: {
+            type: String
+        },
+    },
+    data: {
+        content: {
+            nocache: true,
+            pageNumber: 1,
+            pageSize: 10,
+            pageTotal: 1,
+            total: null
+        },
+        list: []
+    },
+    lifetimes: {
+        attached: function () {
+            getApp().globalData.Language.getLanguagePackage(this)
+        }
+    },
+    methods: {
+        getList(id, init = false) {
+            let content = {
+                ...this.data.content,
+                "ownertable": this.data.ownertable,
+                "ownerid": this.data.ownerid,
+            };
+            if (init) {
+                content.pageNumber = 1
+                content.pageTotal = 1
+            }
+            _Http.basic({
+                "id": 20221114125401,
+                content
+            }).then(res => {
+                console.log("操作记录", res)
+                if (res.code != '1') return wx.showToast({
+                    title: res.data,
+                    icon: "none"
+                });
+                this.setData({
+                    "content.pageNumber": res.pageNumber + 1,
+                    "content.pageTotal": res.pageTotal,
+                    "content.total": res.total,
+                    list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data)
+                })
+            })
+        },
+    }
+})

+ 4 - 0
components/record/index.json

@@ -0,0 +1,4 @@
+{
+    "component": true,
+    "usingComponents": {}
+}

+ 120 - 0
components/record/index.scss

@@ -0,0 +1,120 @@
+.head {
+    display: flex;
+    align-items: center;
+    width: 100vw;
+    height: 120rpx;
+    padding: 0 20rpx 0 30rpx;
+    box-sizing: border-box;
+
+    .count {
+        font-size: 28rpx;
+        font-family: PingFang SC-Regular, PingFang SC;
+        color: #333333;
+    }
+
+    .expand {
+        flex: 1;
+        display: flex;
+        justify-content: flex-end;
+        align-items: center;
+
+        .but {
+            flex-shrink: 0;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            width: 80rpx;
+            height: 80rpx;
+            background: #FFFFFF;
+            border-radius: 8rpx;
+            border: 2rpx solid #CCCCCC;
+            margin-left: 20rpx;
+            color: #666666;
+        }
+    }
+}
+
+.exp {
+    margin-top: 8rpx;
+    font-size: 24rpx;
+    font-family: PingFang SC-Regular, PingFang SC;
+    color: #333333;
+}
+
+.record-box {
+    width: 100vw;
+    padding: 0 30rpx;
+    box-sizing: border-box;
+    background-color: #ffffff;
+
+    .item {
+        width: 100%;
+        border-bottom: 1px solid #DDDDDD;
+        padding: 20rpx 0;
+
+        .head {
+            display: flex;
+            width: 100%;
+            height: 80rpx;
+
+            .portrait {
+                width: 80rpx;
+                height: 80rpx;
+                border-radius: 50%;
+                overflow: hidden;
+                margin-right: 20rpx;
+                flex-shrink: 0;
+
+                .replace {
+                    text-align: center;
+                    line-height: 80rpx;
+                    background-color: #3874F6;
+                    font-size: 28rpx;
+                    font-family: PingFang SC-Regular, PingFang SC;
+                    color: #FFFFFF;
+                }
+            }
+
+            .introduce {
+                flex: 1;
+                height: 80rpx;
+
+                .title {
+                    display: flex;
+                    align-items: flex-end;
+                    height: 42rpx;
+                    font-size: 30rpx;
+                    font-weight: 400;
+                    color: #333333;
+                    font-family: PingFang SC-Regular, PingFang SC;
+
+                    .line-1 {
+                        max-width: 400rpx;
+                    }
+
+                    text {
+                        display: inline-block;
+                        margin-left: 20rpx;
+                        font-size: 24rpx;
+                        color: #666666;
+                    }
+                }
+
+                .time {
+                    font-size: 24rpx;
+                    color: #999999;
+                    margin-top: 6rpx;
+                }
+            }
+        }
+
+        .remarks {
+            font-size: 24rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #666666;
+            line-height: 28rpx;
+            margin-top: 20rpx;
+            word-break: break-all;
+        }
+    }
+}

+ 33 - 0
components/record/index.wxml

@@ -0,0 +1,33 @@
+<view class="head">
+    <view class="count">
+        <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
+        <text wx:else>总共{{content.total}}个</text>
+    </view>
+</view>
+<navigator class="record-box" url="#" wx:for="{{list}}" wx:key="actionuserid">
+    <view class="item">
+        <view class="head">
+            <view class="portrait">
+                <van-image wx:if="{{item.headpic}}" width="100%" height="100%" src="{{item.headpic}}" use-loading-slot lazy-load>
+                    <van-loading slot="loading" type="spinner" size="20" vertical />
+                </van-image>
+                <view class="replace" wx:else>
+                    {{item.actionby[0]}}
+                </view>
+            </view>
+            <view class="introduce">
+                <view class="title">
+                    <view class="line-1">{{item.actionby}}</view>
+                    <text>{{language[item.action]||item.action}}</text>
+                </view>
+                <view class="time">
+                    {{item.actiondate}}
+                </view>
+            </view>
+        </view>
+        <view class="remarks" wx:if="{{item.remarks}}">
+            {{language[item.remarks]||item.remarks}}
+        </view>
+    </view>
+</navigator>
+<My_empty wx:if="{{list.length==0}}" />

+ 1 - 1
packageA/activity/modules/clue/clue.js

@@ -107,7 +107,7 @@ Component({
             switch (detail.label) {
                 case "跟进":
                     wx.navigateTo({
-                        url: `/packageA/setclient/modules/trace/add/index?ownertable=sat_campaign&ownerid=${data.sat_campaignid}}&resource=报价单`,
+                        url: `/prsx/trace/add/index?ownertable=sat_campaign&ownerid=${data.sat_campaignid}}&resource=报价单`,
                     })
                     break;
                 case "作废":

+ 1 - 1
packageA/contract/detail.js

@@ -773,7 +773,7 @@ Page({
                 break;
             case "跟进":
                 wx.navigateTo({
-                    url: `/packageA/setclient/modules/trace/add/index?ownertable=sa_contract&ownerid=${data.sa_contractid}&resource=合同`,
+                    url: `/prsx/trace/add/index?ownertable=sa_contract&ownerid=${data.sa_contractid}&resource=合同`,
                 })
                 break;
             case "作废":

+ 1 - 1
packageA/finishforecast/detail.json

@@ -5,7 +5,7 @@
         "Files": "/packageA/public/files/index",
         "List": "./modules/list",
         "Work": "/packageA/public/work/index",
-        "Trace": "/packageA/setclient/modules/trace/index"
+        "Trace": "/prsx/trace/index"
     },
     "navigationBarTitleText": "预测填报"
 }

+ 1 - 1
packageA/invoiceforecast/detail.json

@@ -7,7 +7,7 @@
         "Record": "/packageA/public/record/index",
         "Files": "/packageA/public/files/index",
         "Work": "/packageA/public/work/index",
-        "Trace": "/packageA/setclient/modules/trace/index"
+        "Trace": "/prsx/trace/index"
     },
     "navigationBarTitleText": "预测填报"
 }

+ 1 - 1
packageA/offers/detail.js

@@ -494,7 +494,7 @@ Page({
                 break;
             case "跟进":
                 wx.navigateTo({
-                    url: `/packageA/setclient/modules/trace/add/index?ownertable=sa_quotedprice&ownerid=${data.sa_quotedpriceid}&resource=报价单`,
+                    url: `/prsx/trace/add/index?ownertable=sa_quotedprice&ownerid=${data.sa_quotedpriceid}&resource=报价单`,
                 })
                 break;
             case "复制":

+ 1 - 1
packageA/opponent/detail.js

@@ -62,7 +62,7 @@ Page({
         switch (detail.label) {
             case "跟进":
                 wx.navigateTo({
-                    url: `/packageA/setclient/modules/trace/add/index?ownertable=sa_competitor&ownerid=${data.sa_competitorid}}&resource=竞争对手`,
+                    url: `/prsx/trace/add/index?ownertable=sa_competitor&ownerid=${data.sa_competitorid}}&resource=竞争对手`,
                 })
                 break;
             case "编辑":

+ 1 - 1
packageA/saleClue/modules/contacts/detail/index.json

@@ -1,6 +1,6 @@
 {
     "usingComponents": {
-        "Trace": "../../../../../packageA/setclient/modules/trace/index",
+        "Trace": "../../../../../prsx/trace/index",
         "preview": "../../../../../packageA/setclient/modules/preview/index"
     },
     "navigationBarTitleText": "联系人详情"

+ 1 - 1
packageA/salesForecasting/detail.js

@@ -254,7 +254,7 @@ Page({
         switch (detail.label) {
             case "跟进":
                 wx.navigateTo({
-                    url: `/packageA/setclient/modules/trace/add/index?ownertable=sa_salesforecastbill&ownerid=${this.data.sa_salesforecastbillid}}&resource=销售预测`,
+                    url: `/prsx/trace/add/index?ownertable=sa_salesforecastbill&ownerid=${this.data.sa_salesforecastbillid}}&resource=销售预测`,
                 })
                 break;
             case "添加项目":

+ 1 - 1
packageA/setclient/modules/trace/add/index.js

@@ -121,7 +121,7 @@ Page({
             loading: false
         })
         let page = getCurrentPages()[getCurrentPages().length - 2],
-            isDetail = page.__route__ == 'packageA/setclient/modules/trace/detail/index';
+            isDetail = page.__route__ == 'prsx/trace/detail/index';
         if (isDetail) {
             page.getDetail();
             page = getCurrentPages()[getCurrentPages().length - 3];

+ 1 - 1
packageA/setclient/modules/trace/detail/index.js

@@ -58,7 +58,7 @@ Page({
         switch (detail.label) {
             case "编辑":
                 wx.navigateTo({
-                    url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
+                    url: `/prsx/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
                 });
                 break;
             case "删除":

+ 1 - 1
packageA/setclient/modules/trace/index.js

@@ -122,7 +122,7 @@ Component({
         /* 去添加 */
         toAdd() {
             wx.navigateTo({
-                url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&resource=${this.data.resource}`,
+                url: `/prsx/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&resource=${this.data.resource}`,
             })
         },
         //跟进组件设置删除

+ 1 - 1
packageA/setclient/modules/trace/list/delete.js

@@ -32,7 +32,7 @@ Page({
             if (res.code != '1') return;
             getCurrentPages().forEach(v => {
                 //如果页面历史有详情,退出详情
-                if (['packageA/setclient/modules/trace/detail/index', "pages/trace/detail"].includes(v.__route__)) wx.navigateBack();
+                if (['prsx/trace/detail/index', "pages/trace/detail"].includes(v.__route__)) wx.navigateBack();
                 //如果页面历史有列表页 刷新列表
                 if (v.selectComponent("#Trace")) {
                     let page = v.selectComponent("#Trace")

+ 2 - 2
packageA/setclient/modules/trace/list/index.js

@@ -35,7 +35,7 @@ Component({
                 item
             } = e.currentTarget.dataset;
             wx.navigateTo({
-                url: `/packageA/setclient/modules/trace/detail/index?data=` + JSON.stringify({
+                url: `/prsx/trace/detail/index?data=` + JSON.stringify({
                     "sys_datafollowupid": item.sys_datafollowupid,
                     "ownertable": this.data.ownertable,
                     "ownerid": this.data.ownerid
@@ -47,7 +47,7 @@ Component({
                 item
             } = e.currentTarget.dataset;
             wx.navigateTo({
-                url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
+                url: `/prsx/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
             });
         },
         deleteItem(e) {

+ 1 - 1
packageA/work/detail.js

@@ -399,7 +399,7 @@ Page({
                 break;
             case "跟进":
                 wx.navigateTo({
-                    url: `/packageA/setclient/modules/trace/add/index?ownertable=sys_task&ownerid=${this.data.sys_taskid}&resource=任务`,
+                    url: `/prsx/trace/add/index?ownertable=sys_task&ownerid=${this.data.sys_taskid}&resource=任务`,
                 })
                 break;
             case "删除":

+ 25 - 1
prsx/department/detail.js

@@ -14,10 +14,26 @@ Page({
     },
     onLoad(options) {
         const appAuth = wx.getStorageSync('auth').wdepartment;
+
         let tabsList = [{
             label: "详细信息",
             icon: "icon-tabxiangxixinxi1"
+        }, {
+            label: "附件",
+            icon: "icon-tabfujian1",
+            model: "#Files"
+        }, {
+            label: "操作",
+            icon: "icon-tabcaozuojilu1",
+            model: "#Record"
         }];
+        if (appAuth.isdatafollowup) {
+            tabsList.unshift({
+                label: "跟进动态",
+                icon: "icon-tabgenjinjilu",
+                model: "#Trace"
+            })
+        }
         console.log("appAuth", appAuth)
         this.setData({
             sa_hospitaldepid: options.id,
@@ -224,7 +240,8 @@ Page({
             isAdmin = this.data.appAuth.admin ? true : false,
             isLeader = detail.leader.some(some => some.userid == wx.getStorageSync('userMsg').userid),
             editdataleader = isLeader ? 1 : 0,
-            tabbarList = [];
+            tabbarList = [],
+            appAuth = this.data.appAuth;
         if (isLeader || isAdmin) {
             tabbarList.push({
                 icon: "color-bianji",
@@ -235,6 +252,13 @@ Page({
                 label: "作废"
             })
         }
+
+        if (appAuth.isdatafollowup) {
+            tabbarList.push({
+                icon: "color-genjin",
+                label: "跟进"
+            });
+        }
         this.setData({
             tabbarList,
             isLeader

+ 3 - 1
prsx/department/detail.json

@@ -1,4 +1,6 @@
 {
-    "usingComponents": {},
+    "usingComponents": {
+        "Trace": "/prsx/trace/index"
+    },
     "navigationBarTitleText": "科室详情"
 }

+ 3 - 0
prsx/department/detail.wxml

@@ -17,6 +17,9 @@
 <!-- 功能 -->
 <Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
     <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
+    <Trace resource='科室管理' slot='跟进动态' id='Trace' ownertable='sa_hospitaldep' ownerid='{{sa_hospitaldepid}}' disabled="{{detail.status != '已终止'}}" ownerid1='{{detail.sys_enterpriseid}}' />
+    <Record slot="操作" id="Record" ownertable='sa_hospitaldep' ownerid='{{sa_hospitaldepid}}' />
+    <Files slot="附件" id="Files" ownertable='sa_hospitaldep' ownerid='{{sa_hospitaldepid}}' disabled="{{detail.status != '已终止'}}" />
 </Yl_FunTabs>
 <!-- 底部 -->
 <Yl_Tabbar wx:if="{{tabbarList.length}}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />

+ 27 - 18
prsx/hospital/detail.js

@@ -307,9 +307,6 @@ Page({
             if (!isLeader) isLeader = data.editable == 1;
             editdataleader = data.editdataleader;
         }
-
-
-
         if (appAuth.isdatafollowup) {
             tabsList.unshift({
                 label: "跟进动态",
@@ -321,7 +318,15 @@ Page({
                 label: "跟进"
             });
         }
-
+        tabsList = tabsList.concat([{
+            label: "附件",
+            icon: "icon-tabfujian1",
+            model: "#Files"
+        }, {
+            label: "操作",
+            icon: "icon-tabcaozuojilu1",
+            model: "#Record"
+        }])
         if (isLeader || isAdmin) {
             tabbarList.push({
                 icon: "color-bianji",
@@ -353,21 +358,25 @@ Page({
     },
     //局部数据更新 tabs
     partialRenewal(init = false) {
-        let model = this.data.tabsList[this.data.tabsActive].model;
-        if (model) {
-            let Component = this.selectComponent(model),
-                {
-                    total,
-                    pageNumber,
-                    pageTotal
-                } = Component.data.content,
-                id = model == "#Clue" ? this.data.detail.sa_customersid : this.data.detail.sys_enterpriseid;
-            if (model == "#Files") init = true;
-            if (total == null || init) {
-                Component.getList(id, init);
-            } else if (pageNumber <= pageTotal) {
-                Component.getList(id, false);
+        try {
+            let model = this.data.tabsList[this.data.tabsActive].model;
+            if (model) {
+                let Component = this.selectComponent(model),
+                    {
+                        total,
+                        pageNumber,
+                        pageTotal
+                    } = Component.data.content,
+                    id = model == "#Clue" ? this.data.detail.sa_customersid : this.data.detail.sys_enterpriseid;
+                if (model == "#Files") init = true;
+                if (total == null || init) {
+                    Component.getList(id, init);
+                } else if (pageNumber <= pageTotal) {
+                    Component.getList(id, false);
+                }
             }
+        } catch (error) {
+
         }
     },
     //更新标签

+ 2 - 1
prsx/hospital/detail.wxml

@@ -18,7 +18,8 @@
 <Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
     <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
     <Trace resource='医院管理' slot='跟进动态' id='Trace' ownertable='sa_customers' ownerid='{{sa_customersid}}' disabled="{{detail.status != '已终止'}}" ownerid1='{{detail.sys_enterpriseid}}' />
-
+    <Record slot="操作" id="Record" ownertable='sa_customers' ownerid='{{sa_customersid}}' />
+    <Files slot="附件" id="Files" ownertable='sa_customers' ownerid='{{sa_customersid}}' disabled="{{detail.status != '已终止'}}" />
 </Yl_FunTabs>
 <!-- 底部 -->
 <Yl_Tabbar wx:if="{{tabbarList.length}}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />

+ 1 - 1
prsx/trace/add/index.js

@@ -121,7 +121,7 @@ Page({
             loading: false
         })
         let page = getCurrentPages()[getCurrentPages().length - 2],
-            isDetail = page.__route__ == 'packageA/setclient/modules/trace/detail/index';
+            isDetail = page.__route__ == 'prsx/trace/detail/index';
         if (isDetail) {
             page.getDetail();
             page = getCurrentPages()[getCurrentPages().length - 3];

+ 1 - 1
prsx/trace/detail/index.js

@@ -58,7 +58,7 @@ Page({
         switch (detail.label) {
             case "编辑":
                 wx.navigateTo({
-                    url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
+                    url: `/prsx/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
                 });
                 break;
             case "删除":

+ 1 - 1
prsx/trace/index.js

@@ -122,7 +122,7 @@ Component({
         /* 去添加 */
         toAdd() {
             wx.navigateTo({
-                url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&resource=${this.data.resource}`,
+                url: `/prsx/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&resource=${this.data.resource}`,
             })
         },
         //跟进组件设置删除

+ 1 - 1
prsx/trace/list/delete.js

@@ -32,7 +32,7 @@ Page({
             if (res.code != '1') return;
             getCurrentPages().forEach(v => {
                 //如果页面历史有详情,退出详情
-                if (['packageA/setclient/modules/trace/detail/index', "pages/trace/detail"].includes(v.__route__)) wx.navigateBack();
+                if (['prsx/trace/detail/index', "pages/trace/detail"].includes(v.__route__)) wx.navigateBack();
                 //如果页面历史有列表页 刷新列表
                 if (v.selectComponent("#Trace")) {
                     let page = v.selectComponent("#Trace")

+ 2 - 2
prsx/trace/list/index.js

@@ -35,7 +35,7 @@ Component({
                 item
             } = e.currentTarget.dataset;
             wx.navigateTo({
-                url: `/packageA/setclient/modules/trace/detail/index?data=` + JSON.stringify({
+                url: `/prsx/trace/detail/index?data=` + JSON.stringify({
                     "sys_datafollowupid": item.sys_datafollowupid,
                     "ownertable": this.data.ownertable,
                     "ownerid": this.data.ownerid
@@ -47,7 +47,7 @@ Component({
                 item
             } = e.currentTarget.dataset;
             wx.navigateTo({
-                url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
+                url: `/prsx/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
             });
         },
         deleteItem(e) {