| | |
| | | getListByPage(col).then((res) => { |
| | | res.items.forEach(element => { |
| | | arr.push({ |
| | | '飞达编码': element.FEEDER_CODE, |
| | | '飞达名称': element.FEEDER_NAME, |
| | | '飞达类型编码': element.TYPE_CODE, |
| | | '飞达类型名称': element.TYPE_NAME, |
| | | '备注': element.REMARK, |
| | | '创建人': element.CREATE_USER, |
| | | '创建时间': element.CREATE_TIME, |
| | |
| | | } |
| | | //报废 |
| | | function handleBao(record: any) { |
| | | const apiAction = SaveTool(record, unref(true), true); |
| | | const apiAction = Save(record, unref(true), true); |
| | | apiAction.then((action) => { |
| | | if (action.IsSuccessed) { |
| | | createMessage.success(t('已报废')); |
| | |
| | | } |
| | | //删除 |
| | | function handleDelete(record: any) { |
| | | const apiAction = DeleteTool(record.ID); |
| | | const apiAction = Delete(record.ID); |
| | | apiAction.then((action) => { |
| | | if (action.IsSuccessed) { |
| | | createMessage.success(t('已删除')); |