| | |
| | | |
| | | </scroll-view> |
| | | <view class="foot"> |
| | | <button size="mini" type="default" @click="modi(id)">修改</button> |
| | | <button size="mini" type="warn" @click="del(id)">删除</button> |
| | | <button size="mini" type="default" @click="modi(id)" v-show="cstmr.status = 0">修改</button> |
| | | <!-- <button size="mini" type="warn" @click="del(id)" v-show="cstmr.status = 0">删除</button> --> |
| | | <button size="mini" type="primary" @click="goBusiness(id)">出差</button> |
| | | </view> |
| | | |
| | |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | if (option == '') { |
| | | if (option != '') { |
| | | this.id = option.id |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | |
| | | eventChannel.on('saleManage', function(data) { |
| | | _this.id = data.data |
| | | _this.init() |
| | | console.log(data.data); |
| | | }) |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | that.saleManage = res.data |
| | | that.cstmr = res.data |
| | | that.cstmrId = that.cstmr.id |
| | |
| | | header: {'token' : uni.getStorageSync('token'), |
| | | }, |
| | | method: 'GET', |
| | | |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |