diff --git a/src/views/finance/supplierBill/billingRecord.vue b/src/views/finance/supplierBill/billingRecord.vue
index 08e346e..06e3860 100644
--- a/src/views/finance/supplierBill/billingRecord.vue
+++ b/src/views/finance/supplierBill/billingRecord.vue
@@ -113,6 +113,7 @@ const refPayment = ref();
function handlePayment(item) {
if (item != 'all') {
state.flowIdList = [item.id]
+ state.allAmount = item.unPaidAmount
} else {
if( state.flowIdList.length <= 0 ){
ElMessage({ type: "error", message: "请选择付款耗材" });
diff --git a/src/views/finance/supplierBill/components/payment.vue b/src/views/finance/supplierBill/components/payment.vue
index 741f925..28c769a 100644
--- a/src/views/finance/supplierBill/components/payment.vue
+++ b/src/views/finance/supplierBill/components/payment.vue
@@ -6,7 +6,7 @@
-
@@ -46,13 +46,13 @@ const form = reactive({
...basicForm,
});
const supplierName = ref('');
+const maxAmount = ref(0);
const show = ref(false);
function open(item) {
form.flowIdList = item.flowIdList
supplierName.value = item.supplierName
- if (item.flowIdList.length > 1 && item.allAmount) {
- form.amount = item.allAmount
- }
+ form.amount = item.allAmount
+ maxAmount.value = item.allAmount
// Object.assign(form, item);
show.value = true;
}