diff --git a/Utils/Api.js b/Utils/Api.js index 3abfc92..09ef50d 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -283,3 +283,22 @@ export const voiceSucceed = params => { export const queryVersion = params => { return POST('GET', `${base}/sysVersion/queryVersion`, params).then(res => res.data); } + +// 查询商户渠道平台列表 +export const getMerPlatformList = params => { + return POST('GET', `${base}/merPlatform/getMerPlatformList`, params).then(res => res.data); +} + +// 查询商户 +export const getMerList = params => { + return POST('GET', `${base}/mer/getMerList`, params).then(res => res.data); +} + // 查询业务员 +export const querySalesmanList = params => { + return POST('GET', `${base}/salesman/querySalesmanList`, params).then(res => res.data); +} +//查询订单详情 +export const getOrderByOutTradeOrder = params => { + return POST('GET', `${base}/tradeOrder/getOrderByOutTradeOrder`, params).then(res => res.data); +} + diff --git a/components/downloadUp.vue b/components/downloadUp.vue index d13a6b9..ce3abb7 100644 --- a/components/downloadUp.vue +++ b/components/downloadUp.vue @@ -2,7 +2,7 @@ - + + + + 业务员 : + + {{salesmanname}} + 请选择 + + + + + 商户 : + + {{merName}} + 请选择 + + + + + 门店 : + + {{storename}} + 请选择 + + + @@ -44,24 +73,32 @@ - - + + + - - 扫一扫 - ¥ {{item.tradeAmount}} + {{item.outTradeNo}} + + 扫一扫 + {{statusList[item.status]}} - + + {{item.salesmanName}} + {{item.storeName}} + + {{item.createTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} - {{statusList[item.status]}} + ¥ {{item.tradeAmount}} + @@ -71,8 +108,12 @@ + + \ No newline at end of file diff --git a/pages/index/open-Divide_accounts/open-Divide_accounts.vue b/pages/index/open-Divide_accounts/open-Divide_accounts.vue index cd3a0cc..642ff6d 100644 --- a/pages/index/open-Divide_accounts/open-Divide_accounts.vue +++ b/pages/index/open-Divide_accounts/open-Divide_accounts.vue @@ -188,7 +188,7 @@ "merId": this.merId, "platformType": 1, "splitLowestRatio": this.splitLowestRatio, - "splitEntrustFilePath": this.powerofattorney[0] + "splitEntrustFilePath": this.powerofattorney } merLedgerApply(datas).then(res => { uni.hideLoading(); diff --git a/pages/index/order-list-details/order-list-details.vue b/pages/index/order-list-details/order-list-details.vue index 279178d..320f02c 100644 --- a/pages/index/order-list-details/order-list-details.vue +++ b/pages/index/order-list-details/order-list-details.vue @@ -1,41 +1,67 @@ diff --git a/pages/index/salesOrderList/salesOrderList.vue b/pages/index/salesOrderList/salesOrderList.vue index 4ec46a5..816d005 100644 --- a/pages/index/salesOrderList/salesOrderList.vue +++ b/pages/index/salesOrderList/salesOrderList.vue @@ -116,17 +116,24 @@ status: this.goodtyid } getOrderList(datas).then(res => { - uni.hideLoading(); - if (res.return_code == '000000' && res.return_data.list != '') { - this.serviceList = this.serviceList.concat(res.return_data.list); - if (res.return_data.pages == this.pageNum) { - this.isLoadMore = true; - } else { - this.isLoadMore = false - } - } else { - this.serviceList = []; - } + uni.hideLoading(); + console.log('======='+JSON.stringify(res)) + if (res.return_code == '000000' && res.return_data.list !='') { + this.isLoadMore = res.return_data.list.length == this.pageSize ? false : true; + this.serviceList = this.serviceList.concat(res.return_data.list); + if (res.return_data.total == (this.pageNum * this.pageSize)) { + this.isLoadMore = true; + } + this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; + } else { + this.serviceList = []; + uni.showToast({ + title: res.return_msg, + duration: 2000, + icon: 'none' + }) + } + }) }, //分配设备 diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index 91470f1..a1bfe72 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -18,15 +18,14 @@ - 总收益 - ¥0.00 + + 今日总收入 ¥{{auditnum.tradePrice}} - + 进件成功数量 {{auditnum.contractSuccess}} @@ -65,7 +64,7 @@ - + @@ -186,9 +185,13 @@ img: '../../../static/img/home3.png' }, { - title: '商户管理', + title: '进件管理', url: '../../index/merchant-management/merchant-management', img: '../../../static/img/home4.png' + }, { + title: '商户管理', + url: '../../index/normal-Merchant/normal-Merchant', + img: '../../../static/img/home4.png' }, { title: '我的设备', url: '../../index/mineService/mineService?id=3', diff --git a/pages/welcome/welcome.vue b/pages/welcome/welcome.vue index 5496af0..e26b036 100644 --- a/pages/welcome/welcome.vue +++ b/pages/welcome/welcome.vue @@ -16,10 +16,10 @@ } }, onLoad(options) { - let that = this; + let that = this; uni.reLaunch({ url: '/pages/login/login' - }) + }) // #ifdef H5 // let arr1 = window.location.href; // let arr2 = arr1.split('='); @@ -33,7 +33,7 @@ // }) // } // } else { - // 获取openid + // 获取openid // that.jumpcdx(); // } // if (app.globalData.h5code) {