|
@@ -163,6 +163,7 @@ export default {
|
|
|
//批量收款
|
|
//批量收款
|
|
|
batchConfirm () {
|
|
batchConfirm () {
|
|
|
let arr = []
|
|
let arr = []
|
|
|
|
|
+ let that = this
|
|
|
if (this.$util.isEmpty(this.selectList)) {
|
|
if (this.$util.isEmpty(this.selectList)) {
|
|
|
this.$msg('请选择订单')
|
|
this.$msg('请选择订单')
|
|
|
return false
|
|
return false
|
|
@@ -171,16 +172,21 @@ export default {
|
|
|
uni.showToast({title: '订单太多,点右上角选月份再结',duration: 2000,icon:"none"})
|
|
uni.showToast({title: '订单太多,点右上角选月份再结',duration: 2000,icon:"none"})
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- this.selectList.forEach(item => {
|
|
|
|
|
- arr.push(item.id)
|
|
|
|
|
- })
|
|
|
|
|
- purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:this.option.id }).then(res => {
|
|
|
|
|
- if(res.code == 1) {
|
|
|
|
|
- this.pageTo({
|
|
|
|
|
- url: '/pagesPurchase/gatherPay?orderSn=' + res.data.orderSn + '&actPrice=' + res.data.actPrice+'&remainSecond='+res.data.remainSecond,
|
|
|
|
|
- type: 2
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ that.$util.confirmModal({content:'确认提交?'},() => {
|
|
|
|
|
+ that.selectList.forEach(item => {
|
|
|
|
|
+ arr.push(item.id)
|
|
|
|
|
+ })
|
|
|
|
|
+ purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:that.option.id }).then(res => {
|
|
|
|
|
+ if(res.code == 1) {
|
|
|
|
|
+ if(res.data.hasUnComplete && res.data.hasUnComplete == 1){
|
|
|
|
|
+ that.$util.confirmModal({content:'还有未完成的结账单',okText:'查看'},() => {
|
|
|
|
|
+ that.pageTo({ url: '/admin/clear/list', type: 2})
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ that.pageTo({ url: '/pagesPurchase/gatherPay?orderSn=' + res.data.orderSn + '&actPrice=' + res.data.actPrice+'&remainSecond='+res.data.remainSecond, type: 2 })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
back () {
|
|
back () {
|