| | |
| | | import { columns, searchFormSchema } from './Material.data'; |
| | | import { DeleteMaterial, getMaterialListByPage } from '../../../../api/tigerapi/bas/MaterialInfo'; |
| | | import { useModal } from '/@/components/Modal'; |
| | | import { getListByPage } from '/@/api/tigerapi/system'; |
| | | import { useGo } from '/@/hooks/web/usePage'; |
| | | |
| | | const go = useGo(); |
| | |
| | | const [registerModal, { openModal: openMaterialModal }] = useModal(); |
| | | const [registerTable, { reload }] = useTable({ |
| | | title: '物料列表', |
| | | api: getMaterialListByPage, |
| | | api: getListByPage, |
| | | searchInfo: { TABLE_NAME: 'BAS_ITEM' }, |
| | | columns, |
| | | formConfig: { |
| | | labelWidth: 120, |
| | |
| | | Title: `产品[${record.ITEM_CODE}]工艺绑定`, |
| | | colSlots: [], |
| | | crudColSlots: [], |
| | | dense: true, |
| | | pageTitle: `产品工艺绑定`, |
| | | pageContent: `这里是管理产品的工艺绑定,一个产品可以绑定多个工艺路线`, |
| | | }; |
| | | go(`/ProdRouteBinding/CP/${encodeURI(JSON.stringify(id))}`); |
| | | // let obj = JSON.stringify(id); |
| | | // push({ |
| | | // path: '/ProdRouteBinding', |
| | | // state: {obj}, //HTML5 History API 的传参,参数隐藏不在地址栏显示(history) |
| | | // }) |
| | | } |
| | | </script> |