| | |
| | | |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | import { erpPriceInputFormatter } from '@vben/utils'; |
| | | |
| | | import { getSupplierSimpleList } from '#/api/erp/purchase/supplier'; |
| | | import { getSimpleUserList } from '#/api/system/user'; |
| | |
| | | rules: 'required', |
| | | }, |
| | | { |
| | | label: '供应商(可选)', |
| | | label: '供应商', |
| | | fieldName: 'supplierId', |
| | | component: 'ApiSelect', |
| | | componentProps: { |
| | |
| | | valueField: 'id', |
| | | disabled: formType === 'detail', |
| | | }, |
| | | rules: 'required', |
| | | }, |
| | | { |
| | | fieldName: 'discountPercent', |
| | |
| | | placeholder: '请输入优惠率', |
| | | min: 0, |
| | | max: 100, |
| | | precision: 2, |
| | | disabled: formType === 'detail', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'depositPrice', |
| | | label: '定金', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | placeholder: '请输入定金', |
| | | min: 0, |
| | | precision: 2, |
| | | disabled: formType === 'detail', |
| | | }, |
| | |
| | | title: '备注', |
| | | minWidth: 150, |
| | | slots: { default: 'remark' }, |
| | | }, |
| | | { |
| | | field: 'qcCheckFlag', |
| | | title: '是否质检', |
| | | minWidth: 80, |
| | | fixed: 'right', |
| | | slots: { default: 'qcCheckFlag' }, |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | minWidth: 120, |
| | | }, |
| | | { |
| | | field: 'depositPrice', |
| | | title: '定金', |
| | | formatter: 'formatAmount2', |
| | | minWidth: 120, |
| | | }, |
| | | { |
| | | field: 'qcCheckFlag', |
| | | title: '是否质检', |
| | | minWidth: 80, |
| | | slots: { default: 'qcCheckFlag' }, |
| | | }, |
| | | { |
| | | field: 'productNames', |
| | | title: '申请产品', |
| | | minWidth: 150, |