瀏覽代碼

待出入库调整

lxf 2 年之前
父節點
當前提交
22d8cc8d43

+ 26 - 5
src/views/purchaseSales/outAndInWarehouse/waitingForDelivery/index.vue

@@ -44,6 +44,24 @@ const status = ref([
     value: 2,
   },
 ]);
+const businessType = ref([
+  {
+    label: "线边回仓",
+    value: 1,
+  },
+  {
+    label: "完工入库",
+    value: 2,
+  },
+  {
+    label: "采购到货",
+    value: 3,
+  },
+  {
+    label: "退货出库",
+    value: 4,
+  },
+]);
 const sourceList = ref({
   data: [],
   pagination: {
@@ -70,9 +88,12 @@ const config = computed(() => {
     {
       attrs: {
         label: "数据来源",
-        prop: "aaaaaaa",
+        prop: "businessType",
         width: 120,
       },
+      render(type) {
+        return proxy.dictValueLabel(type, businessType.value);
+      },
     },
     {
       attrs: {
@@ -172,7 +193,7 @@ const getDict = () => {
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   loading.value = true;
-  proxy.post("/stockWait/page", sourceList.value.pagination).then((res) => {
+  proxy.post("/stockWaitDetails/page", sourceList.value.pagination).then((res) => {
     sourceList.value.data = res.rows;
     sourceList.value.pagination.total = res.total;
     setTimeout(() => {
@@ -200,11 +221,11 @@ const formConfig = computed(() => {
       label: "待出库信息",
     },
     {
-      type: "input",
-      prop: "aaaaaaa",
+      type: "select",
+      prop: "businessType",
       label: "数据来源",
-      itemType: "text",
       disabled: true,
+      data: businessType.value,
     },
     {
       type: "input",

+ 26 - 5
src/views/purchaseSales/outAndInWarehouse/waitingForStorage/index.vue

@@ -44,6 +44,24 @@ const status = ref([
     value: 2,
   },
 ]);
+const businessType = ref([
+  {
+    label: "线边回仓",
+    value: 1,
+  },
+  {
+    label: "完工入库",
+    value: 2,
+  },
+  {
+    label: "采购到货",
+    value: 3,
+  },
+  {
+    label: "退货出库",
+    value: 4,
+  },
+]);
 const sourceList = ref({
   data: [],
   pagination: {
@@ -70,9 +88,12 @@ const config = computed(() => {
     {
       attrs: {
         label: "数据来源",
-        prop: "aaaaaaa",
+        prop: "businessType",
         width: 120,
       },
+      render(type) {
+        return proxy.dictValueLabel(type, businessType.value);
+      },
     },
     {
       attrs: {
@@ -172,7 +193,7 @@ const getDict = () => {
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   loading.value = true;
-  proxy.post("/stockWait/page", sourceList.value.pagination).then((res) => {
+  proxy.post("/stockWaitDetails/page", sourceList.value.pagination).then((res) => {
     sourceList.value.data = res.rows;
     sourceList.value.pagination.total = res.total;
     setTimeout(() => {
@@ -200,11 +221,11 @@ const formConfig = computed(() => {
       label: "待入库信息",
     },
     {
-      type: "input",
-      prop: "aaaaaaa",
+      type: "select",
+      prop: "businessType",
       label: "数据来源",
-      itemType: "text",
       disabled: true,
+      data: businessType.value,
     },
     {
       type: "input",