lxf 1 jaar geleden
bovenliggende
commit
d260147ac6
1 gewijzigde bestanden met toevoegingen van 1 en 19 verwijderingen
  1. 1 19
      src/views/salesMange/saleContract/contract/index.vue

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

@@ -133,7 +133,7 @@
               {{ item.productName }}
             </div>
             <div class="contentRow" style="width: 100px; text-align: center">
-              {{ dictValueLabel(item.productUnit, productUnit) }}
+              {{ item.productUnit }}
             </div>
             <div class="contentRow" style="width: 100px; text-align: center">
               {{ item.productQuantity }}
@@ -238,7 +238,6 @@ const corporationList = ref([]);
 const customerList = ref([]);
 const shippingMethod = ref([]);
 const userList = ref([]);
-const productUnit = ref([]);
 const status = ref([
   {
     label: "草稿",
@@ -592,23 +591,6 @@ const getDict = () => {
         };
       });
     });
-  proxy
-    .post("/dictTenantData/page", {
-      pageNum: 1,
-      pageSize: 999,
-      dictCode: "unit",
-      tenantId: useUserStore().user.tenantId,
-    })
-    .then((res) => {
-      if (res.rows && res.rows.length > 0) {
-        productUnit.value = res.rows.map((item) => {
-          return {
-            label: item.dictValue,
-            value: item.dictKey,
-          };
-        });
-      }
-    });
 };
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };