| | |
| | | import type { VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | |
| | | import { DICT_TYPE } from '../../../../packages/constants/src'; |
| | | import { getDictOptions } from '../../../../packages/effects/hooks/src'; |
| | | import { erpPriceInputFormatter } from '../../../../packages/utils/src'; |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | |
| | | 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', |
| | | }, |
| | |
| | | slots: { default: 'productId' }, |
| | | }, |
| | | { |
| | | field: 'productBarCode', |
| | | title: '条码', |
| | | minWidth: 120, |
| | | }, |
| | | { |
| | | field: 'productUnitName', |
| | | title: '单位', |
| | | minWidth: 80, |
| | |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | slots: { default: 'count' }, |
| | | }, |
| | | { |
| | | field: 'inCount', |
| | | title: '入库数量', |
| | | minWidth: 100, |
| | | fixed: 'right', |
| | | formatter: 'formatAmount6', |
| | | }, |
| | | { |
| | | field: 'productPrice', |
| | |
| | | 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: 'productNames', |
| | | title: '申请产品', |
| | | minWidth: 150, |
| | |
| | | slots: { default: 'status' }, |
| | | }, |
| | | { |
| | | field: 'inStatus', |
| | | title: '入库状态', |
| | | minWidth: 100, |
| | | slots: { default: 'inStatus' }, |
| | | }, |
| | | { |
| | | field: 'requestReason', |
| | | title: '申请理由', |
| | | minWidth: 150, |