From 7030154e1e691f8043eb55eb1c4d3d5d48723f60 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Thu, 20 Oct 2022 16:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D4=E4=B8=AA=E6=A8=A1=E5=9D=97=E7=9A=84?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/art-manage/art.js | 126 +++++ src/api/art-manage/process.js | 49 ++ src/api/art-manage/processFlow.js | 159 ++++++ .../basicData/AlarmManagement/alarmInfo.js | 55 ++ .../basicData/AlarmManagement/alarmLevel.js | 55 ++ .../basicData/AlarmManagement/alarmType.js | 55 ++ src/api/basicData/Cache/area.js | 143 +++++ src/api/basicData/Cache/cache-stocks.js | 25 + src/api/basicData/Cache/cache.js | 132 +++++ src/api/basicData/Cache/inventory.js | 41 ++ src/api/basicData/Cache/location.js | 101 ++++ src/api/basicData/Cache/shelf.js | 143 +++++ src/api/basicData/Cache/storage.js | 195 +++++++ src/api/basicData/Cache/storageBox.js | 70 +++ src/api/basicData/CodeRules.js | 55 ++ src/api/basicData/CodeRulesAttr.js | 55 ++ .../basicData/CustomerSupplier/customer.js | 99 ++++ .../basicData/CustomerSupplier/supplier.js | 102 ++++ src/api/basicData/Equipment/equipmentAlarm.js | 55 ++ .../basicData/Equipment/equipmentAlarmAttr.js | 55 ++ .../Equipment/equipmentDetectArea.js | 63 +++ .../Equipment/equipmentDetectAreaAttr.js | 56 ++ .../Equipment/equipmentDetectAreaSystem.js | 56 ++ .../equipmentDetectAreaSystemAttr.js | 56 ++ .../Equipment/equipmentDetectParam.js | 56 ++ .../Equipment/equipmentDetectSystem.js | 55 ++ src/api/basicData/Equipment/equipmentGroup.js | 158 ++++++ src/api/basicData/Equipment/equipmentInfo.js | 291 ++++++++++ .../basicData/Equipment/equipmentInfoAttr.js | 92 ++++ src/api/basicData/Equipment/equipmentLink.js | 72 +++ .../basicData/Equipment/equipmentLinkAttr.js | 55 ++ src/api/basicData/Equipment/equipmentType.js | 149 ++++++ .../basicData/Equipment/maintenanceCycle.js | 89 ++++ .../basicData/Equipment/maintenanceType.js | 94 ++++ src/api/basicData/Equipment/spareParts.js | 117 ++++ src/api/basicData/EquipmentScrapGrade.js | 48 ++ .../basicData/FactoryManagement/factory.js | 58 ++ src/api/basicData/FactoryManagement/line.js | 55 ++ .../basicData/FactoryManagement/section.js | 122 +++++ src/api/basicData/GroupModule/department.js | 127 +++++ src/api/basicData/GroupModule/group.js | 209 ++++++++ src/api/basicData/GroupModule/groupAttr.js | 109 ++++ src/api/basicData/GroupModule/major.js | 92 ++++ src/api/basicData/GroupModule/shift.js | 91 ++++ src/api/basicData/GroupModule/staff.js | 155 ++++++ src/api/basicData/Materials/material.js | 140 +++++ src/api/basicData/Materials/materialAttr.js | 55 ++ src/api/basicData/Materials/materialsType.js | 55 ++ src/api/basicData/ProductAttr.js | 92 ++++ src/api/basicData/ProductDelivery/car.js | 118 ++++ src/api/basicData/ProductDelivery/load.js | 103 ++++ src/api/basicData/ProductDelivery/meta.js | 131 +++++ src/api/basicData/ProductDelivery/process.js | 72 +++ src/api/basicData/ProductPool.js | 185 +++++++ src/api/basicData/Scrap/ScrapInfo.js | 110 ++++ src/api/basicData/Scrap/ScrapType.js | 58 ++ src/api/basicData/ScrapInfo.js | 55 ++ src/api/basicData/StateConfig.js | 55 ++ src/api/basicData/dataDict.js | 194 +++++++ src/api/basicData/dataDictionary.js | 48 ++ src/api/basicData/dataDictionaryType.js | 107 ++++ src/api/basicData/visual.js | 90 ++++ src/api/dict/index.js | 502 ++++++++++++++++++ src/api/equipment/bom.js | 110 ++++ src/api/equipment/eqManager.js | 80 +++ src/api/equipment/equipmentParams.js | 18 + src/api/equipment/index.js | 27 + src/api/equipment/inspectionManager.js | 199 +++++++ src/api/equipment/knowledge.js | 53 ++ src/api/equipment/maintain.js | 161 ++++++ src/api/equipment/monitoring.js | 17 + src/api/equipment/param.js | 187 +++++++ src/api/equipment/process.js | 16 + src/api/equipment/recipe.js | 108 ++++ src/api/equipment/repair.js | 115 ++++ src/api/equipment/spare.js | 152 ++++++ src/api/factory-manage/abnormalAlarm.js | 62 +++ src/api/factory-manage/equipmentAlarm.js | 64 +++ src/api/factory-manage/equipmentMonitoring.js | 49 ++ src/api/factory-manage/realtimeData.js | 58 ++ src/api/material-manage/batch.js | 143 +++++ src/api/material-manage/bom-list.js | 41 ++ src/api/material-manage/bom.js | 55 ++ src/api/material-manage/currentConsume.js | 24 + src/api/material-manage/historyConsume.js | 24 + src/api/material-manage/material.js | 22 + src/api/material-manage/refueling.js | 161 ++++++ src/api/material-manage/report.js | 26 + src/api/material-manage/usageRecord.js | 159 ++++++ src/api/orderManage/erpToMes.js | 40 ++ src/api/orderManage/fee/fee.js | 72 +++ src/api/orderManage/infoTrack/infoTrack.js | 54 ++ src/api/orderManage/order/order.js | 90 ++++ src/api/orderManage/powerClassification.js | 66 +++ src/api/orderManage/substrateBatch.js | 58 ++ src/api/orderManage/substrateBatchAttr.js | 58 ++ src/api/orderManage/workOrder/workOrder.js | 237 +++++++++ src/api/packing-manage/PackingCost.js | 165 ++++++ src/api/packing-manage/PackingList.js | 186 +++++++ .../packing-manage/PackingListMaterialDate.js | 118 ++++ src/api/packing-manage/packing-label.js | 42 ++ src/api/quality-manage/detecParam.js | 63 +++ src/api/quality-manage/detecRegistration.js | 56 ++ src/api/quality-manage/finishedInspection.js | 202 +++++++ src/api/quality-manage/inspection.js | 177 ++++++ src/api/quality-manage/knowledge.js | 48 ++ src/api/quality-manage/plan.js | 109 ++++ src/api/quality-manage/record.js | 180 +++++++ src/api/quality-manage/retrospect.js | 198 +++++++ src/api/quality-manage/scrap.js | 66 +++ src/api/quality-manage/scrapInfo.js | 66 +++ src/api/team-manage/shift.js | 90 ++++ src/api/team-manage/team-plan.js | 105 ++++ src/api/team-manage/team.js | 133 +++++ src/api/team-manage/teamInfo.js | 68 +++ src/icons/svg/table_cancellation.svg | 17 + src/icons/svg/table_complete.svg | 17 + src/lang/i18n.js | 8 + src/lang/i18n/zh/btn/index.js | 8 + src/views/wmsInStore/acceptGoods.vue | 174 +++++- .../wmsInStore/components/accetpGoodsAdd.vue | 93 ++++ .../components/inStoreDocumentsAdd.vue | 97 ++++ src/views/wmsInStore/inStoreDocuments.vue | 179 ++++++- src/views/wmsInStore/warehouseOperation.vue | 126 ++++- .../wmsInventoryManagement/inventory.vue | 108 +++- .../wmsInventoryManagement/inventoryQuery.vue | 150 +++++- .../wmsInventoryManagement/locationQuery.vue | 136 ++++- .../wmsInventoryManagement/stockTaking.vue | 144 ++++- .../components/outStoreDocumentsAdd.vue | 88 +++ src/views/wmsOutStore/outStoreDocuments.vue | 177 +++++- src/views/wmsOutStore/outStoreOperation.vue | 176 +++++- .../wmsStatisticalReports/inventoryReport.vue | 132 ++++- .../wmsStatisticalReports/outStoreReport.vue | 132 ++++- 133 files changed, 13283 insertions(+), 22 deletions(-) create mode 100644 src/api/art-manage/art.js create mode 100644 src/api/art-manage/process.js create mode 100644 src/api/art-manage/processFlow.js create mode 100644 src/api/basicData/AlarmManagement/alarmInfo.js create mode 100644 src/api/basicData/AlarmManagement/alarmLevel.js create mode 100644 src/api/basicData/AlarmManagement/alarmType.js create mode 100644 src/api/basicData/Cache/area.js create mode 100644 src/api/basicData/Cache/cache-stocks.js create mode 100644 src/api/basicData/Cache/cache.js create mode 100644 src/api/basicData/Cache/inventory.js create mode 100644 src/api/basicData/Cache/location.js create mode 100644 src/api/basicData/Cache/shelf.js create mode 100644 src/api/basicData/Cache/storage.js create mode 100644 src/api/basicData/Cache/storageBox.js create mode 100644 src/api/basicData/CodeRules.js create mode 100644 src/api/basicData/CodeRulesAttr.js create mode 100644 src/api/basicData/CustomerSupplier/customer.js create mode 100644 src/api/basicData/CustomerSupplier/supplier.js create mode 100644 src/api/basicData/Equipment/equipmentAlarm.js create mode 100644 src/api/basicData/Equipment/equipmentAlarmAttr.js create mode 100644 src/api/basicData/Equipment/equipmentDetectArea.js create mode 100644 src/api/basicData/Equipment/equipmentDetectAreaAttr.js create mode 100644 src/api/basicData/Equipment/equipmentDetectAreaSystem.js create mode 100644 src/api/basicData/Equipment/equipmentDetectAreaSystemAttr.js create mode 100644 src/api/basicData/Equipment/equipmentDetectParam.js create mode 100644 src/api/basicData/Equipment/equipmentDetectSystem.js create mode 100644 src/api/basicData/Equipment/equipmentGroup.js create mode 100644 src/api/basicData/Equipment/equipmentInfo.js create mode 100644 src/api/basicData/Equipment/equipmentInfoAttr.js create mode 100644 src/api/basicData/Equipment/equipmentLink.js create mode 100644 src/api/basicData/Equipment/equipmentLinkAttr.js create mode 100644 src/api/basicData/Equipment/equipmentType.js create mode 100644 src/api/basicData/Equipment/maintenanceCycle.js create mode 100644 src/api/basicData/Equipment/maintenanceType.js create mode 100644 src/api/basicData/Equipment/spareParts.js create mode 100644 src/api/basicData/EquipmentScrapGrade.js create mode 100644 src/api/basicData/FactoryManagement/factory.js create mode 100644 src/api/basicData/FactoryManagement/line.js create mode 100644 src/api/basicData/FactoryManagement/section.js create mode 100644 src/api/basicData/GroupModule/department.js create mode 100644 src/api/basicData/GroupModule/group.js create mode 100644 src/api/basicData/GroupModule/groupAttr.js create mode 100644 src/api/basicData/GroupModule/major.js create mode 100644 src/api/basicData/GroupModule/shift.js create mode 100644 src/api/basicData/GroupModule/staff.js create mode 100644 src/api/basicData/Materials/material.js create mode 100644 src/api/basicData/Materials/materialAttr.js create mode 100644 src/api/basicData/Materials/materialsType.js create mode 100644 src/api/basicData/ProductAttr.js create mode 100644 src/api/basicData/ProductDelivery/car.js create mode 100644 src/api/basicData/ProductDelivery/load.js create mode 100644 src/api/basicData/ProductDelivery/meta.js create mode 100644 src/api/basicData/ProductDelivery/process.js create mode 100644 src/api/basicData/ProductPool.js create mode 100644 src/api/basicData/Scrap/ScrapInfo.js create mode 100644 src/api/basicData/Scrap/ScrapType.js create mode 100644 src/api/basicData/ScrapInfo.js create mode 100644 src/api/basicData/StateConfig.js create mode 100644 src/api/basicData/dataDict.js create mode 100644 src/api/basicData/dataDictionary.js create mode 100644 src/api/basicData/dataDictionaryType.js create mode 100644 src/api/basicData/visual.js create mode 100644 src/api/dict/index.js create mode 100644 src/api/equipment/bom.js create mode 100644 src/api/equipment/eqManager.js create mode 100644 src/api/equipment/equipmentParams.js create mode 100644 src/api/equipment/index.js create mode 100644 src/api/equipment/inspectionManager.js create mode 100644 src/api/equipment/knowledge.js create mode 100644 src/api/equipment/maintain.js create mode 100644 src/api/equipment/monitoring.js create mode 100644 src/api/equipment/param.js create mode 100644 src/api/equipment/process.js create mode 100644 src/api/equipment/recipe.js create mode 100644 src/api/equipment/repair.js create mode 100644 src/api/equipment/spare.js create mode 100644 src/api/factory-manage/abnormalAlarm.js create mode 100644 src/api/factory-manage/equipmentAlarm.js create mode 100644 src/api/factory-manage/equipmentMonitoring.js create mode 100644 src/api/factory-manage/realtimeData.js create mode 100644 src/api/material-manage/batch.js create mode 100644 src/api/material-manage/bom-list.js create mode 100644 src/api/material-manage/bom.js create mode 100644 src/api/material-manage/currentConsume.js create mode 100644 src/api/material-manage/historyConsume.js create mode 100644 src/api/material-manage/material.js create mode 100644 src/api/material-manage/refueling.js create mode 100644 src/api/material-manage/report.js create mode 100644 src/api/material-manage/usageRecord.js create mode 100644 src/api/orderManage/erpToMes.js create mode 100644 src/api/orderManage/fee/fee.js create mode 100644 src/api/orderManage/infoTrack/infoTrack.js create mode 100644 src/api/orderManage/order/order.js create mode 100644 src/api/orderManage/powerClassification.js create mode 100644 src/api/orderManage/substrateBatch.js create mode 100644 src/api/orderManage/substrateBatchAttr.js create mode 100644 src/api/orderManage/workOrder/workOrder.js create mode 100644 src/api/packing-manage/PackingCost.js create mode 100644 src/api/packing-manage/PackingList.js create mode 100644 src/api/packing-manage/PackingListMaterialDate.js create mode 100644 src/api/packing-manage/packing-label.js create mode 100644 src/api/quality-manage/detecParam.js create mode 100644 src/api/quality-manage/detecRegistration.js create mode 100644 src/api/quality-manage/finishedInspection.js create mode 100644 src/api/quality-manage/inspection.js create mode 100644 src/api/quality-manage/knowledge.js create mode 100644 src/api/quality-manage/plan.js create mode 100644 src/api/quality-manage/record.js create mode 100644 src/api/quality-manage/retrospect.js create mode 100644 src/api/quality-manage/scrap.js create mode 100644 src/api/quality-manage/scrapInfo.js create mode 100644 src/api/team-manage/shift.js create mode 100644 src/api/team-manage/team-plan.js create mode 100644 src/api/team-manage/team.js create mode 100644 src/api/team-manage/teamInfo.js create mode 100644 src/icons/svg/table_cancellation.svg create mode 100644 src/icons/svg/table_complete.svg create mode 100644 src/views/wmsInStore/components/accetpGoodsAdd.vue create mode 100644 src/views/wmsInStore/components/inStoreDocumentsAdd.vue create mode 100644 src/views/wmsOutStore/components/outStoreDocumentsAdd.vue diff --git a/src/api/art-manage/art.js b/src/api/art-manage/art.js new file mode 100644 index 0000000..fb7f034 --- /dev/null +++ b/src/api/art-manage/art.js @@ -0,0 +1,126 @@ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/process/process-flow/page', + method: 'post', + data + }) +} +export function getInfo(data) { + return request({ + url: '/process/process-flow/get', + method: 'post', + data + }) +} +export function enabled(data) { + return request({ + url: '/process/process-flow/enabled', + method: 'post', + data + }) +} +export function del(data) { + return request({ + url: '/process/process-flow/delete', + method: 'post', + data + }) +} +export function update(data) { + return request({ + url: '/process/process-flow/update', + method: 'post', + data + }) +} +export function add(data) { + return request({ + url: '/process/process-flow/add', + method: 'post', + data + }) +} +// 获取基板列表 +export function listSubstrate(data) { + return request({ + url: '/process/process-flow/substrateList', + method: 'post', + data + }) +} +// 获取BOM列表 +export function listBom(data) { + return request({ + url: '/process/process-flow/bomList', + method: 'post', + data + }) +} + +// 获取某个设备下的bom +export function listEquipmentBom(data) { + return request({ + url: 'process/process-flow-equipment/equipmentBomList', + method: 'post', + data + }) +} +// 获取所有设备的bom +export function listAllEquipmentBom(data) { + return request({ + url: '/process/process-flow-equipment/allEquipmentBomList', + method: 'post', + data + }) +} +// 获取某个设备下的配方 +export function listEquipmentRecipe(data) { + return request({ + url: 'process/process-flow-equipment/equipmentRecipeList', + method: 'post', + data + }) +} +// 获取所有设备下的配方 +export function listAllEquipmentRecipe(data) { + return request({ + url: '/process/process-flow-equipment/allEquipmentRecipeList', + method: 'post', + data + }) +} +// 保存某个工艺下的所有节点 +export function addProcessFlows(data) { + return request({ + url: 'process/process-flow-equipment/add', + method: 'post', + data + }) +} +// 获取工艺流程下所有节点 +export function listProcessFlowNode(data) { + return request({ + url: '/process/process-flow-equipment/list', + method: 'post', + data + }) +} + +// 获取工序列表 +export function listProcess(data) { + return request({ + url: '/process/work-sequence/list', + method: 'post', + data + }) +} + +// 获取工艺自动code +export function getCode() { + return request({ + url: '/process/process-flow/getCode', + method: 'post' + }) +} diff --git a/src/api/art-manage/process.js b/src/api/art-manage/process.js new file mode 100644 index 0000000..35cdf91 --- /dev/null +++ b/src/api/art-manage/process.js @@ -0,0 +1,49 @@ +/* + * @Author: gtz + * @Date: 2021-04-06 20:20:10 + * @LastEditors: gtz + * @LastEditTime: 2021-04-07 16:14:47 + * @Description: 工序管理 api + */ + +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/process/work-sequence/page', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/process/work-sequence/get', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/process/work-sequence/delete', + method: 'post', + data + }) +} + +export function update(data) { + return request({ + url: '/process/work-sequence/update', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/process/work-sequence/add', + method: 'post', + data + }) +} diff --git a/src/api/art-manage/processFlow.js b/src/api/art-manage/processFlow.js new file mode 100644 index 0000000..cf35e79 --- /dev/null +++ b/src/api/art-manage/processFlow.js @@ -0,0 +1,159 @@ +/* + * @Author: gtz + * @Date: 2021-04-06 20:20:10 + * @LastEditors: gtz + * @LastEditTime: 2021-04-07 16:14:47 + * @Description: 工艺流程 api + */ + +import request from '@/utils/request' + +/** + * 获取工艺分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} data.enabled + * @param {string} data.key // 查询关键字 + */ +export function list(data) { + return request({ + url: '/process/process-flow/page', + method: 'post', + data + }) +} + +/** + * 获取工艺详情 + * @param {string} id + */ +export function getInfo(data) { + return request({ + url: '/process/process-flow/get', + method: 'post', + data + }) +} + +/** + * 删除工艺 + * @param {string} id + */ +export function del(id) { + return request({ + url: '/process/process-flow/delete', + method: 'post', + data: { id } + }) +} + +/** + * 更新工艺 + * @param {object} data + * @param {number} data.bomId + * @param {string} data.code + * @param {number} data.description + * @param {string} data.externalCode + * @param {number} data.id + * @param {string} data.name + * @param {number} data.productId + * @param {number} data.remark + */ +export function update(data) { + return request({ + url: '/process/process-flow/update', + method: 'post', + data + }) +} + +/** + * 获取工艺 + * @param {object} data + * @param {number} data.bomId + * @param {string} data.code + * @param {number} data.description + * @param {string} data.externalCode + * @param {number} data.id + * @param {string} data.name + * @param {number} data.productId + * @param {number} data.remark + */ +export function add(data) { + return request({ + url: '/process/process-flow/add', + method: 'post', + data + }) +} + +/** + * 获取BOM列表 + */ +export function getBom() { + return request({ + url: '/process/process-flow/bomList', + method: 'POST' + }) +} + +/** + * 启停工艺 + * @param {object} data + * @param {number} data.enabled + * @param {number} data.id + */ +export function toggleEnabled(data) { + return request({ + url: '/process/process-flow/enabled', + method: 'POST', + data + }) +} + +/** + * 生成工艺编码 + */ +export function getCode() { + return request({ + url: '/process/process-flow/getCode', + method: 'post' + }) +} + +/** + * 获取产品列表 + */ +export function getProductList() { + return request({ + url: '/basic/product/page', + method: 'POST', + data: { + current: 1, + size: 999 + } + }) +} + +/** + * 获取工序列表 + */ +export function getWorkSequenceList(data) { + return request({ + url: '/process/work-sequence-equipment-type/getList', + method: 'POST', + data + }) +} + +/** + * 新增/删除/更新 工艺下的工序设备类型 + */ +export function modifyWorkSequence(data) { + return request({ + url: '/process/work-sequence-equipment-type/update', + method: 'POST', + data + }) +} diff --git a/src/api/basicData/AlarmManagement/alarmInfo.js b/src/api/basicData/AlarmManagement/alarmInfo.js new file mode 100644 index 0000000..e672d89 --- /dev/null +++ b/src/api/basicData/AlarmManagement/alarmInfo.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-02-01 10:58:22 + * @Description: + */ +import request from '@/utils/request' + +export function alarmInfoList(data) { // 获取报警信息信息列表 + return request({ + url: '/basic/alarm/page', + method: 'post', + data + }) +} + +export function alarmInfoDetail(id) { // 获取报警信息信息单条数据 + return request({ + url: '/basic/alarm/get', + method: 'post', + data: { id } + }) +} + +export function alarmInfoUpdate(data) { // 更新报警信息信息单条数据 + return request({ + url: '/basic/alarm/update', + method: 'post', + data + }) +} + +export function alarmInfoAdd(data) { // 新增报警信息信息单条数据 + return request({ + url: '/basic/alarm/add', + method: 'post', + data + }) +} + +export function alarmInfoCode() { // 获取报警信息信息code + return request({ + url: '/basic/alarm/get-code', + method: 'post' + }) +} + +export function alarmInfoDelete(id) { // 删除报警信息信息单条数据 + return request({ + url: '/basic/alarm/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/AlarmManagement/alarmLevel.js b/src/api/basicData/AlarmManagement/alarmLevel.js new file mode 100644 index 0000000..d674a00 --- /dev/null +++ b/src/api/basicData/AlarmManagement/alarmLevel.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-16 15:44:55 + * @Description: + */ +import request from '@/utils/request' + +export function alarmLevelList(data) { // 获取报警等级信息列表 + return request({ + url: '/basic/alarm-grade/page', + method: 'post', + data + }) +} + +export function alarmLevelDetail(id) { // 获取报警等级信息单条数据 + return request({ + url: '/basic/alarm-grade/get', + method: 'post', + data: { id } + }) +} + +export function alarmLevelUpdate(data) { // 更新报警等级信息单条数据 + return request({ + url: '/basic/alarm-grade/update', + method: 'post', + data + }) +} + +export function alarmLevelAdd(data) { // 新增报警等级信息单条数据 + return request({ + url: '/basic/alarm-grade/add', + method: 'post', + data + }) +} + +export function alarmLevelCode() { // 获取报警等级信息code + return request({ + url: '/basic/alarm-grade/get-code', + method: 'post' + }) +} + +export function alarmLevelDelete(id) { // 删除报警等级信息单条数据 + return request({ + url: '/basic/alarm-grade/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/AlarmManagement/alarmType.js b/src/api/basicData/AlarmManagement/alarmType.js new file mode 100644 index 0000000..11a91ea --- /dev/null +++ b/src/api/basicData/AlarmManagement/alarmType.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-16 15:45:10 + * @Description: + */ +import request from '@/utils/request' + +export function alarmTypeList(data) { // 获取报警类型信息列表 + return request({ + url: '/basic/alarm-type/page', + method: 'post', + data + }) +} + +export function alarmTypeDetail(id) { // 获取报警类型信息单条数据 + return request({ + url: '/basic/alarm-type/get', + method: 'post', + data: { id } + }) +} + +export function alarmTypeUpdate(data) { // 更新报警类型信息单条数据 + return request({ + url: '/basic/alarm-type/update', + method: 'post', + data + }) +} + +export function alarmTypeAdd(data) { // 新增报警类型信息单条数据 + return request({ + url: '/basic/alarm-type/add', + method: 'post', + data + }) +} + +export function alarmTypeCode() { // 获取报警类型信息code + return request({ + url: '/basic/alarm-type/get-code', + method: 'post' + }) +} + +export function alarmTypeDelete(id) { // 删除报警类型信息单条数据 + return request({ + url: '/basic/alarm-type/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Cache/area.js b/src/api/basicData/Cache/area.js new file mode 100644 index 0000000..005df6a --- /dev/null +++ b/src/api/basicData/Cache/area.js @@ -0,0 +1,143 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-03-18 10:42:27 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取区域信息列表 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + * @param {number|string} [data.cacheId] + */ +export function list(data) { + return request({ + url: '/basic/area/page', + method: 'post', + data + }) +} + +/** + * 获取区域信息单条数据 + * @param {number|string} id + */ +export function detail(id) { + return request({ + url: '/basic/area/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新区域信息单条数据 + * @param {object} data + * @param {number|string} data.id + * @param {number|string} data.cacheId + * @param {string} data.name + * @param {string} data.code + * @param {string} [data.enName] + * @param {number} [data.enabled] + */ +export function update(data) { + return request({ + url: '/basic/area/update', + method: 'post', + data + }) +} + +/** + * 新增区域信息单条数据 + * @param {object} data + * @param {number|string} [data.id] + * @param {number|string} data.cacheId + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.enName] + * @param {number} [data.enabled] + */ +export function add(data) { + return request({ + url: '/basic/area/add', + method: 'post', + data + }) +} + +/** + * 获取区域code + */ +export function getCode() { + return request({ + url: '/basic/area/get-code', + method: 'post' + }) +} + +/** + * 删除区域单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/area/delete', + method: 'post', + data: { id } + }) +} + +/** + * 启停区域, 1: enable, 0: disable + * @param {object} data + * @param {number} data.id + * @param {number} data.enabled + */ +export function toggleEnable(data) { + return request({ + url: '/basic/area/enabled', + method: 'post', + data + }) +} + +/** + * 分页获取区域列表 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + * @param {string} [data.code] + */ +export function getCacheList(data) { + return request({ + url: '/basic/cache/page', + method: 'post', + data + }) +} + +/** + * 获取区域里的库位信息(分页获取) + * @param: {object} data + * @param: {number} data.areaId + * @param: {number} data.current + * @param: {number} data.size + * @param: {number} [data.enabled] + * @param: {string} [data.name] + */ +export function getLocations(data) { + return request({ + url: '/basic/stock/pageOfArea', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Cache/cache-stocks.js b/src/api/basicData/Cache/cache-stocks.js new file mode 100644 index 0000000..99d8fc3 --- /dev/null +++ b/src/api/basicData/Cache/cache-stocks.js @@ -0,0 +1,25 @@ +/* + * @Author: lb + * @Date: 2022-03-10 11:00:00 + * @LastEditors: lb + * @LastEditTime: 2022-03-10 11:00:00 + * @Description: 缓存区页面的库位信息接口 + */ +import request from '@/utils/request' + +/** + * + * @param { object } data + * @property cacheId current enabled name size + * @requires cacheId + * @requires current + * @requires size + * @returns + */ +export function cacheStocksList(data) { // 获取缓存区的库位信息列表 + return request({ + url: '/basic/stock/listOfCache', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Cache/cache.js b/src/api/basicData/Cache/cache.js new file mode 100644 index 0000000..8119fa3 --- /dev/null +++ b/src/api/basicData/Cache/cache.js @@ -0,0 +1,132 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-03-18 15:31:32 + * @Description: + */ +import request from '@/utils/request' + +/** + * 分页获取缓存区列表 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + * @param {string} [data.code] + */ +export function list(data) { + return request({ + url: '/basic/cache/page', + method: 'post', + data + }) +} + +/** + * 获取缓存区信息单条数据 + * @param {number|string} id + */ +export function detail(id) { + return request({ + url: '/basic/cache/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新缓存区信息单条数据 + * @param {object} data + * @param {number|string} data.id + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.abbr] + * @param {string} [data.enName] + * @param {string} [data.description] + * @param {string} [data.remark] + * @param {number} [data.stockNumber] + * @param {number} [data.enabled] + */ +export function update(data) { + return request({ + url: '/basic/cache/update', + method: 'post', + data + }) +} + +/** + * 新增缓存区信息单条数据 + * @param {object} data + * @param {number|string} [data.id] + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.abbr] + * @param {string} [data.enName] + * @param {string} [data.description] + * @param {string} [data.remark] + * @param {number} [data.stockNumber] + * @param {number} [data.enabled] + */ +export function add(data) { + return request({ + url: '/basic/cache/add', + method: 'post', + data + }) +} + +/** + * 获取缓存区信息code + */ +export function getCode() { + return request({ + url: '/basic/cache/get-code', + method: 'post' + }) +} + +/** + * 删除缓存区信息单条数据 + * @param {number|string} id + */ +export function del(id) { + return request({ + url: '/basic/cache/delete', + method: 'post', + data: { id } + }) +} + +/** + * 启停缓存区 + * @param {object} data + * @param {number} data.id + * @param {number} data.enabled + */ +export function toggleEnabled(data) { + return request({ + url: '/basic/cache/enabled', + method: 'post', + data + }) +} + +/** + * 获取缓存区里的库位信息(分页获取) + * @param {object} data + * @param {number} data.cacheId + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.name] + */ +export function getLocations(data) { + return request({ + url: '/basic/stock/pageOfCache', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Cache/inventory.js b/src/api/basicData/Cache/inventory.js new file mode 100644 index 0000000..3089724 --- /dev/null +++ b/src/api/basicData/Cache/inventory.js @@ -0,0 +1,41 @@ +/* + * @Author: lb + * @Date: 2022-03-23 11:40:00 + * @LastEditors: lb + * @LastEditTime: 2022-03-23 11:40:00 + * @Description: 库存统计 的后端接口 + */ +import request from '@/utils/request' + +/** + * 获取半成品库存分页仓储信息 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.cacheId] + * @param {number} [data.enabled] + */ +export function list(data) { + return request({ + url: '/stock/SemiFinished/page', + method: 'post', + data + }) +} + +/** + * 分页获取缓存区列表 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + * @param {string} [data.code] + */ +export function getCaches(data) { + return request({ + url: '/basic/cache/page', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Cache/location.js b/src/api/basicData/Cache/location.js new file mode 100644 index 0000000..16c35df --- /dev/null +++ b/src/api/basicData/Cache/location.js @@ -0,0 +1,101 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-03-18 16:40:00 + * @Description: + */ +import request from '@/utils/request' + +export function list(data) { // 获取库位信息列表 deprecated + return request({ + url: '/basic/stock/page', + method: 'post', + data + }) +} + +/** + * 获取库位信息单条数据 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/stock/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新库位信息单条数据 + * @param {object} data + * @param {number|string} data.id + * @param {number|string} data.areaId + * @param {string} data.code + * @param {string} [data.anotherName] + * @param {string} [data.place] + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/basic/stock/update', + method: 'post', + data + }) +} + +/** + * 新增库位信息单条数据 + * @param {object} data + * @param {number|string} [data.id] + * @param {number|string} data.areaId + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.anotherName] + * @param {string} [data.place] + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/basic/stock/add', + method: 'post', + data + }) +} + +/** + * 获取库位信息code + */ +export function getCode() { + return request({ + url: '/basic/stock/get-code', + method: 'post' + }) +} + +/** + * 删除库位信息单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/stock/delete', + method: 'post', + data: { id } + }) +} + +/** + * 更改区域/缓存区里的库位状态 + * @param {object} data + * @param {number} data.id + * @param {number} data.enabled + */ +export function toggleLocationStatus(data) { + return request({ + url: '/basic/stock/enabled', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Cache/shelf.js b/src/api/basicData/Cache/shelf.js new file mode 100644 index 0000000..fae26c6 --- /dev/null +++ b/src/api/basicData/Cache/shelf.js @@ -0,0 +1,143 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-03-18 10:28:58 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取货架信息列表 + * @param {object} data + * @param {number} data.size 必要 + * @param {number} data.current 必要 + * @param {string} [data.name] + * @param {number} [data.enabled] + */ +export function list(data) { + return request({ + url: '/basic/shelf/page', + method: 'post', + data + }) +} + +/** + * 获取货架信息单条数据 + * @param {number|string} id + */ +export function detail(id) { + return request({ + url: '/basic/shelf/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新货架信息单条数据 + * @param {object} data + * @param {number|string} data.id + * @param {string} data.code + * @param {string} data.anotherCode + * @param {string} data.name + * @param {number} data.enabled + * @param {number} data.dicDataId + */ +export function update(data) { + return request({ + url: '/basic/shelf/update', + method: 'post', + data + }) +} + +/** + * 新增货架信息单条数据 + * @param {object} data + * @param {number|string} [data.id] + * @param {string} data.code + * @param {string} data.anotherCode + * @param {string} data.name + * @param {number} data.enabled + * @param {number} data.dicDataId + */ +export function add(data) { + return request({ + url: '/basic/shelf/add', + method: 'post', + data + }) +} + +/** + * 获取货架信息code + */ +export function getCode() { + return request({ + url: '/basic/shelf/get-code', + method: 'post' + }) +} + +/** + * 删除货架信息单条数据 + * @param {number} id + */ +export function del(id) { // + return request({ + url: '/basic/shelf/delete', + method: 'post', + data: { id } + }) +} + +/** + * 启停货架 + * @param {object} data + * @param {number|string} data.id + * @param {number} data.enabled + */ +export function toggleEnabled(data) { + return request({ + url: '/basic/shelf/enabled', + method: 'post', + data + }) +} + +/** + * 获取分页区域信息列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {string} [data.name] + * @param {number} [data.cacheId] + * @param {number} [data.enabled] + */ +export function getAreaList(data) { + return request({ + url: '/basic/area/page', + method: 'post', + data + }) +} + +/** + * 分页获取字典类型列表 + * @param {object} data + * @param {number|string} data.dictTypeId + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.dataCode] + * @param {number} [data.dataName] + * @param {number} [data.enabled] + */ +export function getDictListByType(data) { + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Cache/storage.js b/src/api/basicData/Cache/storage.js new file mode 100644 index 0000000..5ecd1d2 --- /dev/null +++ b/src/api/basicData/Cache/storage.js @@ -0,0 +1,195 @@ +/* + * @Author: lb + * @Date: 2022-03-23 14:40:00 + * @LastEditors: lb + * @LastEditTime: 2022-03-23 14:40:00 + * @Description: 出入库操作 的后端接口 + */ +import request from '@/utils/request' + +/** + * 获取分页仓储出入库信息 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.operateType] + * @param {number} [data.shelfCode] + * @param {number} [data.enabled] + */ +export function list(data) { + return request({ + url: '/stock/SemiFinishedLog/page', + method: 'post', + data + }) +} + +/** + * 删除某条操作记录 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/stock/SemiFinishedLog/delete', + method: 'post', + data: { id } + }) +} + +/** + * 新增出入库记录 + * @param {object} data + * @param {object} data.id + * @param {object} data.operateType + * @param {object} data.shelfId + * @param {object} data.stockId + * @param {object} data.semifinishedProductId + * @param {object} data.num + * @param {object} data.source + * @param {object} [data.remark] + */ +export function add(data) { + const url = '/stock/SemiFinishedLog' + (data.operateType === 1 ? '/output' : '/input') + return request({ + url, + method: 'post', + data + }) +} + +/** + * 获取出入库信息单条数据 ==> 后端没有对应接口 + * @param {number|string} id + */ +export function detail(id) { + return request({ + url: '/stock/SemiFinishedLog/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新出入库信息单条数据 + * @param {object} data + * @param {number|string} data.id + * @param {number|string} data.semifinishedProductId + * @param {number|string} data.shelfId + * @param {number|string} data.stockId + * @param {number} data.operateType + * @param {number} data.num + * @param {number} data.source + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/stock/SemiFinishedLog/update', + method: 'post', + data + }) +} + +/** + * 分页获取货架信息 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + */ +export function getShelfList(data) { + return request({ + url: '/basic/shelf/page', + method: 'post', + data + }) +} + +/** + * 分页获取缓存区列表 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + * @param {string} [data.code] + */ +export function getCacheList(data) { + return request({ + url: '/basic/cache/page', + method: 'post', + data + }) +} + +/** + * 分页获取区域信息列表 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + * @param {number|string} [data.cacheId] + */ +export function getAreaList(data) { + return request({ + url: '/basic/area/page', + method: 'post', + data + }) +} + +/** + * 分页获取库位信息列表, 如果data里有cacheId则按照缓存区搜索,如果有areaId就按照区域搜索 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {number} [data.enabled] + * @param {number|string} [data.cacheId] + * @param {number|string} [data.areaId] + */ +export function getStockList(data) { + const url = '/basic/stock' + (data.cacheId ? '/pageOfCache' : '/pageOfArea') + return request({ + url, + method: 'post', + data + }) +} + +/** + * 分页获取产品池列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {string} [data.key] + * @param {number} [data.enabled] + */ +export function getProductsList(data) { + // 获取产品池列表 + return request({ + url: '/basic/product/page', + method: 'post', + data + }) +} + +/** + * 获取可用库位 + * @param {object} data + * @param {number} [data.cacheId] + * @param {number} [data.areaId] + * @param {number} data.operateType + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + */ +export function getAvailableStocks(data) { + const url = '/basic/stock/availableStock' + return request({ + url, + method: 'post', + data + }) +} diff --git a/src/api/basicData/Cache/storageBox.js b/src/api/basicData/Cache/storageBox.js new file mode 100644 index 0000000..b49dfc0 --- /dev/null +++ b/src/api/basicData/Cache/storageBox.js @@ -0,0 +1,70 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-07-21 14:29:10 + * @Description: + */ +import request from '@/utils/request' + +export function storageBoxList(data) { // 获取存储箱列表 + return request({ + url: '/basic/storage-tank/page', + method: 'post', + data + }) +} + +export function storageBoxDetail(id) { // 获取存储箱单条数据 + return request({ + url: '/basic/storage-tank/get', + method: 'post', + data: { id } + }) +} + +export function storageBoxUpdate(data) { // 更新存储箱单条数据 + return request({ + url: '/basic/storage-tank/update', + method: 'post', + data + }) +} + +export function storageBoxAdd(data) { // 新增存储箱单条数据 + return request({ + url: '/basic/storage-tank/add', + method: 'post', + data + }) +} + +export function storageBoxCode() { // 获取存储箱code + return request({ + url: '/basic/storage-tank/get-code', + method: 'post' + }) +} + +export function storageBoxDelete(id) { // 删除存储箱单条数据 + return request({ + url: '/basic/storage-tank/delete', + method: 'post', + data: { id } + }) +} + +export function PositionDetailInfoAdd(data) { // 新增存储箱地址单条数据 + return request({ + url: '/basic/storage-tank-site/add', + method: 'post', + data + }) +} +export function PositionDetailInfoList(data) { // 获取存储箱地址列表 + return request({ + url: '/basic/storage-tank-site/page', + method: 'post', + data + }) +} diff --git a/src/api/basicData/CodeRules.js b/src/api/basicData/CodeRules.js new file mode 100644 index 0000000..f14d0e4 --- /dev/null +++ b/src/api/basicData/CodeRules.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-29 10:38:02 + * @Description: + */ +import request from '@/utils/request' + +export function CodeRulesList(data) { // 获取编码规则列表 + return request({ + url: '/basic/code-rule/page', + method: 'post', + data + }) +} + +export function CodeRulesDetail(id) { // 获取编码规则单条数据 + return request({ + url: '/basic/code-rule/get', + method: 'post', + data: { id } + }) +} + +export function CodeRulesUpdate(data) { // 更新编码规则单条数据 + return request({ + url: '/basic/code-rule/update', + method: 'post', + data + }) +} + +export function CodeRulesAdd(data) { // 新增编码规则单条数据 + return request({ + url: '/basic/code-rule/add', + method: 'post', + data + }) +} + +export function CodeRulesCode() { // 获取编码规则code + return request({ + url: '/basic/code-rule/get-code', + method: 'post' + }) +} + +export function CodeRulesDelete(id) { // 删除编码规则单条数据 + return request({ + url: '/basic/code-rule/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/CodeRulesAttr.js b/src/api/basicData/CodeRulesAttr.js new file mode 100644 index 0000000..afd8df9 --- /dev/null +++ b/src/api/basicData/CodeRulesAttr.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-02-02 11:08:34 + * @Description: + */ +import request from '@/utils/request' + +export function CodeRulesAttrList(data) { // 获取编码规则属性列表 + return request({ + url: '/basic/code-rule-arrt/page', + method: 'post', + data + }) +} + +export function CodeRulesAttrDetail(id) { // 获取编码规则属性单条数据 + return request({ + url: '/basic/code-rule-arrt/get', + method: 'post', + data: { id } + }) +} + +export function CodeRulesAttrUpdate(data) { // 更新编码规则属性单条数据 + return request({ + url: '/basic/code-rule-arrt/update', + method: 'post', + data + }) +} + +export function CodeRulesAttrAdd(data) { // 新增编码规则属性单条数据 + return request({ + url: '/basic/code-rule-arrt/add', + method: 'post', + data + }) +} + +export function CodeRulesAttrCode() { // 获取编码规则属性code + return request({ + url: '/basic/code-rule-arrt/get-code', + method: 'post' + }) +} + +export function CodeRulesAttrDelete(id) { // 删除编码规则属性单条数据 + return request({ + url: '/basic/code-rule-arrt/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/CustomerSupplier/customer.js b/src/api/basicData/CustomerSupplier/customer.js new file mode 100644 index 0000000..872b2d0 --- /dev/null +++ b/src/api/basicData/CustomerSupplier/customer.js @@ -0,0 +1,99 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-21 19:55:30 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页客户列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.code] 客户编码 + * @param {string} [data.name] 客户名称 + */ +export function list(data) { + return request({ + url: '/basic/customer/page', + method: 'post', + data + }) +} + +/** + * 获取客户详情 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/customer/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新客户 + * @param {object} data + * @param {number} data.id + * @param {string} data.name + * @param {string} data.code + * @param {string} data.email + * @param {string} data.address + * @param {string} data.contact + * @param {string} data.telephone + * @param {string} data.description + */ +export function update(data) { + return request({ + url: '/basic/customer/update', + method: 'post', + data + }) +} + +/** + * 新增客户 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.name + * @param {string} data.code + * @param {string} data.email + * @param {string} data.address + * @param {string} data.contact + * @param {string} data.telephone + * @param {string} data.description + */ +export function add(data) { + return request({ + url: '/basic/customer/add', + method: 'post', + data + }) +} + +/** + * 获取客户code + */ +export function getCode() { + return request({ + url: '/basic/customer/get-code', + method: 'post' + }) +} + +/** + * 删除客户 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/customer/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/CustomerSupplier/supplier.js b/src/api/basicData/CustomerSupplier/supplier.js new file mode 100644 index 0000000..443d99c --- /dev/null +++ b/src/api/basicData/CustomerSupplier/supplier.js @@ -0,0 +1,102 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-21 19:56:00 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页供应商 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {string} [data.name] + * @param {string} [data.code] + * @param {number} [data.enabled] + */ +export function list(data) { + return request({ + url: '/basic/supplier/page', + method: 'post', + data + }) +} + +/** + * 获取供应商详情 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/supplier/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新供应商 + * @param {object} data + * @param {number} data.id + * @param {string} data.name + * @param {string} data.code + * @param {string} data.email + * @param {string} data.contact + * @param {string} data.address + * @param {string} data.category + * @param {string} data.telephone + * @param {string} data.description + */ +export function update(data) { + // 更新供应商单条数据 + return request({ + url: '/basic/supplier/update', + method: 'post', + data + }) +} + +/** + * 新增供应商 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.name + * @param {string} data.code + * @param {string} data.email + * @param {string} data.contact + * @param {string} data.address + * @param {string} data.category + * @param {string} data.telephone + * @param {string} data.description + */ +export function add(data) { + return request({ + url: '/basic/supplier/add', + method: 'post', + data + }) +} + +/** + * 获取供应商code + */ +export function getCode() { + return request({ + url: '/basic/supplier/get-code', + method: 'post' + }) +} + +/** + * 删除供应商 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/supplier/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentAlarm.js b/src/api/basicData/Equipment/equipmentAlarm.js new file mode 100644 index 0000000..b6c85d5 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentAlarm.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-03-12 15:40:20 + * @Description: + */ +import request from '@/utils/request' + +export function equipmentAlarmList(data) { // 获取设备报警列表 + return request({ + url: '/basic/equipment-alarm/page', + method: 'post', + data + }) +} + +export function equipmentAlarmDetail(id) { // 获取设备报警单条数据 + return request({ + url: '/basic/equipment-alarm/get', + method: 'post', + data: { id } + }) +} + +export function equipmentAlarmUpdate(data) { // 更新设备报警单条数据 + return request({ + url: '/basic/equipment-alarm/update', + method: 'post', + data + }) +} + +export function equipmentAlarmAdd(data) { // 新增设备报警单条数据 + return request({ + url: '/basic/equipment-alarm/add', + method: 'post', + data + }) +} + +export function equipmentAlarmCode() { // 获取设备报警code + return request({ + url: '/basic/equipment-alarm/get-code', + method: 'post' + }) +} + +export function equipmentAlarmDelete(id) { // 删除设备报警单条数据 + return request({ + url: '/basic/equipment-alarm/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentAlarmAttr.js b/src/api/basicData/Equipment/equipmentAlarmAttr.js new file mode 100644 index 0000000..c85a2fa --- /dev/null +++ b/src/api/basicData/Equipment/equipmentAlarmAttr.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-02-02 16:00:23 + * @Description: + */ +import request from '@/utils/request' + +export function equipmentAlarmAttrList(data) { // 获取设备报警列表 + return request({ + url: '/basic/equipment-alarm-type/page', + method: 'post', + data + }) +} + +export function equipmentAlarmAttrDetail(id) { // 获取设备报警单条数据 + return request({ + url: '/basic/equipment-alarm-type/get', + method: 'post', + data: { id } + }) +} + +export function equipmentAlarmAttrUpdate(data) { // 更新设备报警单条数据 + return request({ + url: '/basic/equipment-alarm-type/update', + method: 'post', + data + }) +} + +export function equipmentAlarmAttrAdd(data) { // 新增设备报警单条数据 + return request({ + url: '/basic/equipment-alarm-type/add', + method: 'post', + data + }) +} + +export function equipmentAlarmAttrCode() { // 获取设备报警code + return request({ + url: '/basic/equipment-alarm-type/get-code', + method: 'post' + }) +} + +export function equipmentAlarmAttrDelete(id) { // 删除设备报警单条数据 + return request({ + url: '/basic/equipment-alarm-type/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentDetectArea.js b/src/api/basicData/Equipment/equipmentDetectArea.js new file mode 100644 index 0000000..8a4d3de --- /dev/null +++ b/src/api/basicData/Equipment/equipmentDetectArea.js @@ -0,0 +1,63 @@ +/* + * @Author: zwq + * @Date: 2021-01-29 09:39:04 + * @LastEditors: zwq + * @LastEditTime: 2021-06-10 15:22:55 + * @Description: + */ + +import request from '@/utils/request' + +export function equipmentDetectAreaList(data) { // 获取设备区域列表 + return request({ + url: '/basic/detect-distribution-area/page', + method: 'post', + data + }) +} + +export function equipmentDetectTreeList() { // 获取检测设备树形图 + return request({ + url: '/basic/detect-distribution-area/detect-area', + method: 'post' + }) +} + +export function equipmentDetectAreaDetail(id) { // 获取设备区域单条数据 + return request({ + url: '/basic/detect-distribution-area/get', + method: 'post', + data: { id } + }) +} + +export function equipmentDetectAreaUpdate(data) { // 更新设备区域单条数据 + return request({ + url: '/basic/detect-distribution-area/update', + method: 'post', + data + }) +} + +export function equipmentDetectAreaAdd(data) { // 新增设备区域单条数据 + return request({ + url: '/basic/detect-distribution-area/add', + method: 'post', + data + }) +} + +export function equipmentDetectAreaCode() { // 获取设备区域code + return request({ + url: '/basic/detect-distribution-area/get-code', + method: 'post' + }) +} + +export function equipmentDetectAreaDelete(id) { // 删除设备区域单条数据 + return request({ + url: '/basic/detect-distribution-area/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentDetectAreaAttr.js b/src/api/basicData/Equipment/equipmentDetectAreaAttr.js new file mode 100644 index 0000000..3590144 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentDetectAreaAttr.js @@ -0,0 +1,56 @@ +/* + * @Author: zwq + * @Date: 2021-01-29 09:39:04 + * @LastEditors: zwq + * @LastEditTime: 2021-05-28 09:44:01 + * @Description: + */ + +import request from '@/utils/request' + +export function equipmentDetectAreaAttrList(data) { // 获取设备关联列表 + return request({ + url: '/basic/detect-equ-area-re/page', + method: 'post', + data + }) +} + +export function equipmentDetectAreaAttrDetail(id) { // 获取设备关联单条数据 + return request({ + url: '/basic/detect-equ-area-re/get', + method: 'post', + data: { id } + }) +} + +export function equipmentDetectAreaAttrUpdate(data) { // 更新设备关联单条数据 + return request({ + url: '/basic/detect-equ-area-re/update', + method: 'post', + data + }) +} + +export function equipmentDetectAreaAttrAdd(data) { // 新增设备关联单条数据 + return request({ + url: '/basic/detect-equ-area-re/add', + method: 'post', + data + }) +} + +export function equipmentDetectAreaAttrCode() { // 获取设备关联code + return request({ + url: '/basic/detect-equ-area-re/get-code', + method: 'post' + }) +} + +export function equipmentDetectAreaAttrDelete(id) { // 删除设备关联单条数据 + return request({ + url: '/basic/detect-equ-area-re/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentDetectAreaSystem.js b/src/api/basicData/Equipment/equipmentDetectAreaSystem.js new file mode 100644 index 0000000..66ab4e6 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentDetectAreaSystem.js @@ -0,0 +1,56 @@ +/* + * @Author: zwq + * @Date: 2021-01-29 09:39:04 + * @LastEditors: zwq + * @LastEditTime: 2021-05-21 10:26:40 + * @Description: + */ + +import request from '@/utils/request' + +export function equipmentDetectAreaSystemList(data) { // 获取设备关联列表 + return request({ + url: '/basic/detect-area-system/page', + method: 'post', + data + }) +} + +export function equipmentDetectAreaSystemDetail(id) { // 获取设备关联单条数据 + return request({ + url: '/basic/detect-area-system/get', + method: 'post', + data: { id } + }) +} + +export function equipmentDetectAreaSystemUpdate(data) { // 更新设备关联单条数据 + return request({ + url: '/basic/detect-area-system/update', + method: 'post', + data + }) +} + +export function equipmentDetectAreaSystemAdd(data) { // 新增设备关联单条数据 + return request({ + url: '/basic/detect-area-system/add', + method: 'post', + data + }) +} + +export function equipmentDetectAreaSystemCode() { // 获取设备关联code + return request({ + url: '/basic/detect-area-system/get-code', + method: 'post' + }) +} + +export function equipmentDetectAreaSystemDelete(id) { // 删除设备关联单条数据 + return request({ + url: '/basic/detect-area-system/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentDetectAreaSystemAttr.js b/src/api/basicData/Equipment/equipmentDetectAreaSystemAttr.js new file mode 100644 index 0000000..36adb70 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentDetectAreaSystemAttr.js @@ -0,0 +1,56 @@ +/* + * @Author: zwq + * @Date: 2021-01-29 09:39:04 + * @LastEditors: zwq + * @LastEditTime: 2021-05-28 10:47:41 + * @Description: + */ + +import request from '@/utils/request' + +export function DetectAreaSystemAttrList(data) { // 获取设备关联列表 + return request({ + url: '/basic/detect-equipment-area/page', + method: 'post', + data + }) +} + +export function DetectAreaSystemAttrDetail(id) { // 获取设备关联单条数据 + return request({ + url: '/basic/detect-equipment-area/get', + method: 'post', + data: { id } + }) +} + +export function DetectAreaSystemAttrUpdate(data) { // 更新设备关联单条数据 + return request({ + url: '/basic/detect-equipment-area/update', + method: 'post', + data + }) +} + +export function DetectAreaSystemAttrAdd(data) { // 新增设备关联单条数据 + return request({ + url: '/basic/detect-equipment-area/add', + method: 'post', + data + }) +} + +export function DetectAreaSystemAttrCode() { // 获取设备关联code + return request({ + url: '/basic/detect-equipment-area/get-code', + method: 'post' + }) +} + +export function DetectAreaSystemAttrDelete(id) { // 删除设备关联单条数据 + return request({ + url: '/basic/detect-equipment-area/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentDetectParam.js b/src/api/basicData/Equipment/equipmentDetectParam.js new file mode 100644 index 0000000..f2a1373 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentDetectParam.js @@ -0,0 +1,56 @@ +/* + * @Author: zwq + * @Date: 2021-01-29 09:39:04 + * @LastEditors: zwq + * @LastEditTime: 2021-04-08 15:56:09 + * @Description: + */ + +import request from '@/utils/request' + +export function equipmentDetectParamList(data) { // 获取设备参数列表 + return request({ + url: '/basic/detect-equipment-param/page', + method: 'post', + data + }) +} + +export function equipmentDetectParamDetail(id) { // 获取设备参数单条数据 + return request({ + url: '/basic/detect-equipment-param/get', + method: 'post', + data: { id } + }) +} + +export function equipmentDetectParamUpdate(data) { // 更新设备参数单条数据 + return request({ + url: '/basic/detect-equipment-param/update', + method: 'post', + data + }) +} + +export function equipmentDetectParamAdd(data) { // 新增设备参数单条数据 + return request({ + url: '/basic/detect-equipment-param/add', + method: 'post', + data + }) +} + +export function equipmentDetectParamCode() { // 获取设备参数code + return request({ + url: '/basic/detect-equipment-param/get-code', + method: 'post' + }) +} + +export function equipmentDetectParamDelete(id) { // 删除设备参数单条数据 + return request({ + url: '/basic/detect-equipment-param/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentDetectSystem.js b/src/api/basicData/Equipment/equipmentDetectSystem.js new file mode 100644 index 0000000..4be975f --- /dev/null +++ b/src/api/basicData/Equipment/equipmentDetectSystem.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-05-21 10:03:53 + * @Description: + */ +import request from '@/utils/request' + +export function equipmentDetectSystemList(data) { // 获取检测系统列表 + return request({ + url: '/basic/detect-system/page', + method: 'post', + data + }) +} + +export function equipmentDetectSystemDetail(id) { // 获取检测系统单条数据 + return request({ + url: '/basic/detect-system/get', + method: 'post', + data: { id } + }) +} + +export function equipmentDetectSystemUpdate(data) { // 更新检测系统单条数据 + return request({ + url: '/basic/detect-system/update', + method: 'post', + data + }) +} + +export function equipmentDetectSystemAdd(data) { // 新增检测系统单条数据 + return request({ + url: '/basic/detect-system/add', + method: 'post', + data + }) +} + +export function equipmentDetectSystemCode() { // 获取检测系统code + return request({ + url: '/basic/detect-system/get-code', + method: 'post' + }) +} + +export function equipmentDetectSystemDelete(id) { // 删除检测系统单条数据 + return request({ + url: '/basic/detect-system/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentGroup.js b/src/api/basicData/Equipment/equipmentGroup.js new file mode 100644 index 0000000..566f8d1 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentGroup.js @@ -0,0 +1,158 @@ +/* + * @Author: zwq + * @Date: 2021-01-29 09:39:04 + * @LastEditors: lb + * @LastEditTime: 2022-04-19 11:59:29 + * @Description: + */ + +import request from '@/utils/request' + +/** + * 获取分页设备分组列表 + * @param {object} data + * @param {string} [data.name] + * @param {string} [data.code] + * @param {number} [data.enabled] + * @param {number} data.current + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/equipment-group/page', + method: 'post', + data + }) +} + +/** + * 根据id获取分组信息 + * @param {number} id + * @returns + */ +export function detail(id) { + return request({ + url: '/basic/equipment-group/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新设备分组 + * @param {object} data + * @param {number} data.id + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.remark] + * @param {number} [data.typeId] 设备类型id + */ +export function update(data) { + return request({ + url: '/basic/equipment-group/update', + method: 'post', + data + }) +} + +/** + * 新增设备分组 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.remark] + * @param {number} [data.typeId] 设备类型id + */ +export function add(data) { + return request({ + url: '/basic/equipment-group/add', + method: 'post', + data + }) +} + +/** + * 获取随机生成的设备编码 + */ +export function getCode() { + return request({ + url: '/basic/equipment-group/get-code', + method: 'post' + }) +} + +/** + * 删除设备分组 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/equipment-group/delete', + method: 'post', + data: { id } + }) +} + +/** +{ + "current": 1, + "size": 10, + "enabled": 1, + "equipmentGroupId": "设备分组id", +} + */ +export function getWarningList(data) { + // 获取分组报警列表 + return request({ + url: '/basic/equipment-group-alarm/page', + method: 'post', + data + }) +} + +/** + * 添加一条分组报警 + + "alarmContent": " ", + "alarmGrade": " ", + "alarmType": " ", + "equipmentGroupId": 1, + "externalCode": " ", + "id": 1 + + */ +export function addWarning(data) { + return request({ + url: '/basic/equipment-group-alarm/add', + method: 'post', + data + }) +} + +export function updateWarning(data) { + return request({ + url: '/basic/equipment-group-alarm/update', + method: 'post', + data + }) +} + +/** + * 删除一条设备分组报警 + */ +export function deleteWarning(id) { + return request({ + url: '/basic/equipment-group-alarm/delete', + method: 'post', + data: { id } + }) +} + +export function getWarningCode() { + return request({ + url: '/basic/equipment-group-alarm/get-code', + method: 'post', + data: {} + }) +} diff --git a/src/api/basicData/Equipment/equipmentInfo.js b/src/api/basicData/Equipment/equipmentInfo.js new file mode 100644 index 0000000..f0f7273 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentInfo.js @@ -0,0 +1,291 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-18 10:40:01 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取设备分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {string} [data.code] + * @param {number} [data.enabled] + * @param {string} [data.name] + */ +export function list(data) { + return request({ + url: '/basic/equipment/page', + method: 'post', + data + }) +} + +/** + * 获取设备单条数据 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/equipment/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新设备信息 + * @param {object} data + * @param {string} data.abbr 缩写 + * @param {number} data.activiation 是否稼动率 + * @param {string} data.code 设备编码 + * @param {number} data.communication 是否通讯 + * @param {number} data.controlStatus 控制状态(默认0; 0-本地,1-远程) + * @param {number} data.debugPeriod 调试周期天 + * @param {string} data.debugTime 调试日期(datetime的string) + * @param {string} data.description 设备描述 + * @param {number} data.eapVersion EAP版本 + * @param {string} data.enName 英文名称 + * @param {string} data.enterTime 进厂日期(datetime的string) + * @param {string} data.equipmentArea 设备区域 + * @param {number} data.equipmentId 设备id + * @param {number} data.equipmentType 设备类型 + * @param {number} data.estatus + * @param {number} data.fileId 文件id + * @param {number} data.groupId 设备分组id + * @param {number} data.id 设备id + * @param {string} data.intellectualProperty 知识产权 + * @param {string} data.ip 设备ip地址 + * @param {number} data.maintenanceCycle 保养周期(年) + * @param {number} data.maintenanceTime 保养持续时间(小时) + * @param {string} data.manufacturer 生产厂商 + * @param {string} data.name 设备名称 + * @param {number} data.numberOfCavities 腔体数量 + * @param {string} data.plcVersion PLC版本 + * @param {string} data.port 端口号 + * @param {string} data.processingQuantityPerCavity 每腔加工数量 + * @param {string} data.productionTime 生产日期(datetime的string) + * @param {number} data.rangeNumber 范围号 + * @param {string} data.remark 备注 + * @param {string} data.spec 规格描述 + */ +export function update(data) { + return request({ + url: '/basic/equipment/update', + method: 'post', + data + }) +} + +/** + * 更新设备信息 + * @param {object} data + * @param {string} data.abbr 缩写 + * @param {number} data.activiation 是否稼动率 + * @param {string} data.code 设备编码 + * @param {number} data.communication 是否通讯 + * @param {number} data.controlStatus 控制状态(默认0; 0-本地,1-远程) + * @param {number} data.debugPeriod 调试周期天 + * @param {string} data.debugTime 调试日期(datetime的string) + * @param {string} data.description 设备描述 + * @param {number} data.eapVersion EAP版本 + * @param {string} data.enName 英文名称 + * @param {string} data.enterTime 进厂日期(datetime的string) + * @param {string} data.equipmentArea 设备区域 + * @param {number} data.equipmentId 设备id + * @param {number} data.equipmentType 设备类型 + * @param {number} data.estatus + * @param {number} data.fileId 文件id + * @param {number} data.groupId 设备分组id + * @param {number} data.id 设备id + * @param {string} data.intellectualProperty 知识产权 + * @param {string} data.ip 设备ip地址 + * @param {number} data.maintenanceCycle 保养周期(年) + * @param {number} data.maintenanceTime 保养持续时间(小时) + * @param {string} data.manufacturer 生产厂商 + * @param {string} data.name 设备名称 + * @param {number} data.numberOfCavities 腔体数量 + * @param {string} data.plcVersion PLC版本 + * @param {number} data.port 端口号 + * @param {number} data.processingQuantityPerCavity 每腔加工数量 + * @param {string} data.productionTime 生产日期(datetime的string) + * @param {number} data.rangeNumber 范围号 + * @param {string} data.remark 备注 + * @param {string} data.spec 规格描述 + */ +export function add(data) { + return request({ + url: '/basic/equipment/add', + method: 'post', + data + }) +} + +export function getCode() { + // 获取设备信息code + return request({ + url: '/basic/equipment/get-code', + method: 'post' + }) +} + +/** + * 删除设备信息 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/equipment/delete', + method: 'post', + data: { id } + }) +} + +/** ---------------- 设备文件 : ------------------ */ + +/** + * 平台设备文件信息管理接口 - 保存设备文件 + * @param {object} data + * @param {number} data.id + * @param {number} data.equipmentId + * @param {number} data.fileId + * @param {string} data.fileName + * @param {string} data.fileUrl + * @param {string} data.typeCode + */ +export function saveFile(data) { + return request({ + url: '/basic/equipment-file/update-file', + method: 'post', + data + }) +} + +/** + * 平台设备文件信息管理接口 - 获取设备文件 + * @param {object} data + * @param {number} data.id + * @param {number} data.equipmentId + * @param {number} data.fileId + * @param {string} data.fileName + * @param {string} data.fileUrl + * @param {string} data.typeCode + */ +export function getFile(data) { + return request({ + url: '/basic/equipment-file/get-by-param', + method: 'post', + data + }) +} + +/** + * 根据id删除某个服务器上的文件 + * @param {number} id + */ +export function delFile(id) { + return request({ + url: '/basic/equipment-file/delete', + method: 'post', + data: { id } + }) +} + +/** ---------------- 设备类型 : ------------------ */ + +/** + * 获取设备类型列表 + * @param {object} data + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.name] + * @param {string} [data.code] + * @param {number} [data.enabled] + */ +export function getEquipmentTypeList(data) { + return request({ + url: '/basic/equipment-type/page', + method: 'post', + data + }) +} + +/** ---------------- 设备分组 : ------------------ */ + +/** + * 获取分页设备分组列表 + * @param {object} data + * @param {string} [data.name] + * @param {string} [data.code] + * @param {number} [data.enabled] + * @param {number} data.current + * @param {number} data.size + */ +export function getEquipmentGroupList(data) { + return request({ + url: '/basic/equipment-group/page', + method: 'post', + data + }) +} + +/** ---------------- 设备属性 : ------------------ */ + +/** + * 获取分页设备属性列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.equipmentId] + */ +export function getEquipmentAttributeList(data) { + return request({ + url: '/basic/equipment-attr/page', + method: 'post', + data + }) +} + +/** + * 删除设备属性 + * @param {number} id + */ +export function deleteEquipmentAttribute(id) { + return request({ + url: '/basic/equipment-attr/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取分页供应商列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + */ +export function getSupplierList(data) { + return request({ + url: '/basic/supplier/page', + method: 'post', + data + }) +} + +/** + * 导出设备信息 + */ +export function exportEquipments(data) { + return request({ + url: '/basic/equipment/export', + method: 'post', + data, + responseType: 'blob', + timeout: 60000 + }) +} diff --git a/src/api/basicData/Equipment/equipmentInfoAttr.js b/src/api/basicData/Equipment/equipmentInfoAttr.js new file mode 100644 index 0000000..2993c71 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentInfoAttr.js @@ -0,0 +1,92 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-19 9:00:52 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页设备属性列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.equipmentId] + */ +export function list(data) { + return request({ + url: '/basic/equipment-attr/page', + method: 'post', + data + }) +} + +/** + * 获取设备属性 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/equipment-attr/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新设备属性 + * @param {object} data + * @param {number} data.id + * @param {string} data.attrName + * @param {string} data.attrValue + * @param {string} data.equipmentId + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/basic/equipment-attr/update', + method: 'post', + data + }) +} + +/** + * 新增设备属性 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.attrName + * @param {string} data.attrValue + * @param {string} data.equipmentId + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/basic/equipment-attr/add', + method: 'post', + data + }) +} + +/** + * 获取设备属性code + */ +export function getCode() { + return request({ + url: '/basic/equipment-attr/get-code', + method: 'post' + }) +} + +/** + * 删除设备属性 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/equipment-attr/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentLink.js b/src/api/basicData/Equipment/equipmentLink.js new file mode 100644 index 0000000..8c413a9 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentLink.js @@ -0,0 +1,72 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-03-12 09:25:09 + * @Description: + */ +import request from '@/utils/request' + +export function equipmentLinkList(data) { // 获取连线设备列表 + return request({ + url: '/basic/connecting-device/page', + method: 'post', + data + }) +} + +export function equipmentLinkDetail(id) { // 获取连线设备单条数据 + return request({ + url: '/basic/connecting-device/get', + method: 'post', + data: { id } + }) +} + +export function equipmentLinkUpdate(data) { // 更新连线设备单条数据 + return request({ + url: '/basic/connecting-device/update', + method: 'post', + data + }) +} + +export function equipmentLinkAdd(data) { // 新增连线设备单条数据 + return request({ + url: '/basic/connecting-device/add', + method: 'post', + data + }) +} + +export function equipmentLinkCode() { // 获取连线设备code + return request({ + url: '/basic/connecting-device/get-code', + method: 'post' + }) +} + +export function equipmentLinkDelete(id) { // 删除连线设备单条数据 + return request({ + url: '/basic/connecting-device/delete', + method: 'post', + data: { id } + }) +} + +export function equipmentLinkFileAdd(data) { // 连线设备上传 + return request({ + url: '/basic/connecting-device-file/update-file', + method: 'post', + data + }) +} + +export function getEquipmentLinkFile(data) { // 连线设备下载 + return request({ + url: '/basic/connecting-device-file/get-by-param', + method: 'post', + data + }) +} + diff --git a/src/api/basicData/Equipment/equipmentLinkAttr.js b/src/api/basicData/Equipment/equipmentLinkAttr.js new file mode 100644 index 0000000..39005a0 --- /dev/null +++ b/src/api/basicData/Equipment/equipmentLinkAttr.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-20 10:35:56 + * @Description: + */ +import request from '@/utils/request' + +export function equipmentLinkAttrList(data) { // 获取连线设备属性列表 + return request({ + url: '/basic/connecting-device-attr/page', + method: 'post', + data + }) +} + +export function equipmentLinkAttrDetail(id) { // 获取连线设备属性单条数据 + return request({ + url: '/basic/connecting-device-attr/get', + method: 'post', + data: { id } + }) +} + +export function equipmentLinkAttrUpdate(data) { // 更新连线设备属性单条数据 + return request({ + url: '/basic/connecting-device-attr/update', + method: 'post', + data + }) +} + +export function equipmentLinkAttrAdd(data) { // 新增连线设备属性单条数据 + return request({ + url: '/basic/connecting-device-attr/add', + method: 'post', + data + }) +} + +export function equipmentLinkAttrCode() { // 获取连线设备属性code + return request({ + url: '/basic/connecting-device-attr/get-code', + method: 'post' + }) +} + +export function equipmentLinkAttrDelete(id) { // 删除连线设备属性单条数据 + return request({ + url: '/basic/connecting-device-attr/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentType.js b/src/api/basicData/Equipment/equipmentType.js new file mode 100644 index 0000000..dc8a9fc --- /dev/null +++ b/src/api/basicData/Equipment/equipmentType.js @@ -0,0 +1,149 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: gtz + * @LastEditTime: 2022-07-28 20:45:12 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页设备类型列表 + * @param {object} data + * @param {string} data.code + * @param {number} data.current + * @param {number} data.enabled + * @param {string} data.name + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/equipment-type/page', + method: 'post', + data + }) +} + +/** + * 获取设备类型 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/equipment-type/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新设备类型 + * @param {object} data + * @param {number} data.id + * @param {string} data.name + * @param {string} data.code + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/basic/equipment-type/update', + method: 'post', + data + }) +} + +/** + * 新增设备类型 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.name + * @param {string} data.code + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/basic/equipment-type/add', + method: 'post', + data + }) +} + +export function getCode() { // 获取设备类型code + return request({ + url: '/basic/equipment-type/get-code', + method: 'post' + }) +} + +/** + * 删除设备类型 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/equipment-type/delete', + method: 'post', + data: { id } + }) +} + +export function listAll() { // 获取全部设备类型层级关系 + return request({ + url: '/basic/equipment-type/list-all', + method: 'post' + }) +} + +/** + * 保存设备类型文件 + * @param {object} data + * @param {string} data.equipmentTypeId + * @param {number} data.id + * @param {string} data.fileId + * @param {string} data.fileName + * @param {string} data.fileUrl + * @param {string} data.typeCode + */ +export function equipmentTypeFileAdd(data) { + return request({ + url: '/basic/equipment-type-file/update-file', + method: 'post', + data + }) +} + +/** + * 获取设备类型上传的文件列表 + * @param {object} data + * @param {string} data.equipmentTypeId + * @param {number} [data.id] + * @param {string} [data.fileId] + * @param {string} [data.fileName] + * @param {string} [data.fileUrl] + * @param {string} [data.typeCode] + */ +export function getFileList(data) { + return request({ + url: '/basic/equipment-type-file/get-by-param', + method: 'post', + data + }) +} + +/** + * 获取设备类型上传的文件列表 + * @param {object} data + * @param {string} data.equipmentTypeId + * @param {number} [data.id] + * @param {string} [data.fileId] + * @param {string} [data.fileName] + * @param {string} [data.fileUrl] + * @param {string} [data.typeCode] + */ +export function delFile(data) { + return request({ + url: '/basic/equipment-type-file/delete', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Equipment/maintenanceCycle.js b/src/api/basicData/Equipment/maintenanceCycle.js new file mode 100644 index 0000000..8dc09d8 --- /dev/null +++ b/src/api/basicData/Equipment/maintenanceCycle.js @@ -0,0 +1,89 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-19 15:20:00 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页保养周期 + * @param {object} data + * @param {number} data.current + * @param {number} data.enabled + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/maintenance-period/page', + method: 'post', + data + }) +} + +/** + * 获取保养周期 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/maintenance-period/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新保养周期 + * @param {object} data + * @param {number} data.id + * @param {string} data.code + * @param {string} data.maintenancePeriod + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/basic/maintenance-period/update', + method: 'post', + data + }) +} + +/** + * 新增保养周期 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.code + * @param {string} data.maintenancePeriod + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/basic/maintenance-period/add', + method: 'post', + data + }) +} + +/** + * 获取保养周期code + */ +export function getCode() { + return request({ + url: '/basic/maintenance-period/get-code', + method: 'post' + }) +} + +/** + * 删除保养周期 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/maintenance-period/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/maintenanceType.js b/src/api/basicData/Equipment/maintenanceType.js new file mode 100644 index 0000000..f3fa865 --- /dev/null +++ b/src/api/basicData/Equipment/maintenanceType.js @@ -0,0 +1,94 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-19 15:20:00 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页维修类型 + * @param {object} data + * @param {string} [data.name] + * @param {string} [data.code] + * @param {number} [data.enabled] + * @param {number} data.current + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/maintenance-type/page', + method: 'post', + data + }) +} + +/** + * 获取维修类型详情 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/maintenance-type/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新维修类型 + * @param {object} data + * @param {number} data.id + * @param {string} data.name + * @param {string} data.code + * @param {string} [data.enName] + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/basic/maintenance-type/update', + method: 'post', + data + }) +} + +/** + * 新增维修类型 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.name + * @param {string} data.code + * @param {string} [data.enName] + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/basic/maintenance-type/add', + method: 'post', + data + }) +} + +/** + * 获取维修类型code + * @returns + */ +export function getCode() { + return request({ + url: '/basic/maintenance-type/get-code', + method: 'post' + }) +} + +/** + * 删除维修类型 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/maintenance-type/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/spareParts.js b/src/api/basicData/Equipment/spareParts.js new file mode 100644 index 0000000..6be4029 --- /dev/null +++ b/src/api/basicData/Equipment/spareParts.js @@ -0,0 +1,117 @@ +/* + * @Author: zwq + * @Date: 2021-01-29 09:39:04 + * @LastEditors: lb + * @LastEditTime: 2022-04-20 9:20:00 + * @Description: + */ + +import request from '@/utils/request' + +/** + * 获取备品备件分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {string} [data.key] + * @param {number} [data.enabled] + */ +export function list(data) { + return request({ + url: '/basic/tool-spare-part/page', + method: 'post', + data + }) +} + +/** + * 获取备品备件 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/tool-spare-part/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新备品备件 + * @param {object} data + * @param {number} data.id + * @param {string} data.code + * @param {string} data.name + * @param {number} [data.life] + * @param {string} [data.model] + * @param {string} [data.description] + * @param {string} [data.dictDataId] + * @param {string} [data.specifications] + */ +export function update(data) { + return request({ + url: '/basic/tool-spare-part/update', + method: 'post', + data + }) +} + +/** + * 新增备品备件 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.code + * @param {string} data.name + * @param {number} [data.life] + * @param {string} [data.model] + * @param {string} [data.description] + * @param {string} [data.dictDataId] + * @param {string} [data.specifications] + */ +export function add(data) { + return request({ + url: '/basic/tool-spare-part/add', + method: 'post', + data + }) +} + +/** + * 获取备品备件code + */ +export function getCode() { + return request({ + url: '/basic/tool-spare-part/get-code', + method: 'post' + }) +} + +/** + * 删除备品备件 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/tool-spare-part/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取单位列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + */ +export function getUnitList(data) { + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data: { + ...data, + dictTypeId: '2' + } + }) +} diff --git a/src/api/basicData/EquipmentScrapGrade.js b/src/api/basicData/EquipmentScrapGrade.js new file mode 100644 index 0000000..5005c61 --- /dev/null +++ b/src/api/basicData/EquipmentScrapGrade.js @@ -0,0 +1,48 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-07-06 11:10:22 + * @Description: + */ +import request from '@/utils/request' + +export function EquipmentScrapGradeList(data) { // 获取废片等级列表 + return request({ + url: '/basic/equipment-scraps-grade/pageForEquipmentGrade', + method: 'post', + data + }) +} + +export function EquipmentScrapGradeDetail(id) { // 获取废片等级单条数据 + return request({ + url: '/basic/equipment-scraps-grade/get', + method: 'post', + data: { id } + }) +} + +export function EquipmentScrapGradeUpdate(data) { // 更新废片等级单条数据 + return request({ + url: '/basic/equipment-scraps-grade/update', + method: 'post', + data + }) +} + +export function EquipmentScrapGradeAdd(data) { // 新增废片等级单条数据 + return request({ + url: '/basic/equipment-scraps-grade/add', + method: 'post', + data + }) +} + +export function EquipmentScrapGradeDelete(id) { // 删除废片等级单条数据 + return request({ + url: '/basic/equipment-scraps-grade/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/FactoryManagement/factory.js b/src/api/basicData/FactoryManagement/factory.js new file mode 100644 index 0000000..f4f7806 --- /dev/null +++ b/src/api/basicData/FactoryManagement/factory.js @@ -0,0 +1,58 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2020-12-30 11:54:24 + * @Description: + */ +import request from '@/utils/request' + +export function factoryList(data) { // 获取工厂列表 + return request({ + url: '/basic/factory/page', + method: 'post', + data + }) +} + +export function factoryDetail(id) { // 获取工厂单条数据 + const data = { + 'id': id + } + return request({ + url: '/basic/factory/get', + method: 'post', + data + }) +} + +export function factoryUpdate(data) { // 更新工厂单条数据 + return request({ + url: '/basic/factory/update', + method: 'post', + data + }) +} + +export function factoryAdd(data) { // 新增工厂单条数据 + return request({ + url: '/basic/factory/add', + method: 'post', + data + }) +} + +export function factoryCode() { // 获取工厂code + return request({ + url: '/basic/factory/get-code', + method: 'post' + }) +} + +export function factoryDelete(id) { // 删除工厂单条数据 + return request({ + url: '/basic/factory/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/FactoryManagement/line.js b/src/api/basicData/FactoryManagement/line.js new file mode 100644 index 0000000..e625382 --- /dev/null +++ b/src/api/basicData/FactoryManagement/line.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-12 10:57:09 + * @Description: + */ +import request from '@/utils/request' + +export function lineList(data) { // 获取产线列表 + return request({ + url: '/basic/production-line/page', + method: 'post', + data + }) +} + +export function lineDetail(id) { // 获取产线单条数据 + return request({ + url: '/basic/production-line/get', + method: 'post', + data: { id } + }) +} + +export function lineUpdate(data) { // 更新产线单条数据 + return request({ + url: '/basic/production-line/update', + method: 'post', + data + }) +} + +export function lineAdd(data) { // 新增产线单条数据 + return request({ + url: '/basic/production-line/add', + method: 'post', + data + }) +} + +export function lineCode() { // 获取产线code + return request({ + url: '/basic/production-line/get-code', + method: 'post' + }) +} + +export function lineDelete(id) { // 删除产线单条数据 + return request({ + url: '/basic/production-line/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/FactoryManagement/section.js b/src/api/basicData/FactoryManagement/section.js new file mode 100644 index 0000000..b3d8789 --- /dev/null +++ b/src/api/basicData/FactoryManagement/section.js @@ -0,0 +1,122 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-12 10:56:44 + * @Description: + */ +import request from '@/utils/request' + +export function sectionList(data) { + // 获取工段列表 + return request({ + url: '/basic/workshop-section/page', + method: 'post', + data + }) +} + +export function sectionDetail(id) { + // 获取工段单条数据 + return request({ + url: '/basic/workshop-section/get', + method: 'post', + data: { id } + }) +} + +export function sectionUpdate(data) { + // 更新工段单条数据 + return request({ + url: '/basic/workshop-section/update', + method: 'post', + data + }) +} + +export function sectionAdd(data) { + // 新增工段单条数据 + return request({ + url: '/basic/workshop-section/add', + method: 'post', + data + }) +} + +export function sectionCode() { + // 获取工段code + return request({ + url: '/basic/workshop-section/get-code', + method: 'post' + }) +} + +export function sectionDelete(id) { + // 删除工段单条数据 + return request({ + url: '/basic/workshop-section/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取工单下的设备分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.enabled + * @param {string} data.equipmentId + * @param {string} data.equipmentName + * @param {string} data.id + * @param {string} data.name + * @param {number} data.size + */ +export function getEquipmentListBy(data) { + return request({ + url: '/basic/workshop-section/page-WorksectionEquipment', + method: 'post', + data + }) +} + +/** + * { + * equipmentId: [], + * id, + * remark, + * singleEquipmentId, + * workshopSectionId, + * } + */ +export function addNewEquipment(data) { + return request({ + url: '/basic/workshop-section/add-SingleWorksectionEquipment', + method: 'post', + data + }) +} + +export function getAllEquipmentList() { + // 获取所有设备分页列表 + return request({ + url: '/basic/equipment/list', + method: 'post', + data: {} + // data: { + // current: 1, + // size: 999, + // enabled: 1 + // } + }) +} + +export function deleteEquipment(id) { + // 从工段里删除一个设备 + return request({ + url: '/basic/workshop-section/delete-WorksectionEquipment', + method: 'post', + data: { + id + } + }) +} diff --git a/src/api/basicData/GroupModule/department.js b/src/api/basicData/GroupModule/department.js new file mode 100644 index 0000000..6a650a2 --- /dev/null +++ b/src/api/basicData/GroupModule/department.js @@ -0,0 +1,127 @@ +/* + * @Author: lb + * @Date: 2022-04-12 14:30:00 + * @LastEditors: lb + * @LastEditTime: 2022-04-12 14:30:00 + * @Description: 部门 相关接口 + */ +import request from '@/utils/request' + +/** + * 新增部门 + * @param {object} data + * @param {string} data.name + * @param {string} data.code + * @param {number|string} [data.id] + * @param {number|string} [data.parentId] + * @param {string} [data.description] 备注|描述 + * @param {string} [data.remark] 备注(deprecated) + */ +export function add(data) { + return request({ + url: '/basic/department/add', + method: 'post', + data + }) +} + +/** + * 删除部门 + * @param {number|string} id + */ +export function del(id) { + return request({ + url: '/basic/department/delete', + method: 'post', + data: { id } + }) +} + +/** + * getcode + */ +export function getCode() { + return request({ + url: '/basic/department/get-code', + method: 'post' + }) +} + +/** + * 获取部门详情 + * @param {number|string} id + */ +export function detail(id) { + return request({ + url: '/basic/department/get', + method: 'post', + data: { id } + }) +} + +/** + * 获取部门列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.key] 查询关键字 + */ +export function list(data) { + return request({ + url: '/basic/department/list', + method: 'post', + data + }) +} + +/** + * 获取部门分页列表 --- 基本上同 list + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.key] 查询关键字 + */ +export function listByPage(data) { + return request({ + url: '/basic/department/page', + method: 'post', + data + }) +} + +/** + * 更新部门 + * @param {object} data + * @param {string} data.name + * @param {string} data.code + * @param {number|string} data.id + * @param {number|string} [data.parentId] + * @param {string} [data.description] 备注|描述 + * @param {string} [data.remark] 备注(deprecated) + */ +export function update(data) { + return request({ + url: '/basic/department/update', + method: 'post', + data + }) +} + +/** + * 获取部门树列表 + * @param {object} data + * @param {number} data.id + * @param {string} data.key + * @param {number} data.current + * @param {number} data.size + * @param {number} data.enabled + */ +export function getTree(data) { + return request({ + url: '/basic/department/tree', + method: 'post', + data + }) +} diff --git a/src/api/basicData/GroupModule/group.js b/src/api/basicData/GroupModule/group.js new file mode 100644 index 0000000..30c7d35 --- /dev/null +++ b/src/api/basicData/GroupModule/group.js @@ -0,0 +1,209 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-12 15:38:59 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取班组分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.key] + * @param {number|string} [data.teamId] + */ +export function list(data) { + return request({ + url: '/basic/team/page', + method: 'post', + data + }) +} + +/** + * 获取班组单条数据 + * @param {number|string} id + */ +export function detail(id) { + return request({ + url: '/basic/team/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新班组单条数据 + * @param {object} data + * @param {string} data.code + * @param {string} [data.description] + * @param {number} data.id + * @param {string} data.name + * @param {string} [data.teamLeader] + * @param {string} [data.teamLeaderId] + * @param {number} [data.teamNumber] + * @param {number} [data.workStatus] + */ +export function update(data) { + return request({ + url: '/basic/team/update', + method: 'post', + data + }) +} + +/** + * 新增班组单条数据 + * @param {object} data + * @param {string} data.code + * @param {string} [data.description] + * @param {number} [data.id] + * @param {string} data.name + * @param {string} [data.teamLeader] + * @param {string} [data.teamLeaderId] + * @param {number} [data.teamNumber] + * @param {number} [data.workStatus] + */ +export function add(data) { + return request({ + url: '/basic/team/add', + method: 'post', + data + }) +} + +/** + * 获取班组code + */ +export function getCode() { + return request({ + url: '/basic/team/get-code', + method: 'post' + }) +} + +/** + * 删除班组单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/team/delete', + method: 'post', + data: { id } + }) +} + +/** + * 启停班组 + * @param {object} data + * @param {number} data.enabled + * @param {number} data.id + */ +export function toggleEnabled(data) { + return request({ + url: '/basic/team/enabled', + method: 'post', + data + }) +} + +/** + * 获取部门列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.key] 查询关键字 + */ +export function getDepartmentList(data) { + return request({ + url: '/basic/department/list', + method: 'post', + data + }) +} + +/** + * 获取员工列表 + * @param {object} data + * @param {number} data.current + * @param {number} [data.status] + * @param {string} [data.code] + * @param {string} [data.name] + * @param {number} data.size + */ +export function getStaffList(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} + +/** + * 获取分页班组成员 + * @param {object} data + * @param {number} data.current + * @param {number} [data.enabled] + * @param {number} [data.key] + * @param {number} data.size + * @param {number} [data.teamId] + * @param {string} [data.workerId] + */ +export function getCrewList(data) { + return request({ + url: '/basic/team-det/page', + method: 'post', + data + }) +} + +/** + * 删除班组单条数据 + * @param {object} data + * @param {string} data.description + * @param {number} data.id + * @param {string} data.teamId + * @param {string} data.workerId + * @param {string} data.workerName + * @param {number} [data.workshopId] + */ +export function deleteCrew(data) { + return request({ + url: '/basic/team-det/delete', + method: 'post', + data + }) +} + +/** + * 获取组员详情 + * @param {number} id + */ +export function getCrewDetail(id) { + return request({ + url: '/basic/team-det/get', + method: 'post', + data: { id } + }) +} + +/** + * 获取员工单条数据 + * 组员既是员工 + * 但是组员的接口和员工的接口不一样 + * 员工的接口返回的数据更详细 + * @param {number} id + */ +export function getStaffDetail(id) { + return request({ + url: '/basic/worker/get', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/GroupModule/groupAttr.js b/src/api/basicData/GroupModule/groupAttr.js new file mode 100644 index 0000000..5a00bf4 --- /dev/null +++ b/src/api/basicData/GroupModule/groupAttr.js @@ -0,0 +1,109 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-02-08 09:51:54 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页班组成员 + * @param {object} data + * @param {number} data.current + * @param {number} [data.enabled] + * @param {number} [data.key] + * @param {number} data.size + * @param {number} [data.teamId] + * @param {string} [data.workerId] + */ +export function list(data) { + return request({ + url: '/basic/team-det/page', + method: 'post', + data + }) +} + +/** + * 获取组员详情 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/team-det/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新组员数据 + * @param {object} data + * @param {string} [data.description] + * @param {number} data.id + * @param {string} data.teamId + * @param {string} data.workerId + * @param {string} data.workerName + * @param {number} data.workshopId + */ +export function update(data) { + return request({ + url: '/basic/team-det/update', + method: 'post', + data + }) +} + +export function add(data) { + // 新增班组单条数据 + return request({ + url: '/basic/team-det/add', + method: 'post', + data + }) +} + +export function getCode() { + // 获取班组code + return request({ + url: '/basic/team-det/get-code', + method: 'post' + }) +} + +/** + * 删除班组单条数据 + * @param {object} data + * @param {string} data.description + * @param {number} data.id + * @param {string} data.teamId + * @param {string} data.workerId + * @param {string} data.workerName + * @param {number} [data.workshopId] + */ +export function del(data) { + return request({ + url: '/basic/team-det/delete', + method: 'post', + data + }) +} + +/** + * 获取分页工段列表 + * @param {object} data + * @param {number} data.current + * @param {number} [data.enabled] + * @param {string} [data.id] + * @param {string} [data.name] + * @param {number} data.size + */ + +export function getWorkshopList(data) { + return request({ + url: '/basic/workshop-section/page', + method: 'post', + data + }) +} diff --git a/src/api/basicData/GroupModule/major.js b/src/api/basicData/GroupModule/major.js new file mode 100644 index 0000000..b15748a --- /dev/null +++ b/src/api/basicData/GroupModule/major.js @@ -0,0 +1,92 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-26 16:38:42 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页专业列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.name] + */ +export function list(data) { + return request({ + url: '/basic/major/page', + method: 'post', + data + }) +} + +/** + * 获取专业 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/major/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新专业 + * @param {object} data + * @param {number} data.id + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.abbreviation] + * @param {string} [data.description] + */ +export function update(data) { + return request({ + url: '/basic/major/update', + method: 'post', + data + }) +} + +/** + * 新增专业 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.code + * @param {string} data.name + * @param {string} [data.abbreviation] + * @param {string} [data.description] + */ +export function add(data) { + return request({ + url: '/basic/major/add', + method: 'post', + data + }) +} + +/** + * 获取code + */ +export function getCode() { + return request({ + url: '/basic/major/get-code', + method: 'post' + }) +} + +/** + * 删除专业 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/major/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/GroupModule/shift.js b/src/api/basicData/GroupModule/shift.js new file mode 100644 index 0000000..d5e1b04 --- /dev/null +++ b/src/api/basicData/GroupModule/shift.js @@ -0,0 +1,91 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-13 15:19:55 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取班组列表 + * @param {object} data + * @param {string} [data.code] + * @param {number} data.current + * @param {number} [data.enabled] + * @param {string} [data.name] + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/schedule-plan/page', + method: 'post', + data + }) +} + +/** + * 获取班组单条数据 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/schedule-plan/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新班组单条数据 + * @param {object} data + * @param {string} data.code + * @param {number} data.id + * @param {string} data.name + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/basic/schedule-plan/update', + method: 'post', + data + }) +} + +/** + * 新增班组单条数据 + * @param {object} data + * @param {string} data.code + * @param {number} [data.id] + * @param {string} data.name + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/basic/schedule-plan/add', + method: 'post', + data + }) +} + +/** + * 获取班组code + */ +export function getCode() { + return request({ + url: '/basic/schedule-plan/get-code', + method: 'post' + }) +} + +/** + * 删除班组单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/schedule-plan/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/GroupModule/staff.js b/src/api/basicData/GroupModule/staff.js new file mode 100644 index 0000000..3286d89 --- /dev/null +++ b/src/api/basicData/GroupModule/staff.js @@ -0,0 +1,155 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: gtz + * @LastEditTime: 2021-04-17 16:04:51 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取员工列表 + * @param {object} data + * @param {number} data.current + * @param {number} [data.status] + * @param {string} [data.code] + * @param {string} [data.name] + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} + +/** + * 获取员工单条数据 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/worker/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新员工单条数据 + * @param {object} data + * @param {string} [data.belong] + * @param {string} data.code + * @param {string} [data.departmentId] + * @param {string} [data.description] + * @param {string} [data.education] + * @param {string} [data.email] + * @param {string} [data.entryTime] + * @param {number} data.id + * @param {string} [data.identity] + * @param {string} data.majorId + * @param {string} data.name + * @param {string} [data.fileUrl] 头像地址或头像文件id + * @param {string} data.onDuty + * @param {string} [data.outTime] + * @param {string} [data.position] + * @param {string} [data.roleId] + * @param {string} data.sex + * @param {string} [data.status] + * @param {string} [data.telephone] + * @param {string} [data.wechatCode] + * @param {string} [data.workshop] + */ +export function update(data) { + return request({ + url: '/basic/worker/update', + method: 'post', + data + }) +} + +/** + * 新增员工单条数据 + * @param {object} data + * @param {string} [data.belong] + * @param {string} data.code + * @param {string} [data.departmentId] + * @param {string} [data.description] + * @param {string} [data.education] + * @param {string} [data.email] + * @param {string} [data.entryTime] + * @param {number} [data.id] + * @param {string} [data.identity] + * @param {string} data.majorId + * @param {string} data.name + * @param {string} [data.fileUrl] 头像地址或头像文件id + * @param {string} data.onDuty + * @param {string} [data.outTime] + * @param {string} [data.position] + * @param {string} [data.roleId] + * @param {string} data.sex + * @param {string} [data.status] + * @param {string} [data.telephone] + * @param {string} [data.wechatCode] + * @param {string} [data.workshop] + */ +export function add(data) { + return request({ + url: '/basic/worker/add', + method: 'post', + data + }) +} + +/** + * 获取员工code + */ +export function getCode() { + return request({ + url: '/basic/worker/get-code', + method: 'post' + }) +} + +/** + * 删除员工单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/worker/delete', + method: 'post', + data: { id } + }) +} + +export function getWorkerList(data) { // 添加组员列表 + return request({ + url: '/basic/team-det/workerList', + method: 'post', + data + }) +} + +export function getRoleList() { + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data: { + dictTypeId: '1383318968677273601', + current: 1, + size: 999 + } + }) +} + +/** 文件上传 */ +export function saveFile(data) { + // application/x-www-form-urlencoded + return request({ + url: '/common/attachment/uploadFileFormData', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Materials/material.js b/src/api/basicData/Materials/material.js new file mode 100644 index 0000000..bb0d426 --- /dev/null +++ b/src/api/basicData/Materials/material.js @@ -0,0 +1,140 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-14 13:03:31 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页物料信息列表 + * @param {object} data + * @param {string} [data.code] + * @param {number} data.current + * @param {number} [data.enabled] + * @param {string} [data.name] + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/material/page', + method: 'post', + data + }) +} + +/** + * 获取物料信息单条数据 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/material/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新物料信息单条数据 + * @param {object} data + * @param {string} [data.abbr] + * @param {string} data.code + * @param {string} [data.description] + * @param {string} [data.enName] + * @param {number} data.id + * @param {number} [data.materialTypeId] + * @param {string} data.name + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/basic/material/update', + method: 'post', + data + }) +} + +/** + * 新增物料信息单条数据 + * @param {object} data + * @param {string} [data.abbr] + * @param {string} data.code + * @param {string} [data.description] + * @param {string} [data.enName] + * @param {number} [data.id] + * @param {number} [data.materialTypeId] + * @param {string} data.name + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/basic/material/add', + method: 'post', + data + }) +} + +export function getCode() { // 获取物料信息code + return request({ + url: '/basic/material/get-code', + method: 'post' + }) +} + +/** + * 获取物料信息单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/material/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取物料的属性列表 + * @param {object} data + * @param {number} data.current + * @param {number} [data.enabled] + * @param {number} [data.materialId] + * @param {number} data.size + */ +export function getAttributeList(data) { + return request({ + url: '/basic/material-attr/page', + method: 'post', + data + }) +} + +/** + * 删除物料的属性数据 + * @param {number} id + */ +export function deleteAttribute(id) { + return request({ + url: '/basic/material-attr/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取分页的物料类型列表 + * @param {object} data + * @param {number} data.current + * @param {number} [data.enabled] + * @param {string} [data.name] + * @param {number} data.size + */ +export function getTypeList(data) { + return request({ + url: '/basic/material-type/page', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Materials/materialAttr.js b/src/api/basicData/Materials/materialAttr.js new file mode 100644 index 0000000..edc1184 --- /dev/null +++ b/src/api/basicData/Materials/materialAttr.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-16 12:09:29 + * @Description: + */ +import request from '@/utils/request' + +export function list(data) { // 获取物料属性列表 + return request({ + url: '/basic/material-attr/page', + method: 'post', + data + }) +} + +export function detail(id) { // 获取物料属性单条数据 + return request({ + url: '/basic/material-attr/get', + method: 'post', + data: { id } + }) +} + +export function update(data) { // 更新物料属性单条数据 + return request({ + url: '/basic/material-attr/update', + method: 'post', + data + }) +} + +export function add(data) { // 新增物料属性单条数据 + return request({ + url: '/basic/material-attr/add', + method: 'post', + data + }) +} + +export function getCode() { // 获取物料属性code + return request({ + url: '/basic/material-attr/get-code', + method: 'post' + }) +} + +export function del(id) { // 删除物料属性单条数据 + return request({ + url: '/basic/material-attr/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Materials/materialsType.js b/src/api/basicData/Materials/materialsType.js new file mode 100644 index 0000000..17139f1 --- /dev/null +++ b/src/api/basicData/Materials/materialsType.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-16 11:52:14 + * @Description: + */ +import request from '@/utils/request' + +export function list(data) { // 获取物料类型列表 + return request({ + url: '/basic/material-type/page', + method: 'post', + data + }) +} + +export function detail(id) { // 获取物料类型单条数据 + return request({ + url: '/basic/material-type/get', + method: 'post', + data: { id } + }) +} + +export function update(data) { // 更新物料类型单条数据 + return request({ + url: '/basic/material-type/update', + method: 'post', + data + }) +} + +export function add(data) { // 新增物料类型单条数据 + return request({ + url: '/basic/material-type/add', + method: 'post', + data + }) +} + +export function getCode() { // 获取物料类型code + return request({ + url: '/basic/material-type/get-code', + method: 'post' + }) +} + +export function del(id) { // 删除物料类型单条数据 + return request({ + url: '/basic/material-type/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/ProductAttr.js b/src/api/basicData/ProductAttr.js new file mode 100644 index 0000000..a0a1be4 --- /dev/null +++ b/src/api/basicData/ProductAttr.js @@ -0,0 +1,92 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-16 22:00:49 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取产品属性列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {string} data.productId + * @param {number} [data.enabled] + */ +export function list(data) { + return request({ + url: '/basic/product-arrt/page', + method: 'post', + data + }) +} + +/** + * 获取产品属性单条数据 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/product-arrt/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新产品属性单条数据 + * @param {object} data + * @param {string} data.code + * @param {string} data.description + * @param {number} data.id + * @param {string} data.name + * @param {string} data.productId + * @param {string} data.value + */ +export function update(data) { + return request({ + url: '/basic/product-arrt/update', + method: 'post', + data + }) +} + +/** + * 新增产品属性单条数据 + * @param {object} data + * @param {string} data.code + * @param {string} data.description + * @param {number} [data.id] + * @param {string} data.name + * @param {string} data.productId + * @param {string} data.value + */ +export function add(data) { + return request({ + url: '/basic/product-arrt/add', + method: 'post', + data + }) +} + +export function getCode() { + // 获取产品信息code + return request({ + url: '/basic/product-arrt/get-code', + method: 'post' + }) +} + +/** + * 删除产品信息属性单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/product-arrt/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/ProductDelivery/car.js b/src/api/basicData/ProductDelivery/car.js new file mode 100644 index 0000000..738f4e6 --- /dev/null +++ b/src/api/basicData/ProductDelivery/car.js @@ -0,0 +1,118 @@ +/* + * @Author: lb + * @Date: 2022-05-18 14:45:10 + * @LastEditors: lb + * @LastEditTime: 2022-05-18 14:45:10 + * @Description: 发车清单 + */ +import request from '@/utils/request' + +/** + * 新增车辆信息 + * @param {object} data + * @param {string} [data.contactPerson] 车辆联系人 + * @param {number} [data.contactPersonCall] 车辆联系人电话 + * @param {string} [data.deliveryCarCode] 发车编码 + * @param {string} [data.description] 车辆描述信息 + * @param {number} [data.id] + * @param {string} [data.plate] 车牌 + * @param {number} data.productDeliveryLogId 上层发货单id + * @param {number} [data.quantity] 装车数量 + * @param {string} [data.remark] + * @param {string} [data.startLoadTime] 开始装货时间 + * @param {number} [data.unitId] 单位id + */ +export function add(data) { + return request({ + url: '/stock/ProductDeliveryCarLog/create', + method: 'post', + data + }) +} + +/** + * 删除发车清单条目 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/stock/ProductDeliveryCarLog/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取车载货物列表 + * @param {number} id 车辆的id + */ +export function getCargoList(id) { + return request({ + url: '/stock/ProductDeliveryCarLog/get', + method: 'post', + data: { id } + }) +} + +/** + * 获取发车清单list + * @param {number} id 发货单的id + */ +export function getCars(id) { // 没有分页 + return request({ + url: '/stock/ProductDeliveryCarLog/list', + method: 'post', + data: { id } + }) +} + +/** + * 修改车辆信息 + * @param {object} data + * @param {string} [data.contactPerson] 车辆联系人 + * @param {number} [data.contactPersonCall] 车辆联系人电话 + * @param {string} [data.deliveryCarCode] 发车编码 + * @param {string} [data.description] 车辆描述信息 + * @param {number} data.id + * @param {string} [data.plate] 车牌 + * @param {number} data.productDeliveryLogId 上层发货单id + * @param {number} [data.quantity] 装车数量 + * @param {string} [data.remark] + * @param {string} [data.startLoadTime] 开始装货时间 + * @param {number} [data.unitId] 单位id + */ +export function update(data) { + return request({ + url: '/stock/ProductDeliveryCarLog/update', + method: 'post', + data + }) +} + +export function getShelfList() { + return request({ + url: '/basic/shelf/page', + method: 'post', + data: { + current: 1, + size: 999, + enabled: 1 + } + }) +} + +/** + * getShelfRelation + * @param {string} shelfCode + * @returns + */ +export function getShelfRelation(shelfCode) { + return request({ + url: '/stock/ProductDeliveryCarLogDet/getShelfRelation', + method: 'get', + params: { + shelfCode + } + }) +} + diff --git a/src/api/basicData/ProductDelivery/load.js b/src/api/basicData/ProductDelivery/load.js new file mode 100644 index 0000000..45a4a36 --- /dev/null +++ b/src/api/basicData/ProductDelivery/load.js @@ -0,0 +1,103 @@ +/* + * @Author: lb + * @Date: 2022-05-18 14:45:10 + * @LastEditors: lb + * @LastEditTime: 2022-05-18 14:45:10 + * @Description: 装车清单 + */ +import request from '@/utils/request' + +/** + * 给车辆新增一条装货信息 + * @param {object} data + * @param {number} data.carLogId 涉及的车辆 + * @param {number} [data.id] + * @param {string} [data.productGrade] + * @param {number} [data.productId] + * @param {string} [data.productName] + * @param {number} [data.productSpecifications] + * @param {number} [data.quantity] + * @param {number} [data.shelfId] + * @param {number} [data.unitId] + */ +export function add(data) { + return request({ + url: '/stock/ProductDeliveryCarLogDet/create', + method: 'post', + data + }) +} + +/** + * 删除一条装货信息 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/stock/ProductDeliveryCarLogDet/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取装货清单的其他详细信息:地址、客户、车辆列表等 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/stock/ProductDeliveryCarLogDet/get', + method: 'post', + data: { id } + }) +} + +/** + * 获取装货清单里的产品列表 + * @param {number} id 上层发车单的id + */ +export function getCargoList(id) { + return request({ + url: '/stock/ProductDeliveryCarLogDet/list', + method: 'post', + data: { id } + }) +} + +/** + * 修改车载货物信息 + * @param {object} data + * @param {number} data.carLogId + * @param {number} data.id + * @param {string} [data.productGrade] + * @param {number} [data.productId] + * @param {string} [data.productName] + * @param {number} [data.productSpecifications] + * @param {number} [data.quantity] + * @param {number} [data.shelfId] + * @param {number} [data.unitId] + */ +export function update(data) { + return request({ + url: '/stock/ProductDeliveryCarLogDet/update', + method: 'post', + data + }) +} + +/** + * 获取所有的产品列表 + * @param {*} data + * @returns + */ +export function getProductList() { + return request({ + url: '/basic/product/page', + method: 'post', + data: { + current: 1, + size: 999, + enabled: 1 + } + }) +} diff --git a/src/api/basicData/ProductDelivery/meta.js b/src/api/basicData/ProductDelivery/meta.js new file mode 100644 index 0000000..6c708c4 --- /dev/null +++ b/src/api/basicData/ProductDelivery/meta.js @@ -0,0 +1,131 @@ +/* + * @Author: lb + * @Date: 2022-05-18 14:45:10 + * @LastEditors: lb + * @LastEditTime: 2022-05-18 14:45:10 + * @Description: + */ +import request from '@/utils/request' + +/** + * 新增发货单基础信息,如:发货方信息、运输方信息和订单等信息 + * @param {object} data + * @param {number} [data.id] + * @param {string} [data.address] + * @param {string} [data.customerName] + * @param {string} [data.deliveryCode] + * @param {string} [data.deliveryPerson] + * @param {number} [data.deliveryPersonCall] + * @param {string} [data.description] + * @param {string} [data.startTime] + * @param {string} [data.endTime] + * @param {number} [data.orderId] + * @param {string} [data.orderName] + * @param {string} [data.principal] + * @param {number} [data.principalCall] + * @param {number} [data.quantity] + * @param {string} [data.remark] + * @param {string} [data.transportCompany] + * @param {number} [data.unitId] + */ +export function add(data) { + return request({ + url: '/stock/ProductDeliveryLog/create', + method: 'post', + data + }) +} + +/** + * 删除发货单 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/stock/ProductDeliveryLog/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取发货单涉及的车辆、发货方、运输方信息 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/stock/ProductDeliveryLog/get', + method: 'post', + data: { id } + }) +} + +/** + * 获取发货单下的发车单列表 + * @param {number} id + */ +export function getCars(id) { + return request({ + url: '/stock/ProductDeliveryLog/getCarList', + method: 'post', + data: { id } + }) +} + +/** + * 获取分页发货单的简要信息 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.orderName] + * @param {string} [data.startDate] + * @param {string} [data.endDate] + */ +export function list(data) { + return request({ + url: '/stock/ProductDeliveryLog/page', + method: 'post', + data + }) +} +/** + * 修改发货单基础信息,如:发货方信息、运输方信息和订单等信息 + * @param {object} data + * @param {number} data.id + * @param {string} [data.address] + * @param {string} [data.customerName] + * @param {string} [data.deliveryCode] + * @param {string} [data.deliveryPerson] + * @param {number} [data.deliveryPersonCall] + * @param {string} [data.description] + * @param {string} [data.startTime] + * @param {string} [data.endTime] + * @param {number} [data.orderId] + * @param {string} [data.orderName] + * @param {string} [data.principal] + * @param {number} [data.principalCall] + * @param {number} [data.quantity] + * @param {string} [data.remark] + * @param {string} [data.transportCompany] + * @param {number} [data.unitId] + */ +export function update(data) { + return request({ + url: '/stock/ProductDeliveryLog/update', + method: 'post', + data + }) +} + +/** + * 获取所有订单列表,用于输入过滤 + * @returns + */ +export function getAllOrders() { + return request({ + url: '/order/order/list', + method: 'post', + data: { enabled: 1 } + }) +} diff --git a/src/api/basicData/ProductDelivery/process.js b/src/api/basicData/ProductDelivery/process.js new file mode 100644 index 0000000..b994e16 --- /dev/null +++ b/src/api/basicData/ProductDelivery/process.js @@ -0,0 +1,72 @@ +/* + * @Author: lb + * @Date: 2022-05-18 14:45:10 + * @LastEditors: lb + * @LastEditTime: 2022-05-18 14:45:10 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取进度详情的所有发货清单 + * @param {number} id 发货单id + */ +export function processDetail(id) { + return request({ + url: '/stock/ProductDeliveryProgress/get', + method: 'post', + data: { id } + }) +} + +/** + * 发车清单里的产品列表 + * @param {number} id 发货单id + */ +export function cargoList(data) { + return request({ + url: '/stock/ProductDeliveryProgress/getAllDet', + method: 'post', + data + }) +} + +/** + * 获取订单的发货进度列表 + * @param {string} orderName 订单名 + */ +export function getProcessList(orderName) { + return request({ + url: '/stock/ProductDeliveryProgress/list', + method: 'post', + data: { orderName } + }) +} + +/** + * 获取订单的发货进度分页列表 + * @param {object} data + * @param {object} data.current + * @param {object} data.size + * @param {object} [data.orderName] + * @param {object} [data.enabled] + */ +export function getProcessPage(data) { + return request({ + url: '/stock/ProductDeliveryProgress/page', + method: 'post', + data + }) +} + +/** + * 获取所有订单列表,用于输入过滤 + * @returns + */ +export function getAllOrders() { + return request({ + url: '/order/order/list', + method: 'post', + data: { enabled: 1 } + }) +} diff --git a/src/api/basicData/ProductPool.js b/src/api/basicData/ProductPool.js new file mode 100644 index 0000000..0148a03 --- /dev/null +++ b/src/api/basicData/ProductPool.js @@ -0,0 +1,185 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-16 14:45:10 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页产品列表 + * @param {object} data + * @param {number} data.current + * @param {number} [data.enabled] + * @param {string} [data.key] + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/product/page', + method: 'post', + data + }) +} + +/** + * 获取产品详情 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/product/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新产品池单条数据 + * @param {object} data + * @param {number} data.id + * @param {string} data.name + * @param {string} data.code + * @param {number} [data.area] + * @param {string} [data.description] + * @param {string} [data.dictDataId] + * @param {number} [data.processTime] + * @param {string} [data.productTypeId] + * @param {string} [data.specifications] + */ +export function update(data) { + return request({ + url: '/basic/product/update', + method: 'post', + data + }) +} + +/** + * 新增产品池单条数据 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.name + * @param {string} data.code + * @param {number} [data.area] + * @param {string} [data.description] + * @param {string} [data.dictDataId] + * @param {number} [data.processTime] + * @param {string} [data.productTypeId] + * @param {string} [data.specifications] + */ +export function add(data) { + return request({ + url: '/basic/product/add', + method: 'post', + data + }) +} + +export function getCode() { + // 获取产品池code + return request({ + url: '/basic/product/get-code', + method: 'post' + }) +} + +/** + * 删除产品池单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/product/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取产品属性列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {string} data.productId + * @param {number} [data.enabled] + */ +export function getProductAttributeList(data) { + return request({ + url: '/basic/product-arrt/page', + method: 'post', + data + }) +} + +/** + * 删除产品属性 + * @param {number} id + */ +export function deleteProductAttribute(id) { + return request({ + url: '/basic/product-arrt/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取产品类型列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + */ +export function getProductTypeList(data) { + // 此接口接收的是 application/x-www-form-urlencoded 数据 + // const urlEncodedData = new URLSearchParams() + // for (const key in data) { + // urlEncodedData.append(key, data[key]) + // } + // urlEncodedData.append('dataType', '产品类型') + // return request({ + // url: '/common/data-dictionary/list', + // method: 'post', + // data: urlEncodedData + // }) + + // 此接口现改为接收 json 数据 + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data: { + ...data, + dictTypeId: '1386586276368023554' // 产品类型id + } + }) +} + +/** + * 获取单位列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + */ +export function getUnitList(data) { + // const urlEncodedData = new URLSearchParams() + // for (const key in data) { + // urlEncodedData.append(key, data[key]) + // } + // urlEncodedData.append('dataType', '单位') + // return request({ + // url: '/common/data-dictionary/list', + // method: 'post', + // data: urlEncodedData + // }) + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data: { + ...data, + dictTypeId: 2 + } + }) +} diff --git a/src/api/basicData/Scrap/ScrapInfo.js b/src/api/basicData/Scrap/ScrapInfo.js new file mode 100644 index 0000000..2393e50 --- /dev/null +++ b/src/api/basicData/Scrap/ScrapInfo.js @@ -0,0 +1,110 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-15 15:25:18 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取分页报废原因 + * @param {object} data + * @param {string} [data.code] + * @param {number} data.current + * @param {number} [data.enabled] + * @param {string} [data.name] + * @param {string} [data.scrapTypeId] + * @param {number} data.size + */ +export function list(data) { + return request({ + url: '/basic/scrap-information/page', + method: 'post', + data + }) +} + +/** + * 获取报废原因详情 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/scrap-information/get', + method: 'post', + data: { id } + }) +} + +/** + * 更新报废信息 + * @param {object} data + * @param {string} data.code + * @param {number} data.id + * @param {string} data.name + * @param {string} [data.remark] + * @param {string} data.scrapType + * @param {string} data.scrapTypeId + */ +export function update(data) { + return request({ + url: '/basic/scrap-information/update', + method: 'post', + data + }) +} + +/** + * 新增报废信息 + * @param {object} data + * @param {string} data.code + * @param {number} data.id + * @param {string} data.name + * @param {string} [data.remark] + * @param {string} data.scrapType + * @param {string} data.scrapTypeId + */ +export function add(data) { + return request({ + url: '/basic/scrap-information/add', + method: 'post', + data + }) +} + +export function getCode() { + // 获取报废信息code + return request({ + url: '/basic/scrap-information/get-code', + method: 'post' + }) +} + +/** + * 删除报废信息单条数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/scrap-information/delete', + method: 'post', + data: { id } + }) +} + +/** + * 获取分页报废类型信息 + * @param {object} data + * @param {number} data.current + * @param {number} [data.enabled] + * @param {string} [data.scrapType] + * @param {number} data.size + */ +export function getScrapTypeList(data) { + return request({ + url: '/basic/scrap-type-information/page', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Scrap/ScrapType.js b/src/api/basicData/Scrap/ScrapType.js new file mode 100644 index 0000000..d7cc368 --- /dev/null +++ b/src/api/basicData/Scrap/ScrapType.js @@ -0,0 +1,58 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-03-10 14:25:59 + * @Description: + */ +import request from '@/utils/request' + +export function list(data) { // 获取报废类型列表 + return request({ + url: '/basic/scrap-type-information/page', + method: 'post', + data + }) +} + +export function detail(id) { // 获取报废类型单条数据 + const data = { + 'id': id + } + return request({ + url: '/basic/scrap-type-information/get', + method: 'post', + data + }) +} + +export function update(data) { // 更新报废类型单条数据 + return request({ + url: '/basic/scrap-type-information/update', + method: 'post', + data + }) +} + +export function add(data) { // 新增报废类型单条数据 + return request({ + url: '/basic/scrap-type-information/add', + method: 'post', + data + }) +} + +export function scrapTypeCode() { // 获取报废类型code + return request({ + url: '/basic/scrap-type-information/get-code', + method: 'post' + }) +} + +export function del(id) { // 删除报废类型单条数据 + return request({ + url: '/basic/scrap-type-information/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/ScrapInfo.js b/src/api/basicData/ScrapInfo.js new file mode 100644 index 0000000..f66ee27 --- /dev/null +++ b/src/api/basicData/ScrapInfo.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-18 14:48:49 + * @Description: + */ +import request from '@/utils/request' + +export function ScrapInfoList(data) { // 获取废品报废信息列表 + return request({ + url: '/basic/scrap/page', + method: 'post', + data + }) +} + +export function ScrapInfoDetail(id) { // 获取废品报废信息单条数据 + return request({ + url: '/basic/scrap/get', + method: 'post', + data: { id } + }) +} + +export function ScrapInfoUpdate(data) { // 更新废品报废信息单条数据 + return request({ + url: '/basic/scrap/update', + method: 'post', + data + }) +} + +export function ScrapInfoAdd(data) { // 新增废品报废信息单条数据 + return request({ + url: '/basic/scrap/add', + method: 'post', + data + }) +} + +export function ScrapInfoCode() { // 获取废品报废信息code + return request({ + url: '/basic/scrap/get-code', + method: 'post' + }) +} + +export function ScrapInfoDelete(id) { // 删除废品报废信息单条数据 + return request({ + url: '/basic/scrap/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/StateConfig.js b/src/api/basicData/StateConfig.js new file mode 100644 index 0000000..f7208da --- /dev/null +++ b/src/api/basicData/StateConfig.js @@ -0,0 +1,55 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-01-13 16:11:45 + * @Description: + */ +import request from '@/utils/request' + +export function StateConfigList(data) { // 获取状态列表 + return request({ + url: '/basic/configure-display/page', + method: 'post', + data + }) +} + +export function StateConfigDetail(id) { // 获取状态单条数据 + return request({ + url: '/basic/configure-display/get', + method: 'post', + data: { id } + }) +} + +export function StateConfigUpdate(data) { // 更新状态单条数据 + return request({ + url: '/basic/configure-display/update', + method: 'post', + data + }) +} + +export function StateConfigAdd(data) { // 新增状态单条数据 + return request({ + url: '/basic/configure-display/add', + method: 'post', + data + }) +} + +export function StateConfigCode() { // 获取状态code + return request({ + url: '/basic/configure-display/get-code', + method: 'post' + }) +} + +export function StateConfigDelete(id) { // 删除状态单条数据 + return request({ + url: '/basic/configure-display/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/dataDict.js b/src/api/basicData/dataDict.js new file mode 100644 index 0000000..ce0582f --- /dev/null +++ b/src/api/basicData/dataDict.js @@ -0,0 +1,194 @@ +/* + * @Author: lb + * @Date: 2022-04-21 8:51:29 + * @LastEditors: lb + * @LastEditTime: 2022-04-21 8:51:29 + * @Description: + */ +import request from '@/utils/request' + +/** + * 获取字典类型列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.enabled + * @param {number} data.size + * @param {string} data.typeCode + * @param {string} data.typeName + */ +export function getTypeList(data) { + return request({ + url: '/basic/platform-dict/selectPlatformDictTypeListByPage', + method: 'post', + data + }) +} + +/** + * 根据id查询字典类型 + * @param {number} id + */ +export function getTypeDetail(id) { + // + return request({ + url: '/basic/platform-dict/selectDictTypeById', + method: 'post', + data: { id } + }) +} + +/** + * 更新字典类型 + * @param {object} data + * @param {number} data.id + * @param {string} data.typeCode + * @param {string} data.typeName + * @param {string} [data.remark] + * @param {number} [data.valid] + * @param {number} [data.version] + * @param {string} [data.createTime] + * @param {number} [data.creator] + * @param {string} [data.creatorName] + * @param {string} [data.updateTime] + * @param {number} [data.updater] + * @param {string} [data.updaterName] + */ +export function updateType(data) { + return request({ + url: '/basic/platform-dict/updatePlatformDictType', + method: 'post', + data + }) +} + +/** + * 新增字典类型 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.typeCode + * @param {string} data.typeName + * @param {string} [data.remark] + * @param {number} [data.valid] + * @param {number} [data.version] + * @param {string} [data.createTime] + * @param {number} [data.creator] + * @param {string} [data.creatorName] + * @param {string} [data.updateTime] + * @param {number} [data.updater] + * @param {string} [data.updaterName] + */ +export function addType(data) { + return request({ + url: '/basic/platform-dict/savePlatformDictType', + method: 'post', + data + }) +} + +/** + * 删除字典类型单条数据 + * @param {number} id + */ +export function deleteType(id) { + return request({ + url: '/basic/platform-dict/deletePlatformDictType', + method: 'post', + data: { id } + }) +} + +/** + * 获取某个字典类型下的所有字典数据 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} data.dictTypeId + * @param {string} [data.dataCode] + * @param {string} [data.dataName] + * @param {number} [data.enabled] + */ +export function list(data) { + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data + }) +} + +/** + * 获取某个字典类型下的某条字典数据 + * @param {number} id + */ +export function detail(id) { + return request({ + url: '/basic/platform-dict/selectPlatformDictDataById', + method: 'post', + data: { id } + }) +} + +/** + * 更新某个字典类型下的某条字典数据 + * @param {object} data + * @param {number} data.id + * @param {number} data.dictTypeId + * @param {string} data.createTime + * @param {string} data.dataCode + * @param {string} data.dataName + * @param {string} data.typeCode + * @param {string} data.typeName + * @param {number} [data.valid] + * @param {string} [data.remark] + * @param {number} [data.version] + * @param {number} [data.creator] + * @param {string} [data.creatorName] + * @param {string} [data.updateTime] + * @param {number} [data.updater] + * @param {string} [data.updaterName] + */ +export function update(data) { + return request({ + url: '/basic/platform-dict/updatePlatformDictData', + method: 'post', + data + }) +} + +/** + * 新增某个字典类型下的某条字典数据 + * @param {object} data + * @param {number} data.id + * @param {number} data.dictTypeId + * @param {string} data.createTime + * @param {string} data.dataCode + * @param {string} data.dataName + * @param {string} data.typeCode + * @param {string} data.typeName + * @param {number} [data.valid] + * @param {string} [data.remark] + * @param {number} [data.version] + * @param {number} [data.creator] + * @param {string} [data.creatorName] + * @param {string} [data.updateTime] + * @param {number} [data.updater] + * @param {string} [data.updaterName] + */ +export function add(data) { + return request({ + url: '/basic/platform-dict/savePlatformDictData', + method: 'post', + data + }) +} + +/** + * 删除某个字典类型下的某条字典数据 + * @param {number} id + */ +export function del(id) { + return request({ + url: '/basic/platform-dict/deletePlatformDictData', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/dataDictionary.js b/src/api/basicData/dataDictionary.js new file mode 100644 index 0000000..99540ee --- /dev/null +++ b/src/api/basicData/dataDictionary.js @@ -0,0 +1,48 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: Please set LastEditors + * @LastEditTime: 2021-05-19 15:57:56 + * @Description: + */ +import request from '@/utils/request' + +export function dataDictionaryDataList(data) { // 获取字典类型列表 + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data + }) +} + +export function dataDictionaryDataDetail(id) { // 获取字典类型单条数据 + return request({ + url: '/basic/platform-dict/selectPlatformDictDataById', + method: 'post', + data: { id } + }) +} + +export function dataDictionaryDataUpdate(data) { // 更新字典类型单条数据 + return request({ + url: '/basic/platform-dict/updatePlatformDictData', + method: 'post', + data + }) +} + +export function dataDictionaryDataAdd(data) { // 新增字典类型单条数据 + return request({ + url: '/basic/platform-dict/savePlatformDictData', + method: 'post', + data + }) +} + +export function dataDictionaryDataDelete(id) { // 删除字典类型单条数据 + return request({ + url: '/basic/platform-dict/deletePlatformDictData', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/dataDictionaryType.js b/src/api/basicData/dataDictionaryType.js new file mode 100644 index 0000000..000a1d0 --- /dev/null +++ b/src/api/basicData/dataDictionaryType.js @@ -0,0 +1,107 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: lb + * @LastEditTime: 2022-04-21 8:51:29 + * @Description: + */ +import request from '@/utils/request' + +export function dataDictionaryTypeListDeprecated(data) { + // 获取字典类型列表 + return request({ + url: '/basic/platform-dict/selectDictTypeByList', + method: 'post', + data + }) +} + +/** + * 获取字典类型列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.enabled + * @param {number} data.size + * @param {string} data.typeCode + * @param {string} data.typeName + */ +export function dataDictionaryTypeList(data) { + return request({ + url: '/basic/platform-dict/selectPlatformDictTypeListByPage', + method: 'post', + data + }) +} + +/** + * 根据id查询字典类型 + * @param {number} id + */ +export function dataDictionaryTypeDetail(id) { + // + return request({ + url: '/basic/platform-dict/selectDictTypeById', + method: 'post', + data: { id } + }) +} + +/** + * 更新字典类型 + * @param {object} data + * @param {number} data.id + * @param {string} data.typeCode + * @param {string} data.typeName + * @param {string} [data.remark] + * @param {number} [data.valid] + * @param {number} [data.version] + * @param {string} [data.createTime] + * @param {number} [data.creator] + * @param {string} [data.creatorName] + * @param {string} [data.updateTime] + * @param {number} [data.updater] + * @param {string} [data.updaterName] + */ +export function dataDictionaryTypeUpdate(data) { + return request({ + url: '/basic/platform-dict/updatePlatformDictType', + method: 'post', + data + }) +} + +/** + * 新增字典类型 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.typeCode + * @param {string} data.typeName + * @param {string} [data.remark] + * @param {number} [data.valid] + * @param {number} [data.version] + * @param {string} [data.createTime] + * @param {number} [data.creator] + * @param {string} [data.creatorName] + * @param {string} [data.updateTime] + * @param {number} [data.updater] + * @param {string} [data.updaterName] + */ +export function dataDictionaryTypeAdd(data) { + return request({ + url: '/basic/platform-dict/savePlatformDictType', + method: 'post', + data + }) +} + +/** + * 删除字典类型单条数据 + * @param {number} id + */ +export function dataDictionaryTypeDelete(id) { + return request({ + url: '/basic/platform-dict/deletePlatformDictType', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/visual.js b/src/api/basicData/visual.js new file mode 100644 index 0000000..9200794 --- /dev/null +++ b/src/api/basicData/visual.js @@ -0,0 +1,90 @@ +/* + * @Author: gtz + * @Date: 2021-02-27 17:23:17 + * @LastEditors: gtz + * @LastEditTime: 2021-03-25 16:21:36 + * @Description: file content + */ + +import request from '@/utils/request' + +// 获取可视化布局图列表 +export function VisualList(data) { + return request({ + url: '/visual/visual/page', + method: 'post', + data + }) +} + +// 获取设备数据字典 +export function eqList(data) { + return request({ + url: '/basic/equipment/page', + method: 'post', + data + }) +} + +// 获取库位列表 +export function locationList(data) { + return request({ + url: '/basic/stock/page', + method: 'post', + data + }) +} + +// 获取可视化布局图信息单条数据 +export function VisualDetail(id) { + return request({ + url: '/visual/visual/get', + method: 'post', + data: { id } + }) +} + +// 更新可视化布局图信息单条数据 +export function VisualUpdate(data) { + return request({ + url: '/visual/visual/update', + method: 'post', + data + }) +} + +// 新增可视化布局图信息单条数据 +export function VisualAdd(data) { + return request({ + url: '/visual/visual/add', + method: 'post', + data + }) +} + +// 删除可视化布局图单条数据 +export function VisualDelete(id) { + return request({ + url: '/visual/visual/delete', + method: 'post', + data: { id } + }) +} + +// 获取可视化实时信息 +export function VisualEqData(data) { + return request({ + url: '/visual/visual/equipmentStatusList', + method: 'post', + data + }) +} + +// 获取可视化库位信息 +export function VisualLocationData(data) { + return request({ + url: '/visual/visual/stroageBoxForStockList', + method: 'post', + data + }) +} diff --git a/src/api/dict/index.js b/src/api/dict/index.js new file mode 100644 index 0000000..2255fc2 --- /dev/null +++ b/src/api/dict/index.js @@ -0,0 +1,502 @@ +/* + * @Date: 2021-01-21 18:08:29 + * @LastEditors: fzq + * @LastEditTime: 2022-07-27 14:06:02 + * @FilePath: \mt-bus-fe\src\api\dict\index.js + * @Description: 数据字典定义 + */ +// import request from '@/utils/request' +import request from '@/utils/request' +import { requestWithCache } from '@/utils/request' + +// 获取全部数据字典 +export function getDictList() { + return request({ + url: '/basic/platform-dict/list', + method: 'post' + }) +} + +// 获取设备列表列表 +export function getDictDevice(data) { + return requestWithCache({ + url: '/basic/equipment/page', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.name + } + }) + } else { + return [] + } + }) +} + +// 根据设备ID获取设备名称 +export function getDictEqName(data) { + return requestWithCache({ + url: '/basic/equipment/get', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.name + } else { + return [] + } + }) +} + +// 获取备品备件列表 +export function getSpareList(data) { + return requestWithCache({ + url: '/equipment/spare-part-log/pageDet', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.sparePartId, + name: item.sparePartName + } + }) + } else { + return [] + } + }) +} + +// 获取基础备品备件列表 +export function getSpareDict(data) { + return requestWithCache({ + url: '/basic/tool-spare-part/page', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.name + } + }) + } else { + return [] + } + }) +} + +// 获取工段列表 +export function getWorkshop(data) { + return requestWithCache({ + url: '/basic/workshop-section/page', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.name + } + }) + } else { + return [] + } + }) +} + +// 获取维修设备列表 +export function getRepairDictDevice(data) { + return requestWithCache({ + url: '/basic/equipment/page', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.name, + name: item.name + } + }) + } else { + return [] + } + }) +} + +// 获取设备类型列表 +export function getDictDeviceType(data) { + return requestWithCache({ + url: '/common/data-dictionary/equipmentTypeList', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data + } else { + return [] + } + }) +} + +// 获取设备类型列表 +export function getDictDeviceTypePage(data) { + return requestWithCache({ + url: '/basic/equipment-type/page', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.records + } else { + return [] + } + }) +} + +// 获取物料列表 +export function getDictBom(data) { + return requestWithCache({ + url: '/basic/material/page', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data.records + } else { + return [] + } + }) +} + +// 获取供应商列表 +export function getDictSupplier(data) { + return requestWithCache({ + url: '/common/data-dictionary/supplierList', + method: 'post', + data + }).then(res => { + if (res.code === 0) { + return res.data + } else { + return [] + } + }) +} + +// 获取单位列表 +export function getDictUnit(data) { + return requestWithCache({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data: { + current: 1, + size: 999, + dictTypeId: '1392033901169348609' + } + }).then(res => { + if (res.code === 0) { + return res.data + } else { + return [] + } + }) +} + +// 获取物料列表 +export function getDictMaterial(data) { + return requestWithCache({ + // url: '/material/material-date/materialList', + url: '/basic/material/page', + method: 'post', + data: { + current: 1, + size: 999, + ...data + } + }).then(res => { + if (res.code === 0) { + return res.data?.records || [] + } else { + return [] + } + }) +} + +// 获取维修类型 +export function getDictRepairType(data) { + return requestWithCache({ + url: '/basic/maintenance-type/page', + method: 'post', + data: { + current: 1, + enabled: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.name + } + }) + } else { + return [] + } + }) +} + +// 获取员工列表 +export function getDictWorker() { + return requestWithCache({ + url: '/basic/worker/page', + method: 'post', + data: { + current: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.name + } + }) + } else { + return [] + } + }) +} + +// 获取基础备品备件列表 +export function getDictSparepart(data) { + return requestWithCache({ + url: '/basic/tool-spare-part/page', + method: 'post', + data: { + current: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.name + (item.model ? ' - ' + item.model : '') + } + }) + } else { + return [] + } + }) +} + +// 获取备件型号 +export function getDictModel(data) { + return requestWithCache({ + url: '/basic/tool-spare-part/list', + method: 'post', + data: { + current: 1, + size: 999, + ...data + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.name + } + }) + } else { + return [] + } + }) +} + +// 质量---报废: 报废原因 +export function scrapReasonList(data) { + return requestWithCache({ + url: '/basic/scrap-information/page', + method: 'post', + data: { + current: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.scrap + } + }) + } else { + return [] + } + }) +} + +// 获取故障等级 +export function faultLevelList(data) { + return requestWithCache({ + url: '/common/data-dictionary-business/findAllByTypeOrCategory', + method: 'post', + subname: 'faultLevelList', + data: { + current: 1, + dataCategory: '故障', + dataType: '状况', + enabled: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.dataValue + } + }) + } else { + return [] + } + }) +} + +// 获取保养周期 +export function maintainPeriod(data) { + return requestWithCache({ + // url: '/basic/platform-dict/selectPlatformDictDataListByPage', + url: '/basic/maintenance-period/page', + method: 'post', + data: { + current: 1, + enabled: 1, + size: 999 + // dictTypeId: '1393406291017252866' + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.maintenancePeriod + } + }) + } else { + return [] + } + }) +} + +// 质量检测计划 获取检测频率 +export function detectionPeriod(data) { + return requestWithCache({ + url: '/common/data-dictionary-business/findAllByTypeOrCategory', + method: 'post', + subname: 'detectionPeriod', + data: { + current: 1, + dataCategory: '时间', + dataType: '频率', + enabled: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.dataValue + } + }) + } else { + return [] + } + }) +} + +// 获取设备类型的参数 +export function equipmentTypeParam(id) { + return requestWithCache({ + url: '/equipment/equipment-parameter/findAllByIdOrName', + method: 'post', + data: { + current: 1, + equipmentTypeId: id, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.paramName + } + }) + } else { + return [] + } + }) +} + +// 获取设备状态 + +export function statusList(id) { + return requestWithCache({ + url: '/basic/configure-display/page', + method: 'post', + data: { + current: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.status + } + }) + } else { + return [] + } + }) +} + +// 获取角色列表 +export function workerRoleList() { + return requestWithCache({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data: { + dictTypeId: '1383318968677273601', + current: 1, + size: 999 + } + }).then(res => { + if (res.code === 0) { + return res.data.records.map(item => { + return { + id: item.id, + name: item.dataName + } + }) + } else { + return [] + } + }) +} + diff --git a/src/api/equipment/bom.js b/src/api/equipment/bom.js new file mode 100644 index 0000000..e31af4c --- /dev/null +++ b/src/api/equipment/bom.js @@ -0,0 +1,110 @@ +/* + * @Date: 2021-01-05 15:25:38 + * @LastEditors: fzq + * @LastEditTime: 2022-06-12 20:26:23 + * @FilePath: \basic-admin\src\api\equipment\bom.js + * @Description: 设备管理——设备物料bom管理 接口定义 + */ +import request from '@/utils/request' + +// 获取物料bom列表 +export function getBOMList(data) { + return request({ + // url: '/equipment/equipment-bom/findAllByEQNameOrEQCodeOrMaterialNameWithPage', + // url: '/equipment/equipment-bom-detail/findAllByEQBomIdWithPage', + url: '/equipment/equipment-bom/page', + method: 'post', + data + }) +} + +// 新增物料bom +export function addBOM(data) { + return request({ + url: '/equipment/equipment-bom/create', + method: 'post', + data + }) +} + +// 修改物料bom +export function editBOM(data) { + return request({ + url: '/equipment/equipment-bom/update', + method: 'post', + data + }) +} + +// 删除物料bom +export function delBOM(data) { + return request({ + url: '/equipment/equipment-bom/delete', + method: 'post', + data + }) +} + +// 根据id获取物料bom +export function getBOMInfo(data) { + return request({ + url: '/equipment/equipment-bom/findById', + method: 'post', + data + }) +} + +// 获取设备物料bom列表 +export function getDeviceBOMList(data) { + return request({ + url: '/equipment/equipment-bom-detail/findAllByEQBomIdWithPage', + method: 'post', + data + }) +} + +// 新增设备物料bom +export function addDeviceBOM(data) { + return request({ + url: '/equipment/equipment-bom-detail/create', + method: 'post', + data + }) +} + +// 修改设备物料bom +export function editDeviceBOM(data) { + return request({ + url: '/equipment/equipment-bom-detail/update', + method: 'post', + data + }) +} + +// 删除设备物料bom +export function delDeviceBOM(data) { + return request({ + url: '/equipment/equipment-bom-detail/delete', + method: 'post', + data + }) +} + +// 根据id获取设备物料bom详细 +export function getDeviceBOMInfo(data) { + return request({ + url: '/equipment/equipment-bom-detail/findById', + method: 'post', + data + }) +} + +// 获取基础物料 + +export function getMaterialList(data) { + return request({ + url: '/basic/material/page', + method: 'post', + data + }) +} diff --git a/src/api/equipment/eqManager.js b/src/api/equipment/eqManager.js new file mode 100644 index 0000000..9e7d55d --- /dev/null +++ b/src/api/equipment/eqManager.js @@ -0,0 +1,80 @@ +/* + * @Author: gtz + * @Date: 2021-04-16 16:23:35 + * @LastEditors: gtz + * @LastEditTime: 2021-04-17 15:59:16 + * @Description: file content + */ + +import request from '@/utils/request' + +// 获取设备管理员列表 +export function page(data) { + return request({ + url: '/equipment/equipment-operator-relation/findAll', + method: 'post', + data + }) +} + +// 添加设备管理员 +export function add(data) { + return request({ + url: '/equipment/equipment-operator-relation/create', + method: 'post', + data + }) +} + +// 编辑设备管理员 +export function edit(data) { + return request({ + url: '/equipment/equipment-operator-relation/update', + method: 'post', + data + }) +} + +// 删除设备管理员 +export function del(data) { + return request({ + url: '/equipment/equipment-operator-relation/delete', + method: 'post', + data + }) +} + +// 获取设备管理员详情 +export function getInfo(data) { + return request({ + url: '/equipment/equipment-operator-relation/findById', + method: 'post', + data + }) +} + +export function getWorkerList(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} + +export function getEqList(data) { + return request({ + url: '/basic/equipment/page', + method: 'post', + data + }) +} + +export function getRoleList() { + return request({ + url: '/equipment/equipment-operator-relation/findAllOperator', + method: 'post', + data: { + roleId: '1410037914748780545' + } + }) +} diff --git a/src/api/equipment/equipmentParams.js b/src/api/equipment/equipmentParams.js new file mode 100644 index 0000000..a81961f --- /dev/null +++ b/src/api/equipment/equipmentParams.js @@ -0,0 +1,18 @@ +/* + * @Author: gtz + * @Date: 2021-06-17 15:20:52 + * @LastEditors: gtz + * @LastEditTime: 2021-06-17 15:23:05 + * @Description: file content + */ + +import request from '@/utils/request' + +// 获取设备管理员列表 +export function getEqList(data) { + return request({ + url: '/material/substrate-tree/getTree', + method: 'post', + data + }) +} diff --git a/src/api/equipment/index.js b/src/api/equipment/index.js new file mode 100644 index 0000000..a532c6f --- /dev/null +++ b/src/api/equipment/index.js @@ -0,0 +1,27 @@ +/* + * @Date: 2021-01-14 19:17:57 + * @LastEditors: guo + * @LastEditTime: 2021-01-14 19:56:16 + * @FilePath: \basic-admin\src\api\equipment\index.js + * @Description: 设备部分基础接口 + */ + +import request from '@/utils/request' + +// 获取设备状态配置列表 +export function getStatusSettingList(data) { + return request({ + url: '/equipment/equipment/list', + method: 'post', + data + }) +} + +// 修改设备状态配置 +export function editStatusSetting(data) { + return request({ + url: '/equipment/equipment/updateById', + method: 'post', + data + }) +} diff --git a/src/api/equipment/inspectionManager.js b/src/api/equipment/inspectionManager.js new file mode 100644 index 0000000..06ed559 --- /dev/null +++ b/src/api/equipment/inspectionManager.js @@ -0,0 +1,199 @@ +import request from '@/utils/request' + +// 获取分页巡检内容 +export function inspectionList(data) { + return request({ + url: '/equipment/inspectionItem/page', + method: 'post', + data + }) +} + +// 获取巡检code +export function inspectionCode(data) { + return request({ + url: '/equipment/inspectionItem/get-code', + method: 'post', + data + }) +} + +// 获取巡检内容 +export function getInspection(data) { + return request({ + url: '/equipment/inspectionItem/get', + method: 'post', + data + }) +} + +// 新增巡检内容 +export function inspectionAdd(data) { + return request({ + url: '/equipment/inspectionItem/add', + method: 'post', + data + }) +} + +// 更新巡检内容 +export function inspectionUpdate(data) { + return request({ + url: '/equipment/inspectionItem/update', + method: 'post', + data + }) +} + +// 删除巡检内容 +export function inspectionDel(data) { + return request({ + url: '/equipment/inspectionItem/delete', + method: 'post', + data + }) +} + +// 获取设备list +export function equipmentList(data) { + return request({ + url: '/basic/equipment/list', + method: 'post', + data + }) +} + +// 获取分页巡检记录 +export function inspectionLog(data) { + return request({ + url: '/equipment/inspectionLog/page', + method: 'post', + data + }) +} + +// 设备分页 +export function equipmentPage(data) { + return request({ + url: '/equipment/inspectionItem/page-EQ', + method: 'post', + data + }) +} + +// 新增设备 +export function equipmentAdd(data) { + return request({ + url: '/equipment/inspectionItem/add-EQ', + method: 'post', + data + }) +} + +// 删除设备 +export function equipmentDel(data) { + return request({ + url: '/equipment/inspectionItem/delete-EQ', + method: 'post', + data + }) +} + +// 根据设备id获取巡检内容列表 +export function eInspectionItem(data) { + return request({ + url: '/equipment/inspectionItem/list-WithEQ', + method: 'post', + data + }) +} + +// 获取巡检内容列表 +export function inspectionItemList(data) { + return request({ + url: '/equipment/inspectionItem/list', + method: 'post', + data + }) +} + +// 新增巡检内容和设备的关联 +export function einspectionItemAdd(data) { + return request({ + url: '/equipment/inspectionItem/add-WithEQ', + method: 'post', + data + }) +} + +// 删除巡检内容和设备的关联 +export function einspectionItDel(data) { + return request({ + url: '/equipment/inspectionItem/delete-WithEQ', + method: 'post', + data + }) +} + +// 获取巡检记录下的巡检内容分页 +export function einspectionItList(data) { + return request({ + url: '/equipment/equipmentinspection-inspectionitem/list', + method: 'post', + data + }) +} + +// 新增设备巡检记录 +export function einspectionLog(data) { + return request({ + url: '/equipment/inspectionLog/add', + method: 'post', + data + }) +} + +// 获取设备巡检记录by巡检记录id +export function geteinspectionLog(data) { + return request({ + url: '/equipment/inspectionLog/get', + method: 'post', + data + }) +} + +// 更新设备巡检记录 +export function einspectionLogU(data) { + return request({ + url: '/equipment/inspectionLog/update', + method: 'post', + data + }) +} + +// 删除设备巡检记录 +export function einspectionLogD(data) { + return request({ + url: '/equipment/inspectionLog/delete', + method: 'post', + data + }) +} + +// 更新巡检记录下的巡检内容 +export function einspectionItemLogU(data) { + return request({ + url: '/equipment/equipmentinspection-inspectionitem/update', + method: 'post', + data + }) +} + +// 获取设备巡检记录下的某条具体巡检内容 +export function geteinspectionItemLog(data) { + return request({ + url: '/equipment/equipmentinspection-inspectionitem/get', + method: 'post', + data + }) +} diff --git a/src/api/equipment/knowledge.js b/src/api/equipment/knowledge.js new file mode 100644 index 0000000..fc48bfb --- /dev/null +++ b/src/api/equipment/knowledge.js @@ -0,0 +1,53 @@ +/* + * @Date: 2021-01-12 14:29:35 + * @LastEditors: gtz + * @LastEditTime: 2022-06-15 11:05:57 + * @FilePath: \mt-bus-fe\src\api\equipment\knowledge.js + * @Description: 设备维修知识库 接口定义 + */ +import request from '@/utils/request' + +// 获取设备维修列表 +export function list(data) { + return request({ + url: '/equipment/maintenance-knowledge/page', + method: 'post', + data + }) +} + +// 新增设备维护信息 +export function add(data) { + return request({ + url: '/equipment/maintenance-knowledge/create', + method: 'post', + data + }) +} + +// 删除设备维护信息 +export function del(data) { + return request({ + url: '/equipment/maintenance-knowledge/delete', + method: 'post', + data + }) +} + +// 修改设备维护信息 +export function edit(data) { + return request({ + url: '/equipment/maintenance-knowledge/update', + method: 'post', + data + }) +} + +// 获取维修信息详细 +export function getInfo(data) { + return request({ + url: '/equipment/maintenance-knowledge/findById', + method: 'post', + data + }) +} diff --git a/src/api/equipment/maintain.js b/src/api/equipment/maintain.js new file mode 100644 index 0000000..f010380 --- /dev/null +++ b/src/api/equipment/maintain.js @@ -0,0 +1,161 @@ +/* + * @Date: 2021-01-15 17:42:07 + * @LastEditors: fzq + * @LastEditTime: 2022-07-08 10:02:14 + * @FilePath: \basic-admin\src\api\equipment\maintain.js + * @Description: 保养计划 & 保养记录 接口定义 + */ +import request from '@/utils/request' + +// 获取保养计划列表 查询列表 依据设备id 或保养计划id 或 保养状态 或 时间段 +export function getMaintainPlanList(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/list', + method: 'post', + data + }) +} + +// 获取保养计划分页 查询列表 依据设备id 或保养计划id 或 保养状态 或 时间段 +export function getMaintainPlanPage(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/page', + method: 'post', + data + }) +} + +// 添加保养计划 +export function addMaintainPlan(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/create', + method: 'post', + data + }) +} + +// 编辑保养计划 +export function editMaintainPlan(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/update', + method: 'post', + data + }) +} + +// 删除保养计划 +export function delMaintainPlan(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/delete', + method: 'post', + data + }) +} + +// 获取保养计划详情 +export function getMaintainPlan(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/list', + method: 'post', + data + }) +} + +// 保养设备监控 +export function getMaintainMonitor(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/monitor', + method: 'post', + data + }) +} + +// 获取保养日志列表 依据设备名 或 保养状态 或 时间段 或 设备保养计划id查询 或 保养记录和保养计划是否关联划分 或 保养人员 查询(保养记录和保养计划关联) +export function getMaintainLogList(data) { + return request({ + url: '/equipment/equipment-maintenace-log/list', + method: 'post', + data + }) +} + +// 获取独立的保养日志列表 (保养记录和保养计划不关联) +export function getSingleMaintainLogList(data) { + return request({ + url: '/equipment/equipment-maintenace-log/page', + method: 'post', + data + }) +} + +// 添加保养日志 +export function addMaintainLog(data) { + return request({ + url: '/equipment/equipment-maintenace-log/create', + method: 'post', + data + }) +} + +// 编辑保养日志 +export function editMaintainLog(data) { + return request({ + url: '/equipment/equipment-maintenace-log/update', + method: 'post', + data + }) +} + +// 删除保养日志 +export function delMaintainLog(data) { + return request({ + url: '/equipment/equipment-maintenace-log/delete', + method: 'post', + data + }) +} + +// 获取保养日志详情 +export function getMaintainLog(data) { + return request({ + url: '/equipment/equipment-maintenace-log/findById', + method: 'post', + data + }) +} + +// 获取设备列表 +export function getEqList(data) { + return request({ + url: '/basic/equipment/page', + method: 'post', + data + }) +} + +// 获取设备列表详情 +export function getEqListDetail(data) { + return request({ + url: '/basic/equipment/get', + method: 'post', + data + }) +} + +// 获取保养计划单号 +export function getPlanCode(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/getEquipmentMaintenancePlanCode', + method: 'post', + data + }) +} + +// 获取保养记录单号 +export function getLogCode(data) { + return request({ + url: '/equipment/equipment-maintenace-plan/getEquipmentMaintenanceLogCode', + method: 'post', + data + }) +} diff --git a/src/api/equipment/monitoring.js b/src/api/equipment/monitoring.js new file mode 100644 index 0000000..d346963 --- /dev/null +++ b/src/api/equipment/monitoring.js @@ -0,0 +1,17 @@ +/* + * @Date: 2021-02-01 19:01:56 + * @LastEditors: guo + * @LastEditTime: 2021-02-01 19:02:43 + * @FilePath: \basic-admin\src\api\equipment\monitoring.js + * @Description: 设备监控 + */ +import request from '@/utils/request' + +// 获取设备监控列表 +export function getDeviceMonitoringList(data) { + return request({ + url: '/equipment/monitor/list', + method: 'post', + data + }) +} diff --git a/src/api/equipment/param.js b/src/api/equipment/param.js new file mode 100644 index 0000000..e51da8c --- /dev/null +++ b/src/api/equipment/param.js @@ -0,0 +1,187 @@ +/* + * @Date: 2021-02-01 19:33:11 + * @LastEditors: gtz + * @LastEditTime: 2021-04-23 15:45:32 + * @FilePath: \basic-admin\src\api\equipment\param.js + * @Description: 设备类型参数 + */ +import request from '@/utils/request' + +// 获取设备类型列表 +export function getDeviceList(data) { + return request({ + url: '/basic/equipment/page', + method: 'post', + data + }) +} + +// 获取设备类型详情 +export function getDeviceInfo(data) { + return request({ + url: '/basic/equipment/get', + method: 'post', + data + }) +} + +// 获取设备类型参数列表 +export function getDeviceParamList(data) { + return request({ + url: '/equipment/equipment-parameter/findAllByIdOrName', + method: 'post', + data + }) +} + +// 新增设备类型参数 +export function addDeviceParam(data) { + return request({ + url: '/equipment/equipment-parameter/create', + method: 'post', + data + }) +} + +// 编辑设备类型参数 +export function editDeviceParam(data) { + return request({ + url: '/equipment/equipment-parameter/update', + method: 'post', + data + }) +} + +// 删除设备类型参数 +export function delDeviceParam(data) { + return request({ + url: '/equipment/equipment-parameter/delete', + method: 'post', + data + }) +} + +// 查询设备类型参数 +export function getDeviceParam(data) { + return request({ + url: '/equipment/equipment-parameter/findById', + method: 'post', + data + }) +} + +// 获取设备类型参数code +export function getDeviceParamCode(data) { + return request({ + url: '/equipment/equipment-parameter/getEquipmentParamCode', + method: 'post', + data + }) +} + +// 获取设备类型参数 事件配置列表 +export function getDeviceEventSettingList(data) { + return request({ + url: '/equipment/equipment-event/findAllByIdOrName', + method: 'post', + data + }) +} + +// 获取设备类型参数 事件配置详细 +export function getDeviceEventSetting(data) { + return request({ + url: '/equipment/equipment-event/findById', + method: 'post', + data + }) +} + +// 添加设备类型参数事件配置 +export function addDeviceEventSetting(data) { + return request({ + url: '/equipment/equipment-event/create', + method: 'post', + data + }) +} + +// 编辑设备类型参数事件配置 +export function editDeviceEventSetting(data) { + return request({ + url: 'equipment/equipment-event/update', + method: 'post', + data + }) +} + +// 删除设备类型参数事件配置 +export function delDeviceEventSetting(data) { + return request({ + url: '/equipment/equipment-event/delete', + method: 'post', + data + }) +} + +// 获取设备类型参数事件code +export function getDeviceEventCode(data) { + return request({ + url: '/equipment/equipment-event/getEquipmentEventCode', + method: 'post', + data + }) +} + +// 获取设备类型报警列表 +export function getDeviceAlarmSettingList(data) { + return request({ + url: '/equipment/equipment-manage-alarm/findAllByALID', + method: 'post', + data + }) +} +// 获取设备类型报警详细 +export function getDeviceAlarmSetting(data) { + return request({ + url: '/equipment/equipment-manage-alarm/findById', + method: 'post', + data + }) +} + +// 新增设备类型报警详细 +export function addDeviceAlarmSetting(data) { + return request({ + url: '/equipment/equipment-manage-alarm/create', + method: 'post', + data + }) +} + +// 编辑设备类型报警详细 +export function editDeviceAlarmSetting(data) { + return request({ + url: '/equipment/equipment-manage-alarm/update', + method: 'post', + data + }) +} + +// 删除设备类型报警详细 +export function delDeviceAlarmSetting(data) { + return request({ + url: '/equipment/equipment-manage-alarm/delete', + method: 'post', + data + }) +} + +// 获取设备类型报警编码 +export function getDeviceAlarmCode(data) { + return request({ + url: '/equipment/equipment-manage-alarm/getEquipmentAlarmCode', + method: 'post', + data + }) +} diff --git a/src/api/equipment/process.js b/src/api/equipment/process.js new file mode 100644 index 0000000..e4528a1 --- /dev/null +++ b/src/api/equipment/process.js @@ -0,0 +1,16 @@ +/* + * @Author: your name + * @Date: 2021-06-29 17:25:28 + * @LastEditTime: 2021-06-30 09:06:28 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: \mt-bus-fe\src\api\equipment\process.js + */ +import request from '@/utils/request' +export function getProcess(data) { + return request({ + url: '/equipment/substrate-equipment-event-parameter/getAllEquipmentEventParameter', + method: 'post', + data + }) +} diff --git a/src/api/equipment/recipe.js b/src/api/equipment/recipe.js new file mode 100644 index 0000000..cebd226 --- /dev/null +++ b/src/api/equipment/recipe.js @@ -0,0 +1,108 @@ +/* + * @Date: 2021-01-28 15:01:57 + * @LastEditors: gtz + * @LastEditTime: 2021-04-20 10:50:48 + * @FilePath: \basic-admin\src\api\equipment\recipe.js + * @Description: 设备配方设置 + */ + +import request from '@/utils/request' + +// 获取设备配方CODE +export function getDeviceRecipeCode(data) { + return request({ + url: '/equipment/equipment-recipe/getEquipmentRecipeCode', + method: 'post', + data + }) +} + +// 获取设备配方列表 +export function getDeviceRecipeList(data) { + return request({ + url: '/equipment/equipment-recipe/findAllByEquipmentTypeAndRecipeName', + method: 'post', + data + }) +} + +// 新建设备配方 +export function addDeviceRecipe(data) { + return request({ + url: '/equipment/equipment-recipe/create', + method: 'post', + data + }) +} + +// 编辑设备配方 +export function editDeviceRecipe(data) { + return request({ + url: '/equipment/equipment-recipe/update', + method: 'post', + data + }) +} + +// 删除设备配方 +export function delDeviceRecipe(data) { + return request({ + url: '/equipment/equipment-recipe/delete', + method: 'post', + data + }) +} + +// 获取设备配方 +export function getDeviceRecipe(data) { + return request({ + url: '/equipment/equipment-recipe/findById', + method: 'post', + data + }) +} + +// 根据id获取设备配方参数列表 +export function getDeviceRecipeParamList(data) { + return request({ + url: '/equipment/equipment-recipe-parameter/findAllByRecipeIdWithPage', + method: 'post', + data + }) +} + +// 新增设备配方参数 +export function addDeviceRecipeParam(data) { + return request({ + url: '/equipment/equipment-recipe-parameter/create', + method: 'post', + data + }) +} + +// 修改设备配方参数 +export function editDeviceRecipeParam(data) { + return request({ + url: '/equipment/equipment-recipe-parameter/update', + method: 'post', + data + }) +} + +// 删除设备配方参数 +export function delDeviceRecipeParam(data) { + return request({ + url: '/equipment/equipment-recipe-parameter/delete', + method: 'post', + data + }) +} + +// 获取设备配方参数详细 (等待接口补全) +export function getDeviceRecipeParam(data) { + return request({ + url: '/equipment/equipment-recipe-parameter/findById', + method: 'post', + data + }) +} diff --git a/src/api/equipment/repair.js b/src/api/equipment/repair.js new file mode 100644 index 0000000..727a729 --- /dev/null +++ b/src/api/equipment/repair.js @@ -0,0 +1,115 @@ +/* + * @Date: 2021-01-12 14:29:35 + * @LastEditors: fzq + * @LastEditTime: 2022-05-18 10:30:35 + * @FilePath: \basic-admin\src\api\equipment\repair.js + * @Description: 设备维修管理 接口定义 + */ +import request from '@/utils/request' + +// 获取设备维修列表 +export function getRepairList(data) { + return request({ + url: '/equipment/equipment-repair/page', + method: 'post', + data + }) +} + +// 新增设备维护信息 +export function addRepairInfo(data) { + return request({ + url: '/equipment/equipment-repair/create', + method: 'post', + data + }) +} + +// 删除设备维护信息 +export function delRepairInfo(data) { + return request({ + url: '/equipment/equipment-repair/delete', + method: 'post', + data + }) +} + +// 修改设备维护信息 +export function editRepairInfo(data) { + return request({ + url: '/equipment/equipment-repair/update', + method: 'post', + data + }) +} + +// 获取维修信息详细 +export function getRepairInfo(data) { + return request({ + url: '/equipment/equipment-repair/findById', + method: 'post', + data + }) +} + +// 获取维修单号code +export function getCode() { + return request({ + url: '/equipment/equipment-repair/getEquipmentRepairCode', + method: 'post' + }) +} + +// // 获取设备维修列表 +// export function getRepairList(data) { +// return request({ +// url: '/equipment/equipment-repair/findAllByMaintenanceStatusOrTime', +// method: 'post', +// data +// }) +// } + +// // 新增设备维护信息 +// export function addRepairInfo(data) { +// return request({ +// url: '/equipment/equipment-repair/create', +// method: 'post', +// data +// }) +// } + +// // 删除设备维护信息 +// export function delRepairInfo(data) { +// return request({ +// url: '/equipment/equipment-repair/delete', +// method: 'post', +// data +// }) +// } + +// // 修改设备维护信息 +// export function editRepairInfo(data) { +// return request({ +// url: '/equipment/equipment-repair/update', +// method: 'post', +// data +// }) +// } + +// // 获取维修信息详细 +// export function getRepairInfo(data) { +// return request({ +// url: '/equipment/equipment-repair/findById', +// method: 'post', +// data +// }) +// } + +// // 获取维修单号code +// export function getCode() { +// return request({ +// url: '/equipment/equipment-repair/getEquipmentRepairCode', +// method: 'post' +// }) +// } + diff --git a/src/api/equipment/spare.js b/src/api/equipment/spare.js new file mode 100644 index 0000000..68691f1 --- /dev/null +++ b/src/api/equipment/spare.js @@ -0,0 +1,152 @@ +/* + * @Date: 2021-01-05 15:25:38 + * @LastEditors: fzq + * @LastEditTime: 2022-09-15 11:06:15 + * @FilePath: \basic-admin\src\api\equipment\spare.js + * @Description: 设备管理——备品备件管理 + */ +import request from '@/utils/request' + +// // 获取备品备件列表 +// export function getSpareList(data) { +// return request({ +// url: '/equipment/spare-parts/page', +// method: 'post', +// data +// }) +// } + +// // 新增备品备件 +// export function addSapre(data) { +// return request({ +// url: '/equipment/spare-parts/create', +// method: 'post', +// data +// }) +// } + +// // 修改备品备件 +// export function editSpare(data) { +// return request({ +// url: '/equipment/spare-parts/update', +// method: 'post', +// data +// }) +// } + +// // 删除备品备件 +// export function delSpare(data) { +// return request({ +// url: '/equipment/spare-parts/delete', +// method: 'post', +// data +// }) +// } + +// // 获取备品备件详情 +// export function getSpareInfo(data) { +// return request({ +// url: '/equipment/spare-parts/findById', +// method: 'post', +// data +// }) +// } + +// // 获取备件型号 +// export function getSpareModel(data) { +// return request({ +// url: '/basic/tool-spare-part/list', +// method: 'post', +// data +// }) +// } + +// 获取备品备件记录列表 +export function getSpareList(data) { + return request({ + url: '/equipment/spare-part-log/page', + method: 'post', + data + }) +} + +// 新增备品备件记录 +export function addSpare(data) { + return request({ + url: '/equipment/spare-part-log/add', + method: 'post', + data + }) +} + +// 修改备品备件记录 +export function editSpare(data) { + return request({ + url: '/equipment/spare-part-log/update', + method: 'post', + data + }) +} + +// 删除备品备件记录 +export function delSpare(data) { + return request({ + url: '/equipment/spare-part-log/delete', + method: 'post', + data + }) +} + +// id获取备品备件记录 +export function getSpareInfo(data) { + return request({ + url: '/equipment/spare-part-log/get', + method: 'post', + data + }) +} + +// 获取备品备件详情分页记录 +export function getSpareDetail(data) { + return request({ + url: '/equipment/spare-part-log/pageDet', + method: 'post', + data + }) +} + +// 根据ID获取备品备件详情记录 +export function getSpareDetailById(data) { + return request({ + url: '/equipment/spare-part-log/getDet', + method: 'post', + data + }) +} + +// 新增备品备件详情 +export function spareDetailAdd(data) { + return request({ + url: '/equipment/spare-part-log/addDet', + method: 'post', + data + }) +} + +// 删除备品备件详情 +export function spareDetailDel(data) { + return request({ + url: '/equipment/spare-part-log/deleteDet', + method: 'post', + data + }) +} + +// 编辑备品备件详情 +export function spareDetailUpdate(data) { + return request({ + url: '/equipment/spare-part-log/updateDet', + method: 'post', + data + }) +} diff --git a/src/api/factory-manage/abnormalAlarm.js b/src/api/factory-manage/abnormalAlarm.js new file mode 100644 index 0000000..59d9fc8 --- /dev/null +++ b/src/api/factory-manage/abnormalAlarm.js @@ -0,0 +1,62 @@ +/* + * @Author: gtz + * @Date: 2021-03-21 15:14:22 + * @LastEditors: gtz + * @LastEditTime: 2021-03-21 18:13:56 + * @Description: file content + */ +import request from '@/utils/request' + +// 获取告警列表 +export function list(data) { + return request({ + url: '/team/team-alarmHandle/page', + method: 'post', + data + }) +} + +// id获取告警 +export function getInfo(data) { + return request({ + url: '/team/team-alarmHandle/get', + method: 'post', + data + }) +} + +// 删除告警 +export function del(data) { + return request({ + url: '/team/team-alarmHandle/delete', + method: 'post', + data + }) +} + +// 新增告警 +export function add(data) { + return request({ + url: '/team/team-alarmHandle/add', + method: 'post', + data + }) +} + +// 更新告警 +export function update(data) { + return request({ + url: '/team/team-alarmHandle/update', + method: 'post', + data + }) +} + +// 获取员工列表 +export function getWorkerList(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} diff --git a/src/api/factory-manage/equipmentAlarm.js b/src/api/factory-manage/equipmentAlarm.js new file mode 100644 index 0000000..cb58ca7 --- /dev/null +++ b/src/api/factory-manage/equipmentAlarm.js @@ -0,0 +1,64 @@ +/* + * @Author: gtz + * @Date: 2022-02-23 11:25:44 + * @LastEditors: gtz + * @LastEditTime: 2022-02-23 15:30:54 + * @Description: file content + * @FilePath: \mt-bus-fe\src\api\factory-manage\equipmentAlarm.js + */ + +import request from '@/utils/request' + +// 获取告警列表 +export function list(data) { + return request({ + url: '/team/team-equipmentAlarmHandle/page', + method: 'post', + data + }) +} + +// id获取告警 +export function getInfo(data) { + return request({ + url: '/team/team-equipmentAlarmHandle/get', + method: 'post', + data + }) +} + +// 删除告警 +export function del(data) { + return request({ + url: '/team/team-equipmentAlarmHandle/delete', + method: 'post', + data + }) +} + +// 新增告警 +export function add(data) { + return request({ + url: '/team/team-equipmentAlarmHandle/add', + method: 'post', + data + }) +} + +// 更新告警 +export function update(data) { + return request({ + url: '/team/team-equipmentAlarmHandle/update', + method: 'post', + data + }) +} + +// 获取员工列表 +export function getWorkerList(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} diff --git a/src/api/factory-manage/equipmentMonitoring.js b/src/api/factory-manage/equipmentMonitoring.js new file mode 100644 index 0000000..fc92fdf --- /dev/null +++ b/src/api/factory-manage/equipmentMonitoring.js @@ -0,0 +1,49 @@ +/* + * @Author: lb + * @Date: 2022-07-11 15:25:44 + * @LastEditors: lb + * @LastEditTime: 2022-07-11 15:25:44 + * @Description: + * @FilePath: 设备监控接口 + */ + +import request from '@/utils/request' + +/** + * 获取设备监控分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} data.enabled + * @param {string} data.name 设备名称 + * @param {number} data.pdlId 产线id,示例值(1) + */ +export function list(data) { + return request({ + url: '/equipment/monitor/page', + method: 'post', + data + }) +} + +/** + * 获取产线列表 + */ +export function getProductLineList() { + return request({ + url: '/basic/production-line/list', + method: 'post', + data: {} + }) +} + +/** + * 获取设备列表 + */ +export function getEquipmentList() { + return request({ + url: '/basic/equipment/list', + method: 'post', + data: {} + }) +} diff --git a/src/api/factory-manage/realtimeData.js b/src/api/factory-manage/realtimeData.js new file mode 100644 index 0000000..ffa7d20 --- /dev/null +++ b/src/api/factory-manage/realtimeData.js @@ -0,0 +1,58 @@ +/* + * @Author: lb + * @Date: 2022-06-22 14:00:17 + * @LastEditors: lb + * @LastEditTime: 2022-06-22 14:00:17 + * @Description: 实时数据接口 +*/ +import request from '@/utils/request' + +function getOrderRealtimeData() { // 订单生产实时数据 + return request({ + url: '/team/production-monitoring/orderProductionRealTimeData', + method: 'POST' + }) +} + +function getLineRealtimeData() { // 产线生产实时数据 + return request({ + url: '/team/production-monitoring/lineProductionRealTimeData', + method: 'POST' + }) +} + +function getEquipmentRealtimeData() { // 设备生产实时数据 + return request({ + url: '/team/production-monitoring/equipmentProductionRealTimeData', + method: 'POST' + }) +} + +function getTeamRealtimeData() { // 班组生产实时数据 + return request({ + url: '/team/production-monitoring/teamProductionRealTimeData', + method: 'POST' + }) +} + +function getQualityRealtimeData() { // 质量检查实时数据 + return request({ + url: '/team/production-monitoring/qualityInspectionRealTimeData', + method: 'POST' + }) +} + +export default function(type) { + switch (type) { + case 'order': + return getOrderRealtimeData() + case 'line': + return getLineRealtimeData() + case 'equipment': + return getEquipmentRealtimeData() + case 'team': + return getTeamRealtimeData() + case 'quality': + return getQualityRealtimeData() + } +} diff --git a/src/api/material-manage/batch.js b/src/api/material-manage/batch.js new file mode 100644 index 0000000..4a96f6d --- /dev/null +++ b/src/api/material-manage/batch.js @@ -0,0 +1,143 @@ +/* + * @Author: gtz + * @Date: 2021-01-27 10:07:42 + * @LastEditors: gtz + * @LastEditTime: 2021-03-30 16:58:47 + * @Description: file content + */ +import request from '@/utils/request' + +/** + * 获取物料批次分页列表 + * @param {object} data + * @param {number|string} [data.id] + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.key] 关键字(物料/物料批次的code/名称) + * @param {string} [data.externalCode] + * @param {string} [data.enabled] + */ +export function list(data) { + return request({ + url: '/material/material-date/page', + method: 'post', + data + }) +} + +/** + * 获取某个物料批次的详情 + * @param {object} data + * @param {number|string} data.id + */ +export function getInfo(data) { + return request({ + url: '/material/material-date/get', + method: 'post', + data + }) +} + +/** + * 通过外部编码获取物料批次 + * @param {object} data + * @param {number|string} [data.id] + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.key] 关键字(物料/物料批次的code/名称) + * @param {string} [data.externalCode] + * @param {string} [data.enabled] + */ +export function getByCode(data) { + return request({ + url: '/material/material-date/getByCode', + method: 'post', + data + }) +} + +/** + * 删除物料批次信息 + * @param {object} data + * @param {number|string} data.id + */ +export function del(data) { + return request({ + url: '/material/material-date/delete', + method: 'post', + data + }) +} + +/** + * 更新物料批次信息 + * @param {object} data + * @param {number|string} data.id + * @param {number|string} data.materialId + * @param {string} data.name + * @param {string} [data.code] + * @param {string} [data.description] + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/material/material-date/update', + method: 'post', + data + }) +} + +/** + * 新增物料批次信息 + * @param {object} data + * @param {number|string} data.id + * @param {number|string} data.materialId + * @param {string} data.name + * @param {string} [data.code] + * @param {string} [data.description] + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/material/material-date/add', + method: 'post', + data + }) +} + +/** + * 获取自动生成的物料批次编码 + */ +export function getCode() { + return request({ + url: '/material/material-date/getCode', + method: 'post' + }) +} + +/** + * 获取操作员列表 + * 当前采用的是 '基础资料'->'员工分页获取方式', 后期可能会更改 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.key] + */ +export function getOperators(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} + +/** + * 获取物料列表 + */ +export function getMaterialList() { + return request({ + url: 'material/material-date/materialList', + method: 'post' + }) +} diff --git a/src/api/material-manage/bom-list.js b/src/api/material-manage/bom-list.js new file mode 100644 index 0000000..d6295cb --- /dev/null +++ b/src/api/material-manage/bom-list.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/material/material-bom-detail/page', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/material/material-bom-detail/get', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/material/material-bom-detail/delete', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/material/material-bom-detail/add', + method: 'post', + data + }) +} + +export function update(data) { + return request({ + url: '/material/material-bom-detail/update', + method: 'post', + data + }) +} diff --git a/src/api/material-manage/bom.js b/src/api/material-manage/bom.js new file mode 100644 index 0000000..e7653a7 --- /dev/null +++ b/src/api/material-manage/bom.js @@ -0,0 +1,55 @@ +/* + * @Author: gtz + * @Date: 2021-01-27 10:07:42 + * @LastEditors: gtz + * @LastEditTime: 2021-03-30 16:31:18 + * @Description: file content + */ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: 'material/material-bom/page', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/material/material-bom/get', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/material/material-bom/delete', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/material/material-bom/add', + method: 'post', + data + }) +} + +export function getCode() { + return request({ + url: '/material/material-bom/getCode', + method: 'post' + }) +} + +export function update(data) { + return request({ + url: '/material/material-bom/update', + method: 'post', + data + }) +} diff --git a/src/api/material-manage/currentConsume.js b/src/api/material-manage/currentConsume.js new file mode 100644 index 0000000..040cb0c --- /dev/null +++ b/src/api/material-manage/currentConsume.js @@ -0,0 +1,24 @@ +/* + * @Author: gtz + * @Date: 2021-04-28 11:26:59 + * @LastEditors: gtz + * @LastEditTime: 2021-04-28 11:27:53 + * @Description: file content + */ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/material/equipment-material-replace/page', + method: 'post', + data + }) +} + +export function getMaterialBatchList(data) { + return request({ + url: '/material/material-date/page', + method: 'post', + data + }) +} diff --git a/src/api/material-manage/historyConsume.js b/src/api/material-manage/historyConsume.js new file mode 100644 index 0000000..040cb0c --- /dev/null +++ b/src/api/material-manage/historyConsume.js @@ -0,0 +1,24 @@ +/* + * @Author: gtz + * @Date: 2021-04-28 11:26:59 + * @LastEditors: gtz + * @LastEditTime: 2021-04-28 11:27:53 + * @Description: file content + */ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/material/equipment-material-replace/page', + method: 'post', + data + }) +} + +export function getMaterialBatchList(data) { + return request({ + url: '/material/material-date/page', + method: 'post', + data + }) +} diff --git a/src/api/material-manage/material.js b/src/api/material-manage/material.js new file mode 100644 index 0000000..d41df54 --- /dev/null +++ b/src/api/material-manage/material.js @@ -0,0 +1,22 @@ +import request from '@/utils/request' + +export function list(data) { + return request({ + // url: 'material/material-date/materialList', + url: 'basic/material/page', + method: 'post', + data: { + current: 1, + size: 999, + ...data + } + }) +} +export function listEquipment(data) { + return request({ + url: 'material/equipment-material-replace/equipmentList', + method: 'post', + data + }) +} + diff --git a/src/api/material-manage/refueling.js b/src/api/material-manage/refueling.js new file mode 100644 index 0000000..6aea725 --- /dev/null +++ b/src/api/material-manage/refueling.js @@ -0,0 +1,161 @@ +import request from '@/utils/request' + +/** + * 获取换料操作分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.key] + */ +export function list(data) { + return request({ + url: '/material/equipment-material-replace/page', + method: 'post', + data + }) +} + +/** + * 获取换料操作详细内容 + * @param {object} data + * @param {string|number} data.id + */ +export function getInfo(data) { + return request({ + url: '/material/equipment-material-replace/get', + method: 'post', + data + }) +} + +/** + * 删除换料操作 + * @param {object} data + * @param {string|number} data.id + */ +export function del(data) { + return request({ + url: '/material/equipment-material-replace/delete', + method: 'post', + data + }) +} + +/** + * 新增换料操作 + * @param {object} data + * @param {string|number} [data.id] + * @param {string} data.operator + * @param {string} data.source + * @param {date} data.replaceTime + * @param {string|number} data.materialDateId + * @param {string} [data.materialDateCode] + * @param {string|number} data.equipmentId + * @param {string} [data.equipmentCode] + * @param {string} [data.type] + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/material/equipment-material-replace/add', + method: 'post', + data + }) +} + +/** + * 更新换料操作 + * @param {object} data + * @param {string|number} data.id + * @param {string} data.operator + * @param {string} data.source + * @param {date} data.replaceTime + * @param {string|number} data.materialDateId + * @param {string} [data.materialDateCode] + * @param {string|number} data.equipmentId + * @param {string} [data.equipmentCode] + * @param {string} [data.type] + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/material/equipment-material-replace/update', + method: 'post', + data + }) +} + +/** + * 获取操作员列表 + * 当前采用的是 '基础资料'->'员工分页获取方式', 后期可能会更改 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.key] + */ +export function getOperators(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} + +/** + * 通过外部编码获取物料批次 + * @param {object} data + * @param {number} [data.current] + * @param {number} [data.size] + * @param {string} data.externalCode + * @param {string} [data.key] + * @param {number} [data.enabled] + */ +export function getBatchByCode(data) { + return request({ + url: '/material/material-date/getByCode', + method: 'post', + data + }) +} + +/** + * 获取物料列表 + */ +export function getMaterialList(data) { + return request({ + // url: '/material/material-date/materialList', + url: '/basic/material/page', + method: 'post', + data: { + current: 1, + size: 999, + ...data + } + }) +} + +/** + * 获取换料操作里的设备列表 + */ +export function getEquipmentList() { + return request({ + url: '/material/equipment-material-replace/equipmentList', + method: 'post' + }) +} + +/** + * 获取换料操作添加时的批次列表 + */ +export function getBatchList() { + return request({ + url: '/material/material-date/list', + method: 'post', + data: { + current: 1, + size: 999 + } + }) +} diff --git a/src/api/material-manage/report.js b/src/api/material-manage/report.js new file mode 100644 index 0000000..45688f8 --- /dev/null +++ b/src/api/material-manage/report.js @@ -0,0 +1,26 @@ +/* + * @Author: your name + * @Date: 2021-04-26 11:15:51 + * @LastEditTime: 2021-05-25 16:26:13 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: \mt-bus-fe\src\api\material-manage\report.js + */ +import request from '@/utils/request' + +export function getTreeList(data) { + return request({ + url: '/material/substrate-tree/getTree', + method: 'post', + data + }) +} + +export function getData(data) { + return request({ + url: '/material/substrate-tree/list', + method: 'post', + data + }) +} + diff --git a/src/api/material-manage/usageRecord.js b/src/api/material-manage/usageRecord.js new file mode 100644 index 0000000..d0d1430 --- /dev/null +++ b/src/api/material-manage/usageRecord.js @@ -0,0 +1,159 @@ +import request from '@/utils/request' + +/** + * 新增在线物料使用记录 + * @param {object} data + * @param {number|string} [data.id] + * @param {number|string} data.materialId + * @param {number|string} data.materialDateId + * @param {number|string} data.equipmentId + * @param {number} [data.num] + * @param {number|string} [data.unitId] + * @param {date} [data.useTime] + * @param {string} [data.remark] + */ +export function add(data) { + return request({ + url: '/material/online-material-use/add', + method: 'post', + data + }) +} + +/** + * 删除在线物料使用记录 + * @param {object} data + * @param {number|string} data.id + */ +export function del(data) { + return request({ + url: '/material/online-material-use/delete', + method: 'post', + data + }) +} + +/** + * 获取在线物料使用记录详情 + * @param {object} data + * @param {number|string} data.id + */ +export function getInfo(data) { + return request({ + url: '/material/online-material-use/get', + method: 'post', + data + }) +} + +/** + * 获取在线物料使用分页记录 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.equipmentName] + * @param {string} [data.materialName] + */ +export function list(data) { + return request({ + url: '/material/online-material-use/page', + method: 'post', + data + }) +} + +/** + * 更新在线物料使用分页记录 + * @param {object} data + * @param {number|string} data.id + * @param {number|string} data.materialId + * @param {number|string} data.materialDateId + * @param {number|string} data.equipmentId + * @param {number} [data.num] + * @param {number|string} [data.unitId] + * @param {date} [data.useTime] + * @param {string} [data.remark] + */ +export function update(data) { + return request({ + url: '/material/online-material-use/update', + method: 'post', + data + }) +} + +/** + * 获取物料列表 + */ +export function getMaterialList(data) { + return request({ + // url: '/material/material-date/materialList', + url: '/basic/material/page', + method: 'post', + data: { + current: 1, + size: 999, + ...data + } + }) +} + +/** + * 获取换料操作里的设备列表 + */ +export function getEquipmentList() { + return request({ + url: '/material/equipment-material-replace/equipmentList', + method: 'post' + }) +} + +/** + * 获取物料批次列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.externalCode] + * @param {number|string} [data.id] + * @param {string} [data.key] + + */ +export function getMaterialBatchList(data) { + return request({ + url: '/material/material-date/list', + method: 'post', + data + }) +} + +/** + * 分页获取字典类型列表 + * @param {object} data + * @param {number|string} data.dictTypeId + * @param {number} data.size + * @param {number} data.current + * @param {string} [data.dataCode] + * @param {number} [data.dataName] + * @param {number} [data.enabled] + */ +export function getDictListByType(data) { + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data + }) +} + +/** @deprecated + * 获取物料id获取可用的批次列表 + * @param {number|string} id + */ +export function getBatchListByMaterialId(id) { + return request({ + url: '/material/online-material-use/getDateListByMaterialId', + method: 'post', + data: { id } + }) +} diff --git a/src/api/orderManage/erpToMes.js b/src/api/orderManage/erpToMes.js new file mode 100644 index 0000000..c0698aa --- /dev/null +++ b/src/api/orderManage/erpToMes.js @@ -0,0 +1,40 @@ +/* + * @Author: zwq + * @Date: 2021-06-24 15:44:43 + * @LastEditors: zwq + * @LastEditTime: 2021-07-19 15:14:23 + * @Description: + */ + +import request from '@/utils/request' + +export function erpToMesMaterialList(data) { // 获取列表 + return request({ + url: '/order/erp-to-mes-materials-info/page', + method: 'post', + data + }) +} + +export function erpToMesMaterialBomList(data) { // 获取列表 + return request({ + url: '/order/erp-to-mes-materials-bom-info/page', + method: 'post', + data + }) +} +export function erpToMesOrderList(data) { // 获取列表 + return request({ + url: '/order/erp-to-mes-order-info/page', + method: 'post', + data + }) +} + +export function mesToErpAdd(data) { // 新增mesToErp单条数据 + return request({ + url: '/order/mes-to-erp-order/add', + method: 'post', + data + }) +} diff --git a/src/api/orderManage/fee/fee.js b/src/api/orderManage/fee/fee.js new file mode 100644 index 0000000..76d1a55 --- /dev/null +++ b/src/api/orderManage/fee/fee.js @@ -0,0 +1,72 @@ +import request from '@/utils/request' + +export function List(data) { // 获取分页订单及各项费用 + return request({ + url: 'order/order-cost/page', + method: 'post', + data + }) +} + +export function listForAdd() { // 用于新增费用,查询未统计过费用的订单列表 + return request({ + url: 'order/order-cost/listForAdd', + method: 'post' + }) +} + +export function orderAdd(data) { // 新增费用主记录 + return request({ + url: 'order/order-cost/add', + method: 'post', + data + }) +} + +export function feeDetailPage(data) { // 订单id获取订单某类费用下的详情分页 + return request({ + url: 'order/order-cost/pageDet', + method: 'post', + data + }) +} + +export function feeDetailAdd(data) { // 新增费用详情 + return request({ + url: 'order/order-cost/addDet', + method: 'post', + data + }) +} + +export function feeDetail(data) { // 查询费用详情根据id + return request({ + url: 'order/order-cost/getDet', + method: 'post', + data + }) +} + +export function UpdateDetail(data) { // 更新费用详情 + return request({ + url: 'order/order-cost/updateDet', + method: 'post', + data + }) +} + +export function deleteDetail(data) { // 删除费用详情 + return request({ + url: 'order/order-cost/deleteDet', + method: 'post', + data + }) +} + +export function deleteFee(data) { // 删除费用主记录 + return request({ + url: 'order/order-cost/delete', + method: 'post', + data + }) +} diff --git a/src/api/orderManage/infoTrack/infoTrack.js b/src/api/orderManage/infoTrack/infoTrack.js new file mode 100644 index 0000000..82becee --- /dev/null +++ b/src/api/orderManage/infoTrack/infoTrack.js @@ -0,0 +1,54 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-03-30 18:05:12 + * @Description: + */ +import request from '@/utils/request' + +export function equipmentEventTrackList(data) { // 获取设备事件追溯列表 + return request({ + url: '/order/wo-equipment-event-param/page', + method: 'post', + data + }) +} + +export function equipmentParametersTrackList(data) { // 获取设备参数追溯列表 + return request({ + url: '/order/wo-equipment-event-param/page-equipment-param-review', + method: 'post', + data + }) +} +export function processSubstrateDataTrackList(data) { // 获取加工基板数据追溯列表 + return request({ + url: '/order/wo-substrate/page-review', + method: 'post', + data + }) +} +export function substrateParametersTrackList(data) { // 获取基板参数追溯表 + return request({ + url: '/order/wo-equipment-event-param/page-substrate-param', + method: 'post', + data + }) +} + +export function substrateEquipmentList(data) { // 获取基板设备追溯列表 + return request({ + url: '/order/wo-equipment-event-param/substrate-equipment-exchanage', + method: 'post', + data + }) +} + +export function substrateEquipmentDetail(data) { // 获取基板设备追溯详情 + return request({ + url: '/order/wo-equipment-event-param/view-device-parameters', + method: 'post', + data + }) +} diff --git a/src/api/orderManage/order/order.js b/src/api/orderManage/order/order.js new file mode 100644 index 0000000..e76bbe5 --- /dev/null +++ b/src/api/orderManage/order/order.js @@ -0,0 +1,90 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: Please set LastEditors + * @LastEditTime: 2021-07-21 16:45:02 + * @Description: + */ +import request from '@/utils/request' + +export function orderList(data) { // 获取订单列表 + return request({ + url: '/order/order/page', + method: 'post', + data + }) +} + +export function orderDetail(id) { // 获取订单单条数据 + const data = { + 'id': id + } + return request({ + url: '/order/order/get', + method: 'post', + data + }) +} + +export function orderUpdate(data) { // 更新订单单条数据 + return request({ + url: '/order/order/update', + method: 'post', + data + }) +} + +export function orderAdd(data) { // 新增订单单条数据 + return request({ + url: '/order/order/add', + method: 'post', + data + }) +} + +export function orderCode() { // 获取订单code + return request({ + url: '/order/order/get-code', + method: 'post' + }) +} + +export function orderDelete(id) { // 删除订单单条数据 + return request({ + url: '/order/order/delete', + method: 'post', + data: { id } + }) +} + +export function reportList(data) { // 获取订单报工信息 + return request({ + url: '/order/wo-completion-report/page', + method: 'post', + data + }) +} + +export function getDict(data) { // 获取数据字典 + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data + }) +} + +export function toWorkOrder(data) { // 订单下发为工单 + return request({ + url: '/order/order/to-work-order', + method: 'post', + data + }) +} + +export function orderMonitor(data) { // 获取分页订单监控信息 + return request({ + url: '/order/order/monitor', + method: 'post', + data + }) +} diff --git a/src/api/orderManage/powerClassification.js b/src/api/orderManage/powerClassification.js new file mode 100644 index 0000000..0d3b4a8 --- /dev/null +++ b/src/api/orderManage/powerClassification.js @@ -0,0 +1,66 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-05-28 15:38:19 + * @Description: + */ +import request from '@/utils/request' + +export function powerClassificationList(data) { // 获取powerClassification列表 + return request({ + url: '/order/power-classification/page', + method: 'post', + data + }) +} + +export function powerClassificationTree(data) { // 获取powerClassification列表 + return request({ + url: '/order/power-classification/tree', + method: 'post', + data + }) +} + +export function powerClassificationDetail(id) { // 获取powerClassification单条数据 + const data = { + 'id': id + } + return request({ + url: '/order/power-classification/get', + method: 'post', + data + }) +} + +export function powerClassificationUpdate(data) { // 更新powerClassification单条数据 + return request({ + url: '/order/power-classification/update', + method: 'post', + data + }) +} + +export function powerClassificationAdd(data) { // 新增powerClassification单条数据 + return request({ + url: '/order/power-classification/add', + method: 'post', + data + }) +} + +export function powerClassificationCode() { // 获取powerClassificationcode + return request({ + url: '/order/power-classification/get-code', + method: 'post' + }) +} + +export function powerClassificationDelete(id) { // 删除powerClassification单条数据 + return request({ + url: '/order/power-classification/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/orderManage/substrateBatch.js b/src/api/orderManage/substrateBatch.js new file mode 100644 index 0000000..baeeaf3 --- /dev/null +++ b/src/api/orderManage/substrateBatch.js @@ -0,0 +1,58 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-03-30 18:06:31 + * @Description: + */ +import request from '@/utils/request' + +export function substrateBatchList(data) { // 获取基板批次列表 + return request({ + url: '/order/substrate-batch-info/page', + method: 'post', + data + }) +} + +export function substrateBatchDetail(id) { // 获取基板批次单条数据 + const data = { + 'id': id + } + return request({ + url: '/order/substrate-batch-info/get', + method: 'post', + data + }) +} + +export function substrateBatchUpdate(data) { // 更新基板批次单条数据 + return request({ + url: '/order/substrate-batch-info/update', + method: 'post', + data + }) +} + +export function substrateBatchAdd(data) { // 新增基板批次单条数据 + return request({ + url: '/order/substrate-batch-info/add', + method: 'post', + data + }) +} + +export function substrateBatchCode() { // 获取基板批次code + return request({ + url: '/order/substrate-batch-info/get-code', + method: 'post' + }) +} + +export function substrateBatchDelete(id) { // 删除基板批次单条数据 + return request({ + url: '/order/substrate-batch-info/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/orderManage/substrateBatchAttr.js b/src/api/orderManage/substrateBatchAttr.js new file mode 100644 index 0000000..f271f4b --- /dev/null +++ b/src/api/orderManage/substrateBatchAttr.js @@ -0,0 +1,58 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-03-30 18:34:26 + * @Description: + */ +import request from '@/utils/request' + +export function substrateBatchAttrList(data) { // 获取基板批次列表 + return request({ + url: '/order/sub-batch-info-attr/page', + method: 'post', + data + }) +} + +export function substrateBatchAttrDetail(id) { // 获取基板批次单条数据 + const data = { + 'id': id + } + return request({ + url: '/order/sub-batch-info-attr/get', + method: 'post', + data + }) +} + +export function substrateBatchAttrUpdate(data) { // 更新基板批次单条数据 + return request({ + url: '/order/sub-batch-info-attr/update', + method: 'post', + data + }) +} + +export function substrateBatchAttrAdd(data) { // 新增基板批次单条数据 + return request({ + url: '/order/sub-batch-info-attr/add', + method: 'post', + data + }) +} + +export function substrateBatchAttrCode() { // 获取基板批次code + return request({ + url: '/order/sub-batch-info-attr/get-code', + method: 'post' + }) +} + +export function substrateBatchAttrDelete(id) { // 删除基板批次单条数据 + return request({ + url: '/order/sub-batch-info-attr/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/orderManage/workOrder/workOrder.js b/src/api/orderManage/workOrder/workOrder.js new file mode 100644 index 0000000..05551a1 --- /dev/null +++ b/src/api/orderManage/workOrder/workOrder.js @@ -0,0 +1,237 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: gtz + * @LastEditTime: 2022-04-20 11:25:25 + * @Description: + */ +import request from '@/utils/request' + +export function workOrderList(data) { // 获取工单列表 + return request({ + url: '/order/work-order/page', + method: 'post', + data + }) +} + +export function workOrderDetail(id) { // 获取工单单条数据 + const data = { + 'id': id + } + return request({ + url: '/order/work-order/get', + method: 'post', + data + }) +} + +export function workOrderUpdate(data) { // 更新工单单条数据 + return request({ + url: '/order/work-order/update', + method: 'post', + data + }) +} + +export function workOrderAdd(data) { // 新增工单单条数据 + return request({ + url: '/order/work-order/add', + method: 'post', + data + }) +} + +export function workOrderCode() { // 获取工单code + return request({ + url: '/order/work-order/get-code', + method: 'post' + }) +} + +export function workOrderDelete(id) { // 删除工单单条数据 + return request({ + url: '/order/work-order/delete', + method: 'post', + data: { id } + }) +} + +export function workOrderIssueList(data) { // 获取工单下发列表 + return request({ + url: '/order/wo-sync/page', + method: 'post', + data + }) +} + +export function packagingBoxList(data) { // 获取包装基板列表 + return request({ + url: '/order/wo-packaging-box-substrate/page', + method: 'post', + data + }) +} + +export function packagingList(data) { // 获取包装标签列表 + return request({ + url: '/order/wo-packaging-box/page', + method: 'post', + data + }) +} + +export function packagingDetail(id) { // 获取包装标签详情 + const data = { + 'id': id + } + return request({ + url: '/order/wo-packaging-box/get', + method: 'post', + data + }) +} + +export function syncAdd(data) { // 新增下发工单单条数据 + return request({ + url: '/order/wo-sync/add', + method: 'post', + data + }) +} + +export function packagingInventoryList(data) { // 获取包装清单列表 + return request({ + url: '/order/wo-packaging-box/page-for-inventory', + method: 'post', + data + }) +} + +export function updateForStatus(data) { // 激活 + return request({ + url: '/order/work-order/updateForStatus', + method: 'post', + data + }) +} + +export function workOrderStart(data) { // 开始 + return request({ + url: '/order/work-order/start', + method: 'post', + data + }) +} + +export function workOrderSuspend(data) { // 暂停 + return request({ + url: '/order/work-order/pause', + method: 'post', + data + }) +} + +export function workOrderComplete(data) { // 结束 + return request({ + url: '/order/work-order/complete', + method: 'post', + data + }) +} + +export function getProductLineList(data) { // 获取产线列表 + return request({ + url: '/basic/production-line/page', + method: 'post', + data + }) +} + +export function getWorkersList(data) { // 获取员工列表 + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} + +export function getMaterialPage(data) { // 获取工单物料批次 + return request({ + url: 'order/work-order-material-date/page', + method: 'post', + data + }) +} + +export function getMaterialList(data) { // 获取工单物料批次列表 + return request({ + url: '/order/work-order-material-date/list', + method: 'post', + data + }) +} + +export function batchList(data) { // 获取工单物料批次列表 + return request({ + url: '/material/material-date/list', + method: 'post', + data + }) +} + +export function getBatchById(data) { // 根据id获取工单物料批次 + return request({ + url: '/order/work-order-material-date/get', + method: 'post', + data + }) +} + +export function addBatch(data) { // 新增工单物料批次 + return request({ + url: '/order/work-order-material-date/add', + method: 'post', + data + }) +} + +export function delBatch(data) { // 删除工单物料批次 + return request({ + url: '/order/work-order-material-date/delete', + method: 'post', + data + }) +} + +export function editBatch(data) { // 编辑工单物料批次 + return request({ + url: 'order/work-order-material-date/update', + method: 'post', + data + }) +} + +export function listPld(data) { // 所有产线,和正在产线上生产的工单 + return request({ + url: 'order/work-order/list-pdl', + method: 'post', + data + }) +} + +export function startOrder(data) { // 开始工单,传参都为工单id,和产线id 列表 + return request({ + url: 'order/work-order/start-log', + method: 'post', + data + }) +} + +export function stopOrder(data) { // 结束工单,传参都为工单id,和产线id 列表 + return request({ + url: 'order/work-order/end-log', + method: 'post', + data + }) +} diff --git a/src/api/packing-manage/PackingCost.js b/src/api/packing-manage/PackingCost.js new file mode 100644 index 0000000..9b0f83e --- /dev/null +++ b/src/api/packing-manage/PackingCost.js @@ -0,0 +1,165 @@ +/* + * @Author: lb + * @Date: 2022-04-29 10:02:54 + * @LastEditors: lb + * @LastEditTime: 2022-04-29 10:02:54 + * @Description: 包装费用接口 + * @FilePath: \mt-bus-fe\src\api\packing-manage\PackingCost.js + */ +import request from '@/utils/request' + +const BASE_PATH = '/order/packaging-cost' +const ORDER_PATH = '/order/order' + +const APIs = { + // 新增费用 + add: BASE_PATH + '/add', + // 检查订单费用是否存在 + check: BASE_PATH + '/checkOrder', + // 获取主费用分页列表 + listMain: BASE_PATH + '/page', + // 获取详细费用的分页列表 + detailMain: BASE_PATH + '/get', + // 更新主费用 + updateMain: BASE_PATH + '/updateMain', + // 更新详细费用 + updateDet: BASE_PATH + '/updateDet', + // 删除主费用 + deleteMain: BASE_PATH + '/deleteMain', + // 删除详细费用 + deleteDet: BASE_PATH + '/deleteDet', + // 获取订单列表 + orderList: ORDER_PATH + '/list' +} + +/** + * 新增费用 + * @param {object} data + * @param {number} [data.id] + * @param {number} data.orderId 订单ID + * @param {string} [data.orderCode] 订单编码 + * @param {string} [data.explainText] 描述 + * @param {string} [data.remark] 备注 + * @param {Array<{cost: number, id: number, explainText: string, packagingType: string}>} [data.det] + */ +export function add(data) { + return request({ + url: APIs.add, + method: 'post', + data + }) +} + +/** + * 检查订单费用是否存在 + * @param {number} id 订单ID + */ +export function checkById(id) { + return request({ + url: APIs.check, + method: 'post', + data: { id } + }) +} + +/** + * 获取主费用分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} data.[orderId] + * @param {number} data.[enabled] + */ +export function listMain(data) { + return request({ + url: APIs.listMain, + method: 'post', + data + }) +} + +/** + * 获取主费用详情 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} data.id + * @param {number} data.[enabled] + */ +export function detail(data) { + // aka. pageAllByPackageId + return request({ + url: APIs.detailMain, + method: 'post', + data + }) +} + +/** + * 更新主费用 + * @param {object} data + * @param {number} data.id + * @param {number} data.orderId 订单ID + * @param {string} [data.orderCode] 订单编码 + * @param {string} [data.explainText] 描述 + * @param {string} [data.remark] 备注 + * @param {Array<{cost: number, id: number, explainText: string, packagingType: string}>} [data.det] + */ +export function updateMain(data) { + return request({ + url: APIs.updateMain, + method: 'post', + data + }) +} + +/** + * 更新详细费用 + * @param {object} data + * @param {number} data.id + * @param {number} data.cost + * @param {string} data.explainText 描述 + * @param {string} data.packagingType 包装类型,手动填写 + */ +export function updateDet(data) { + return request({ + url: APIs.updateDet, + method: 'post', + data + }) +} + +/** + * 删除主费用 + * @param {number} id + */ +export function deleteMain(id) { + return request({ + url: APIs.deleteMain, + method: 'post', + data: { id } + }) +} + +/** + * 删除详细费用 + * @param {number} id + */ +export function deleteDet(id) { + return request({ + url: APIs.deleteDet, + method: 'post', + data: { id } + }) +} + +/** + * 获取订单列表,用于输入过滤 + */ +export function orders() { + return request({ + url: APIs.orderList, + method: 'post', + data: {} + }) +} diff --git a/src/api/packing-manage/PackingList.js b/src/api/packing-manage/PackingList.js new file mode 100644 index 0000000..5f202fe --- /dev/null +++ b/src/api/packing-manage/PackingList.js @@ -0,0 +1,186 @@ +/* + * @Author: gtz + * @Date: 2022-03-31 11:34:42 + * @LastEditors: lb + * @LastEditTime: 2022-04-29 10:02:54 + * @Description: file content + * @FilePath: \mt-bus-fe\src\api\packing-manage\PackingList.js + */ +import request from '@/utils/request' + +/** + * 新增包装清单 + * @param {object} data + * @param {string} data.shelfCode + * @param {string} data.externalCode + * @param {string} data.equShelfId + * @param {string} data.startTime + * @param {string} data.endTime + * @param {number} data.quantity + */ +export function add(data) { + return request({ + url: '/order/packaging-log/add', + method: 'post', + data + }) +} + +/** + * 修改包装清单 + * @param {object} data + * @param {string} data.shelfCode + * @param {string} data.externalCode + * @param {string} data.equShelfId + * @param {string} data.startTime + * @param {string} data.endTime + * @param {number} data.quantity + */ +export function update(data) { + return request({ + url: '/order/packaging-log/update', + method: 'post', + data + }) +} + +/** + * 获取分页包装清单 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.startTime] + * @param {string} [data.endTime] + * @param {number} [data.id] 包装箱ID + * @param {number} [data.shelfId] 货架ID + * @param {number} [data.workOrderId] 工单ID + * @param {string} [data.orderCode] 订单号 + */ +export function list(data) { + return request({ + url: '/order/packaging-log/page', + method: 'post', + data + }) +} + +/** + * 获取包装清单详情 + * @param {object} data + * @param {number} id + */ +export function getInfo(data) { + return request({ + url: '/order/packaging-log/get', + method: 'post', + data + }) +} + +/** + * 打印状态 + * @param {number} id + */ +export function updatePrint(id) { + return request({ + url: '/order/packaging-log/print', + method: 'post', + data: { id } + }) +} + +/** + * 获取包装清单检查详情 + * @param {number} id + */ +export function getCheckInfo(id) { + return request({ + url: '/order/packaging-log/getCheck', + method: 'post', + data: { id } + }) +} + +/** + * 删除详细记录 + * @returns + */ +export function removeDetail(id) { + return request({ + url: '/quality/delivery-inspection/deleteDet', + method: 'post', + data: { id } + }) +} + +/** + * 获取分页货架列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.name] + * @param {number} [data.enabled] + */ +export function getShelfList(data) { + return request({ + url: '/basic/shelf/page', + method: 'post', + data + }) +} + +/** + * 获取分页工单 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.id] + * @param {string} [data.name] + * @param {string} [data.code] + * @param {number} [data.enabled] + * @param {number} [data.status] + * @param {string} [data.startTime] + * @param {string} [data.endTime] + * @param {number} [data.orderId] + * @param {string} [data.orderName] + */ +export function getOrderList(data) { + return request({ + url: '/order/work-order/page', + method: 'post', + data + }) +} + +/** + * 导出包装清单(文件) + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.startTime] + * @param {string} [data.endTime] + * @param {number} [data.id] 包装箱ID + * @param {number} [data.shelfId] 货架ID + * @param {number} [data.workOrderId] 工单ID + * @param {string} [data.workOrderNo] 工单编码 + */ +export function exportFile(data) { + return request({ + url: '/order/packaging-log/export', + method: 'post', + data, + responseType: 'blob', + timeout: 60000 + }) +} + +// 获取等级 数据字典 +export function getGradeDatedict(data) { + return request({ + url: '/basic/platform-dict/selectPlatformDictDataListByPage', + method: 'post', + data: { ...data, dictTypeId: '1522430769887698945' } + }) +} diff --git a/src/api/packing-manage/PackingListMaterialDate.js b/src/api/packing-manage/PackingListMaterialDate.js new file mode 100644 index 0000000..be084e7 --- /dev/null +++ b/src/api/packing-manage/PackingListMaterialDate.js @@ -0,0 +1,118 @@ +/* + * @Author: lb + * @Date: 2022-04-29 10:02:54 + * @LastEditors: lb + * @LastEditTime: 2022-04-29 10:02:54 + * @Description: 包装清单原料批次接口 + * @FilePath: \mt-bus-fe\src\api\packing-manage\PackingListMateiralDate.js + */ +import request from '@/utils/request' + +// 保存要用到的所有接口,使开发者不需要浏览整个文件也能知道当前文件包含哪些内容 +const BASE_PATH = '/order/packaging-log-material-date' +// const SHELF_PATH = xxx + +const APIs = { + add: BASE_PATH + '/add', + del: BASE_PATH + '/delete', // 根据原料批次ID来删除 + update: BASE_PATH + '/update', + page: BASE_PATH + '/page', + super_delete: BASE_PATH + '/deleteByPackagingId', // 根据包装清单ID来删除 + list: BASE_PATH + '/list', // 获取清单里的原片批次列表 + available_list: BASE_PATH + '/materialList' // 获取可用的原片批次列表 +} + +/** + * 新增原料批次 + * @param {object} data + * @param {number} data.id + * @param {number} data.materialDateId 物料批次ID + * @param {number} data.packagingLogId 包装清单ID + */ +export function add(data) { + return request({ + url: APIs.add, + method: 'post', + data + }) +} + +/** + * 删除原料批次 + * @param {number} id 工单和原料批次的联接表的 ID(中间表的ID) + */ +export function del(id) { + return request({ + url: APIs.del, + method: 'post', + data: { id } + }) +} + +/** + * 更新原料批次 + * @param {object} data + * @param {number} data.id + * @param {number} data.materialDateId 物料批次ID + * @param {number} data.packagingLogId 包装清单ID + */ +export function update(data) { + return request({ + url: APIs.update, + method: 'post', + data + }) +} + +/** + * 获取包装清单的分页原料批次 + * @param {object} data + * @param {number} current + * @param {number} size + * @param {number} id 包装清单ID + * @param {number} [enabled] + */ +export function list(data) { + // aka. pageAllByPackageId + return request({ + url: APIs.page, + method: 'post', + data + }) +} + +/** + * 获取包装清单的所有原料批次 + * @param {number} id 包装清单ID + */ +export function listAllByPackageId(id) { + return request({ + url: APIs.list, + method: 'post', + data: { id } + }) +} + +/** + * 删除包装清单里的所有批次 + * @param {number} id 包装清单ID + */ +export function delAllByPackageId(id) { + return request({ + url: APIs.super_delete, + method: 'post', + data: { id } + }) +} + +/** + * 获取可用的原料批次列表 + * @param {object} orderId 订单id + */ +export function getAvailableList(orderId) { + return request({ + url: APIs.available_list, + method: 'post', + data: { id: orderId } + }) +} diff --git a/src/api/packing-manage/packing-label.js b/src/api/packing-manage/packing-label.js new file mode 100644 index 0000000..68ffbef --- /dev/null +++ b/src/api/packing-manage/packing-label.js @@ -0,0 +1,42 @@ +import request from '@/utils/request' + +export function page(data) { + return request({ + url: '/report/print-model/page', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/report/print-model/delete', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/report/print-model/add', + method: 'post', + data + }) +} + +export function update(data) { + return request({ + url: '/report/print-model/update', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/report/print-model/get', + method: 'post', + data + }) +} + diff --git a/src/api/quality-manage/detecParam.js b/src/api/quality-manage/detecParam.js new file mode 100644 index 0000000..76f6b47 --- /dev/null +++ b/src/api/quality-manage/detecParam.js @@ -0,0 +1,63 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2021-04-15 09:07:22 + * @Description: + */ +import request from '@/utils/request' + +export function detecParamList(data) { // 获取检测参数列表 + return request({ + url: '/quality/offline-detec-param/displayAllDetectEQ', + method: 'post', + data + }) +} + +export function detecParamDetail(data) { // 获取单条数据 + return request({ + url: '/quality/offline-detec-param/page', + method: 'post', + data + }) +} + +export function ParamDetail(id) { // 获取单条数据 + return request({ + url: '/quality/offline-detec-param/findById', + method: 'post', + data: { id } + }) +} + +export function detecParamUpdate(data) { // 更新单条数据 + return request({ + url: '/quality/offline-detec-param/update', + method: 'post', + data + }) +} + +export function detecParamAdd(data) { // 新增单条数据 + return request({ + url: '/quality/offline-detec-param/create', + method: 'post', + data + }) +} + +export function detecParamCode() { // 获取code + return request({ + url: '/quality/offline-detec-param/getGeneratorCode', + method: 'get' + }) +} + +export function detecParamDelete(id) { // 删除单条数据 + return request({ + url: '/quality/offline-detec-param/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/quality-manage/detecRegistration.js b/src/api/quality-manage/detecRegistration.js new file mode 100644 index 0000000..05508f4 --- /dev/null +++ b/src/api/quality-manage/detecRegistration.js @@ -0,0 +1,56 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: Please set LastEditors + * @LastEditTime: 2021-05-25 15:57:55 + * @Description: + */ +import request from '@/utils/request' + +export function detecRegistrationList(data) { // 获取检测登记列表 + return request({ + url: '/quality/offline-detec-register/page', + method: 'post', + data + }) +} + +export function detecRegistrationDetail(id) { // 获取检测登记单条数据 + return request({ + url: '/quality/offline-detec-register/findById', + method: 'post', + data: { id } + }) +} + +export function detecRegistrationUpdate(data) { // 更新检测登记单条数据 + return request({ + url: '/quality/offline-detec-register/update', + method: 'post', + data + }) +} + +export function detecRegistrationAdd(data) { // 新增检测登记单条数据 + return request({ + url: '/quality/offline-detec-register/create', + method: 'post', + data + }) +} + +export function detecRegistrationDelete(id) { // 删除检测登记单条数据 + return request({ + url: '/quality/offline-detec-register/delete', + method: 'post', + data: { id } + }) +} + +export function getDetecRegistrationList(data) { // 获取检测登记列表 + return request({ + url: '/quality/offline-detec-register/page', + method: 'post', + data + }) +} diff --git a/src/api/quality-manage/finishedInspection.js b/src/api/quality-manage/finishedInspection.js new file mode 100644 index 0000000..b7da442 --- /dev/null +++ b/src/api/quality-manage/finishedInspection.js @@ -0,0 +1,202 @@ +/* + * @Author: lb + * @Date: 2022-05-13 10:02:54 + * @LastEditors: lb + * @LastEditTime: 2022-05-13 10:02:54 + * @Description: 质量检测 - 成品发货检查 + * @FilePath: + */ +import request from '@/utils/request' + +/** + * 检查一个成品检查信息是否存在 + * @returns + */ +export function check(data) { + return request({ + url: '/quality/delivery-inspection/checkOrder', + method: 'post', + data + }) +} + +/** + * 新增成品检查信息 + * 备注:填写过程 先调用check() ,新增时详情先缓存后一次性提交 + * @returns + */ +export function add(data) { + return request({ + url: '/quality/delivery-inspection/create', + method: 'post', + data + }) +} + +/** + * 删除详细记录 + * @returns + */ +export function deleteDetail(id) { + return request({ + url: '/quality/delivery-inspection/deleteDet', + method: 'post', + data: { id } + }) +} + +/** + * 删除主记录,同时删除详细记录 + * @returns + */ +export function deleteMain(id) { + return request({ + url: '/quality/delivery-inspection/deleteMain', + method: 'post', + data: { id } + }) +} + +/** + * 获取成品发货检查的详情信息 + * 备注:请求类型为 application/json + * @returns + */ +export function detail(data) { + return request({ + url: '/quality/delivery-inspection/get', + method: 'post', + data + }) +} + +/** + * 成品发货检查的所有条目查询 + * @returns + */ +export function listAll(data) { + return request({ + url: '/quality/delivery-inspection/list', + method: 'post', + data + }) +} + +/** + * 成品发货检查的分页查询 + * @returns + */ +export function list(data) { + return request({ + url: '/quality/delivery-inspection/page', + method: 'post', + data + }) +} + +/** + * 更新成品发货检查的详细信息 + * @returns + */ +export function updateDetail(data) { + return request({ + url: '/quality/delivery-inspection/updateDet', + method: 'post', + data + }) +} +/** + * 更新成品发货检查的主信息 + * @returns + */ +export function updateMain(data) { + return request({ + url: '/quality/delivery-inspection/updateMain', + method: 'post', + data + }) +} + +// updateMain 的别名 +export const update = updateMain +// deleteMain 的别名 +export const del = deleteMain + +// 获取所有订单id +export function getOrders() { + return request({ + url: '/order/order/list', + method: 'post', + data: { + enabled: 1 + } + }) +} + +// 获取所有货架id +export function getShelfs(extraParams) { + return request({ + url: '/basic/shelf/page', + method: 'post', + data: { + current: 1, + size: 999, + ...extraParams + } + }) +} + +// 获取所有工单 +// export function getWorkOrders(extraParams) { +// return request({ +// url: '/order/work-order/page', +// method: 'post', +// data: { +// current: 1, +// size: 999, +// ...extraParams +// } +// }) +// } + +// 获取所有检查类型 +export function getCheckTypeList(extraParams) { + return request({ + url: '/quality/quality-inspection-type/page', + method: 'post', + data: { + current: 1, + size: 999, + ...extraParams + } + }) +} + +// 根据检测类型id获取检测内容列表 +export function getCheckDetContentList(typeId) { + return request({ + url: '/quality/quality-inspection-det/list', + method: 'get', + params: { + typeId + } + }) +} + +// 新增详细检测信息 +export function addDetail(data) { + return request({ + url: '/quality/delivery-inspection/createDet', + method: 'post', + data + }) +} + +// 根据工单id查询产品规格 +export function getProductSizeByOrderId(orderId) { + return request({ + url: '/quality/delivery-inspection/getProductSize', + method: 'post', + data: { id: orderId } + }) +} diff --git a/src/api/quality-manage/inspection.js b/src/api/quality-manage/inspection.js new file mode 100644 index 0000000..c956933 --- /dev/null +++ b/src/api/quality-manage/inspection.js @@ -0,0 +1,177 @@ +/* + * @Author: lb + * @Date: 2022-05-13 10:02:54 + * @LastEditors: lb + * @LastEditTime: 2022-05-13 10:02:54 + * @Description: 质量检测相关 + * @FilePath: + */ +import request from '@/utils/request' + +// 质量检测基础数据-类型 +const TYPE_PATH = '/quality/quality-inspection-type' +// 质量检测基础数据-[元]信息 +const META_INFO_PATH = '/quality/quality-inspection-det' + +const APIs = { + // 质量检测基础数据-类型 + type: { + add: TYPE_PATH + '/create', + delete: TYPE_PATH + '/delete', + update: TYPE_PATH + '/update', + code: TYPE_PATH + '/getCode', + page: TYPE_PATH + '/page' + }, + // 质量检测基础数据-信息 + meta: { + add: META_INFO_PATH + '/create', + delete: META_INFO_PATH + '/delete', + update: META_INFO_PATH + '/update', + code: META_INFO_PATH + '/getCode', + page: META_INFO_PATH + '/page' + } +} + +// ==================================== 质量检查类型 ====================================// + +/** + * 新增质量检查类型 + * @param {object} data + * @param {number} [data.id] + * @param {string} [data.inspectionType] + * @param {string} [data.inspectionTypeCode] + * @param {string} [data.remark] + */ +export function addType(data) { + return request({ + url: APIs.type.add, + method: 'post', + data + }) +} + +/** + * 删除质量检查类型 + */ +export function deleteType(id) { + return request({ + url: APIs.type.delete, + method: 'post', + data: { id } + }) +} + +/** + * 更新质量检查类型 + * @param {object} data + * @param {number} data.id + * @param {string} [data.inspectionType] + * @param {string} [data.inspectionTypeCode] + * @param {string} [data.remark] + */ +export function updateType(data) { + return request({ + url: APIs.type.update, + method: 'post', + data + }) +} + +/** + * 获取质量检查类型编码 + */ +export function getTypeCode() { + return request({ + url: APIs.type.code, + method: 'post' + }) +} + +/** + * 获取质量检查类型分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.inspectionType] + */ +export function getTypeList(data) { + return request({ + url: APIs.type.page, + method: 'post', + data + }) +} + +// ==================================== 质量检查[元]信息 ====================================// + +/** + * 新增质量检查信息 + * @param {object} data + * @param {number} [data.id] + * @param {string} data.inspectionDetCode + * @param {string} data.inspectionDetContent + * @param {number} data.inspectionTypeId + * @param {string} [data.remark] + */ +export function addMetaInfo(data) { + return request({ + url: APIs.meta.add, + method: 'post', + data + }) +} + +/** + * 删除质量检查信息 + */ +export function deleteMetaInfo(id) { + return request({ + url: APIs.meta.delete, + method: 'post', + data: { id } + }) +} + +/** + * 更新质量检查信息 + * @param {object} data + * @param {number} data.id + * @param {string} data.inspectionDetCode 编码 + * @param {string} data.inspectionDetContent 检查内容 + * @param {number} data.inspectionTypeId + * @param {string} [data.remark] + */ +export function updateMetaInfo(data) { + return request({ + url: APIs.meta.update, + method: 'post', + data + }) +} + +/** + * 获取质量检查信息编码 + */ +export function getMetaInfoCode() { + return request({ + url: APIs.meta.code, + method: 'post' + }) +} + +/** + * 获取质量检查信息分页列表 + * @param {object} data + * @param {number} data.current + * @param {number} data.size + * @param {number} [data.enabled] + * @param {string} [data.inspectionDetContent] 检查内容 + */ +export function getMetaInfoList(data) { + return request({ + url: APIs.meta.page, + method: 'post', + data + }) +} diff --git a/src/api/quality-manage/knowledge.js b/src/api/quality-manage/knowledge.js new file mode 100644 index 0000000..c60f6d0 --- /dev/null +++ b/src/api/quality-manage/knowledge.js @@ -0,0 +1,48 @@ +/* + * @Author: your name + * @Date: 2021-07-12 15:44:43 + * @LastEditTime: 2021-07-14 13:51:48 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: \mt-bus-fe\src\api\quality-manage\knowledge.js + */ +import request from '@/utils/request' +export function getKnowList(data) { + return request({ + url: '/equipment/maintenance-knowledge/findAllByTitle', + method: 'post', + data + }) +} + +export function getDataById(data) { + return request({ + url: '/equipment/maintenance-knowledge/findAllById', + method: 'post', + data + }) +} + +export function addKnowledge(data) { + return request({ + url: '/equipment/maintenance-knowledge/create', + method: 'post', + data + }) +} + +export function updateData(data) { + return request({ + url: '/equipment/maintenance-knowledge/update', + method: 'post', + data + }) +} + +export function delData(data) { + return request({ + url: '/equipment/maintenance-knowledge/delete', + method: 'post', + data + }) +} diff --git a/src/api/quality-manage/plan.js b/src/api/quality-manage/plan.js new file mode 100644 index 0000000..69aa4ce --- /dev/null +++ b/src/api/quality-manage/plan.js @@ -0,0 +1,109 @@ +import request from '@/utils/request' + +// 质量检测计划 +export function getPlanList(data) { + return request({ + url: '/quality/quality-inspection-plan/page', + method: 'post', + data + }) +} + +export function getPlanInfo(data) { + return request({ + url: '/quality/quality-inspection-plan/findById', + method: 'post', + data + }) +} + +export function addPlanInfo(data) { + return request({ + url: '/quality/quality-inspection-plan/create', + method: 'post', + data + }) +} + +export function editPlanInfo(data) { + return request({ + url: '/quality/quality-inspection-plan/update', + method: 'post', + data + }) +} + +export function delPlanInfo(data) { + return request({ + url: '/quality/quality-inspection-plan/delete', + method: 'post', + data + }) +} + +// 质量检测计划参数设置 +export function getPlanParamList(data) { + return request({ + url: '/basic/detect-equipment-area/list-param-by-detect-distribution-area-id', + method: 'post', + data + }) +} + +export function getPlanParamInfo(data) { + return request({ + url: '/basic/detect-equipment-area/get', + method: 'post', + data + }) +} + +export function addPlanParamInfo(data) { + return request({ + url: '/basic/detect-equipment-area/create', + method: 'post', + data + }) +} + +export function editPlanParamInfo(data) { + return request({ + url: '/basic/detect-equipment-area/update', + method: 'post', + data + }) +} + +export function delPlanParamInfo(data) { + return request({ + url: '/basic/detect-equipment-area/delete', + method: 'post', + data + }) +} + +// 质量检测计划下发 +export function sendPlan(data) { + return request({ + url: '/quality/issue-test-plan/create', + method: 'post', + data + }) +} + +export function sentPlanList(data) { + return request({ + url: '/quality/issue-test-plan/page', + method: 'post', + data + }) +} + +// 获取下发区域 +export function getArea(data) { + return request({ + url: '/basic/detect-distribution-area/page', + method: 'post', + data + }) +} diff --git a/src/api/quality-manage/record.js b/src/api/quality-manage/record.js new file mode 100644 index 0000000..f6dfa9e --- /dev/null +++ b/src/api/quality-manage/record.js @@ -0,0 +1,180 @@ +/* + * @Author: lb + * @Date: 2022-05-13 10:02:54 + * @LastEditors: lb + * @LastEditTime: 2022-05-13 10:02:54 + * @Description: 质量检测 - 检测记录(数据) + * @FilePath: + */ +import request from '@/utils/request' + +/** + * 新增检测记录 + * @returns + */ +export function add(data) { + return request({ + url: '/quality/quality-inspection-record/create', + method: 'post', + data + }) +} + +/** + * 删除检测记录 + * @returns + */ +export function del(id) { + return request({ + url: '/quality/quality-inspection-record/delete', + method: 'post', + data: { id } + }) +} + +/** + * 分页检测记录 + * @returns + */ +export function list(data) { + return request({ + url: '/quality/quality-inspection-record/page', + method: 'post', + data + }) +} + +/** + * 检测统计数据 + * {workOrderCode, startTime, endTime} + * @returns + */ +export function getStatisticData(data) { + return request({ + url: '/quality/quality-inspection-record/pageCountRecordHis', + method: 'post', + data + }) +} + +/** + * 当前检测数据 + * 备注:不用发送请求体 + * @returns + */ +export function getCurrentData() { + return request({ + url: '/quality/quality-inspection-record/pageCountRecordNow', + method: 'post' + }) +} + +/** + * 当前检测数据详情 + * id即workOrderId + * @returns + */ +export function getCurrentDataDetail(id) { + return request({ + url: '/quality/quality-inspection-record/pageCountRecordNowDet', + method: 'post', + data: { id } + }) +} + +/** + * 更新检测信息 + * @returns + */ +export function update(data) { + return request({ + url: '/quality/quality-inspection-record/update', + method: 'post', + data + }) +} + +/** + * 获取所有工单 + * @returns + */ +export function getWorkOrders(extraParams) { + return request({ + url: '/order/work-order/page', + method: 'post', + data: { + current: 1, + size: 999, + ...extraParams + } + }) +} + +/** + * 获取所有检查det信息 + * @returns + */ +export function getInspectionDets(extraParams) { + return request({ + url: '/quality/quality-inspection-det/page', + method: 'post', + data: { + current: 1, + size: 999, + ...extraParams + } + }) +} + +/** + * 获取所有检查类型 + * @returns + */ +export function getInspectionTypes(inspectionType) { + return request({ + url: '/quality/quality-inspection-type/page', + method: 'post', + data: { + current: 1, + size: 999, + inspectionType: inspectionType || '' + } + }) +} + +/** + * 获取所有产线 + * @returns + */ +export function getProductLines() { + return request({ + url: '/basic/production-line/list', + method: 'post', + data: {} + }) +} + +/** + * 获取所有工段 + * @returns + */ +export function getWorkSections(productionLineId) { + return request({ + url: '/basic/workshop-section/list', + method: 'post', + data: { + productionLineId + } + }) +} + +// 获取所有订单id +export function getOrders() { + return request({ + url: '/order/order/list', + method: 'post', + data: { + enabled: 1 + } + }) +} diff --git a/src/api/quality-manage/retrospect.js b/src/api/quality-manage/retrospect.js new file mode 100644 index 0000000..9567c1f --- /dev/null +++ b/src/api/quality-manage/retrospect.js @@ -0,0 +1,198 @@ +/* + * @Author: lb + * @Date: 2022-05-27 10:02:54 + * @LastEditors: lb + * @LastEditTime: 2022-05-27 10:02:54 + * @Description: 质量检测 - 质量追溯 + * @remark: 最后做,后端接口尚未准备好 2022.5.27 + */ +import request from '@/utils/request' + +/** + * 设备状态追溯 + * @returns + */ +export function equipStatus(data) { + return request({ + url: '/quality/quality-Tracing/equipmentStateTracing', + method: 'post', + data + }) +} + +/** + * 设备参数追溯 +{ + "current": 1, + "size": 10, + "enabled": 1, + "startTime": "2021-12-16T00:00:00", + "endTime": "2022-12-17T23:59:59", + "equipmentId": 1525013176417976321, + "workOrderId": 1413402503586725890 +} + * @returns + */ +export function equipParams(data) { + return request({ + url: '/quality/quality-Tracing/equipmentValueTracing', + method: 'post', + data + }) +} + +/** + * 执行班组追溯 +{ + "current": 1, + "enabled": 1, + "size": 10, + "teamId": 1, + "workOrderId": 1413402503586725890 +} + * @returns + */ +export function getTeamList(data) { + return request({ + url: '/quality/quality-Tracing/executiveTeamTracing', + method: 'post', + data + }) +} + +/** + * 执行班组追溯-详情信息 +{ + "current": 1, + "enabled": 1, + "size": 10, + "teamId": 1, + "workOrderId": 1413402503586725890 +} + * @returns + */ +export function getTeamDetail(data) { + return request({ + url: '/quality/quality-Tracing/executiveTeamTracingInfo', + method: 'post', + data + }) +} + +/** + * 原片原料追溯 +{ + "current": 1, + "size": 10, + "enabled": 1, + "workOrderId": 1413402503586725890 +} + * @returns + */ +export function raw(data) { + return request({ + url: '/quality/quality-Tracing/materialInformationTracing', + method: 'post', + data + }) +} + +/** + * 物料信息(消耗)追溯 +{ + "current": 1, + "enabled": 1, + "id": 1, + "size": 10 +} + * @returns + */ +export function getMaterialConsumeList(data) { + return request({ + url: '/quality/quality-Tracing/materialUsingTracing', + method: 'post', + data + }) +} + +/** + * 物料信息(消耗)追溯详情 +{ + "current": 1, + "enabled": 1, + "materialId": 1, + "size": 10, + "workOrderId": 1413402503586725890 +} + * @returns + */ +export function getMaterialConsumeDetail(data) { + return request({ + url: '/quality/quality-Tracing/materialUsingTracingDet', + method: 'post', + data + }) +} + +/** + * 工艺参数追溯 + * @returns + */ +export function craft(data) { + return request({ + url: '/quality/quality-Tracing/processInformationTracing', + method: 'post', + data + }) +} + +/** + * 工艺参数追溯-详情信息 + * @returns + */ +export function craftDetail(id) { + return request({ + url: '/quality/quality-Tracing/processInformationTracingInfo', + method: 'post', + data: { id } + }) +} + +/** + * 获取所有工单 + * @returns + */ +export function getWorkOrders(extraParams) { + return request({ + url: '/order/work-order/page', + method: 'post', + data: { + current: 1, + size: 999, + ...extraParams + } + }) +} + +/* + * 工艺参数追溯 + * 获取所有工艺信息追溯的列表 + * @returns + */ +export function getCraftList(data) { + return request({ + url: '/quality/quality-Tracing/processInformationTracing', + method: 'post', + data + }) +} + +/** + * 获取工厂、产线、工段、设备的树形结构数据 + */ +export function getEquipmentTree() { + return request({ + url: '/basic/equipment/tree', + method: 'post' + }) +} diff --git a/src/api/quality-manage/scrap.js b/src/api/quality-manage/scrap.js new file mode 100644 index 0000000..95becf4 --- /dev/null +++ b/src/api/quality-manage/scrap.js @@ -0,0 +1,66 @@ +/* + * @Date: 2021-03-15 10:27:40 + * @LastEditors: Please set LastEditors + * @LastEditTime: 2021-07-09 14:35:26 + * @FilePath: \basic-admin\src\api\quality-manage\scrap.js + * @Description: + */ +import request from '@/utils/request' + +export function getScrapList(data) { + return request({ + url: '/quality/scrap/page', + method: 'post', + data + }) +} + +export function delScrapInfo(data) { + return request({ + url: '/quality/scrap/delete', + method: 'post', + data + }) +} + +export function editScrapInfo(data) { + return request({ + url: '/quality/scrap/update', + method: 'post', + data + }) +} + +export function addScrapInfo(data) { + return request({ + url: '/quality/scrap/create', + method: 'post', + data + }) +} +export function getScrapInfo(data) { + return request({ + url: '/quality/scrap/findById', + method: 'post', + data + }) +} + +// 废品报废 原因 +export function getscrapReason(data) { + return request({ + url: '/basic/scrap-information/get', + method: 'post', + data + }) +} + +// 根据设备id查询肺片等级 +export function getScrap(id) { + return request({ + url: '/basic/equipment-scraps-grade/getScrapsGradeByEquipmentId', + method: 'post', + data: { id } + }) +} + diff --git a/src/api/quality-manage/scrapInfo.js b/src/api/quality-manage/scrapInfo.js new file mode 100644 index 0000000..2f7b95a --- /dev/null +++ b/src/api/quality-manage/scrapInfo.js @@ -0,0 +1,66 @@ +/* + * @Date: 2021-03-15 10:27:40 + * @LastEditors: Please set LastEditors + * @LastEditTime: 2021-07-09 14:35:26 + * @FilePath: \basic-admin\src\api\quality-manage\scrap.js + * @Description: + */ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/quality/scrap/page', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/quality/scrap/delete', + method: 'post', + data + }) +} + +export function edit(data) { + return request({ + url: '/quality/scrap/update', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/quality/scrap/create', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/quality/scrap/get', + method: 'post', + data + }) +} + +// 获取班组列表 +export function getTeamList(data) { + return request({ + url: '/basic/team/page', + method: 'post', + data + }) +} + +// 获取工单列表 +export function getOrderList(data) { + return request({ + url: '/order/work-order/page', + method: 'post', + data + }) +} diff --git a/src/api/team-manage/shift.js b/src/api/team-manage/shift.js new file mode 100644 index 0000000..7e65497 --- /dev/null +++ b/src/api/team-manage/shift.js @@ -0,0 +1,90 @@ +/* + * @Author: gtz + * @Date: 2022-03-14 14:30:28 + * @LastEditors: gtz + * @LastEditTime: 2022-03-30 16:23:45 + * @Description: file content + * @FilePath: \mt-bus-fe\src\api\team-manage\shift.js + */ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/team/team-record-plan/page', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/team/team-record-plan/get', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/team/team-record-plan/add', + method: 'post', + data + }) +} + +export function update(data) { + return request({ + url: '/team/team-record-plan/update', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/team/team-record-plan/delete', + method: 'post', + data + }) +} + +export function getWorkShopList(data) { + return request({ + url: '/basic/workshop-section/page', + method: 'post', + data + }) +} + +export function getShiftList(data) { + return request({ + url: '/basic/schedule-plan/page', + method: 'post', + data + }) +} + +export function getTeamList(data) { + return request({ + url: '/basic/team/page', + method: 'post', + data + }) +} + +export function getExcelExample() { + return request({ + url: '/team/team-record-plan/teamPlanModel', + method: 'get', + responseType: 'blob', + timeout: 60000 + }) +} + +export function getWorkShopTree(data) { + return request({ + url: '/team/team-record-plan/sectionTree', + method: 'post', + data + }) +} diff --git a/src/api/team-manage/team-plan.js b/src/api/team-manage/team-plan.js new file mode 100644 index 0000000..711fd2e --- /dev/null +++ b/src/api/team-manage/team-plan.js @@ -0,0 +1,105 @@ +import request from '@/utils/request' + +/** + * + * @param { + "current": 1, + "enabled": 1, + "handoverStatus": 0, + "id": 1, + "keywords": "白班1", + "planHandoverBegTime": "2021-01-07T12:20:43", + "planHandoverEndTime": "2021-01-07T12:20:43", + "planOnlineBegTime": "2021-01-07T12:20:43", + "planOnlineEndTime": "2021-01-07T12:20:43", + "planTeamId": 1, + "size": 10 +} + */ +export function page(data) { + return request({ + url: '/team/team-record-plan/page', + method: 'post', + data + }) +} + +export function offlineUpdate(data) { + return request({ + url: '/team/team-record/offlineUpdate', + method: 'post', + data + }) +} +// 获取所有的专业 +export function planProfessionVoList(data) { + return request({ + url: '/team/team-record-plan/planProfessionVoList', + method: 'post', + data + }) +} +// 获取所有的员工 +export function planWorkerVoList(data) { + return request({ + url: '/team/team-record-plan/planWorkerVoList', + method: 'post', + data + }) +} + +// 获取所有的员工 +export function add(data) { + return request({ + url: '/team/team-record-plan/add', + method: 'post', + data + }) +} + +export function update(data) { + return request({ + url: '/team/team-record-plan/update', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/team/team-record-plan/get', + method: 'post', + data + }) +} +/** + * + * @param {获取计划班组下拉} data + */ +export function planTeamSelectList(data) { + return request({ + url: 'team/team-record-plan/planTeamSelectList', + method: 'post', + data + }) +} + +/** + * + * @param {获取计划班组下拉} data + */ +export function planTeamSelectListNew(data) { + return request({ + url: 'team/team-record-plan/planTeamSelectListNew', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/team/team-record-plan/delete', + method: 'post', + data + }) +} diff --git a/src/api/team-manage/team.js b/src/api/team-manage/team.js new file mode 100644 index 0000000..662edfc --- /dev/null +++ b/src/api/team-manage/team.js @@ -0,0 +1,133 @@ +/* + * @Author: your name + * @Date: 2021-07-09 17:04:34 + * @LastEditTime: 2021-07-14 13:51:35 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: \mt-bus-fe\src\api\team-manage\team.js + */ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/team/team-record/page', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/team/team-record/get', + method: 'post', + data + }) +} +// 获取所有的员工 +export function add(data) { + return request({ + url: '/team/team-record/add', + method: 'post', + data + }) +} + +export function offlineUpdate(data) { + return request({ + url: '/team/team-record/offlineUpdate', + method: 'post', + data + }) +} + +// 获取所有的专业 +export function professionVoList(data) { + return request({ + url: 'team/team-record/professionVoList', + method: 'post', + data + }) +} +// 获取所有的员工 +export function workerVoList(data) { + return request({ + url: '/team/team-record/workerVoList', + method: 'post', + data + }) +} + +export function teamSelectList(data) { + return request({ + url: 'team/team-record/teamSelectList', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/team/team-record/delete', + method: 'post', + data + }) +} + +export function pageMajor(data) { + return request({ + url: '/basic/major/page', + method: 'post', + data + }) +} + +export function pageWork(data) { + return request({ + url: '/basic/worker/page', + method: 'post', + data + }) +} + +// 获取事件日志列表 +export function showLogPage(data) { + return request({ + url: '/team/team-event-log-detail/page', + method: 'post', + data + }) +} + +// 删除事件日志信息 +export function delData(data) { + return request({ + url: '/team/team-event-log-detail/delete', + method: 'post', + data + }) +} + +// 获取事件日志单挑信息 +export function getDataById(data) { + return request({ + url: '/team/team-event-log-detail/get', + method: 'post', + data + }) +} + +export function addLog(data) { + return request({ + url: '/team/team-event-log-detail/add', + method: 'post', + data + }) +} + +export function updateLog(data) { + return request({ + url: '/team/team-event-log-detail/update', + method: 'post', + data + }) +} diff --git a/src/api/team-manage/teamInfo.js b/src/api/team-manage/teamInfo.js new file mode 100644 index 0000000..99332a7 --- /dev/null +++ b/src/api/team-manage/teamInfo.js @@ -0,0 +1,68 @@ +/* + * @Author: gtz + * @Date: 2022-03-25 14:57:07 + * @LastEditors: gtz + * @LastEditTime: 2022-04-07 15:49:07 + * @Description: file content + * @FilePath: \mt-bus-fe\src\api\team-manage\teamInfo.js + */ + +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/team/team-record/page', + method: 'post', + data + }) +} + +export function getInfo(data) { + return request({ + url: '/team/team-record/get', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/team/team-record-plan/add', + method: 'post', + data + }) +} + +export function exportFile(data) { + return request({ + url: '/team/team-record/export', + method: 'post', + data, + responseType: 'blob', + timeout: 60000 + }) +} + +export function getTeamList(data) { + return request({ + url: '/basic/team/page', + method: 'post', + data + }) +} + +export function getShiftList(data) { + return request({ + url: '/basic/schedule-plan/page', + method: 'post', + data + }) +} + +export function getWorkShopTree(data) { + return request({ + url: '/team/team-record-plan/sectionTree', + method: 'post', + data + }) +} diff --git a/src/icons/svg/table_cancellation.svg b/src/icons/svg/table_cancellation.svg new file mode 100644 index 0000000..0f05053 --- /dev/null +++ b/src/icons/svg/table_cancellation.svg @@ -0,0 +1,17 @@ + + + 订单管理备份 2 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/table_complete.svg b/src/icons/svg/table_complete.svg new file mode 100644 index 0000000..6dfde55 --- /dev/null +++ b/src/icons/svg/table_complete.svg @@ -0,0 +1,17 @@ + + + 订单管理备份 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/lang/i18n.js b/src/lang/i18n.js index 3d8f325..48a80a7 100644 --- a/src/lang/i18n.js +++ b/src/lang/i18n.js @@ -155,6 +155,14 @@ export default { bind: { zh: '绑定', en: 'Bind' + }, + cancellation: { + zh: '作废', + en: 'cancellation' + }, + complete: { + zh: '完成', + en: 'complete' } }, navbar: { diff --git a/src/lang/i18n/zh/btn/index.js b/src/lang/i18n/zh/btn/index.js index 237f4d0..7a856ef 100644 --- a/src/lang/i18n/zh/btn/index.js +++ b/src/lang/i18n/zh/btn/index.js @@ -90,5 +90,13 @@ export default { download: { zh: '下载', en: 'download' + }, + cancellation: { + zh: '作废', + en: 'cancellation' + }, + complete: { + zh: '完成', + en: 'complete' } } diff --git a/src/views/wmsInStore/acceptGoods.vue b/src/views/wmsInStore/acceptGoods.vue index 2245bee..aa4f71b 100644 --- a/src/views/wmsInStore/acceptGoods.vue +++ b/src/views/wmsInStore/acceptGoods.vue @@ -1,8 +1,178 @@ diff --git a/src/views/wmsInStore/components/accetpGoodsAdd.vue b/src/views/wmsInStore/components/accetpGoodsAdd.vue new file mode 100644 index 0000000..16fea4d --- /dev/null +++ b/src/views/wmsInStore/components/accetpGoodsAdd.vue @@ -0,0 +1,93 @@ + + diff --git a/src/views/wmsInStore/components/inStoreDocumentsAdd.vue b/src/views/wmsInStore/components/inStoreDocumentsAdd.vue new file mode 100644 index 0000000..e1dca5c --- /dev/null +++ b/src/views/wmsInStore/components/inStoreDocumentsAdd.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/wmsInStore/inStoreDocuments.vue b/src/views/wmsInStore/inStoreDocuments.vue index 46ff80e..6660abe 100644 --- a/src/views/wmsInStore/inStoreDocuments.vue +++ b/src/views/wmsInStore/inStoreDocuments.vue @@ -1,8 +1,183 @@ diff --git a/src/views/wmsInStore/warehouseOperation.vue b/src/views/wmsInStore/warehouseOperation.vue index b065d91..789f697 100644 --- a/src/views/wmsInStore/warehouseOperation.vue +++ b/src/views/wmsInStore/warehouseOperation.vue @@ -1,8 +1,130 @@ diff --git a/src/views/wmsInventoryManagement/inventory.vue b/src/views/wmsInventoryManagement/inventory.vue index 0ff0c4a..4202f46 100644 --- a/src/views/wmsInventoryManagement/inventory.vue +++ b/src/views/wmsInventoryManagement/inventory.vue @@ -1,8 +1,112 @@ diff --git a/src/views/wmsInventoryManagement/inventoryQuery.vue b/src/views/wmsInventoryManagement/inventoryQuery.vue index bf9b17d..5ee0db2 100644 --- a/src/views/wmsInventoryManagement/inventoryQuery.vue +++ b/src/views/wmsInventoryManagement/inventoryQuery.vue @@ -1,8 +1,154 @@ diff --git a/src/views/wmsInventoryManagement/locationQuery.vue b/src/views/wmsInventoryManagement/locationQuery.vue index 52b1a8a..3c71bfa 100644 --- a/src/views/wmsInventoryManagement/locationQuery.vue +++ b/src/views/wmsInventoryManagement/locationQuery.vue @@ -1,8 +1,140 @@ diff --git a/src/views/wmsInventoryManagement/stockTaking.vue b/src/views/wmsInventoryManagement/stockTaking.vue index e2bc3c8..2bd5244 100644 --- a/src/views/wmsInventoryManagement/stockTaking.vue +++ b/src/views/wmsInventoryManagement/stockTaking.vue @@ -1,8 +1,148 @@ diff --git a/src/views/wmsOutStore/components/outStoreDocumentsAdd.vue b/src/views/wmsOutStore/components/outStoreDocumentsAdd.vue new file mode 100644 index 0000000..201259f --- /dev/null +++ b/src/views/wmsOutStore/components/outStoreDocumentsAdd.vue @@ -0,0 +1,88 @@ + + diff --git a/src/views/wmsOutStore/outStoreDocuments.vue b/src/views/wmsOutStore/outStoreDocuments.vue index 43fd332..b094c95 100644 --- a/src/views/wmsOutStore/outStoreDocuments.vue +++ b/src/views/wmsOutStore/outStoreDocuments.vue @@ -1,8 +1,181 @@ diff --git a/src/views/wmsOutStore/outStoreOperation.vue b/src/views/wmsOutStore/outStoreOperation.vue index 161cf3f..54e4628 100644 --- a/src/views/wmsOutStore/outStoreOperation.vue +++ b/src/views/wmsOutStore/outStoreOperation.vue @@ -1,8 +1,180 @@ diff --git a/src/views/wmsStatisticalReports/inventoryReport.vue b/src/views/wmsStatisticalReports/inventoryReport.vue index c13c9e5..9736992 100644 --- a/src/views/wmsStatisticalReports/inventoryReport.vue +++ b/src/views/wmsStatisticalReports/inventoryReport.vue @@ -1,8 +1,136 @@ diff --git a/src/views/wmsStatisticalReports/outStoreReport.vue b/src/views/wmsStatisticalReports/outStoreReport.vue index e5d0c87..9b3f3ae 100644 --- a/src/views/wmsStatisticalReports/outStoreReport.vue +++ b/src/views/wmsStatisticalReports/outStoreReport.vue @@ -1,8 +1,136 @@ -- 2.45.2