Bläddra i källkod

出入库流水bug

lxf 2 år sedan
förälder
incheckning
406aab9e89
1 ändrade filer med 14 tillägg och 2 borttagningar
  1. 14 2
      src/views/purchaseSales/outAndInWarehouse/record/index.vue

+ 14 - 2
src/views/purchaseSales/outAndInWarehouse/record/index.vue

@@ -15,6 +15,12 @@
           },
         ]"
         @get-list="getList">
+        <template #warehouseName="{ item }">
+          <div>
+            <span v-if="item.opType == 1">{{ item.toWarehouseName }}</span>
+            <span v-else>{{ item.warehouseName }}</span>
+          </div>
+        </template>
       </byTable>
     </div>
   </div>
@@ -118,6 +124,11 @@ const selectConfig = computed(() => {
       prop: "opType",
       data: opTypeList.value,
     },
+    {
+      label: "出入库类型",
+      prop: "type",
+      data: typeList.value,
+    },
   ];
 });
 const config = computed(() => {
@@ -142,11 +153,12 @@ const config = computed(() => {
         return proxy.dictValueLabel(type, typeList.value);
       },
     },
+
     {
       attrs: {
         label: "仓库名称",
-        prop: "warehouseName",
-        width: 220,
+        slot: "warehouseName",
+        width: 200,
       },
     },
     {