diff --git a/src/api/eam/equipmentMaintenanceMain/index.ts b/src/api/eam/equipmentMaintenanceMain/index.ts
new file mode 100644
index 000000000..835e6bff0
--- /dev/null
+++ b/src/api/eam/equipmentMaintenanceMain/index.ts
@@ -0,0 +1,74 @@
+import request from '@/config/axios'
+
+export interface EquipmentMaintenanceMainVO {
+ id: number
+ number: string
+ describing: string
+ equipmentCode: string
+ type: string
+ classes: string
+ planNumber: string
+ faultType: string
+ cycle: string
+ times: string
+ verifyer: number
+ verifyContent: string
+ verifyTime: Date
+ maintenancer: number
+ maintenancePhone: string
+ completeResult: string
+ completionTime: Date
+ maintenanceTime: Date
+ status: string
+ factoryAreaCode: string
+ workshopCode: string
+ workshopSectionCode: string
+ departmentCode: string
+ remark: string
+ siteId: string
+ available: string
+ deletionTime: Date
+ deleterId: byte[]
+ concurrencyStamp: number
+}
+
+// 查询设备保养工单主列表
+export const getEquipmentMaintenanceMainPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/eam/equipment-maintenance-main/senior', data })
+ } else {
+ return await request.get({ url: `/eam/equipment-maintenance-main/page`, params })
+ }
+}
+
+// 查询设备保养工单主详情
+export const getEquipmentMaintenanceMain = async (id: number) => {
+ return await request.get({ url: `/eam/equipment-maintenance-main/get?id=` + id })
+}
+
+// 新增设备保养工单主
+export const createEquipmentMaintenanceMain = async (data: EquipmentMaintenanceMainVO) => {
+ return await request.post({ url: `/eam/equipment-maintenance-main/create`, data })
+}
+
+// 修改设备保养工单主
+export const updateEquipmentMaintenanceMain = async (data: EquipmentMaintenanceMainVO) => {
+ return await request.put({ url: `/eam/equipment-maintenance-main/update`, data })
+}
+
+// 删除设备保养工单主
+export const deleteEquipmentMaintenanceMain = async (id: number) => {
+ return await request.delete({ url: `/eam/equipment-maintenance-main/delete?id=` + id })
+}
+
+// 导出设备保养工单主 Excel
+export const exportEquipmentMaintenanceMain = async (params) => {
+ return await request.download({ url: `/eam/equipment-maintenance-main/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/equipment-maintenance-main/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/eam/maintenance/index.ts b/src/api/eam/maintenance/index.ts
new file mode 100644
index 000000000..e0605fa0d
--- /dev/null
+++ b/src/api/eam/maintenance/index.ts
@@ -0,0 +1,77 @@
+import request from '@/config/axios'
+import {InspectionItemSelectSetVO} from "@/api/eam/inspectionItemSelectSet";
+
+export interface MaintenanceVO {
+ id: number
+ number: string
+ name: string
+ equipmentCode: string
+ type: string
+ optionCode: string
+ cycle: string
+ startTime: Date
+ endTime: Date
+ status: string
+ approver: number
+ approveContent: string
+ approveTime: Date
+ autoExamine: string
+ autoAgree: string
+ directCreateRecord: string
+ factoryAreaCode: string
+ workshopCode: string
+ workshopSectionCode: string
+ departmentCode: string
+ remark: string
+ siteId: string
+ available: string
+ deletionTime: Date
+ deleterId: byte[]
+ concurrencyStamp: number
+}
+
+// 查询保养计划列表
+export const getMaintenancePage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/eam/maintenance/senior', data })
+ } else {
+ return await request.get({ url: `/eam/maintenance/page`, params })
+ }
+}
+
+// 查询保养计划详情
+export const getMaintenance = async (id: number) => {
+ return await request.get({ url: `/eam/maintenance/get?id=` + id })
+}
+
+// 新增保养计划
+export const createMaintenance = async (data: MaintenanceVO) => {
+ return await request.post({ url: `/eam/maintenance/create`, data })
+}
+
+// 修改保养计划
+export const updateMaintenance = async (data: MaintenanceVO) => {
+ return await request.put({ url: `/eam/maintenance/update`, data })
+}
+
+// 删除保养计划
+export const deleteMaintenance = async (id: number) => {
+ return await request.delete({ url: `/eam/maintenance/delete?id=` + id })
+}
+
+// 导出保养计划 Excel
+export const exportMaintenance = async (params) => {
+ return await request.download({ url: `/eam/maintenance/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/maintenance/get-import-template' })
+}
+
+// 启用 / 禁用
+export const updateEnableCode = async (data: MaintenanceVO) => {
+ return await request.post({ url: `/eam/maintenance/ables` , data })
+}
diff --git a/src/api/eam/sparePart/index.ts b/src/api/eam/sparePart/index.ts
index 58d103d49..2956ac0f0 100644
--- a/src/api/eam/sparePart/index.ts
+++ b/src/api/eam/sparePart/index.ts
@@ -7,23 +7,19 @@ export interface SparePartVO {
brand: string
specifications: string
isOverall: string
- isConstant: string
subject: string
subjectCode: string
- category: string
+ type: string
+ images: string
region: string
classification: string
uom: string
singlePrice: number
- stockAge: number
- reprocurement: number
- safetyStock: number
- cost: string
- purchaser: string
- financer: string
- purchaseTime: Date
- isFramework: string
- isRadeIn: string
+ manufacturer: string
+ minInventory: number
+ maxInventory: number
+ replacementCycle: number
+ storageLocation: string
departmentCode: string
remark: string
siteId: string
@@ -38,43 +34,43 @@ export const getSparePartPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
- return await request.post({ url: '/eam/sparepart/spare-part/senior', data })
+ return await request.post({ url: '/eam/basic/spare-part/senior', data })
} else {
- return await request.get({ url: `/eam/sparepart/spare-part/page`, params })
+ return await request.get({ url: `/eam/basic/spare-part/page`, params })
}
}
// 查询备件基础详情
export const getSparePart = async (id: number) => {
- return await request.get({ url: `/eam/sparepart/spare-part/get?id=` + id })
+ return await request.get({ url: `/eam/basic/spare-part/get?id=` + id })
}
// 新增备件基础
export const createSparePart = async (data: SparePartVO) => {
- return await request.post({ url: `/eam/sparepart/spare-part/create`, data })
+ return await request.post({ url: `/eam/basic/spare-part/create`, data })
}
// 修改备件基础
export const updateSparePart = async (data: SparePartVO) => {
- return await request.put({ url: `/eam/sparepart/spare-part/update`, data })
+ return await request.put({ url: `/eam/basic/spare-part/update`, data })
}
// 删除备件基础
export const deleteSparePart = async (id: number) => {
- return await request.delete({ url: `/eam/sparepart/spare-part/delete?id=` + id })
+ return await request.delete({ url: `/eam/basic/spare-part/delete?id=` + id })
}
// 导出备件基础 Excel
export const exportSparePart = async (params) => {
- return await request.download({ url: `/eam/sparepart/spare-part/export-excel`, params })
+ return await request.download({ url: `/eam/basic/spare-part/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
- return request.download({ url: '/eam/sparepart/spare-part/get-import-template' })
+ return request.download({ url: '/eam/basic/spare-part/get-import-template' })
}
// 查询备件基础列表
export const getSparePartNoPage = async (params) => {
- return await request.get({ url: `/eam/sparepart/spare-part/noPage`, params })
-}
\ No newline at end of file
+ return await request.get({ url: `/eam/basic/spare-part/noPage`, params })
+}
diff --git a/src/api/mes/processroute/index.ts b/src/api/mes/processroute/index.ts
index c889e2dff..f6f5f1726 100644
--- a/src/api/mes/processroute/index.ts
+++ b/src/api/mes/processroute/index.ts
@@ -87,6 +87,11 @@ export const getProcessBomList = async (params) => {
return await request.get({ url: `/mes/common/getBomListByProductAndProcess`,params})
}
+// 查询产品bom的工序物料列表
+export const getBomListByProductBomAndProcess = async (params) => {
+ return await request.get({ url: `/mes/common/getBomListByProductBomAndProcess`,params})
+}
+
export const getWorkstationPage = async (code:String) => {
return await request.get({ url: `/mes/workstation/page?pageSize=25&processCode=`+code})
}
diff --git a/src/api/qms/inspectionScheme/index.ts b/src/api/qms/inspectionScheme/index.ts
index 358acd359..3c5f30e93 100644
--- a/src/api/qms/inspectionScheme/index.ts
+++ b/src/api/qms/inspectionScheme/index.ts
@@ -30,3 +30,8 @@ export const enableInspectionScheme = async (id: number) => {
export const disableInspectionScheme = async (id: number) => {
return await request.disable({ url: `/qms/inspection-scheme/disable?id=` + id })
}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/qms/inspection-scheme/get-import-template' })
+}
diff --git a/src/api/system/tenant/index.ts b/src/api/system/tenant/index.ts
index 176c37579..1e11e2dd1 100644
--- a/src/api/system/tenant/index.ts
+++ b/src/api/system/tenant/index.ts
@@ -33,7 +33,15 @@ export interface TenantExportReqVO {
// 查询租户列表
export const getTenantPage = (params: TenantPageReqVO) => {
- return request.get({ url: '/system/tenant/page', params })
+ console.log(params)
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = { ...params }
+ return request.post({ url: '/system/tenant/senior', data })
+ } else {
+ return request.get({ url: '/system/tenant/page', params })
+ }
+ // return request.get({ url: '/system/tenant/page', params })
}
// 查询租户详情
diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts
index 6ddf5473a..cb17a3200 100644
--- a/src/api/wms/balance/index.ts
+++ b/src/api/wms/balance/index.ts
@@ -83,7 +83,7 @@ export const getBalancePageByBusinessType = async (params) => {
}
-// 查询库存余额列表根据业务类型
+// 查询库存余额列表根据业务类型的物料类型
export const getBalancePageByBusinessTypeByItemType = async (params) => {
if (params.isSearch) {
delete params.isSearch
diff --git a/src/api/wms/countJobMain/index.ts b/src/api/wms/countJobMain/index.ts
index 3d9c2a5e8..2f685a8cf 100644
--- a/src/api/wms/countJobMain/index.ts
+++ b/src/api/wms/countJobMain/index.ts
@@ -89,5 +89,13 @@ export const importTemplate = () => {
// 关闭盘点任务主
export const closeCountJobMain = (id: number) => {
- return request.download({ url: '/wms/count-job-main/close?id=' + id })
+ return request.put({ url: '/wms/count-job-main/close?id=' + id })
}
+
+// 关闭盘点任务主
+export const handleExportCountJob = async (id: number) => {
+ let params = {
+ masterId:id
+ }
+ return await request.download({ url: `/wms/count-job-main/export-excel-single`, params })
+}
\ No newline at end of file
diff --git a/src/api/wms/customeritem/index.ts b/src/api/wms/customeritem/index.ts
index d4b636c5b..c4c27e8a7 100644
--- a/src/api/wms/customeritem/index.ts
+++ b/src/api/wms/customeritem/index.ts
@@ -61,4 +61,15 @@ export const exportCustomeritem = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/customeritem/get-import-template' })
+}
+
+// 获得业务类型筛选出的物料分页
+export const getPageBusinessTypeToItemCode = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return request.post({ url: '/wms/customeritem/pageBusinessTypeToLocationSenior', data })
+ } else {
+ return await request.get({ url: `/wms/customeritem/pageBusinessTypeToItemCode`, params })
+ }
}
\ No newline at end of file
diff --git a/src/api/wms/deliverPlanDetail/index.ts b/src/api/wms/deliverPlanDetail/index.ts
index 33aeffdb9..ea6887451 100644
--- a/src/api/wms/deliverPlanDetail/index.ts
+++ b/src/api/wms/deliverPlanDetail/index.ts
@@ -24,6 +24,17 @@ export const selectDetailByMasterID = async (id: number) => {
// 查询发货计划子列表
export const getDeliverPlanDetailPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/deliver-plan-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/deliver-plan-detail/page`, params })
+ }
+}
+
+// 查询发货计划子列表
+export const getDeliverPlanDetailPage1 = async (params) => {
return await request.get({ url: `/wms/deliver-plan-detail/page`, params })
}
diff --git a/src/api/wms/deliverPlanMain/index.ts b/src/api/wms/deliverPlanMain/index.ts
index 46277041e..83363172a 100644
--- a/src/api/wms/deliverPlanMain/index.ts
+++ b/src/api/wms/deliverPlanMain/index.ts
@@ -49,6 +49,19 @@ export const deleteDeliverPlanMain = async (id: number) => {
// 导出发货计划主 Excel
export const exportDeliverPlanMain = async (params) => {
+ params.businessType = 'Deliver'
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data })
+ } else {
+ return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params })
+ }
+}
+
+// 导出发货计划主 Excela
+export const exportZZBJDeliverPlanMain = async (params) => {
+ params.businessType = 'ZZBJDeliver'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
diff --git a/src/api/wms/deliverRequestMain/index.ts b/src/api/wms/deliverRequestMain/index.ts
index 03f544ed9..714df74e3 100644
--- a/src/api/wms/deliverRequestMain/index.ts
+++ b/src/api/wms/deliverRequestMain/index.ts
@@ -65,6 +65,19 @@ export const deleteDeliverRequestMain = async (id: number) => {
// 导出发货申请主 Excel
export const exportDeliverRequestMain = async (params) => {
+ params.businessType = 'Deliver'
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/deliver-request-main/export-excel-senior', data })
+ } else {
+ return await request.download({ url: `/wms/deliver-request-main/export-excel`, params })
+ }
+}
+
+// 导出发货申请主 Excel
+export const exportZZBJDeliverRequestMain = async (params) => {
+ params.businessType = 'ZZBJDeliver'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
diff --git a/src/api/wms/location/index.ts b/src/api/wms/location/index.ts
index ff0a8435c..231f14ed8 100644
--- a/src/api/wms/location/index.ts
+++ b/src/api/wms/location/index.ts
@@ -85,6 +85,16 @@ export const selectBusinessTypeToLocation = async (params) => {
}
}
+export const selectBusinessTypeOutLocation = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/location/pageBusinessTypeOutLocationSenior', data })
+ } else {
+ return request.get({ url: `/wms/location/pageBusinessTypeOutLocation`, params })
+ }
+}
+
export const selectPageItemAreaToLocation = async (params) => {
if (params.isSearch) {
diff --git a/src/api/wms/package/index.ts b/src/api/wms/package/index.ts
index dc47bf030..11531274d 100644
--- a/src/api/wms/package/index.ts
+++ b/src/api/wms/package/index.ts
@@ -115,4 +115,9 @@ export const getLabelDetailPage = async (params) => {
// 根据库存余额获取包装信息进行打印标签
export const getBalanceToPackage = async (packingNumber: String) => {
return await request.get({ url: `/wms/package/getBalanceToPackage?packingNumber=` + packingNumber})
+}
+
+// 根据库存余额获取包装信息进行打印标签--批量打印
+export const getBalanceToPackageSelection = async (data: any) => {
+ return await request.post({ url: `/wms/balance/batchPrintLabel` ,data})
}
\ No newline at end of file
diff --git a/src/api/wms/purchasereceiptJobMain/index.ts b/src/api/wms/purchasereceiptJobMain/index.ts
index 9e3463fb0..6db386db5 100644
--- a/src/api/wms/purchasereceiptJobMain/index.ts
+++ b/src/api/wms/purchasereceiptJobMain/index.ts
@@ -123,4 +123,9 @@ export const abandonPurchasereceiptJobMainSpare = (id: number) => {
// 承接采购收货任务主
export const acceptPurchasereceiptJobMain = (id: number) => {
return request.put({ url: '/wms/purchasereceipt-job-main/accept?id=' + id })
-}
\ No newline at end of file
+}
+
+// 拒收采购收货任务主
+export const refusalPurchasereceiptJobMain = (id: number) => {
+ return request.put({ url: '/wms/purchasereceipt-job-main/refusal?id=' + id })
+}
diff --git a/src/api/wms/purchasereceiptRecordDetail/index.ts b/src/api/wms/purchasereceiptRecordDetail/index.ts
index 352eeb112..41b7aa7b7 100644
--- a/src/api/wms/purchasereceiptRecordDetail/index.ts
+++ b/src/api/wms/purchasereceiptRecordDetail/index.ts
@@ -73,6 +73,17 @@ export const getPurchasereceiptRecordDetailPageSpare = async (params) => {
}
+// 查询采购收货记录--退货筛选列表
+export const getPurchasereceiptRecordDetailPageReturn = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorReturn', data })
+ } else {
+ return await request.get({ url: `/wms/purchasereceipt-record-detail/pageReturn`, params })
+ }
+}
+
export const getPurchasereceiptRecordDetailPageSCP = async (params) => {
if (params.isSearch) {
delete params.isSearch
@@ -152,4 +163,4 @@ export const queryPurchaseceiptChildPackingNumber = async (params) => {
// 查询采购收货缺货记录子包装数据
export const queryPurchaseshortageChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/purchaseshortage-detail/pageChildPackingNumber`, params })
-}
\ No newline at end of file
+}
diff --git a/src/api/wms/qadCostcentre/index.ts b/src/api/wms/qadCostcentre/index.ts
new file mode 100644
index 000000000..02fe9df8e
--- /dev/null
+++ b/src/api/wms/qadCostcentre/index.ts
@@ -0,0 +1,60 @@
+import request from '@/config/axios'
+
+export interface QadCostcentreVO {
+ id: number
+ code: string
+ usageDescription: string
+ costcentreId: string
+ costcentreCode: string
+ costcentreDescription: string
+ costcentreActive: string
+ costcentreType: string
+ available: string
+ remark: string
+ deletionTime: Date
+ deleterId: string
+ extraProperties: string
+ concurrencyStamp: number
+ siteId: string
+}
+
+// 查询QAD成品中心列表
+export const getQadCostcentrePage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/qad-costcentre/senior', data })
+ } else {
+ return await request.get({ url: `/wms/qad-costcentre/page`, params })
+ }
+}
+
+// 查询QAD成品中心详情
+export const getQadCostcentre = async (id: number) => {
+ return await request.get({ url: `/wms/qad-costcentre/get?id=` + id })
+}
+
+// 新增QAD成品中心
+export const createQadCostcentre = async (data: QadCostcentreVO) => {
+ return await request.post({ url: `/wms/qad-costcentre/create`, data })
+}
+
+// 修改QAD成品中心
+export const updateQadCostcentre = async (data: QadCostcentreVO) => {
+ return await request.put({ url: `/wms/qad-costcentre/update`, data })
+}
+
+// 删除QAD成品中心
+export const deleteQadCostcentre = async (id: number) => {
+ return await request.delete({ url: `/wms/qad-costcentre/delete?id=` + id })
+}
+
+// 导出QAD成品中心 Excel
+export const exportQadCostcentre = async (params) => {
+ return await request.download({ url: `/wms/qad-costcentre/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/qad-costcentre/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/qadProject/index.ts b/src/api/wms/qadProject/index.ts
new file mode 100644
index 000000000..ce9cd6e8e
--- /dev/null
+++ b/src/api/wms/qadProject/index.ts
@@ -0,0 +1,59 @@
+import request from '@/config/axios'
+
+export interface QadProjectVO {
+ id: number
+ projectId: string
+ projectCode: string
+ projectDescription: string
+ projectStartDate: string
+ projectEndDate: string
+ statusCode: string
+ available: string
+ remark: string
+ deletionTime: Date
+ deleterId: string
+ extraProperties: string
+ concurrencyStamp: number
+ siteId: string
+}
+
+// 查询QAD项目信息列表
+export const getQadProjectPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/qad-project/senior', data })
+ } else {
+ return await request.get({ url: `/wms/qad-project/page`, params })
+ }
+}
+
+// 查询QAD项目信息详情
+export const getQadProject = async (id: number) => {
+ return await request.get({ url: `/wms/qad-project/get?id=` + id })
+}
+
+// 新增QAD项目信息
+export const createQadProject = async (data: QadProjectVO) => {
+ return await request.post({ url: `/wms/qad-project/create`, data })
+}
+
+// 修改QAD项目信息
+export const updateQadProject = async (data: QadProjectVO) => {
+ return await request.put({ url: `/wms/qad-project/update`, data })
+}
+
+// 删除QAD项目信息
+export const deleteQadProject = async (id: number) => {
+ return await request.delete({ url: `/wms/qad-project/delete?id=` + id })
+}
+
+// 导出QAD项目信息 Excel
+export const exportQadProject = async (params) => {
+ return await request.download({ url: `/wms/qad-project/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/qad-project/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/subjectAccount/index.ts b/src/api/wms/subjectAccount/index.ts
new file mode 100644
index 000000000..351203c3c
--- /dev/null
+++ b/src/api/wms/subjectAccount/index.ts
@@ -0,0 +1,66 @@
+import request from '@/config/axios'
+
+export interface SubjectAccountVO {
+ id: number
+ code: string
+ usageDescription: string
+ costecentreId: string
+ costecentreCode: string
+ costecentreType: string
+ projectId: string
+ projectCode: string
+ address: string
+ available: string
+ remark: string
+ deletionTime: Date
+ deleterId: string
+ extraProperties: string
+ concurrencyStamp: number
+ siteId: string
+}
+
+// 查询科目账户配置列表
+export const getSubjectAccountPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/subject-account/senior', data })
+ } else {
+ return await request.get({ url: `/wms/subject-account/page`, params })
+ }
+}
+
+// 查询科目账户配置详情
+export const getSubjectAccount = async (id: number) => {
+ return await request.get({ url: `/wms/subject-account/get?id=` + id })
+}
+
+// 新增科目账户配置
+export const createSubjectAccount = async (data: SubjectAccountVO) => {
+ return await request.post({ url: `/wms/subject-account/create`, data })
+}
+
+// 修改科目账户配置
+export const updateSubjectAccount = async (data: SubjectAccountVO) => {
+ return await request.put({ url: `/wms/subject-account/update`, data })
+}
+
+// 删除科目账户配置
+export const deleteSubjectAccount = async (id: number) => {
+ return await request.delete({ url: `/wms/subject-account/delete?id=` + id })
+}
+
+// 导出科目账户配置 Excel
+export const exportSubjectAccount = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/subject-account/export-excel-senior`, data })
+ }else{
+ return await request.download({ url: `/wms/subject-account/export-excel`, params })
+ }
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/subject-account/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue
index 9fbf4a233..f55aed8cc 100644
--- a/src/components/Form/src/Form.vue
+++ b/src/components/Form/src/Form.vue
@@ -175,10 +175,7 @@ export default defineComponent({
const Com = componentMap['Divider'] as ReturnType
let labelName = item?.label || ''
if(item?.label){
- labelName = t(`ts.${item?.label}`)
- if(labelName === 'ts.' + item?.label){
- labelName = item?.label
- }
+ labelName = t(`ts.${item?.label}`).replace('ts.','')
}
return isDivider ? (
{labelName}
@@ -227,18 +224,12 @@ export default defineComponent({
if (item?.labelMessage) {
let labelName = item.label || ''
if(item.label){
- labelName = t(`ts.${item.label}`)
- if(labelName === 'ts.' + item.label){
- labelName = item.label
- }
+ labelName = t(`ts.${item.label}`).replace('ts.','')
}
let labelMessage = item.labelMessage || ''
if(item.labelMessage){
- labelMessage = t(`ts.${item.labelMessage}`)
- if(labelMessage === 'ts.' + item.labelMessage){
- labelMessage = item.labelMessage
- }
+ labelMessage = t(`ts.${item.labelMessage}`).replace('ts.','')
}
formItemSlots.label = () => {
return (
@@ -367,10 +358,7 @@ export default defineComponent({
}
let labelName = item.label || ''
if(item.label){
- labelName = t(`ts.${item.label}`)
- if(labelName === 'ts.' + item.label){
- labelName = item.label
- }
+ labelName = t(`ts.${item.label}`).replace('ts.','')
}
return (
diff --git a/src/components/Form/src/components/useRenderSelect.tsx b/src/components/Form/src/components/useRenderSelect.tsx
index 4a8a18a79..30f6d73d6 100644
--- a/src/components/Form/src/components/useRenderSelect.tsx
+++ b/src/components/Form/src/components/useRenderSelect.tsx
@@ -35,10 +35,7 @@ export const useRenderSelect = (slots: Slots) => {
const { label, value, ...other } = option
const zhName = labelAlias ? option[labelAlias] : label;//中文名称
- let labelName = t(`ts.${zhName}`)
- if(labelName === 'ts.' + zhName){
- labelName = zhName
- }
+ let labelName = t(`ts.${zhName}`).replace('ts.','')
return (
{
let labelName = schema.label || ''
if(schema.label){
- labelName = t(`ts.${schema.label}`)
- if(labelName === 'ts.' + schema.label){
- labelName = ' '+schema.label
- }else{
- labelName = ' ' + labelName
- }
+ labelName = ' '+t(`ts.${schema.label}`).replace('ts.','')
}
if (textMap.includes(schema?.component as string)) {
diff --git a/src/components/ImportForm/src/ImportDetailForm.vue b/src/components/ImportForm/src/ImportDetailForm.vue
new file mode 100644
index 000000000..bda6ffdfe
--- /dev/null
+++ b/src/components/ImportForm/src/ImportDetailForm.vue
@@ -0,0 +1,339 @@
+
+
+
+
+
+
+
diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue
index 3046e83bf..10f19206b 100644
--- a/src/components/Table/src/Table.vue
+++ b/src/components/Table/src/Table.vue
@@ -289,10 +289,7 @@ export default defineComponent({
return [...[renderTableExpand()], ...[renderTableSelection()]].concat(
(columnsChildren || columns).map((v) => {
const zhName = v.label || '';//中文名称
- let labelName = t(`ts.${v.label}`)
- if(labelName === 'ts.' + zhName){
- labelName = zhName
- }
+ let labelName = t(`ts.${v.label}`).replace('ts.','')
// 自定生成序号
if (v.type === 'index') {
return (
diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue
index 2ac2fb922..df2adca3f 100644
--- a/src/components/TableForm/src/TableForm.vue
+++ b/src/components/TableForm/src/TableForm.vue
@@ -64,7 +64,7 @@
v-model="row[headerItem.field]"
clearable
:type="headerItem?.tableForm?.inputType"
- :placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label"
+ :placeholder="t(`ts.${headerItem?.tableForm?.placeholder || '请输入' + headerItem.label}`).replace('ts.','')"
:disabled="headerItem?.tableForm?.disabled ? true: headerItem?.tableForm?.isInpuFocusShow ? true : false"
style="flex:1"
@blur="inputStringBlur(headerItem.field, row[headerItem.field], row)"
@@ -534,7 +534,10 @@ defineExpose({
padding: 2px 0px;
border: none;
}
-
+::v-deep(.el-form-item--default) {
+ margin-bottom: 5px;
+ margin-top: 5px;
+}
::v-deep(.el-table td.el-table__cell .el-form-item__content) {
display: flex !important;
align-items: center !important;
diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue
index 4b5201ba0..f338c591e 100644
--- a/src/components/UploadFile/src/UploadFile.vue
+++ b/src/components/UploadFile/src/UploadFile.vue
@@ -23,10 +23,10 @@
{{ title }}
- 大小不超过 {{ fileSize }}MB
+ {{t('ts.大小不超过')}} {{ fileSize }}MB
- 格式为 {{ fileType.join('/') }} 的文件
+ {{ t('ts.格式为') }} {{ fileType.join('/') }} {{ t('ts.的文件') }}
diff --git a/src/components/rowDrop/index.vue b/src/components/rowDrop/index.vue
index 15d0707a5..8ceae3d64 100644
--- a/src/components/rowDrop/index.vue
+++ b/src/components/rowDrop/index.vue
@@ -82,9 +82,13 @@ const closeRowDrop = () => {
const save = () => {
let saveDate:any[] = []
// 默认列表第一列(弹出详情用)
- saveDate.push(props.allSchemas.tableColumns[0])
+ let myTableColumns = props.allSchemas.tableColumns
+ if(props.detailAllSchemas){
+ myTableColumns = [...props.allSchemas?.tableColumns,...props.detailAllSchemas?.tableMainColumns]
+ }
+ saveDate.push(myTableColumns[0])
allData.value.forEach((item) => {
- const _item:any = props.allSchemas.tableColumns.find(itemColumns => (itemColumns.label == item ))
+ const _item:any = myTableColumns.find(itemColumns => (itemColumns.label == item ))
if(_item){
_item.isTable = false
if (checkedDataList.value.indexOf(_item.label) > -1) {
@@ -94,7 +98,7 @@ const save = () => {
}
})
// 默认操作列
- saveDate.push(props.allSchemas.tableColumns[props.allSchemas.tableColumns.length-1])
+ saveDate.push(myTableColumns[myTableColumns.length-1])
updataTableColumns(saveDate)
console.log(99, saveDate)
RedisApi.addRedis({key: routeName.value,value: JSON.stringify(saveDate)}).then(() => {
@@ -149,7 +153,7 @@ const initSelectSta = () => {
if (item.field != 'action') {
checkedDataList.value.push(item.label)
_showTableColumns.push(_myTableColumns.find(myItem => (myItem.label == item.label)))
- allData.value.push(t(`ts.${item.label}`))
+ allData.value.push(t(`ts.${item.label}`).replace('ts.',''))
}
}
})
@@ -161,7 +165,7 @@ const initSelectSta = () => {
if (!myTableItem.fixed) {
if (myTableItem.field != 'action') {
if (allData.value.indexOf(myTableItem.label) == -1) {
- allData.value.push(t(`ts.${myTableItem.label}`))
+ allData.value.push(t(`ts.${myTableItem.label}`).replace('ts.',''))
}
}
}
@@ -191,7 +195,7 @@ const initSelectSta = () => {
if (!item.fixed) {
if (item.field != 'action') {
checkedDataList.value.push(item.label)
- allData.value.push(t(`ts.${item.label}`))
+ allData.value.push(t(`ts.${item.label}`).replace('ts.',''))
}
}
})
diff --git a/src/hooks/web/useTitle.ts b/src/hooks/web/useTitle.ts
index 020a9b771..e531855ec 100644
--- a/src/hooks/web/useTitle.ts
+++ b/src/hooks/web/useTitle.ts
@@ -1,6 +1,7 @@
import { watch, ref } from 'vue'
import { isString } from '@/utils/is'
import { useAppStoreWithOut } from '@/store/modules/app'
+const { t } = useI18n() // 国际化
const appStore = useAppStoreWithOut()
@@ -14,7 +15,7 @@ export const useTitle = (newTitle?: string) => {
title,
(n, o) => {
if (isString(n) && n !== o && document) {
- document.title = n
+ document.title = n.replace(import.meta.env.VITE_APP_TITLE,t(`ts.${import.meta.env.VITE_APP_TITLE}`))
}
},
{ immediate: true }
diff --git a/src/layout/components/Footer/src/Footer.vue b/src/layout/components/Footer/src/Footer.vue
index c350e38af..bf29e4851 100644
--- a/src/layout/components/Footer/src/Footer.vue
+++ b/src/layout/components/Footer/src/Footer.vue
@@ -1,6 +1,7 @@
diff --git a/src/views/eam/maintenance/index.vue b/src/views/eam/maintenance/index.vue
new file mode 100644
index 000000000..fc14f5b21
--- /dev/null
+++ b/src/views/eam/maintenance/index.vue
@@ -0,0 +1,326 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/eam/maintenance/maintenance.data.ts b/src/views/eam/maintenance/maintenance.data.ts
new file mode 100644
index 000000000..79d241bb5
--- /dev/null
+++ b/src/views/eam/maintenance/maintenance.data.ts
@@ -0,0 +1,322 @@
+import type {CrudSchema} from '@/hooks/web/useCrudSchemas'
+import {dateFormatter} from '@/utils/formatTime'
+import { EquipmentAccounts } from "@/views/eam/equipmentAccounts/equipmentAccounts.data";
+import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
+
+// 表单校验
+export const MaintenanceRules = reactive({
+ number: [required],
+ name: [required],
+ equipmentCode: [required],
+ optionCode: [required],
+ cycle: [required],
+ startTime: [required],
+ endTime: [required],
+})
+
+export const Maintenance = useCrudSchemas(reactive([
+ {
+ label: 'id',
+ field: 'id',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ },
+ {
+ label: '计划编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '计划名称',
+ field: 'name',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '设备类别',
+ field: 'type',
+ dictType: DICT_TYPE.DEVICE_TYPE,
+ dictClass: 'string',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '设备工装编号',
+ field: 'equipmentCode',
+ sort: 'custom',
+ isSearch: true,
+ isForm: true,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '设备信息', // 查询弹窗标题
+ searchListPlaceholder: '请选择 设备编号', // 输入框占位文本
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ multiple:true,
+ searchCondition: [{
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }]
+ }
+ }
+ },
+ {
+ label: '方案编号',
+ field: 'optionCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '周期',
+ field: 'cycle',
+ dictType: DICT_TYPE.MAINTENANCE_CYCLE,
+ dictClass: 'string',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '计划开始时间',
+ field: 'startTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ },
+ {
+ label: '计划结束时间',
+ field: 'endTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ },
+ {
+ label: '状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: true,
+
+ },
+ {
+ label: '审核人',
+ field: 'approver',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ component: 'Editor',
+ componentProps: {
+ valueHtml: '',
+ height: 200
+ }
+ },
+ },
+ {
+ label: '审核时间',
+ field: 'approveTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ },
+ {
+ label: '自动审核',
+ field: 'autoExamine',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '自动通过',
+ field: 'autoAgree',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '直接生成记录',
+ field: 'directCreateRecord',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '所属厂区编号',
+ field: 'factoryAreaCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '车间编号',
+ field: 'workshopCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '工段编号',
+ field: 'workshopSectionCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ },
+ {
+ label: '部门id',
+ field: 'departmentCode',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '地点ID',
+ field: 'siteId',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ },
+ {
+ label: '是否可用',
+ field: 'available',
+ sort: 'custom',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string', // 默认都是字符串类型其他暂不考虑
+ isTable: true,
+ isDetail: false,
+ isSearch: true,
+ isTableForm: false,
+ isForm: false,
+ },
+ {
+ label: '删除时间',
+ field: 'deletionTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ },
+ {
+ label: '删除人id',
+ field: 'deleterId',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ },
+ {
+ label: '并发乐观锁',
+ field: 'concurrencyStamp',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+]))
diff --git a/src/views/eam/maintenanceItem/maintenanceItem.data.ts b/src/views/eam/maintenanceItem/maintenanceItem.data.ts
index 82f964601..b3ec64f41 100644
--- a/src/views/eam/maintenanceItem/maintenanceItem.data.ts
+++ b/src/views/eam/maintenanceItem/maintenanceItem.data.ts
@@ -1,5 +1,4 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
-import { dateFormatter } from '@/utils/formatTime'
import { handleTreeToComponentOptions } from '@/utils/tree'
import * as DeptApi from '@/api/system/dept'
const deptList = ref([]) // 树形结构
@@ -27,7 +26,13 @@ export const MaintenanceItem = useCrudSchemas(reactive([
},
},
{
- label: '保养内容',
+ label: '保养名称',
+ field: 'name',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '保养要求',
field: 'content',
sort: 'custom',
isSearch: true,
diff --git a/src/views/eam/sparePart/index.vue b/src/views/eam/sparePart/index.vue
index 3471dd480..5c16bad14 100644
--- a/src/views/eam/sparePart/index.vue
+++ b/src/views/eam/sparePart/index.vue
@@ -54,7 +54,7 @@
-
+