xiaohaizhao пре 2 година
родитељ
комит
a50aafeda4

+ 0 - 1
app.json

@@ -107,7 +107,6 @@
                 "publicCustomer/detail",
                 "publicCustomer/detail",
                 "publicCustomer/addAndEditor",
                 "publicCustomer/addAndEditor",
                 "publicCustomer/pond/index",
                 "publicCustomer/pond/index",
-                "saleClue/addFollow",
                 "project/modules/task/history",
                 "project/modules/task/history",
                 "salesForecasting/index",
                 "salesForecasting/index",
                 "salesForecasting/detail",
                 "salesForecasting/detail",

+ 0 - 229
packageA/saleClue/addFollow.js

@@ -1,229 +0,0 @@
-const deleteMark = require("../../utils/deleteMark"),
-    getTime = require("../../utils/getTime"),
-    _Http = getApp().globalData.http,
-    QQMapWX = require('../../utils/qqmap-wx-jssdk.min'),
-    qqmapsdk = new QQMapWX({
-        key: 'QF6BZ-4IQC5-SN2IH-QL5BW-U4IJO-R3BY4' // 必填
-    });
-Page({
-    data: {
-        sat_orderclueid: null,
-        deleteItem: false,
-        actionShow: false,
-        date1: getTime.formatTime(new Date(), '-').split(' ')[0],
-        time: getTime.formatTime(new Date(), '-').split(' ')[1],
-        actions: [],
-        disabled: true,
-        loading: false,
-    },
-    onLoad(options) {
-        if (options.sat_orderclueid) this.setData({
-            sat_orderclueid: options.sat_orderclueid
-        })
-        this.getFollowType()
-        this.init();
-    },
-    bindDateChange: function (e) {
-        this.setData({
-            date1: e.detail.value
-        })
-    },
-    bindTimeChange(e) {
-        this.setData({
-            time: e.detail.value + ":00"
-        })
-    },
-    /* 跟进初始化 */
-    init() {
-        let that = this;
-        _Http.basic({
-            id: "20221208100602",
-            "content": {
-                sat_orderclueid: this.data.sat_orderclueid,
-                sat_ordercluefollowuplogid: 0,
-                "content": "",
-                "followupmode": "",
-                "logtype": "",
-                "competitor": "",
-                latitude: "", //经度
-                longitude: "", //纬度
-                address: "", //逆解析位置
-            }
-        }).then(res => {
-            console.log("初始化", res)
-            if (res.msg != '成功') {
-                wx.showToast({
-                    title: '初始化失败!请稍后再试',
-                    icon: "none"
-                });
-                setTimeout(() => {
-                    wx.navigateBack()
-                }, 300)
-                return
-            } else {
-                that.setData({
-                    content: res.data,
-                    deleteItem: true,
-                });
-                wx.getLocation({
-                    type: 'wgs84',
-                    altitude: true,
-                    isHighAccuracy: true,
-                    highAccuracyExpireTime: 5000,
-                    success({
-                        latitude,
-                        longitude
-                    }) {
-                        that.setData({
-                            "content.latitude": latitude,
-                            "content.longitude": longitude
-                        })
-                        qqmapsdk.reverseGeocoder({
-                            location: {
-                                latitude,
-                                longitude
-                            },
-                            success(s) {
-                                console.log("逆解析", s)
-                                that.setData({
-                                    "content.address": s.result.address,
-                                })
-                            }
-                        })
-
-                    },
-                    fail(err) {
-                        console.log(err)
-                    }
-                })
-            }
-        })
-    },
-    submit() {
-        if (this.data.loading) return;
-        let content = this.data.content;
-        content.createdate = this.data.date1 + " " + this.data.time
-        this.setData({
-            loading: true
-        })
-        content.logtype = '跟进';
-        _Http.basic({
-            id: "20221208100602",
-            content
-        }).then(res => {
-            this.setData({
-                loading: false
-            })
-            if (res.msg != '成功') return wx.showToast({
-                title: res.msg,
-                icon: "none"
-            });
-            this.setData({
-                deleteItem: false
-            })
-            wx.showToast({
-                title: '保存成功!',
-            })
-            setTimeout(() => {
-                let page = getCurrentPages().find(v => v.__route__ == 'packageA/saleClue/detail');
-                page.selectComponent("#follow").getList(page.data.sat_orderclueid, true);
-                page.getDetail();
-                wx.navigateBack();
-            }, 300)
-        })
-    },
-    /* 绑定媒体 */
-    insertImgEdit({
-        detail
-    }) {
-        _Http.basic({
-            "classname": "system.attachment.Attachment",
-            "method": "createFileLink",
-            "content": {
-                "ownertable": "sat_ordercluefollowuplog",
-                "ownerid": this.data.content.sat_ordercluefollowuplogid,
-                "usetype": "default",
-                "attachmentids": detail
-            }
-        }).then(res => {
-            console.log('跟进记录绑定附件', res)
-            if (res.msg != '成功') return wx.showToast({
-                title: res.msg,
-                icon: "none"
-            })
-            this.selectComponent("#Yl_Files").handleFiles(res.data)
-        })
-    },
-    /* 获取跟进方式 */
-    async getFollowType() {
-        let res = await _Http.basic({
-            "classname": "sysmanage.develop.optiontype.optiontype",
-            "method": "optiontypeselect",
-            "content": {
-                "typename": 'followupmode'
-            }
-        })
-        let Arr = res.data.map(item => {
-            return {
-                name: item.value
-            }
-        })
-        this.setData({
-            actions: Arr
-        })
-    },
-    /* 打开选择跟进方式 */
-    selectWay() {
-        this.setData({
-            actionShow: !this.data.actionShow
-        })
-    },
-    /* 选择方式 */
-    onSelect(e) {
-        this.setData({
-            "content.followupmode": e.detail.name
-        })
-        this.isDisabled();
-    },
-    /* 选择结果 */
-    changeType(e) {
-        if (e.target.dataset.name) this.setData({
-            'content.logtype': e.target.dataset.name
-        })
-        this.isDisabled();
-    },
-    /* 输入框输入内容 */
-    inputChange(e) {
-        let text = e.type == 'input' ? e.detail.value : e.detail;
-        this.setData({
-            "content.content": deleteMark.queryStr(text)
-        })
-        this.isDisabled();
-    },
-    /* 语音录入 */
-    onVoiceInput({
-        detail
-    }) {
-        this.setData({
-            "content.content": detail
-        })
-        this.isDisabled();
-    },
-    isDisabled() {
-        let data = this.data.content;
-        this.setData({
-            disabled: (data.followupmode != '' && data.content != '') ? false : true
-        })
-    },
-    onUnload() {
-        if (this.data.deleteItem) _Http.basic({
-            "id": 20221208112002,
-            "content": {
-                "sat_ordercluefollowuplogid": this.data.content.sat_ordercluefollowuplogid
-            }
-        }).then(res => {
-            console.log("删除未提交", res)
-        })
-
-    }
-})

+ 0 - 8
packageA/saleClue/addFollow.json

@@ -1,8 +0,0 @@
-{
-    "usingComponents": {
-        "My_upload": "/components/My_upload/index",
-        "van-datetime-picker": "@vant/weapp/datetime-picker/index",
-        "Yl_VoiceInput": "/components/Yl_VoiceInput/index"
-    },
-    "navigationBarTitleText": "线索跟进"
-}

+ 0 - 136
packageA/saleClue/addFollow.scss

@@ -1,136 +0,0 @@
-.box {
-    width: 100vw;
-    box-sizing: border-box;
-
-    .label {
-        position: relative;
-        height: 40rpx;
-        font-size: 28rpx;
-        font-family: PingFang SC-Regular, PingFang SC;
-        color: #333333;
-        line-height: 40rpx;
-        margin-top: 40rpx;
-        margin-left: 30rpx;
-
-        text {
-            color: #FF3B30;
-            margin-right: 8rpx;
-        }
-
-        .Yl_VoiceInput{
-            position: absolute;
-            margin-left: 20rpx;
-            top: -2rpx;
-        }
-    }
-
-    .input-class {
-        width: 690rpx;
-        height: 90rpx;
-        background: #FFFFFF;
-        border-radius: 16rpx;
-        border: 1px solid #CCCCCC;
-        padding: 0 30rpx;
-    }
-}
-
-.but {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    width: 60rpx;
-    height: 60rpx;
-    background: #FFFFFF;
-    border-radius: 8rpx;
-    border: 2rpx solid #CCCCCC;
-    margin-left: 20rpx;
-    color: #666666;
-}
-
-/* 选择器样式 */
-.selector {
-    display: flex;
-    align-items: center;
-    justify-content: space-between;
-    width: 690rpx;
-    height: 90rpx;
-    background: #FFFFFF;
-    border-radius: 16rpx;
-    border: 1px solid #CCCCCC;
-    margin: 0 auto;
-    margin-top: 20rpx;
-    padding: 0 30rpx;
-    box-sizing: border-box;
-
-}
-
-.selector,
-.input-class,
-.textarea {
-    font-size: 28rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-}
-
-.textarea {
-    display: block;
-    height: 200rpx;
-    padding: 26rpx 30rpx;
-}
-
-.results {
-    display: flex;
-    justify-content: space-between;
-    padding: 0 30rpx;
-    width: 100vw;
-    box-sizing: border-box;
-    margin-top: 20rpx;
-
-    >view {
-        width: 220rpx;
-        height: 90rpx;
-        text-align: center;
-        line-height: 90rpx;
-        background: #FFFFFF;
-        border-radius: 16rpx;
-        border: 1px solid #CCCCCC;
-        font-size: 28rpx;
-        font-family: PingFang SC-Regular, PingFang SC;
-        color: #666666;
-    }
-
-    .op {
-        border-color: #3874F6;
-        background: #3874F6;
-        color: #FFFFFF;
-    }
-}
-
-.time {
-    height: 40rpx;
-    font-size: 28rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #333333;
-    padding-left: 30rpx;
-    margin-top: 20rpx;
-}
-
-.footer-but {
-    position: fixed !important;
-    width: 100vw !important;
-    height: 130rpx !important;
-    bottom: 0 !important;
-    text-align: center;
-    background-color: #FFFFFF;
-
-    .button {
-        width: 500rpx !important;
-        height: 90rpx !important;
-        background: #3874F6 !important;
-        border-radius: 45rpx !important;
-        font-size: 28rpx !important;
-        font-family: PingFang SC-Bold, PingFang SC !important;
-        font-weight: bold !important;
-        color: #FFFFFF !important;
-    }
-}

+ 0 - 62
packageA/saleClue/addFollow.wxml

@@ -1,62 +0,0 @@
-<view class="box">
-    <view class="label"><text>*</text>选择日期</view>
-
-    <picker mode="date" value="{{date1}}" bindchange="bindDateChange">
-        <view class="picker">
-            <view class="selector">
-                <view>{{date1}}</view>
-                <van-icon name="arrow-down" />
-            </view>
-        </view>
-    </picker>
-    <view class="label"><text>*</text>选择时间</view>
-
-    <picker mode="time" value="{{time}}" bindchange="bindTimeChange">
-        <view class="picker">
-            <view class="selector">
-                <view>{{time}}</view>
-                <van-icon name="arrow-down" />
-            </view>
-        </view>
-    </picker>
-
-    <view class="label"><text>*</text>本次跟进方式:</view>
-    <view class="selector" bindtap="selectWay">
-        <view>{{content.followupmode?content.followupmode:'请选择'}}</view>
-        <van-icon name="arrow-down" />
-    </view>
-    <!-- <view class="label"><text>*</text>本次跟进结果:</view> -->
-    <!-- <view class="results" bindtap="changeType">
-        <view class="{{content.logtype=='继续跟进'?'op':''}}" data-name="继续跟进">继续跟进</view>
-        <view class="{{content.logtype=='预约到店'?'op':''}}" data-name="预约到店">预约到店</view>
-        <view class="{{content.logtype=='互加微信'?'op':''}}" data-name="互加微信">互加微信</view>
-    </view> -->
-
-    <view class="label"><text>*</text>本次跟进内容
-        <Yl_VoiceInput class="Yl_VoiceInput" bindcallback="onVoiceInput" />
-    </view>
-    <textarea value='{{content.content}}' class="textarea selector" bind:input="inputChange" placeholder="请描述跟进情况及内容" />
-    <view style="display: flex;justify-content: space-between;align-items: center;width: 690rpx; margin: 20rpx auto 0;">
-        <view class="label" style="margin: 0;">附件:</view>
-        <view>
-            <My_upload accept='media' binduploadCallback="insertImgEdit">
-                <navigator url="#" class="but">
-                    <van-icon name="photo-o" />
-                </navigator>
-            </My_upload>
-            <My_upload accept='file' binduploadCallback="insertImgEdit">
-                <navigator url="#" class="but">
-                    <van-icon name="description" />
-                </navigator>
-            </My_upload>
-        </view>
-    </view>
-    <Yl_Files delete id="Yl_Files" />
-</view>
-<view style="height: 140rpx;" />
-
-<view class="footer-but">
-    <van-button custom-class='button' disabled='{{disabled}}' bindclick="submit" loading='{{loading}}' loading-text="保存中...">确定</van-button>
-</view>
-
-<van-action-sheet show="{{ actionShow }}" actions="{{ actions }}" cancel-text="取消" bind:close="selectWay" bind:cancel='selectWay' bind:select="onSelect" />