#
whycq
2023-11-21 b61205adfb447bb868a454b971aa90c3d82034de
#
2个文件已修改
65 ■■■■ 已修改文件
pages/business/plan/plan.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/plan/planDetails.vue 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/plan/plan.vue
@@ -160,6 +160,15 @@
            getCsmtr1(e) {
                let that = this
                that.csmtrList = []
                uni.showLoading({})
                let param = {curr:1,limit:4,dept_id: 0,user_id: 67}
                if (this.user.type == 'user_id') {
                    param = {curr:1,limit:4,user_id: that.user.id}
                } else if(this.user.type == 'dept_id') {
                    param = {curr:1,limit:4,dept_id: that.user.id}
                } else {
                    param = {curr:1,limit:4}
                }
                uni.request({
                    url: that.baseUrl + '/plan/page/auth',
                    header: {'token' : uni.getStorageSync('token'),},
@@ -196,10 +205,22 @@
                            });
                        }, 1000);
                    },
                    complete() {
                        uni.hideLoading()
                    }
                })
            },
            getCsmtr() {
                let that = this
                uni.showLoading({})
                let param = {curr:that.curr,limit:4,dept_id: 0,user_id: 67}
                if (this.user.type == 'user_id') {
                    param = {curr:that.curr,limit:4,user_id: that.user.id}
                } else if(this.user.type == 'dept_id') {
                    param = {curr:that.curr,limit:4,dept_id: that.user.id}
                } else {
                    param = {curr:that.curr,limit:4}
                }
                uni.request({
                    url: that.baseUrl + '/plan/page/auth',
                    header: {'token' : uni.getStorageSync('token'),},
@@ -237,6 +258,9 @@
                            });
                        }, 1000);
                    },
                    complete() {
                        uni.hideLoading()
                    }
                })
            },
            getDetails(id) {
@@ -269,7 +293,7 @@
        margin-top: 20px;
    }
    .popup-content {
        margin-top: 150rpx;
        margin-top: 260rpx;
        display:  flex;
        align-items: center;
        justify-content: center;
pages/business/plan/planDetails.vue
@@ -10,8 +10,14 @@
            </view>
            <!-- 步骤条 -->
            <view style="background-color: #FFF;margin-top: 10px;padding-top: 20px;padding-bottom: 20px;">
                <uni-steps :options="list1" :active="active" />
                <uni-steps :options="list1" :active="current" />
            </view>
            <!-- <view style="background-color: #FFF;margin-top: 10px;padding-top: 20px;padding-bottom: 20px;">
                <u-steps :current="current">
                    <u-steps-item :title="`${item.title}`" :desc="item.username" v-for="item in list1" />
                </u-steps>
            </view> -->
            <!-- 基本信息 -->
            <view class="container">
                <view><y-title title="基本信息"></y-title></view><view></view>
@@ -36,7 +42,7 @@
            <!-- 售前规划 -->
            <view class="container">
                <view><y-title title="售前规划"></y-title></view><view></view>
                <view class="list-item1">规划员</view><view class="list-item2">{{detl.uuid}}</view>
                <view class="list-item1">规划员</view><view class="list-item2">{{detl.planner$}}</view>
                <view class="list-item1">完成时间</view><view class="list-item2">{{detl.finishTime$}}</view>
                <view class="list-item1">更改方案</view><view class="list-item2">{{detl.change}}</view>
                <view class="list-item1">更改次数</view><view class="list-item2">{{detl.changeTime}}</view>
@@ -71,6 +77,7 @@
    export default {
        data() {
            return {
                current: 1,
                id: 0,
                detl: {
                    id: '',
@@ -87,9 +94,10 @@
                followers: [],
                cstmrId: '',
                active: 0,
                steps: [],
                list1: [{
                    title: '开始',
                    desc: ''
                    desc: '123'
                }, {
                    title: '组长审核',
                    desc: ''
@@ -107,7 +115,7 @@
            }
        },
        onLoad(option) { 
            if (option == '') {
            if (option != '') {
                this.id = option.id
                this.init()
                this.autoLoad('follower','')
@@ -137,10 +145,29 @@
                    header: {'token' : uni.getStorageSync('token')},
                    method: 'GET',
                    success(res) {
                        console.log(res);
                        res = res.data
                        console.log(res);
                        that.detl = res.data
                        that.active = res.data.settle
                        that.list1 = JSON.parse(res.data.settleMsg)
                        for (let key of that.list1) {
                            key.desc = key.username
                        }
                        that.current = res.data.settle-1
                        switch(res.data.select_3) {
                            case 'value1':
                                res.data.select_3 = '牛腿式'
                                break;
                            case 'value2':
                                res.data.select_3 = '横梁式'
                                break;
                            case 'value3':
                                res.data.select_3 = '新能源'
                                break;
                            case 'value4':
                                res.data.select_3 = '其他'
                                break;
                        }
                        if (res.data.planType == 4) {
                            that.info.push(
                            {name:'货物规格',val:res.data.input_1},
@@ -191,9 +218,7 @@
                    header: {'token' : uni.getStorageSync('token'),
                    },
                    method: 'GET',
                    success(res) {
                        console.log(res);
                        res = res.data
                        if (res.code === 200) {
                            uni.navigateBack()