Commit 73128fb6 by chenwq

fix(financeManage): 修复系统账单对话框中的批量编辑和验证问题

- 移除attrList中重复的payType字段
- 为platformMerchantId选择器添加batchName支持
- 在搜索确认和验证前重置validationErrors
- 添加select类型的批量编辑逻辑,支持显示名称更新
1 parent 6a860054
......@@ -478,7 +478,7 @@ export default {
totalOfflineReconciliation: 0,
editObj: {
select: {
attrList: ['payType', 'platformMerchantId', 'payType'],
attrList: ['payType', 'platformMerchantId'],
defaultConf: {
payType: {
optionId: 'confId',
......@@ -491,6 +491,7 @@ export default {
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'PlatformMerchantList',
batchName: 'platformMerchantName',
fn: (val, listIdx, obj) => {
const source = obj.extInfo.source || 'ORDER'
this.tableList[listIdx][source].platformMerchantName =
......@@ -1317,6 +1318,7 @@ export default {
},
handleSearchConfirm() {
this.validationErrors = {}
this.searchDialogVisible()
// console.log(this.searchForm, 'searchform')
this.billComputePage(true)
......@@ -1650,6 +1652,13 @@ export default {
if (this.headObj.editType == 'selectInput') {
this.tableList[idx][this.headObj.extInfo.source || 'ORDER'][this.headObj.editObj.selectField] = this.batchForm[this.headObj.editObj.selectField]
this.tableList[idx][this.headObj.extInfo.source || 'ORDER'][this.headObj.editObj.inputField] = this.batchForm[this.headObj.editObj.inputField]
} else if (this.headObj.editType == 'select') {
this.tableList[idx][this.headObj.extInfo.source || 'ORDER'][this.headObj.fieldCode] = this.batchForm[this.headObj.fieldCode]
if (this.headObj.editObj.batchName) {
this.tableList[idx][this.headObj.extInfo.source || 'ORDER'][this.headObj.editObj.batchName] =
this.baseData[this.headObj.editObj.optionsName]
.find(item => item[this.headObj.editObj.optionId] == this.batchForm[this.headObj.fieldCode])?.[this.headObj.editObj.optionLabel]
}
} else {
this.tableList[idx][this.headObj.extInfo.source || 'ORDER'][this.headObj.fieldCode] = this.batchForm[this.headObj.fieldCode]
}
......@@ -1736,6 +1745,7 @@ export default {
return true
}
const id = row.ORDER.id
this.validationErrors = {}
let list = []
this.tableList.forEach(item => {
if (item.ORDER.id != id) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!