| | |
| | | import { generateAutoCode } from '#/api/mes/md/autocode/record'; |
| | | import { getItemPage } from '#/api/mdm/item'; |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | | import { MdVendorSelect } from '#/views/mes/md/vendor/components'; |
| | | import { SrmSupplierSelect } from '#/views/srm/supplier/components'; |
| | | import { ErpPurchaseOrderSelect } from '#/views/erp/purchase/order/components'; |
| | | |
| | | /** 表单类型 */ |
| | |
| | | { |
| | | fieldName: 'vendorId', |
| | | label: '供应商', |
| | | component: markRaw(MdVendorSelect), |
| | | component: markRaw(SrmSupplierSelect), |
| | | componentProps: { |
| | | placeholder: '请选择供应商', |
| | | disabled: true, |
| | |
| | | componentProps: (values) => ({ |
| | | placeholder: '请选择供应商', |
| | | disabled: true, |
| | | vendorName: values.vendorName as string, |
| | | supplierName: values.vendorName as string, |
| | | }), |
| | | }, |
| | | rules: 'selectRequired', |
| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'purchaseOrderNo', |
| | | fieldName: 'purchaseOrderId', |
| | | label: '采购订单号', |
| | | component: 'Input', |
| | | component: markRaw(ErpPurchaseOrderSelect), |
| | | componentProps: { |
| | | allowClear: true, |
| | | placeholder: '请输入采购订单号', |
| | | placeholder: '请选择采购订单', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'vendorName', |
| | | fieldName: 'vendorId', |
| | | label: '供应商', |
| | | component: 'Input', |
| | | component: markRaw(SrmSupplierSelect), |
| | | componentProps: { |
| | | allowClear: true, |
| | | placeholder: '请输入供应商名称', |
| | | placeholder: '请选择供应商', |
| | | }, |
| | | }, |
| | | { |
| | |
| | | ? [ |
| | | { |
| | | title: '操作', |
| | | width: 120, |
| | | width: 160, |
| | | fixed: 'right', |
| | | slots: { default: 'actions' }, |
| | | } as const, |