fix: 限制挂账管理编辑挂账人禁止修改挂账方式

This commit is contained in:
YeMingfei666 2025-03-20 14:46:53 +08:00
parent 30f10bed93
commit 546b3f4303
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ async function handleEditClick(row: IObject) {
// id
// const data = await creditApi.getFormData(row.id);
console.log({ ...row });
const item = editModalConfig?.formItems.find((item) => item.prop == "repaymentMethod");
if (item) {
item.options = (item.options ?? []).filter((v) => v.value == row.repaymentMethod);
}
editModalRef.value?.setFormData({ ...row, url: [row.url] });
}
function refresh() {