Forráskód Böngészése

销售合同问题

lxf 1 éve
szülő
commit
5351451b0f
1 módosított fájl, 19 hozzáadás és 2 törlés
  1. 19 2
      src/views/salesMange/saleContract/contract/index.vue

+ 19 - 2
src/views/salesMange/saleContract/contract/index.vue

@@ -233,6 +233,7 @@ const tradeMethods = ref([]);
 const corporationList = ref([]);
 const customerList = ref([]);
 const shippingMethod = ref([]);
+const userList = ref([]);
 const status = ref([
   {
     label: "草稿",
@@ -384,9 +385,12 @@ const config = computed(() => {
     {
       attrs: {
         label: "业务员",
-        prop: "userName",
+        prop: "createUser",
         width: 140,
       },
+      render(type) {
+        return proxy.dictValueLabel(type, userList.value);
+      },
     },
     {
       attrs: {
@@ -483,7 +487,6 @@ const getDict = () => {
         });
       }
     });
-
   proxy
     .post("/dictTenantData/page", {
       pageNum: 1,
@@ -553,6 +556,20 @@ const getDict = () => {
         });
       }
     });
+  proxy
+    .get("/tenantUser/list", {
+      pageNum: 1,
+      pageSize: 10000,
+      tenantId: useUserStore().user.tenantId,
+    })
+    .then((res) => {
+      userList.value = res.rows.map((item) => {
+        return {
+          label: item.nickName,
+          value: item.userId,
+        };
+      });
+    });
 };
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };