| | |
| | | }); |
| | | }, |
| | | |
| | | // 单丝领用扫码(按单丝编号) |
| | | getScarnTag(params: { monofilamentNumber: string; twistId: number | string }) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/app/scarnTag", |
| | | method: "GET", |
| | | data: params, |
| | | }); |
| | | }, |
| | | |
| | | // 拉丝二维码查询 |
| | | 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: "POST", |
| | | data: data, |
| | | }); |
| | | }, |
| | | |
| | | // 盘具称重台账分页查询(扫码领用盘具时按称重编号取台账数据) |
| | | queryBobbinWeighingPage(params: { |
| | | current?: number; |
| | | size?: number; |
| | | weighingCode?: string; |
| | | specificationModel?: string; |
| | | diskMaterial?: string; |
| | | received?: number | string; |
| | | }) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/bobbinWeighing/queryPage", |
| | | method: "GET", |
| | | data: params, |
| | | }); |
| | | }, |
| | | |
| | |
| | | return request<BaseResult<any>>({ |
| | | url: "/app/getStrandedWireDishTypeByWire", |
| | | method: "GET", |
| | | data: params, |
| | | }); |
| | | }, |
| | | |
| | | // 获取钢芯领用层级数据(参照PC端 getSteelCoreDishTypeByWire) |
| | | getSteelCoreDishTypeByWire(wireId: number) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/strandedWire/getSteelCoreDishTypeByWire", |
| | | method: "POST", |
| | | data: wireId, |
| | | }); |
| | | }, |
| | | |
| | | // 查询可领用的原材料批次(与 PC 端钢芯领用使用同一接口) |
| | | getMaterialBatchStockPage(params: { |
| | | current?: number; |
| | | size?: number; |
| | | batchCode?: string; |
| | | materialType?: string; |
| | | }) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/material/batch/list", |
| | | method: "POST", |
| | | data: params, |
| | | }); |
| | | }, |
| | |
| | | }); |
| | | }, |
| | | |
| | | // 新增单丝领用检查 |
| | | // 新增绞线单丝领用检查 |
| | | addSingleDishInspection(data: any) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/wireInspection/saveSingleDishInspection", |
| | |
| | | data: data, |
| | | }); |
| | | }, |
| | | |
| | | // 删除单丝领用 |
| | | deleteStrandedWireDish(id: number) { |
| | | return request<BaseResult<any>>({ |
| | | url: `/strandedWire/deleteStrandedWireDish/${id}`, |
| | | 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; |