Forráskód Böngészése

采购付款详情: 付款明细采购合同显示id问题

lxf 1 éve
szülő
commit
34c81a9685

+ 21 - 3
src/components/process/PurchasePayment.vue

@@ -452,6 +452,24 @@ watch(
       } else {
         fileList.value = [];
       }
+      if (route.query.processType !== "30" && formData.data.payDetailList && formData.data.payDetailList.length) {
+        let ids = formData.data.payDetailList.map((item) => item.purchaseId);
+        if (ids && ids.length > 0) {
+          proxy.post("/purchase/getListInId", ids).then((res) => {
+            if (res && res.length > 0) {
+              contractList.value = res.map((item) => {
+                return {
+                  value: item.id,
+                  label: item.code,
+                };
+              });
+            } else {
+              contractList.value = [];
+            }
+          });
+        }
+      }
+      getDecisionAids();
     }
   },
   {
@@ -459,9 +477,9 @@ watch(
   }
 );
 onMounted(async () => {
-  if (props.queryData.supplyId) {
-    formData.data.supplyId = props.queryData.supplyId;
-    await changeSupply(formData.data.supplyId);
+  if (props.queryData.supplyIdTwo) {
+    formData.data.supplyIdTwo = props.queryData.supplyIdTwo;
+    await changeSupply(formData.data.supplyIdTwo);
     if (props.queryData.ids) {
       let ids = props.queryData.ids.split(",");
       if (ids && ids.length > 0) {

+ 1 - 1
src/views/purchaseManage/purchasePayment/paymentBill/index.vue

@@ -220,7 +220,7 @@ const start = () => {
       query: {
         flowKey: "pay_flow",
         flowName: "采购付款申请",
-        supplyId: selectData.value[0].supplyId,
+        supplyIdTwo: selectData.value[0].supplyId,
         ids,
         random: proxy.random(),
       },