Commit 274ae0f5 by chenwq

fix(financeManage): 修复账单详情和编辑对话框中的金额计算和字段禁用逻辑

- 添加totalOfflinePaidAmount到账单详情和编辑对话框
- 移除调试用的console.log语句
- 完善服务商账单的字段禁用逻辑,区分正常订单和退款情况
1 parent 37bec7c7
...@@ -587,6 +587,7 @@ export default { ...@@ -587,6 +587,7 @@ export default {
this.totalPayable = res.totalPayable this.totalPayable = res.totalPayable
this.totalPayable = res.totalPayable this.totalPayable = res.totalPayable
this.totalSplitPaidAmount = res.totalSplitPaidAmount this.totalSplitPaidAmount = res.totalSplitPaidAmount
this.totalOfflinePaidAmount = res.totalOfflinePaidAmount
this.totalOfflineReconciliation = res.totalOfflineReconciliation this.totalOfflineReconciliation = res.totalOfflineReconciliation
this.orderTotalStat = res.orderTotalStat this.orderTotalStat = res.orderTotalStat
this.page.pageNum = res.orderPage?.pageNum || 1 this.page.pageNum = res.orderPage?.pageNum || 1
......
...@@ -1135,6 +1135,7 @@ export default { ...@@ -1135,6 +1135,7 @@ export default {
this.totalPayable = res.totalPayable this.totalPayable = res.totalPayable
this.totalPayable = res.totalPayable this.totalPayable = res.totalPayable
this.totalSplitPaidAmount = res.totalSplitPaidAmount this.totalSplitPaidAmount = res.totalSplitPaidAmount
this.totalOfflinePaidAmount = res.totalOfflinePaidAmount
this.totalOfflineReconciliation = res.totalOfflineReconciliation this.totalOfflineReconciliation = res.totalOfflineReconciliation
this.orderTotalStat = res.orderTotalStat this.orderTotalStat = res.orderTotalStat
// this.page.pageNum = res.orderPage?.pageNum || 1 // this.page.pageNum = res.orderPage?.pageNum || 1
...@@ -1154,7 +1155,6 @@ export default { ...@@ -1154,7 +1155,6 @@ export default {
if (this.judgeDisable(rowIndex, source, fieldConfig)) { if (this.judgeDisable(rowIndex, source, fieldConfig)) {
return true return true
} }
console.log(fieldConfig)
if (['remark'].includes(fieldConfig.fieldCode)) { if (['remark'].includes(fieldConfig.fieldCode)) {
return true return true
} }
...@@ -1529,11 +1529,19 @@ export default { ...@@ -1529,11 +1529,19 @@ export default {
/** /**
* 流量方 - traffic;服务商 - service * 流量方 - traffic;服务商 - service
* sourceType:1-订单;2-退款 * sourceType:1-订单;2-退款
* 服务商 && 正常订单:服务费2不能编辑
* 服务商 && 退款:服务商品类比例、按新政策标准不能编辑 * 服务商 && 退款:服务商品类比例、按新政策标准不能编辑
* */ * */
if (this.billTypeStr == 'service' && value.ORDER.sourceType != 1) { if (this.billTypeStr == 'service') {
if (['SUB_ORDERpartnerFeeCalculateType,partnerFeeCalculateValue', 'SUB_ORDERpartnerFeeCalculateCoefficient'].includes(source + fieldConfig.fieldCode)) { if (value.ORDER.sourceType == 1) {
isDisable = true if (['SUB_ORDERsecondPartnerFee'].includes(source + fieldConfig.fieldCode)) {
isDisable = true
}
}
if (value.ORDER.sourceType != 1) {
if (['SUB_ORDERpartnerFeeCalculateType,partnerFeeCalculateValue', 'SUB_ORDERpartnerFeeCalculateCoefficient'].includes(source + fieldConfig.fieldCode)) {
isDisable = true
}
} }
} }
/** editable为false,平台方和支付方式不能编辑 */ /** editable为false,平台方和支付方式不能编辑 */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!