From 34b5d13e7322da990565e88b15bdfdd4c7abe903 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 04 十一月 2026 17:32:51 +0800
Subject: [PATCH] feat(erp): 采购台账与采购退货界面改造
---
src/views/erp/sale/order/data.ts | 41 ++++++++++++++++++++++++++++++++++++++++-
1 files changed, 40 insertions(+), 1 deletions(-)
diff --git a/src/views/erp/sale/order/data.ts b/src/views/erp/sale/order/data.ts
index 2322850..0bac6c7 100644
--- a/src/views/erp/sale/order/data.ts
+++ b/src/views/erp/sale/order/data.ts
@@ -6,7 +6,11 @@
import { z } from '#/adapter/form';
import { getAccountSimpleList } from '#/api/erp/finance/account';
import { getSimpleUserList } from '#/api/system/user';
-import { getRangePickerDefaultProps, withoutFixedColumns } from '#/utils';
+import {
+ getOverdueTip,
+ getRangePickerDefaultProps,
+ withoutFixedColumns,
+} from '#/utils';
import CrmCustomerSelect from '#/components/crm-customer-select.vue';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
@@ -75,6 +79,24 @@
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
rules: 'required',
+ },
+ {
+ fieldName: 'receiptDate',
+ label: '鏀舵鏃ユ湡',
+ component: 'DatePicker',
+ componentProps: {
+ placeholder: '璇烽�夋嫨鏀舵鏃ユ湡',
+ showTime: false,
+ format: 'YYYY-MM-DD',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ },
+ help: (values: {
+ orderTime?: Date | string;
+ receiptDate?: Date | string;
+ }) => {
+ const tip = getOverdueTip(values.orderTime, values.receiptDate);
+ return tip ? `鈿� ${tip}锛岃纭鍥炴璁″垝` : '';
+ },
},
{
label: '瀹㈡埛',
@@ -353,6 +375,17 @@
},
},
{
+ fieldName: 'receiptDate',
+ label: '鏀舵鏃ユ湡',
+ component: 'RangePicker',
+ componentProps: {
+ ...getRangePickerDefaultProps(),
+ showTime: false,
+ format: 'YYYY-MM-DD',
+ allowClear: true,
+ },
+ },
+ {
fieldName: 'supplierId',
label: '瀹㈡埛',
component: markRaw(CrmCustomerSelect),
@@ -470,6 +503,12 @@
formatter: 'formatDate',
},
{
+ field: 'receiptDate',
+ title: '鏀舵鏃ユ湡',
+ width: 140,
+ slots: { default: 'receiptDate' },
+ },
+ {
field: 'creatorName',
title: '鍒涘缓浜�',
minWidth: 120,
--
Gitblit v1.9.3