Commit 77407bcf authored by Morson's avatar Morson

工单拒单接口修改

删除调试代码
parent 6fe9ef63
...@@ -155,7 +155,7 @@ let orderApiFun = function(vm){ ...@@ -155,7 +155,7 @@ let orderApiFun = function(vm){
let listAccessHistory= async (params = {}) => await vm.$u.get(prefix + vm.vuex_token +'/myinfo/access/history', params, jsonType); let listAccessHistory= async (params = {}) => await vm.$u.get(prefix + vm.vuex_token +'/myinfo/access/history', params, jsonType);
// 获取我的钱包-资产信息 // 获取我的钱包-资产信息
let getAssets = async (params = {}) => await vm.$u.get(settle + vm.vuex_token + '/v2/total', params); let getAssets = async (params = {}) => await vm.$u.get(settle + vm.vuex_token + '/v3/total', params);
// 获取我的钱包-收入流水 // 获取我的钱包-收入流水
let listStatement = async (params = {}) => await vm.$u.get(settle + vm.vuex_token + '/v2/statement', params); let listStatement = async (params = {}) => await vm.$u.get(settle + vm.vuex_token + '/v2/statement', params);
// 获取我的钱包-支付单一览 // 获取我的钱包-支付单一览
......
...@@ -138,9 +138,7 @@ ...@@ -138,9 +138,7 @@
this.changeActiveAction() this.changeActiveAction()
}, },
changeActiveAction() { changeActiveAction() {
// debugger
let activeKey = 0 let activeKey = 0
// debugger
for (let i in this.sectionList) { for (let i in this.sectionList) {
this.sectionList[i].isActive = this.section_id == this.sectionList[i].id ? true : false; this.sectionList[i].isActive = this.section_id == this.sectionList[i].id ? true : false;
if(this.sectionList[i].isActive){ if(this.sectionList[i].isActive){
......
...@@ -294,7 +294,6 @@ ...@@ -294,7 +294,6 @@
// uni.getLocation({ // uni.getLocation({
// type: 'gcj02', //返回可以用于uni.openLocation的经纬度 // type: 'gcj02', //返回可以用于uni.openLocation的经纬度
// success: function (res) { // success: function (res) {
debugger
const latitude = this.contactAddressLatitud //res.latitude; const latitude = this.contactAddressLatitud //res.latitude;
const longitude =this.contactAddressLongitud //res.longitude; const longitude =this.contactAddressLongitud //res.longitude;
uni.openLocation({ uni.openLocation({
...@@ -690,9 +689,13 @@ ...@@ -690,9 +689,13 @@
var data={} var data={}
this.$u.api.checkRejectable(data).then(res => { this.$u.api.checkRejectable(data).then(res => {
if (res.code === 200 ) { if (res.code === 200 ) {
if( res.data === true){ if( res.data && res.data.rejectable){
uni.navigateTo({ this.$u.route({
url: 'pages/order/refuse?orderId='+this.order.orderId url: 'pages/order/refuse',
params: {
orderId: this.order.orderId,
count: res.data.remainderTimes
}
}) })
}else{ }else{
this.commonToast("本月无拒单机会,请联系客服","warning") this.commonToast("本月无拒单机会,请联系客服","warning")
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
rejectReason: '', rejectReason: '',
remark: '' remark: ''
}, },
count: 0, // 剩余次数 count: 3, // 剩余次数
}; };
}, },
computed: { computed: {
...@@ -62,18 +62,31 @@ ...@@ -62,18 +62,31 @@
PopView PopView
}, },
onLoad(e) { onLoad(e) {
if(e && e.orderId) { if(e) {
if(e.orderId) {
this.orderId = e.orderId this.orderId = e.orderId
} else if(e.count) {
this.count = e.count
} }
}
if(!this.count) {
this.getRejectCount() this.getRejectCount()
}
}, },
methods: { methods: {
changeReason(reason) { changeReason(reason) {
this.formData.rejectReason = reason this.formData.rejectReason = reason
}, },
getRejectCount() { getRejectCount() {
let self = this
// 获取拒单次数 // 获取拒单次数
this.count = 3 self.$u.api.checkRejectable({}).then(res => {
if (res.code === 200 && res.data && res.data.rejectable) {
self.count = res.data.remainderTimes
} else {
self.count = 0
}
})
}, },
handleClickSubmit() { handleClickSubmit() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment