| | |
| | | import { request } from '@/service/request'; |
| | | |
| | | /** 获取测量仪器列表 */ |
| | | export function fetchGetInstrumentList (params?: Api.Md.InstrumentSearchParams) { |
| | | return request<Api.Md.InstrumentList>({ |
| | | url: '/md/instrument/list', |
| | | method: 'get', |
| | | params |
| | | }); |
| | | export function fetchGetInstrumentList(params?: Api.Md.InstrumentSearchParams) { |
| | | return request<Api.Md.InstrumentList>({ |
| | | url: '/md/instrument/list', |
| | | method: 'get', |
| | | params |
| | | }); |
| | | } |
| | | /** 新增测量仪器 */ |
| | | export function fetchCreateInstrument (data: Api.Md.InstrumentOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/instrument', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | export function fetchCreateInstrument(data: Api.Md.InstrumentOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/instrument', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | /** 修改测量仪器 */ |
| | | export function fetchUpdateInstrument (data: Api.Md.InstrumentOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/instrument', |
| | | method: 'put', |
| | | data |
| | | }); |
| | | export function fetchUpdateInstrument(data: Api.Md.InstrumentOperateParams) { |
| | | return request<boolean>({ |
| | | url: '/md/instrument', |
| | | method: 'put', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | /** 批量删除测量仪器 */ |
| | | export function fetchBatchDeleteInstrument (ids: CommonType.IdType[]) { |
| | | return request<boolean>({ |
| | | url: `/md/instrument/${ids.join(',')}`, |
| | | method: 'delete' |
| | | }); |
| | | export function fetchBatchDeleteInstrument(ids: CommonType.IdType[]) { |
| | | return request<boolean>({ |
| | | url: `/md/instrument/${ids.join(',')}`, |
| | | method: 'delete' |
| | | }); |
| | | } |