From 6373c12e97dc5d52ad87271d1adb6743b0052607 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 26 八月 2026 17:18:47 +0800
Subject: [PATCH] feat(erp): 采购来票选单过滤已开完票订单并修正未开票金额口径
---
src/views/erp/purchase/invoice/data.ts | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/erp/purchase/invoice/data.ts b/src/views/erp/purchase/invoice/data.ts
index 018c084..c315066 100644
--- a/src/views/erp/purchase/invoice/data.ts
+++ b/src/views/erp/purchase/invoice/data.ts
@@ -15,7 +15,7 @@
/** 鏂板/淇敼鐨勮〃鍗� */
export function useFormSchema(
- orderTotalTaxPrice?: Ref<number | undefined>,
+ orderRemainInvoicePrice?: Ref<number | undefined>,
): VbenFormSchema[] {
return [
{
@@ -48,12 +48,12 @@
placeholder: '璇烽�夋嫨閲囪喘璁㈠崟',
onChange: (
order:
- | { supplierName?: string; totalTaxPrice?: number }
+ | { supplierName?: string; remainInvoicePrice?: number }
| undefined,
) => {
form.setFieldValue('supplierName', order?.supplierName);
- if (orderTotalTaxPrice) {
- orderTotalTaxPrice.value = order?.totalTaxPrice;
+ if (orderRemainInvoicePrice) {
+ orderRemainInvoicePrice.value = order?.remainInvoicePrice;
}
},
}),
@@ -91,8 +91,8 @@
component: 'InputNumber',
rules: 'required',
description: () =>
- orderTotalTaxPrice?.value != null
- ? `閲囪喘璁㈠崟鏈紑绁ㄩ噾棰濓細${Number(orderTotalTaxPrice.value).toFixed(2)} 鍏僠
+ orderRemainInvoicePrice?.value != null
+ ? `閲囪喘璁㈠崟鏈紑绁ㄩ噾棰濓細${Number(orderRemainInvoicePrice.value).toFixed(2)} 鍏僠
: '',
componentProps: {
class: '!w-full',
@@ -106,11 +106,11 @@
class: '!w-full',
placeholder: '璇疯緭鍏ユ潵绁ㄩ噾棰�',
min: 0,
- max: orderTotalTaxPrice?.value ?? undefined,
+ max: orderRemainInvoicePrice?.value ?? undefined,
precision: 2,
}),
rules: () => {
- const max = orderTotalTaxPrice?.value;
+ const max = orderRemainInvoicePrice?.value;
if (max != null) {
return z
.number({ message: '璇疯緭鍏ユ潵绁ㄩ噾棰�' })
--
Gitblit v1.9.3