zhangwencui
2 天以前 958d6d6e67c8375fe3ea9f11cbefe2aab1451fc3
src/pages/procurementManagement/paymentEntry/add.vue
@@ -163,7 +163,9 @@
    registrant: "",
    paymentDate: "",
    registrationtDate: "",
    ticketRegistrationId: "",
    // ticketRegistrationId: "",
    purchaseLedgerId: "",
    salesLedgerProductId: "",
  });
  const currentNoReceiptAmount = ref(0);
@@ -231,7 +233,7 @@
      return;
    }
    loading.value = true;
    paymentRegistrationAdd(form.value)
    paymentRegistrationAdd([form.value])
      .then(() => {
        showToast("提交成功");
        onClickLeft();
@@ -246,7 +248,7 @@
    const rowStr = uni.getStorageSync("invoiceLedgerEditRow");
    const row = JSON.parse(rowStr);
    form.value = { ...row };
    form.value.ticketRegistrationId = row.id;
    // form.value.ticketRegistrationId = row.id;
    form.value.id = null;
    form.value.id = "";
    currentNoReceiptAmount.value = row.pendingTicketsTotal
@@ -255,6 +257,9 @@
    form.value.registrant = userStore.nickName;
    form.value.registrationtDate = getCurrentDate();
    form.value.paymentDate = getCurrentDate();
    form.value.salesLedgerProductId = row.id || "";
    form.value.purchaseLedgerId = row.salesLedgerId || "";
  };
  // 获取当前日期并格式化为 YYYY-MM-DD
  function getCurrentDate() {