cz 1 year ago
parent
commit
db5e0f91b3
1 changed files with 13 additions and 13 deletions
  1. 13 13
      src/views/WDLY/outInBound/logistics/index.vue

+ 13 - 13
src/views/WDLY/outInBound/logistics/index.vue

@@ -357,24 +357,24 @@ const statusData = ref([
 ]);
 const businessType = ref([
   {
-    dictValue: "采购入库",
-    dictKey: "1",
+    label: "采购入库",
+    value: "1",
   },
   {
-    dictValue: "京东订单出库",
-    dictKey: "2",
+    label: "京东订单出库",
+    value: "2",
   },
   {
-    dictValue: "销售订单出库",
-    dictKey: "3",
+    label: "销售订单出库",
+    value: "3",
   },
   {
-    dictValue: "京东退货",
-    dictKey: "4",
+    label: "京东退货",
+    value: "4",
   },
   {
-    dictValue: "采购退货",
-    dictKey: "5",
+    label: "采购退货",
+    value: "5",
   },
 ]);
 const deptData = ref([]);
@@ -403,7 +403,7 @@ const config = computed(() => {
         prop: "businessType",
       },
       render(type) {
-        return proxy.dictDataEcho(type, businessType.value);
+        return proxy.dictValueLabel(type, businessType.value);
       },
     },
     {
@@ -828,8 +828,8 @@ getList();
 getLogisticsData();
 onMounted(() => {
   formConfig[0].data = businessType.value.map((x) => ({
-    label: x.dictValue,
-    value: x.dictKey,
+    label: x.label,
+    value: x.value,
   }));
 });
 </script>