| | |
| | | }); |
| | | }, |
| | | |
| | | // 拉丝二维码查询 |
| | | getTagByIdLs(params: { outPutId: string | number }) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/app/getTagByIdLs", |
| | | method: "GET", |
| | | data: params, |
| | | }); |
| | | }, |
| | | |
| | | addStrandedWireDish(data: any) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/app/addStrandedWireDish", |
| | |
| | | method: "DELETE", |
| | | }); |
| | | }, |
| | | |
| | | // 删除绞线报工 |
| | | deleteWireOutput(params: { id: number }) { |
| | | // 将参数拼接到 URL 作为 query 参数 |
| | | const queryString = `?id=${params.id}`; |
| | | return request<BaseResult<any>>({ |
| | | url: `/strandedWire/deleteWireOutput${queryString}`, |
| | | method: "DELETE", |
| | | }); |
| | | }, |
| | | |
| | | // 获取绞线自检基本信息 |
| | | getStrandedWireInspectionRecordStyleByWireId(params: { wireId: number | string }) { |
| | | return request<BaseResult<any>>({ |
| | | url: `/wireInspection/getStrandedWireInspectionRecordStyleByWireId`, |
| | | method: "GET", |
| | | data: params, |
| | | }); |
| | | }, |
| | | |
| | | // 获取绞线自检列表 |
| | | getStrandedInspectionInfoByWireId(params: { wireId: number | string }) { |
| | | return request<BaseResult<any>>({ |
| | | url: `/wireInspection/getStrandedInspectionInfoByWireId`, |
| | | method: "GET", |
| | | data: params, |
| | | }); |
| | | }, |
| | | |
| | | // 保存绞线自检基本信息 |
| | | saveStrandedWireInspectionFixedRecord(data: any) { |
| | | return request<BaseResult<any>>({ |
| | | url: `/wireInspection/saveStrandedWireInspectionFixedRecord`, |
| | | method: "POST", |
| | | data: data, |
| | | }); |
| | | }, |
| | | |
| | | // 保存绞线自检工艺记录 |
| | | saveStrandedWireInspectionStructureRecord(data: any) { |
| | | return request<BaseResult<any>>({ |
| | | url: `/wireInspection/saveStrandedWireInspectionStructureRecord`, |
| | | method: "POST", |
| | | data: data, |
| | | }); |
| | | }, |
| | | |
| | | // 删除绞线自检工艺记录 |
| | | deleteStrandedWireInspectionStructureRecord(id: number) { |
| | | return request<BaseResult<any>>({ |
| | | url: `/wireInspection/deleteStrandedWireInspectionStructureRecord/${id}`, |
| | | method: "POST", |
| | | }); |
| | | }, |
| | | |
| | | // 验证变更 |
| | | verifyChanges(params: { projectId: number | string }) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/wireOutput/verifyChanges", |
| | | method: "GET", |
| | | data: params, |
| | | }); |
| | | }, |
| | | }; |
| | | |
| | | export default TwistApi; |