|
@@ -99,21 +99,21 @@ var orderPage = new Vue({
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- hanldConfirmFn:function(userId,orderId){//确认打款供应商
|
|
|
- var _self = this;
|
|
|
- CAIMEI.Modal('确定委托采美平台打款给供应商吗?确定之前请务必确保货品完好?','取消','确定',function () {
|
|
|
- OrderApi.confirmpayment({orderID:orderId,userId:userId},function(response){
|
|
|
- if(response.code == 0){
|
|
|
- CAIMEI.dialog('确认成功',true,function () {
|
|
|
- _self.GetQueryOrderListData();
|
|
|
- });
|
|
|
+ hanldConfirmFn:function(userId,orderId){//确认打款供应商
|
|
|
+ var _self = this;
|
|
|
+ CAIMEI.Modal('确定委托采美平台打款给供应商吗?确定之前请务必确保货品完好?','取消','确定',function () {
|
|
|
+ OrderApi.confirmpayment({orderID:orderId,userId:userId},function(response){
|
|
|
+ if(response.code == 0){
|
|
|
+ CAIMEI.dialog('确认成功',true,function () {
|
|
|
+ _self.GetQueryOrderListData();
|
|
|
+ });
|
|
|
|
|
|
- }else{
|
|
|
- CAIMEI.Alert(response.msg, '确定', false);
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ CAIMEI.Alert(response.msg, '确定', false);
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- },
|
|
|
+ },
|
|
|
toPagination: function (pageNum) {//点击切换分页
|
|
|
if (pageNum <= this.pageTotal) {
|
|
|
this.listQuery.pageNum = pageNum;
|
|
@@ -167,6 +167,7 @@ var orderPage = new Vue({
|
|
|
_self.orderList = data.list;
|
|
|
_self.listRecord = data.total;
|
|
|
}
|
|
|
+ _self.GetQueryOrderNumInfo();
|
|
|
_self.isRequset = false;
|
|
|
}else{
|
|
|
CAIMEI.Alert(response.msg, '确定', false);
|
|
@@ -375,7 +376,6 @@ var orderPage = new Vue({
|
|
|
_self.listQuery.userId = this.userId;
|
|
|
_self.orderTabBarIndex = this.listQuery.orderState;
|
|
|
_self.GetQueryOrderListData();
|
|
|
- _self.GetQueryOrderNumInfo();
|
|
|
}
|
|
|
$('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
|
|
|
$('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
|