| | |
| | | import { getAccountSimpleList } from '#/api/erp/finance/account'; |
| | | import { getSupplierSimpleList } from '#/api/srm/supplier'; |
| | | import { getSimpleUserList } from '#/api/system/user'; |
| | | import { getRangePickerDefaultProps, getOverdueTip, withoutFixedColumns } from '#/utils'; |
| | | import { getRangePickerDefaultProps, withoutFixedColumns } from '#/utils'; |
| | | import { MdmItemSelect } from '#/views/basicData/mdm/components'; |
| | | import { ErpSaleOrderSelect } from '#/views/erp/sale/order/components'; |
| | | import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components'; |
| | | |
| | | import { PaymentDatePicker } from './components'; |
| | | |
| | | /** 表单类型 */ |
| | | export type FormType = 'create' | 'detail' | 'edit'; |
| | |
| | | { |
| | | fieldName: 'paymentDate', |
| | | label: '付款日期', |
| | | component: 'DatePicker', |
| | | componentProps: { |
| | | component: PaymentDatePicker, |
| | | componentProps: (values) => ({ |
| | | orderTime: values.orderTime, |
| | | placeholder: '请选择付款日期', |
| | | showTime: false, |
| | | format: 'YYYY-MM-DD', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | }), |
| | | rules: 'required', |
| | | help: (values: { |
| | | orderTime?: Date | string; |
| | | paymentDate?: Date | string; |
| | | }) => { |
| | | const tip = getOverdueTip(values.orderTime, values.paymentDate); |
| | | return tip ? `⚠ ${tip},请确认付款计划` : ''; |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'paymentMethod', |