From 1b0f06d2a2fc71e21bbe22a6cfbd2ea45e91b800 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 04 十一月 2026 17:04:29 +0800
Subject: [PATCH] fix(erp): 来票表单采购订单分摊表移到基本信息下方,按填写顺序排列
---
src/views/erp/purchase/invoice/data.ts | 62 +++++++++++++++---------------
1 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/src/views/erp/purchase/invoice/data.ts b/src/views/erp/purchase/invoice/data.ts
index 5c92f2c..0e66785 100644
--- a/src/views/erp/purchase/invoice/data.ts
+++ b/src/views/erp/purchase/invoice/data.ts
@@ -46,37 +46,6 @@
},
},
{
- fieldName: 'orderAllocations',
- label: '閲囪喘璁㈠崟',
- component: markRaw(OrderAllocationField),
- formItemClass: 'md:col-span-2',
- dependencies: {
- triggerFields: ['id', 'price'],
- componentProps: (values, form) => ({
- invoicePrice: values.price,
- // 缂栬緫鏃舵妸鏈紶鏉ョエ宸插垎鎽婄殑閲戦閫�鍥炶鍗曪紝閲嶆柊閫夋嫨璁㈠崟鏃舵湭寮�绁ㄩ噾棰濇寜鍏朵粬鏉ョエ璁$畻
- invoiceId: values.id ? Number(values.id) : undefined,
- disabled: formType?.value === 'detail',
- // 鍒嗘憡琛屽彉鍖栵細甯﹀嚭渚涘簲鍟嗗悕绉帮紙鍚屼竴渚涘簲鍟嗭級涓庢湭寮�绁ㄩ噾棰濆悎璁�
- onChange: (rows: Array<Record<string, any>>) => {
- const supplierNames = [
- ...new Set(
- rows
- .map((row) => row.supplierName)
- .filter((name): name is string => !!name),
- ),
- ];
- form.setFieldValue('supplierName', supplierNames.join('銆�'));
- if (orderRemainInvoicePrice) {
- orderRemainInvoicePrice.value = round2(
- rows.reduce((sum, row) => sum + Number(row.remainPrice ?? 0), 0),
- );
- }
- },
- }),
- },
- },
- {
fieldName: 'supplierName',
label: '渚涘簲鍟�',
component: 'Input',
@@ -154,6 +123,37 @@
},
},
{
+ fieldName: 'orderAllocations',
+ label: '閲囪喘璁㈠崟',
+ component: markRaw(OrderAllocationField),
+ formItemClass: 'md:col-span-2',
+ dependencies: {
+ triggerFields: ['id', 'price'],
+ componentProps: (values, form) => ({
+ invoicePrice: values.price,
+ // 缂栬緫鏃舵妸鏈紶鏉ョエ宸插垎鎽婄殑閲戦閫�鍥炶鍗曪紝閲嶆柊閫夋嫨璁㈠崟鏃舵湭寮�绁ㄩ噾棰濇寜鍏朵粬鏉ョエ璁$畻
+ invoiceId: values.id ? Number(values.id) : undefined,
+ disabled: formType?.value === 'detail',
+ // 鍒嗘憡琛屽彉鍖栵細甯﹀嚭渚涘簲鍟嗗悕绉帮紙鍚屼竴渚涘簲鍟嗭級涓庢湭寮�绁ㄩ噾棰濆悎璁�
+ onChange: (rows: Array<Record<string, any>>) => {
+ const supplierNames = [
+ ...new Set(
+ rows
+ .map((row) => row.supplierName)
+ .filter((name): name is string => !!name),
+ ),
+ ];
+ form.setFieldValue('supplierName', supplierNames.join('銆�'));
+ if (orderRemainInvoicePrice) {
+ orderRemainInvoicePrice.value = round2(
+ rows.reduce((sum, row) => sum + Number(row.remainPrice ?? 0), 0),
+ );
+ }
+ },
+ }),
+ },
+ },
+ {
fieldName: 'blobIds',
label: '鍙戠エ闄勪欢',
component: 'FileUpload',
--
Gitblit v1.9.3