|
@@ -217,7 +217,8 @@ import receiptDetails from '@/components/cm-module/receipt/receipt-details'
|
|
import receiptRefund from '@/components/cm-module/receipt/receipt-refund'
|
|
import receiptRefund from '@/components/cm-module/receipt/receipt-refund'
|
|
import receiptOrderDetails from '@/components/cm-module/receipt/receipt-orderDetails'
|
|
import receiptOrderDetails from '@/components/cm-module/receipt/receipt-orderDetails'
|
|
import empty from '@/components/empty'
|
|
import empty from '@/components/empty'
|
|
-import wxLogin from '@/services/wxLogin.js'
|
|
|
|
|
|
+import { listOrderTabs , listOrderStateTabs } from '@/utils/config.tabs.js'
|
|
|
|
+
|
|
import { mapState, mapMutations } from 'vuex'
|
|
import { mapState, mapMutations } from 'vuex'
|
|
const defaultListQuery = {
|
|
const defaultListQuery = {
|
|
id: 0, //收款Id
|
|
id: 0, //收款Id
|
|
@@ -248,34 +249,8 @@ export default {
|
|
CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
isIphoneX: this.$store.state.isIphoneX,
|
|
isIphoneX: this.$store.state.isIphoneX,
|
|
receiptInfo: {},
|
|
receiptInfo: {},
|
|
- listTabs: [
|
|
|
|
- {
|
|
|
|
- name: '商品订单',
|
|
|
|
- type: 1
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '订金订单',
|
|
|
|
- type: 2
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '小程序订单',
|
|
|
|
- type: 3
|
|
|
|
- }
|
|
|
|
- // {
|
|
|
|
- // name: '退款子订单',
|
|
|
|
- // type: 4
|
|
|
|
- // }
|
|
|
|
- ],
|
|
|
|
- listReturnType: [
|
|
|
|
- {
|
|
|
|
- name: '待确认',
|
|
|
|
- type: 2
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '已确认',
|
|
|
|
- type: 3
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ listTabs: listOrderTabs,
|
|
|
|
+ listReturnType: listOrderStateTabs,
|
|
listQuery: Object.assign({}, defaultListQuery),
|
|
listQuery: Object.assign({}, defaultListQuery),
|
|
refundListQuery: Object.assign({}, defaultRefundListQuery),
|
|
refundListQuery: Object.assign({}, defaultRefundListQuery),
|
|
currents: 0,
|
|
currents: 0,
|
|
@@ -574,20 +549,20 @@ export default {
|
|
console.log('totalOrder', this.totalOrder)
|
|
console.log('totalOrder', this.totalOrder)
|
|
//处理收款状态的几种类型
|
|
//处理收款状态的几种类型
|
|
if (
|
|
if (
|
|
- this.receiptInfo.receiptAmount == this.totalOrder.payableAmount ||
|
|
|
|
- this.totalOrder.payableAmount - this.receiptInfo.receiptAmount > 10
|
|
|
|
|
|
+ this.receiptInfo.receiptAmount == this.totalOrder.surplusAmount ||
|
|
|
|
+ this.totalOrder.surplusAmount - this.receiptInfo.receiptAmount >= 10
|
|
) {
|
|
) {
|
|
//收款金额等于订单应收金额 或者是 订单应收总金额减去收款金额大于等于10
|
|
//收款金额等于订单应收金额 或者是 订单应收总金额减去收款金额大于等于10
|
|
this.modelTpye = 1
|
|
this.modelTpye = 1
|
|
- console.log('收款金额等于订单应收金额 或者是 订单应收总金额减去收款金额大于等于10', this.modelTpye)
|
|
|
|
- } else if (this.receiptInfo.receiptAmount > this.totalOrder.payableAmount) {
|
|
|
|
- //收款金额大于订单应收金额(可退款到余额)
|
|
|
|
|
|
+ console.log('收款金额等于订单剩余应收金额 或者是 收款金额减去订单剩余应收金额大于等于10', this.modelTpye)
|
|
|
|
+ } else if (this.receiptInfo.receiptAmount > this.totalOrder.surplusAmount) {
|
|
|
|
+ //收款金额大于订单神域应收金额(可退款到余额)
|
|
this.modelTpye = 2
|
|
this.modelTpye = 2
|
|
console.log('收款金额大于订单应收金额(可退款到余额)', this.modelTpye)
|
|
console.log('收款金额大于订单应收金额(可退款到余额)', this.modelTpye)
|
|
- } else if (this.totalOrder.payableAmount - this.receiptInfo.receiptAmount <= 10) {
|
|
|
|
- //订单应收总金额减去收款金额小于等于10元时,才能抹平确认
|
|
|
|
|
|
+ } else if (this.totalOrder.surplusAmount - this.receiptInfo.receiptAmount <= 10) {
|
|
|
|
+ //订单剩余应收总金额减去收款金额小于等于10元时,才能抹平确认
|
|
this.modelTpye = 3
|
|
this.modelTpye = 3
|
|
- console.log('订单应收总金额减去收款金额小于等于10元时,才能抹平确认)', this.modelTpye)
|
|
|
|
|
|
+ console.log('订单剩余应收总金额减去收款金额小于等于10元时,才能抹平确认)', this.modelTpye)
|
|
}
|
|
}
|
|
this.modal1 = true
|
|
this.modal1 = true
|
|
},
|
|
},
|
|
@@ -602,21 +577,18 @@ export default {
|
|
handleClick1(data) {
|
|
handleClick1(data) {
|
|
switch (data) {
|
|
switch (data) {
|
|
case 1: // 小额抹平确认
|
|
case 1: // 小额抹平确认
|
|
- console.log('小额抹平确认')
|
|
|
|
this.confirmParams.confirmType = data
|
|
this.confirmParams.confirmType = data
|
|
this.confirmParams.orderIds = this.checkedIds.join(',')
|
|
this.confirmParams.orderIds = this.checkedIds.join(',')
|
|
this.orderReceiptConfirm()
|
|
this.orderReceiptConfirm()
|
|
this.modal1 = false
|
|
this.modal1 = false
|
|
break
|
|
break
|
|
case 3: // 大额退款余额
|
|
case 3: // 大额退款余额
|
|
- console.log('大额退款余额')
|
|
|
|
this.confirmParams.confirmType = data
|
|
this.confirmParams.confirmType = data
|
|
this.confirmParams.orderIds = this.checkedIds.join(',')
|
|
this.confirmParams.orderIds = this.checkedIds.join(',')
|
|
this.orderReceiptConfirm()
|
|
this.orderReceiptConfirm()
|
|
this.modal1 = false
|
|
this.modal1 = false
|
|
break
|
|
break
|
|
case 4: // 确认关联
|
|
case 4: // 确认关联
|
|
- console.log('确认关联')
|
|
|
|
this.confirmParams.confirmType = data
|
|
this.confirmParams.confirmType = data
|
|
this.confirmParams.orderIds = this.checkedIds.join(',')
|
|
this.confirmParams.orderIds = this.checkedIds.join(',')
|
|
this.orderReceiptConfirm()
|
|
this.orderReceiptConfirm()
|
|
@@ -656,7 +628,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.checkedOrderList.splice(this.checkedOrderList.indexOf(order), 1)
|
|
this.checkedOrderList.splice(this.checkedOrderList.indexOf(order), 1)
|
|
}
|
|
}
|
|
- console.log('checkedOrderList',this.checkedOrderList)
|
|
|
|
},
|
|
},
|
|
checkedRefundOrder(order, index) {
|
|
checkedRefundOrder(order, index) {
|
|
// 勾选退款子订单
|
|
// 勾选退款子订单
|
|
@@ -670,7 +641,6 @@ export default {
|
|
el.isChecked = false
|
|
el.isChecked = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- console.log('shopOrderId', this.confirmRefundParams.shopOrderId)
|
|
|
|
},
|
|
},
|
|
hideMobel(type) {
|
|
hideMobel(type) {
|
|
switch (type) {
|
|
switch (type) {
|
|
@@ -1152,6 +1122,7 @@ page {
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
padding: 0 50rpx;
|
|
padding: 0 50rpx;
|
|
padding-top: 20rpx;
|
|
padding-top: 20rpx;
|
|
|
|
+ z-index: 1000;
|
|
.button {
|
|
.button {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
height: 80rpx;
|