|
@@ -74,7 +74,7 @@
|
|
|
|
|
|
|
|
<view class="button-area">
|
|
<view class="button-area">
|
|
|
<view :class="[orderInfo.status==1 || orderInfo.status==5 ? '' : 'active']" @click="printFn(orderInfo)">打印</view>
|
|
<view :class="[orderInfo.status==1 || orderInfo.status==5 ? '' : 'active']" @click="printFn(orderInfo)">打印</view>
|
|
|
- <view :class="[orderInfo.status==1 ? 'active' : '']" @click="selectFn(orderInfo,0)">查微信</view>
|
|
|
|
|
|
|
+ <view :class="[orderInfo.repeat==1 && orderInfo.payStatus == 1 ? 'active' : '']" @click="reduceStock(orderInfo)">扣库存</view>
|
|
|
<view :class="[orderInfo.status==1 ? 'active' : '']" @click="cancelShow()">取消</view>
|
|
<view :class="[orderInfo.status==1 ? 'active' : '']" @click="cancelShow()">取消</view>
|
|
|
<view class="active" @click="openPf()">批发</view>
|
|
<view class="active" @click="openPf()">批发</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -179,9 +179,9 @@ export default {
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
content: '没有安装,请先下载安装',
|
|
content: '没有安装,请先下载安装',
|
|
|
success: function (res){
|
|
success: function (res){
|
|
|
- if (res.confirm){
|
|
|
|
|
- plus.runtime.openURL('http://www.wixhb.com/main/app')
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (res.confirm){
|
|
|
|
|
+ plus.runtime.openURL('http://www.wixhb.com/main/app')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -258,21 +258,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- selectFn(order,payWay){
|
|
|
|
|
- let that = this
|
|
|
|
|
- uni.showLoading({mask:true})
|
|
|
|
|
- codePayCheck({id:order.id,payWay:payWay,recheck:1}).then(res=>{
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- if(res.data.returnStatus == 'SUCCESS'){
|
|
|
|
|
- that.$msg('订单已付款')
|
|
|
|
|
- setTimeout(function(){
|
|
|
|
|
- that.getOrderDetail(order.id)
|
|
|
|
|
- },1500)
|
|
|
|
|
- }else{
|
|
|
|
|
- that.$msg('订单未付款!!')
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ reduceStock(order){
|
|
|
|
|
+ this.$util.pageTo({ url: "/pages/home/cash?customId="+order.customId+'&customName='+order.customName+'&orderId='+order.id+'&reduceStock=1',type:2})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|