| | |
| | | registrant: "", |
| | | paymentDate: "", |
| | | registrationtDate: "", |
| | | ticketRegistrationId: "", |
| | | // ticketRegistrationId: "", |
| | | purchaseLedgerId: "", |
| | | salesLedgerProductId: "", |
| | | }); |
| | | const currentNoReceiptAmount = ref(0); |
| | | |
| | |
| | | return; |
| | | } |
| | | loading.value = true; |
| | | paymentRegistrationAdd(form.value) |
| | | paymentRegistrationAdd([form.value]) |
| | | .then(() => { |
| | | showToast("提交成功"); |
| | | onClickLeft(); |
| | |
| | | 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 |
| | |
| | | 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() { |