| | |
| | | return z |
| | | .number() |
| | | .min(0, '订金不能小于0') |
| | | .max(values.totalPrice, '订金不能大于优惠后金额'); |
| | | .max(values.totalPrice, '订金不能大于优惠后含税金额'); |
| | | } |
| | | return z.number().min(0, '订金不能小于0'); |
| | | }, |
| | |
| | | }, |
| | | { |
| | | fieldName: 'totalPrice', |
| | | label: '优惠后金额', |
| | | label: '优惠后含税金额', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | class: '!w-full', |
| | | placeholder: '优惠后金额', |
| | | placeholder: '优惠后含税金额', |
| | | precision: 2, |
| | | formatter: erpPriceInputFormatter, |
| | | disabled: true, |
| | |
| | | }, |
| | | { |
| | | field: 'productPrice', |
| | | title: '产品单价', |
| | | title: '含税单价(元)', |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | slots: { default: 'productPrice' }, |
| | | }, |
| | | { |
| | | field: 'totalProductPrice', |
| | | title: '金额', |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | formatter: 'formatAmount2', |
| | | }, |
| | | { |
| | | field: 'taxPercent', |
| | |
| | | slots: { default: 'taxPercent' }, |
| | | }, |
| | | { |
| | | field: 'totalProductPrice', |
| | | title: '不含税金额(元)', |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | formatter: 'formatAmount2', |
| | | }, |
| | | { |
| | | field: 'taxPrice', |
| | | title: '税额', |
| | | title: '税额(元)', |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | formatter: 'formatAmount2', |
| | | }, |
| | | { |
| | | field: 'totalPrice', |
| | | title: '税额合计', |
| | | title: '含税合计(元)', |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | formatter: 'formatAmount2', |
| | |
| | | }, |
| | | { |
| | | field: 'totalProductPrice', |
| | | title: '金额合计', |
| | | title: '不含税金额合计', |
| | | formatter: 'formatAmount2', |
| | | minWidth: 120, |
| | | }, |