| | |
| | | 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'),}, |
| | |
| | | }); |
| | | }, 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'),}, |
| | |
| | | }); |
| | | }, 1000); |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | getDetails(id) { |
| | |
| | | margin-top: 20px; |
| | | } |
| | | .popup-content { |
| | | margin-top: 150rpx; |
| | | margin-top: 260rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | |
| | | </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> |
| | |
| | | <!-- 售前规划 --> |
| | | <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> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | current: 1, |
| | | id: 0, |
| | | detl: { |
| | | id: '', |
| | |
| | | followers: [], |
| | | cstmrId: '', |
| | | active: 0, |
| | | steps: [], |
| | | list1: [{ |
| | | title: '开始', |
| | | desc: '' |
| | | desc: '123' |
| | | }, { |
| | | title: '组长审核', |
| | | desc: '' |
| | |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | if (option == '') { |
| | | if (option != '') { |
| | | this.id = option.id |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | |
| | | 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}, |
| | |
| | | header: {'token' : uni.getStorageSync('token'), |
| | | }, |
| | | method: 'GET', |
| | | |
| | | success(res) { |
| | | console.log(res); |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | uni.navigateBack() |