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