src/views/erp/purchase/return/data.ts
@@ -8,7 +8,7 @@
import { z } from '#/adapter/form';
import { getAccountSimpleList } from '#/api/erp/finance/account';
import { getProductSimpleList } from '#/api/erp/product/product';
import { getSupplierSimpleList } from '#/api/erp/purchase/supplier';
import { getSupplierSimpleList } from '#/api/srm/supplier';
import { getWarehouseSimpleList } from '#/api/erp/stock/warehouse';
import { getSimpleUserList } from '#/api/system/user';
import { getRangePickerDefaultProps } from '#/utils';
@@ -45,7 +45,7 @@
        placeholder: '选择退货时间',
        showTime: true,
        format: 'YYYY-MM-DD HH:mm:ss',
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
      },
      rules: 'required',
    },
@@ -87,10 +87,13 @@
      formItemClass: 'col-span-2',
    },
    {
      fieldName: 'fileUrl',
      fieldName: 'blobIds',
      label: '附件',
      component: 'FileUpload',
      componentProps: {
        valueKey: 'id',
        maxNumber: 10,
        multiple: true,
        showDescription: formType !== 'detail',
        disabled: formType === 'detail',
      },
@@ -128,11 +131,11 @@
    },
    {
      fieldName: 'discountedPrice',
      label: '优惠后金额',
      label: '优惠后含税金额',
      component: 'InputNumber',
      componentProps: {
        class: '!w-full',
        placeholder: '优惠后金额',
        placeholder: '优惠后含税金额',
        precision: 2,
        formatter: erpPriceInputFormatter,
        disabled: true,
@@ -253,17 +256,10 @@
    },
    {
      field: 'productPrice',
      title: '产品单价',
      title: '含税单价(元)',
      fixed: 'right',
      minWidth: 120,
      slots: { default: 'productPrice' },
    },
    {
      field: 'totalProductPrice',
      fixed: 'right',
      title: '产品金额',
      minWidth: 120,
      formatter: 'formatAmount2',
    },
    {
      fixed: 'right',
@@ -273,16 +269,23 @@
      slots: { default: 'taxPercent' },
    },
    {
      field: 'totalProductPrice',
      fixed: 'right',
      title: '不含税金额(元)',
      minWidth: 120,
      formatter: 'formatAmount2',
    },
    {
      fixed: 'right',
      field: 'taxPrice',
      title: '税额',
      title: '税额(元)',
      minWidth: 120,
      formatter: 'formatAmount2',
    },
    {
      field: 'totalPrice',
      fixed: 'right',
      title: '合计金额',
      title: '含税合计(元)',
      minWidth: 120,
      formatter: 'formatAmount2',
    },
@@ -587,7 +590,7 @@
    },
    {
      field: 'totalProductPrice',
      title: '金额合计',
      title: '不含税金额合计',
      formatter: 'formatAmount2',
      minWidth: 120,
    },