cz 1 year ago
parent
commit
cadc31986e

+ 6 - 1
src/views/purchaseManage/purchaseManage/alreadyPurchase/index.vue

@@ -735,6 +735,11 @@ const getList = async (req) => {
       loading.value = false;
     }, 200);
   });
+  proxy
+    .post("/purchase/statisticsPurchaseHead", sourceList.value.pagination)
+    .then((res) => {
+      headerData.value = res;
+    });
 };
 
 const submitForm = async () => {
@@ -867,7 +872,7 @@ const handleArrival = (row) => {
 };
 
 getDict();
-getHeaderData();
+// getHeaderData();
 if (route.query.code) {
   sourceList.value.pagination.keyword = route.query.code;
 }

+ 26 - 21
src/views/purchaseManage/purchasePayment/paymentBill/index.vue

@@ -18,7 +18,8 @@
           action: () => start(),
         },
       ]"
-      @get-list="getList">
+      @get-list="getList"
+    >
       <template #amount="{ item }">
         <div style="width: 100%">
           <span style="padding-right: 4px">{{ item.currency }}</span>
@@ -89,7 +90,7 @@ const selectConfig = computed(() => {
     },
     {
       label: "付款状态",
-      prop: "type",
+      prop: "payStatus",
       data: payStatus.value,
     },
   ];
@@ -181,30 +182,34 @@ const config = computed(() => {
   ];
 });
 const getDict = () => {
-  proxy.post("/supplierInfo/page", { pageNum: 1, pageSize: 999 }).then((res) => {
-    if (res.rows && res.rows.length > 0) {
-      supplierList.value = res.rows.map((item) => {
-        return {
-          label: item.name,
-          value: item.id,
-        };
-      });
-    }
-  });
+  proxy
+    .post("/supplierInfo/page", { pageNum: 1, pageSize: 999 })
+    .then((res) => {
+      if (res.rows && res.rows.length > 0) {
+        supplierList.value = res.rows.map((item) => {
+          return {
+            label: item.name,
+            value: item.id,
+          };
+        });
+      }
+    });
 };
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   loading.value = true;
-  proxy.post("/purchase/paymentBill", sourceList.value.pagination).then((message) => {
-    message.rows.forEach((x) => {
-      x.isCheck = true;
+  proxy
+    .post("/purchase/paymentBill", sourceList.value.pagination)
+    .then((message) => {
+      message.rows.forEach((x) => {
+        x.isCheck = true;
+      });
+      sourceList.value.data = message.rows;
+      sourceList.value.pagination.total = message.total;
+      setTimeout(() => {
+        loading.value = false;
+      }, 200);
     });
-    sourceList.value.data = message.rows;
-    sourceList.value.pagination.total = message.total;
-    setTimeout(() => {
-      loading.value = false;
-    }, 200);
-  });
 };
 getDict();
 getList();