diff --git a/package.json b/package.json index 7bf140e..52ce20d 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "axios": "1.5.0", "clipboard": "2.0.11", "colord": "2.9.3", + "bignumber.js": "^9.1.2", "crypto-js": "4.1.1", "dayjs": "1.11.10", "echarts": "^5.6.0", diff --git a/src/router/routes/modules/produce.ts b/src/router/routes/modules/produce.ts index 00df0a7..580bede 100644 --- a/src/router/routes/modules/produce.ts +++ b/src/router/routes/modules/produce.ts @@ -10,6 +10,17 @@ export const produce: AuthRoute.Route[] = [ hide: true } }, + { + name: 'storage_auxiliaryProduceinfo', + path: '/storage/auxiliaryProduceinfo', + component: 'self', + meta: { + title: '单据详情', + singleLayout: 'blank', + icon: 'tdesign:houses', + hide: true + } + }, { name: 'produce_report', path: '/produce/report', diff --git a/src/service/api/system/management.ts b/src/service/api/system/management.ts index adaa71c..8c8d7d4 100644 --- a/src/service/api/system/management.ts +++ b/src/service/api/system/management.ts @@ -7,3 +7,7 @@ export const fetchUserList = async query => { const { rows, total } = await request.get('/system/user/list', query); return { rows, total }; }; + +export const allUserList = params => { + return request.get('/system/user/selectAll', { params }); +}; diff --git a/src/service/api/wms/MYWMS.ts b/src/service/api/wms/MYWMS.ts new file mode 100644 index 0000000..993b5d0 --- /dev/null +++ b/src/service/api/wms/MYWMS.ts @@ -0,0 +1,498 @@ +declare namespace wms { + namespace locationRawType { + interface columns { + hasChildren?: boolean; + locationId: string | null; // 库区ID + + locationCode: string | null; // 库区编码 + + locationName: string | null; // 库区名称 + + warehouseId: string | null; // 仓库ID + + area: string | null; // 面积 + + areaFlag: string | null; // 是否开启库位管理 + + remark: string | null; // 备注 + + attr1: string | null; // 预留字段1 + + attr2: string | null; // 预留字段2 + + attr3: string | null; // 预留字段3 + + attr4: string | null; // 预留字段4 + + createBy: string | null; // 创建者 + + createTime: number | null; // 创建时间 + + updateBy: string | null; // 更新者 + + updateTime: number | null; // 更新时间 + } + } + namespace areaRawType { + interface columns { + areaId: string | null; // 库位ID + + areaCode: string | null; // 库位编码 + + areaName: string | null; // 库位名称 + + locationId: string | null; // 库区ID + + area: string | null; // 面积 + + maxLoa: string | null; // 最大载重量 + + positionX: number | null; // 库位位置X + + positionY: number | null; // 库位位置y + + positionZ: number | null; // 库位位置z + + enableFlag: string | undefined; // 是否启用 + + remark: string | null; // 备注 + + attr1: string | null; // 预留字段1 + + attr2: string | null; // 预留字段2 + + attr3: string | null; // 预留字段3 + + attr4: string | null; // 预留字段4 + + createBy: string | null; // 创建者 + + createTime: number | null; // 创建时间 + + updateBy: string | null; // 更新者 + + updateTime: number | null; // 更新时间 + } + } + namespace recptRawType { + interface columns { + quantitySavedTemp?: string | number | null; + workstationId?: string | number | null; + workstageId?: string | number | null; + workstageCode?: string | number | null; + workstationCode?: string | number | null; + workstationName?: string | null; + workstageName?: string | null; + lineList?: recptLineRawType.columns[]; + quantitySaved?: string | number | null; + weightSaved?: string | null | number; + quantityRecived?: string | number | null; + weightRecived?: string | number | null; + iqcId?: null | number | string; + iqcCode?: null | number | string; + poCode: null | string; + recptId: string | null; // 入库单ID + + recptCode: string | null; // 入库单编号 + + recptName: string | null; // 入库单名称 + + vendorId: string | null; // 供应商ID + + vendorCode: string | null; // 供应商编码 + + vendorName: string | null; // 供应商名称 + + vendorNick?: string | null; // 供应商简称 + + warehouseId: string | null; // 仓库ID + + warehouseCode: string | null; // 仓库编码 + + warehouseName: string | null; // 仓库名称 + + locationId: string | null; // 库区ID + + locationCode: string | null; // 库区编码 + + locationName: string | null; // 库区名称 + + areaId: string | null; // 库位ID + + areaCode: string | null; // 库位编码 + + areaName: string | null; // 库位名称 + + recptDate: number | null; // 入库日期 + + status: string | null; // 单据状态 + + remark: string | null; // 备注 + + attr1: string | null; // 预留字段1 + + attr2: string | null; // 预留字段2 + + attr3: string | null; // 预留字段3 + + attr4: string | null; // 预留字段4 + + createBy?: string | null; // 创建者 + + createTime?: number | null; // 创建时间 + + updateBy?: string | null; // 更新者 + + updateTime?: number | null; // 更新时间 + + type?: string | null; // 单据类型 + + fromBillId?: string | null; // 来源单据ID + + fromBillCode?: string | null; // 来源单据编码 + + fromBillName?: string | null; // 来源单据名称 + + snidCode?: string | null; // 二级节点标识 + + createByNick?: string | null; // 创建者名称 + + manageBy?: string | null; // 保管人 + + manageByNick?: string | null; // 保管人简称 + + headBy?: string | null; // 负责人 + + headByNick?: string | null; // 负责人简称 + + salseDeptId?: string | null; // 业务部门 + + salseDeptName?: string | null; // 业务部门名称 + + salseBy?: string | null; // 业务员 + + salseByNick?: string | null; // 业务员名称 + } + } + namespace recptLineRawType { + interface columns { + quantitySavedTemp?: string | null; + weightSavedTemp?: string | null; + // weightSaved?: string | null; + lineId: string | null; // 行ID + + recptId: number | string | null; // 入库单ID + + itemId: string | null; // 产品物料ID + + itemCode: string | null; // 产品物料编码 + + itemName: string | null; // 产品物料名称 + + specification: string | null; // 规格型号 + + unitOfMeasure: string | null; // 单位 + + quantityRecived: string | null; // 应入数量 + + quantityChecked: string | null; // 验收数量 + + quantitySaved: string | null; // 上架数量 + + batchCode: string | null; // 入库批次号 + + warehouseId: string | null; // 仓库ID + + warehouseCode: string | null; // 仓库编码 + + warehouseName: string | null; // 仓库名称 + + locationId: string | null; // 库区ID + + locationCode: string | null; // 库区编码 + + locationName: string | null; // 库区名称 + + areaId: string | null; // 库位ID + + areaCode: string | null; // 库位编码 + + areaName: string | null; // 库位名称 + + expireDate: number | null; // 有效期 + + remark: string | null; // 备注 + + attr1: string | null; // 预留字段1 + + attr2: string | null; // 预留字段2 + + attr3: string | null; // 预留字段3 + + attr4: string | null; // 预留字段4 + + createBy: string | null; // 创建者 + + createTime: number | null; // 创建时间 + + updateBy: string | null; // 更新者 + + updateTime: number | null; // 更新时间 + + iqcId: string | null; // 来料检验单ID + + iqcCode: string | null; // 来料检验单编号 + + weight: string | number | null; // 净重 + + weightRecived: number | null; // 应入重量 + + totalWeight: number | null; // 毛重 + + weightUnit: string | null; // 重量单位 + + containerCode: string | null; // 容器码 + } + } + + namespace issueHeaderRawType { + interface columns { + recordId?: string | null; + issueId: string | null; // 领料单ID + + issueCode: string | null; // 领料单编号 + + issueName: string | null; // 领料单名称 + + warehouseId: string | null; // 仓库ID + + warehouseCode: string | null; // 仓库编码 + + warehouseName: string | null; // 仓库名称 + + locationId: string | null; // 库区ID + + locationCode: string | null; // 库区编码 + + locationName: string | null; // 库区名称 + + areaId: string | null; // 库位ID + + areaCode: string | null; // 库位编码 + + areaName: string | null; // 库位名称 + + issueDate: number | null; // 出库日期 + + fromBillId: string | null; // 生产工单id + + fromBillCode: string | null; // 来源单据编号 + + clientId: string | null; // 客户id + + clientCode: string | null; // 客户编码 + + clientName: string | null; // 客户名称 + + vendorId: string | null; // 供应商id + + vendorCode: string | null; // 供应商编码 + + vendorName: string | null; // 供应商名称 + + type: string | null; // 单据类型 + + status: string | null; // 单据状态 + + remark: string | null; // 备注 + + attr1: string | null; // 预留字段1 + + attr2: string | null; // 预留字段2 + + attr3: string | null; // 预留字段3 + + attr4: string | null; // 预留字段4 + + createBy: string | null; // 创建者 + + createTime: number | null; // 创建时间 + + updateBy: string | null; // 更新者 + + updateTime: number | null; // 更新时间 + + snidCode: string | null; // 二级节点标识 + + createByNick: string | null; // + lineList?: []; + + pickerUserId: string | null; // 领料人 + + pickerUserName: string | null; // 领料人名称 + + saleOrderId: string | null; // 销售订单ID + + workstationId: string | null; // 机台id + + workstationCode: string | null; // 机台编码 + + workstationName: string | null; // 机台名称 + + version: string | null; // 乐观锁 + + workstageId: string | null; // 工序id + + workstageName: string | null; // 工序名称 + + workstageCode: string | null; // 工序code + } + } + + namespace issueLineRawType { + interface columns { + lineId: string | null; // 行ID + + issueId: string | null; // 领料单ID + + materialStockId: string | null; // 库存ID + + itemId: string | null; // 产品物料ID + + itemTypeId: string | null; // 产品物料类别ID + + itemTypeName: string | null; // 产品物料类别名称 + + itemCode: string | null; // 产品物料编码 + + itemName: string | null; // 产品物料名称 + + specification: string | null; // 规格型号 + + unitOfMeasure: string | null; // 单位 + + quantityIssued: string | null; // 已领数量 + + quantityIssueing: string | null; // 应领数量 + + quantityOnHand: string | null; // 在库数量 + weightOnHand: string | null; // 在库数量 + + batchCode: string | null; // 领料批次号 + + containerCode: string | null; // 容器码 + + warehouseId: string | null; // 仓库ID + + warehouseCode: string | null; // 仓库编码 + + warehouseName: string | null; // 仓库名称 + + locationId: string | null; // 库区ID + + locationCode: string | null; // 库区编码 + + locationName: string | null; // 库区名称 + + areaId: string | null; // 库位ID + + areaCode: string | null; // 库位编码 + + areaName: string | null; // 库位名称 + + remark: string | null; // 备注 + + attr1: string | null; // 预留字段1 + + attr2: string | null; // 预留字段2 + + attr3: string | null; // 预留字段3 + + attr4: string | null; // 预留字段4 + + createBy: string | null; // 创建者 + + createTime: number | null; // 创建时间 + + updateBy: string | null; // 更新者 + + updateTime: number | null; // 更新时间 + + iqcId: string | null; // 来料检验单ID + + iqcCode: string | null; // 来料检验单编号 + + totalWeight: string | null; // 毛重量 + + weightUnit: string | null; // 重量单位 + + weight: string | null; // 净重量 + } + } + + namespace auxiliaryApplyOrderRawType { + interface columns { + orderId: string | null; // 申请单ID + + orderCode: string | null; // 申请单编码 + + orderName: string | null; // 申请单名称 + + itemId: string | null; // 物料ID + + itemCode: string | null; // 物料编码 + + itemName: string | null; // 物料名称 + + specification: string | null; // 规格型号 + + itemTypeId: string | null; // 物料类别ID + + itemTypeName: string | null; // 物料类别 + + quantitySaved: string | null; // 领用数量 + + weightSaved: string | null; // 领用重量 + + unitOfMeasure: string | null; // 单位 + + weightUnit: string | null; // 重量单位 + + fromType: string | null; // 类型 + + applyUserId: string | null; // 领用人id + + examineUserId: string | null; // 审核人id + + applyUserName: string | null; // 领用人姓名 + + examineUserName: string | null; // 审核人姓名 + + examineTime: number | null; // 审核时间 + + receiveTime: number | null; // 领用时间 + + status: string | null; // 状态:PREPARE:待审核 PASS:确认,REJECT:拒绝 + + remark: string | null; // 备注 + + rejectResult: string | null; // 拒绝原因 + + attr1: string | null; // 预留字段1 + + attr2: string | null; // 预留字段2 + + attr3: string | null; // 预留字段3 + + attr4: string | null; // 预留字段4 + + createBy: string | null; // 创建者 + + createTime: number | null; // 创建时间 + + updateBy: string | null; // 更新者 + + updateTime: number | null; // 更新时间 + } + } +} diff --git a/src/service/api/wms/recpt.ts b/src/service/api/wms/recpt.ts new file mode 100644 index 0000000..71df9cf --- /dev/null +++ b/src/service/api/wms/recpt.ts @@ -0,0 +1,38 @@ +import { request } from '../../request'; + +const prefix = `/wms/wms/recpt/`; +// ${functions}列表} +export function selectWmsItemRecptList(data: any) { + return request.get(`${prefix}list`, data); +} +// 查询所有${functions} +export function selectAllWmsItemRecptList(data: any) { + return request.get(`${prefix}selectAll`, data); +} + +// 执行入库 +export function executeWmsItemRecpt(data: any) { + return request.post(`${prefix}execute`, data); +} + +export function exportWmsItemRecpt(data: any) { + return request.get(`${prefix}export`, data); +} +export function getWmsItemRecpt(id: string | number) { + return request.get(`${prefix}${id}`); +} + +// 新增 +export function addWmsItemRecpt(data: any) { + return request.post(`${prefix}add`, data); +} + +// 编辑 +export function editWmsItemRecpt(data: any) { + return request.post(`${prefix}edit`, data); +} + +// 删除 +export function delWmsItemRecpt(ids: string | number) { + return request.post(`${prefix}remove/${ids}`); +} diff --git a/src/service/api/wms/recptLine.ts b/src/service/api/wms/recptLine.ts new file mode 100644 index 0000000..b79938b --- /dev/null +++ b/src/service/api/wms/recptLine.ts @@ -0,0 +1,33 @@ +import { request } from '../../request'; + +const prefix = `/wms/wms/recptLine/`; +// ${functions}列表} +export function selectWmsItemRecptLineList(data: any) { + return request.get(`${prefix}list`, data); +} +// 查询所有${functions} +export function selectAllWmsItemRecptLineList(data: any) { + return request.get(`${prefix}selectAll`, data); +} + +export function exportWmsItemRecptLine(data: any) { + return request.get(`${prefix}export`, data); +} +export function getWmsItemRecptLine(id: string | number) { + return request.get(`${prefix}${id}`); +} + +// 新增 +export function addWmsItemRecptLine(data: any) { + return request.post(`${prefix}add`, data); +} + +// 编辑 +export function editWmsItemRecptLine(data: any) { + return request.post(`${prefix}edit`, data); +} + +// 删除 +export function delWmsItemRecptLine(ids: string | number) { + return request.post(`${prefix}remove/${ids}`); +} diff --git a/src/service/api/wms/warehouse.ts b/src/service/api/wms/warehouse.ts new file mode 100644 index 0000000..019da66 --- /dev/null +++ b/src/service/api/wms/warehouse.ts @@ -0,0 +1,64 @@ +import { request } from '../../request'; + +/** + * 仓库列表 + */ +export async function list(reqBody: any) { + // console.log('reqBody', reqBody); + const data = await request.get(`/wms/wms/warehouse/list`, { params: reqBody }); + return data; +} + +/** + * 所有仓库记录 + */ +export async function getlist(reqBody: any) { + const data = await request.get(`/wms/wms/warehouse/getlist`, reqBody); + return data; +} + +export async function getWorksstationIds() { + const data = await request.get(`/wms/wms/warehouse/getWorksstationIds`, {}); + return data; +} +/** + * 仓库新增 + */ +export async function add(reqBody: object) { + const data = await request.post(`/wms/wms/warehouse`, reqBody); + return data; +} + +/** + * 详情 + */ +export async function getInfo(warehouseId: number) { + const data = await request.get(`/wms/wms/warehouse/${warehouseId}`, {}); + return data; +} + +/** + * 更新 + */ +export async function update(reqBody: object) { + const data = await request.put(`/wms/wms/warehouse`, reqBody); + return data; +} + +/** + * 删除 + */ +export async function deleteInfo(warehouseId: number) { + const data = await request.delete(`/wms/wms/warehouse/${warehouseId}`, {}); + return data; +} + +// 根据仓库id获取库区库位列表 +export function getWarehouseAreaList(warehouseId: number) { + return request.get(`/wms/wms/warehouse/getTreeList`, { params: { warehouseId } }); +} + +// 获取所有的仓库信息 +export function getAllWarehouseList() { + return request.get(`/wms/wms/warehouse/getlist`); +} diff --git a/src/service/api/wms/wms.ts b/src/service/api/wms/wms.ts index 5f9ff65..e9fde03 100644 --- a/src/service/api/wms/wms.ts +++ b/src/service/api/wms/wms.ts @@ -4,39 +4,39 @@ import { request } from '../../request'; * 库存记录列表 */ export async function fetchMaterialStockList(reqBody: any) { - console.log(reqBody); - const data = await request.get(`/wms/mes/wm/wmstock/list`, reqBody); - return data; + console.log(reqBody); + const data = await request.get(`/wms/mes/wm/wmstock/list`, reqBody); + return data; } /** * 库存记录详情 */ export async function fetchMaterialStockInfo(materialStockId: number) { - const data = await request.get(`/wms/mes/wm/wmstock/${materialStockId}`, {}); - return data; + const data = await request.get(`/wms/mes/wm/wmstock/${materialStockId}`, {}); + return data; } /** * 库存记录更新 */ export async function updateMaterialStock(reqBody: object) { - const data = await request.put(`/wms/mes/wm/wmstock`, reqBody); - return data; + const data = await request.put(`/wms/mes/wm/wmstock`, reqBody); + return data; } /** * 库存记录删除 */ export async function deleteMaterialStock(materialStockId: number) { - const data = await request.delete(`/wms/mes/wm/wmstock/${materialStockId}`, {}); - return data; + const data = await request.delete(`/wms/mes/wm/wmstock/${materialStockId}`, {}); + return data; } /** * 库存记录新增 */ export async function addMaterialStock(reqBody: object) { - const data = await request.post(`/wms/mes/wm/wmstock`, reqBody); - return data; + const data = await request.post(`/wms/mes/wm/wmstock`, reqBody); + return data; } diff --git a/src/views/auxiliaryProduceinfo/components/table-action-modal.vue b/src/views/auxiliaryProduceinfo/components/table-action-modal.vue new file mode 100644 index 0000000..084ae20 --- /dev/null +++ b/src/views/auxiliaryProduceinfo/components/table-action-modal.vue @@ -0,0 +1,351 @@ + + + + + diff --git a/src/views/auxiliaryProduceinfo/index.vue b/src/views/auxiliaryProduceinfo/index.vue new file mode 100644 index 0000000..881802a --- /dev/null +++ b/src/views/auxiliaryProduceinfo/index.vue @@ -0,0 +1,691 @@ + + + diff --git a/src/views/procure/procureOrder/index.vue b/src/views/procure/procureOrder/index.vue index 8545024..03f591b 100644 --- a/src/views/procure/procureOrder/index.vue +++ b/src/views/procure/procureOrder/index.vue @@ -1,37 +1,37 @@ diff --git a/src/views/rawProduceIn/components/table-action-modal.vue b/src/views/rawProduceIn/components/table-action-modal.vue new file mode 100644 index 0000000..d1be3a2 --- /dev/null +++ b/src/views/rawProduceIn/components/table-action-modal.vue @@ -0,0 +1,367 @@ + + + + + diff --git a/src/views/rawProduceIn/index.vue b/src/views/rawProduceIn/index.vue new file mode 100644 index 0000000..27313ec --- /dev/null +++ b/src/views/rawProduceIn/index.vue @@ -0,0 +1,377 @@ + + +