| | |
| | | </view> |
| | | <!-- <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> --> |
| | | <u-empty v-if="true" icon="../../../static/image/emptyList.png" v-show="csmtrList.length <= 0" /> |
| | | |
| | | <view style="height: 10rpx;"></view> |
| | | <view class="fxbtn"> |
| | | <uni-icons type="plusempty" color="#fff" @click="add()" ></uni-icons> |
| | | </view> |
| | |
| | | user: { |
| | | username: '', |
| | | id: 0, |
| | | type: '' |
| | | type: 'user_id' |
| | | }, |
| | | falg: true, |
| | | csmtrList: [], |
| | |
| | | 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 + '/order/page/auth', |
| | | header: {'token' : uni.getStorageSync('token'),}, |
| | | data: {curr:1,limit:4}, |
| | | data: param, |
| | | method:'GET', |
| | | success(result) { |
| | | if (result.statusCode === 404) { |
| | |
| | | return |
| | | } |
| | | var res = result.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | let list = res.data.records |
| | | that.csmtrList = that.reload ? list : that.csmtrList.concat(list); |
| | |
| | | }); |
| | | }, 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 + '/order/page/auth', |
| | | header: {'token' : uni.getStorageSync('token'),}, |
| | | data: {curr:that.curr,limit:4}, |
| | | data: param, |
| | | method:'GET', |
| | | success(result) { |
| | | if (result.statusCode === 404) { |
| | |
| | | }); |
| | | }, 1000); |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | getDetails(id) { |