| | |
| | | import SelectMatnrInfo from "./SelectMatnrInfo"; |
| | | import SaveIcon from '@mui/icons-material/Save'; |
| | | import request from '@/utils/request'; |
| | | import { formatQuantity, hasMoreThan6Decimals } from '@/utils/common'; |
| | | import "./asnOrder.css"; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | |
| | | } |
| | | })); |
| | | |
| | | if (value.some((el) => hasMoreThan6Decimals(el.anfme) || hasMoreThan6Decimals(el.reviseQty))) { |
| | | notify('最多6位小数'); |
| | | return; |
| | | } |
| | | saveReviseLog(value); |
| | | }; |
| | | |
| | |
| | | minWidth: 100, |
| | | flex: 1, |
| | | editable: false, |
| | | valueFormatter: (v) => formatQuantity(v), |
| | | }, |
| | | { |
| | | field: 'reviseQty', |
| | |
| | | flex: 1, |
| | | editable: true, |
| | | headerClassName: "custom", |
| | | valueFormatter: (v) => formatQuantity(v), |
| | | }, |
| | | { |
| | | field: 'batch', |