| | |
| | | nickName: item.nickName || "", |
| | | userName: item.userName || "", |
| | | })); |
| | | approveUserList({ approveType: 6 }).then(res => { |
| | | userListApprove.value = res.data; |
| | | }); |
| | | await loadApproveUserList(); |
| | | getProductOptions(); |
| | | customerList().then(res => { |
| | | // 只复制需要的字段,避免将组件引用放入响应式对象 |
| | |
| | | taxpayerIdentificationNumber: item.taxpayerIdentificationNumber || "", |
| | | })); |
| | | }); |
| | | }; |
| | | const loadApproveUserList = async () => { |
| | | const res = await approveUserList({ approveType: 6 }); |
| | | userListApprove.value = Array.isArray(res.data) ? res.data : []; |
| | | }; |
| | | const getProductOptions = () => { |
| | | // 返回 Promise,便于编辑时 await 确保能反显 |
| | |
| | | form.discountAmount = row.discountAmount || 0; |
| | | form.totalAmount = row.totalAmount || 0; |
| | | |
| | | // 编辑时重新拉取审批人列表,避免切页后列表状态过期导致回显异常 |
| | | await loadApproveUserList(); |
| | | |
| | | // 反显审批人 |
| | | if (row.approveUserIds) { |
| | | const userIds = row.approveUserIds.split(","); |