Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

hella_online_20240829
ljlong_2630 5 months ago
parent
commit
b08b82f16c
  1. 3
      .env.development
  2. 43
      .env.hella13
  3. 43
      .env.hella14
  4. 40
      .env.hella16
  5. 44
      .env.hella8
  6. 43
      .env.hella9
  7. 13
      .env.prod
  8. 2
      .env.test
  9. 3
      .env.test-scp
  10. 3
      .env.wyf
  11. 9
      README.md
  12. 1
      index.html
  13. 7
      package.json
  14. 14
      public/systemConfig.js
  15. 60
      src/api/eam/equipmentInspectionDetail/index.ts
  16. 104
      src/api/eam/equipmentInspectionMain/index.ts
  17. 62
      src/api/eam/equipmentSpotCheckDetail/index.ts
  18. 103
      src/api/eam/equipmentSpotCheckMain/index.ts
  19. 80
      src/api/eam/item/index.ts
  20. 63
      src/api/eam/itemApplyMain/index.ts
  21. 65
      src/api/eam/itemDelete/index.ts
  22. 55
      src/api/eam/location/index.ts
  23. 48
      src/api/eam/locationArea/index.ts
  24. 51
      src/api/eam/maintainExperience/index.ts
  25. 57
      src/api/eam/relationInspectionPlanItem/index.ts
  26. 57
      src/api/eam/relationSpotCheckPlanItem/index.ts
  27. 49
      src/api/eam/repairExperience/index.ts
  28. 63
      src/api/eam/sparePartsApplyDetail/index.ts
  29. 65
      src/api/eam/sparePartsApplyMain/index.ts
  30. 58
      src/api/eam/sparePartsInLocationDetail/index.ts
  31. 87
      src/api/eam/sparePartsInLocationMain/index.ts
  32. 58
      src/api/eam/sparePartsInLocationRecordDetail/index.ts
  33. 72
      src/api/eam/sparePartsInLocationRecordMain/index.ts
  34. 54
      src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js
  35. 71
      src/api/eam/sparePartsOutLocationRecordMain/index.ts
  36. 2
      src/api/wms/agvLocationrelation/index.ts
  37. 6
      src/api/wms/barbasic/index.ts
  38. 6
      src/api/wms/barcode/index.ts
  39. 5
      src/api/wms/businesstype/index.ts
  40. 6
      src/api/wms/callmaterials/index.ts
  41. 8
      src/api/wms/countJobMain/index.ts
  42. 2
      src/api/wms/customersettleRecordMain/index.ts
  43. 16
      src/api/wms/deliverPlanMain/index.ts
  44. 2
      src/api/wms/deliverRecordMain/index.ts
  45. 4
      src/api/wms/deliverRequestMain/index.ts
  46. 10
      src/api/wms/expectin/index.ts
  47. 10
      src/api/wms/expectout/index.ts
  48. 2
      src/api/wms/inventorychangeRecordMain/index.ts
  49. 2
      src/api/wms/inventorychangeRequestMain/index.ts
  50. 12
      src/api/wms/inventorymoveJobMain/index.ts
  51. 17
      src/api/wms/inventorymoveRecordMain/index.ts
  52. 12
      src/api/wms/inventorymoveRequestMain/index.ts
  53. 6
      src/api/wms/issueJobMain/index.ts
  54. 6
      src/api/wms/locationcapacity/index.ts
  55. 6
      src/api/wms/mesBarCode/index.ts
  56. 2
      src/api/wms/package/index.ts
  57. 2
      src/api/wms/packageunit/index.ts
  58. 5
      src/api/wms/processproductionRecordMain/index.ts
  59. 5
      src/api/wms/processproductionRequestMain/index.ts
  60. 6
      src/api/wms/productionreceiptJobMain/index.ts
  61. 6
      src/api/wms/productionreceiptRecordMain/index.ts
  62. 5
      src/api/wms/productionreturnRecordMain/index.ts
  63. 12
      src/api/wms/productputawayRecordDetail/index.ts
  64. 4
      src/api/wms/productputawayRecordMain/index.ts
  65. 12
      src/api/wms/productputawayRequestMain/index.ts
  66. 6
      src/api/wms/productreceiptJobMain/index.ts
  67. 6
      src/api/wms/productreceiptRecordMain/index.ts
  68. 12
      src/api/wms/productredressJobMain/index.ts
  69. 5
      src/api/wms/productredressRecordMain/index.ts
  70. 5
      src/api/wms/productredressRequestMain/index.ts
  71. 2
      src/api/wms/productrepairRecordMain/index.ts
  72. 6
      src/api/wms/productrepairRequestMain/index.ts
  73. 2
      src/api/wms/productscrapRequestMain/index.ts
  74. 6
      src/api/wms/purchaseclaimRequestMain/index.ts
  75. 8
      src/api/wms/purchasereturnJobMain/index.ts
  76. 10
      src/api/wms/putawayJobMain/index.ts
  77. 5
      src/api/wms/qadProject/index.ts
  78. 5
      src/api/wms/qadproductionplan/index.ts
  79. 5
      src/api/wms/repleinshRecordMain/index.ts
  80. 6
      src/api/wms/saleMain/index.ts
  81. 12
      src/api/wms/saleShipmentDetail/index.ts
  82. 12
      src/api/wms/saleShipmentDetailRecord/index.ts
  83. 30
      src/api/wms/saleShipmentMain/index.ts
  84. 18
      src/api/wms/saleShipmentMainRecord/index.ts
  85. 12
      src/api/wms/scrapJobMain/index.ts
  86. 4
      src/api/wms/supplierdeliverRequestMain/index.ts
  87. 6
      src/api/wms/supplierinvoiceRequestMain/index.ts
  88. 2
      src/api/wms/transaction/index.ts
  89. 6
      src/api/wms/transferissueJobMain/index.ts
  90. 2
      src/api/wms/transferlog/index.ts
  91. 12
      src/api/wms/transferreceiptJobMain/index.ts
  92. 12
      src/api/wms/unplannedissueJobMain/index.ts
  93. 13
      src/api/wms/unplannedreceiptJobMain/index.ts
  94. 3
      src/components/Annex/src/Annex.vue
  95. 3
      src/components/Annex/src/AnnexLedger.vue
  96. 25
      src/components/BasicForm/src/BasicForm.vue
  97. 976
      src/components/BasicForm/src/BasicFormWmsCount.vue
  98. 10
      src/components/Crontab/src/Crontab.vue
  99. 69
      src/components/Detail/src/Detail.vue
  100. 20
      src/components/DetailTable/src/DetailTable.vue

3
.env.development

@ -38,3 +38,6 @@ VITE_JMREPORT_BASE_URL='http://localhost:12080'
# 租户配置 # 租户配置
VITE_TENANT='["长春","成都"]' VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

43
.env.hella13

@ -1,43 +0,0 @@
# wms海拉长春生产环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.21.32.13/api'
# 上传路径
VITE_UPLOAD_URL='http://172.21.32.13/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.21.32.13:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.21.32.13:90'
# 租户配置
VITE_TENANT='["长春"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scp.faway-hella.com'

43
.env.hella14

@ -1,43 +0,0 @@
# wms海拉长春测试环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.21.32.14/api'
# 上传路径
VITE_UPLOAD_URL='http://172.21.32.14/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.21.32.14:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.21.32.14:90'
# 租户配置
VITE_TENANT='["长春"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scptest.faway-hella.com'

40
.env.hella16

@ -1,40 +0,0 @@
# scp海拉长春测试环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='https://scptest.faway-hella.com/api'
# 上传路径
VITE_UPLOAD_URL='https://scptest.faway-hella.com/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='https://scptest.faway-hella.com/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='https://scptest.faway-hella.com'
# 租户配置
VITE_TENANT='["长春","成都"]'

44
.env.hella8

@ -1,44 +0,0 @@
# wms海拉成都生产环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.22.32.8/api'
# 上传路径
VITE_UPLOAD_URL='http://172.22.32.8/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.22.32.8:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.22.32.8:90'
# 租户配置
VITE_TENANT='["成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scp.faway-hella.com'

43
.env.hella9

@ -1,43 +0,0 @@
# wms海拉成都测试环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.22.32.9/api'
# 上传路径
VITE_UPLOAD_URL='http://172.22.32.9/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.22.32.9:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.22.32.9:90'
# 租户配置
VITE_TENANT='["成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scptest.faway-hella.com'

13
.env.hella15 → .env.prod

@ -1,13 +1,13 @@
# scp海拉长春生产环境 # 生产环境
NODE_ENV=production NODE_ENV=production
VITE_DEV=false VITE_DEV=false
# 请求路径 # 请求路径
VITE_BASE_URL='https://scp.faway-hella.com/api' VITE_BASE_URL='http://dev.ccwin-in.com:25300/api'
# 上传路径 # 上传路径
VITE_UPLOAD_URL='https://scp.faway-hella.com/api/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload'
# 接口前缀 # 接口前缀
VITE_API_BASEPATH= VITE_API_BASEPATH=
@ -31,10 +31,13 @@ VITE_BASE_PATH=/
VITE_OUT_DIR=sfms3.0-ui VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径 # 自定义接口路径
VITE_INTERFACE_URL='https://scp.faway-hella.com/magic/web/index.html' VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'
# 积木报表请求路径 # 积木报表请求路径
VITE_JMREPORT_BASE_URL='https://scp.faway-hella.com' VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310'
# 租户配置 # 租户配置
VITE_TENANT='["长春","成都"]' VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

2
.env.test

@ -28,7 +28,7 @@ VITE_SOURCEMAP=false
VITE_BASE_PATH=/ VITE_BASE_PATH=/
# 输出路径 # 输出路径
VITE_OUT_DIR=sfms3.0 VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径 # 自定义接口路径
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html' VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'

3
.env.test-scp

@ -39,3 +39,6 @@ VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25311'
# 租户配置 # 租户配置
VITE_TENANT='["长春","成都"]' VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

3
.env.wyf

@ -49,3 +49,6 @@ VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080'
# 租户配置 # 租户配置
VITE_TENANT='["长春","成都"]' VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

9
README.md

@ -110,7 +110,14 @@ const { tableObject, tableMethods } = useTable({
getListApi: “PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage”// 分页接口 getListApi: “PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage”// 分页接口
}) })
5、ts文件配置: 5、搜索工作栏
<Search
:schema="[...CountPlanMain.allSchemas.searchSchema,...CountPlanDetail.allSchemas.searchSchema]"
@search="setSearchParams"
@reset="setSearchParams"
/>
6、ts文件配置:
hiddenInMain:true, //子表中数据不展示在主表 hiddenInMain:true, //子表中数据不展示在主表
sortTableDefault:1000, // 主页面中Table表中展示的排序位置:默认值999 ,最小值1,值越大越靠后,值越小越靠前 sortTableDefault:1000, // 主页面中Table表中展示的排序位置:默认值999 ,最小值1,值越大越靠后,值越小越靠前
sortSearchDefault:1000,// 搜素框中展示的排序位置,用法同sortTableDefault sortSearchDefault:1000,// 搜素框中展示的排序位置,用法同sortTableDefault

1
index.html

@ -8,6 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="富维海拉智慧工厂管理平台" /> <meta name="keywords" content="富维海拉智慧工厂管理平台" />
<meta name="description" content="富维海拉智慧工厂管理平台" /> <meta name="description" content="富维海拉智慧工厂管理平台" />
<script src="/systemConfig.js"></script>
<title>%VITE_APP_TITLE%</title> <title>%VITE_APP_TITLE%</title>
</head> </head>
<body> <body>

7
package.json

@ -9,12 +9,7 @@
"wyf": "vite --mode wyf", "wyf": "vite --mode wyf",
"test": "vite build --mode test", "test": "vite build --mode test",
"test-scp": "vite build --mode test-scp", "test-scp": "vite build --mode test-scp",
"hella8": "vite build --mode hella8", "prod": "vite build --mode prod",
"hella9": "vite build --mode hella9",
"hella13": "vite build --mode hella13",
"hella14": "vite build --mode hella14",
"hella15": "vite build --mode hella15",
"hella16": "vite build --mode hella16",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint --fix --ext .js,.vue src" "lint": "eslint --fix --ext .js,.vue src"
}, },

14
public/systemConfig.js

@ -0,0 +1,14 @@
let systemConfig = {
// 请求路径
baseUrl: 'http://172.22.32.8/api',
// 上传路径
uploadUrl: 'http://172.22.32.8/api/admin-api/infra/file/upload',
// 自定义接口路径
interfaceUrl: 'http://172.22.32.8:90/magic/web/index.html',
// 积木报表请求路径
jmreportBaseUrl: 'http://172.22.32.8:90',
// 查看质检报告环境
reportUrl: 'https://scp.faway-hella.com',
// 租户配置
tenant: '["成都"]'
}

60
src/api/eam/equipmentInspectionDetail/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface EquipmentInspectionDetailVO {
id: number
number: string
masterId: number
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检工单子列表
export const getEquipmentInspectionDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-inspection-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-inspection-detail/page`, params })
}
}
// 查询巡检工单子详情
export const getEquipmentInspectionDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-inspection-detail/get?id=` + id })
}
// 新增巡检工单子
export const createEquipmentInspectionDetail = async (data: EquipmentInspectionDetailVO) => {
return await request.post({ url: `/eam/equipment-inspection-detail/create`, data })
}
// 修改巡检工单子
export const updateEquipmentInspectionDetail = async (data: EquipmentInspectionDetailVO) => {
return await request.put({ url: `/eam/equipment-inspection-detail/update`, data })
}
// 删除巡检工单子
export const deleteEquipmentInspectionDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-detail/delete?id=` + id })
}
// 导出巡检工单子 Excel
export const exportEquipmentInspectionDetail = async (params) => {
return await request.download({ url: `/eam/equipment-inspection-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-detail/get-import-template' })
}

104
src/api/eam/equipmentInspectionMain/index.ts

@ -0,0 +1,104 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
import {EquipmentMaintenanceMainVO} from "@/api/eam/equipmentMaintenanceMain";
export interface EquipmentInspectionMainVO {
id: number
number: string
sources: string
describing: string
equipmentCode: string
type: string
isPictures: boolean
planNumber: string
planStartTime: Date
planEndTime: Date
startTime: Date
endTime: Date
classType: string
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
completionTime: Date
maintenanceTime: Date
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
faultType: string
factoryAreaCode: string
workshopCode: string
lineCode: string
processCode: string
workstationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检工单主列表
export const getEquipmentInspectionMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-inspection-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-inspection-main/page`, params })
}
}
// 查询巡检工单主详情
export const getEquipmentInspectionMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-inspection-main/get?id=` + id })
}
// 新增巡检工单主
export const createEquipmentInspectionMain = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/create`, data })
}
// 修改巡检工单主
export const updateEquipmentInspectionMain = async (data: EquipmentInspectionMainVO) => {
return await request.put({ url: `/eam/equipment-inspection-main/update`, data })
}
// 修改巡检工单主
export const updateEquipmentInspection = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/updateOrders`, data })
}
// 删除巡检工单主
export const deleteEquipmentInspectionMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-main/delete?id=` + id })
}
// 导出巡检工单主 Excel
export const exportEquipmentInspectionMain = async (params) => {
return await request.download({ url: `/eam/equipment-inspection-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-main/get-import-template' })
}
// 修改保养工单状态
export const updateEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/updateOrder`, data })
}
//完成保养工单
export const executeEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/execute`, data })
}
//验证不通过,打回保养工单
export const backEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/fallback`, data })
}

62
src/api/eam/equipmentSpotCheckDetail/index.ts

@ -0,0 +1,62 @@
import request from '@/config/axios'
export interface EquipmentSpotCheckDetailVO {
id: number
number: string
masterId: number
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
equipmentParts: string
methods: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检工单子列表
export const getEquipmentSpotCheckDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-spot-check-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-spot-check-detail/page`, params })
}
}
// 查询点检工单子详情
export const getEquipmentSpotCheckDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-spot-check-detail/get?id=` + id })
}
// 新增点检工单子
export const createEquipmentSpotCheckDetail = async (data: EquipmentSpotCheckDetailVO) => {
return await request.post({ url: `/eam/equipment-spot-check-detail/create`, data })
}
// 修改点检工单子
export const updateEquipmentSpotCheckDetail = async (data: EquipmentSpotCheckDetailVO) => {
return await request.put({ url: `/eam/equipment-spot-check-detail/update`, data })
}
// 删除点检工单子
export const deleteEquipmentSpotCheckDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-spot-check-detail/delete?id=` + id })
}
// 导出点检工单子 Excel
export const exportEquipmentSpotCheckDetail = async (params) => {
return await request.download({ url: `/eam/equipment-spot-check-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-spot-check-detail/get-import-template' })
}

103
src/api/eam/equipmentSpotCheckMain/index.ts

@ -0,0 +1,103 @@
import request from '@/config/axios'
import {EquipmentInspectionMainVO} from "@/api/eam/equipmentInspectionMain";
export interface EquipmentSpotCheckMainVO {
id: number
number: string
describing: string
equipmentCode: string
type: string
planNumber: string
planStartTime: Date
planEndTime: Date
startTime: Date
endTime: Date
faultType: string
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
completionTime: Date
maintenanceTime: Date
isPictures: boolean
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
classType: string
factoryAreaCode: string
workshopCode: string
lineCode: string
processCode: string
workstationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检工单主列表
export const getEquipmentSpotCheckMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-spot-check-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-spot-check-main/page`, params })
}
}
// 查询点检工单主详情
export const getEquipmentSpotCheckMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-spot-check-main/get?id=` + id })
}
// 新增点检工单主
export const createEquipmentSpotCheckMain = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/create`, data })
}
// 修改点检工单主
export const updateEquipmentSpotCheckMain = async (data: EquipmentSpotCheckMainVO) => {
return await request.put({ url: `/eam/equipment-spot-check-main/update`, data })
}
// 修改点检工单主
export const updateEquipmentSpotCheck = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/updateOrders`, data })
}
// 删除点检工单主
export const deleteEquipmentSpotCheckMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-spot-check-main/delete?id=` + id })
}
// 导出点检工单主 Excel
export const exportEquipmentSpotCheckMain = async (params) => {
return await request.download({ url: `/eam/equipment-spot-check-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-spot-check-main/get-import-template' })
}
// 修改点检工单状态
export const updateEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/updateOrder`, data })
}
//完成点检工单
export const executeEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/execute`, data })
}
//验证不通过,打回点检工单
export const backEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/fallback`, data })
}

80
src/api/eam/item/index.ts

@ -0,0 +1,80 @@
import request from '@/config/axios'
export interface ItemVO {
number : string
name : string
brand : string
specifications : string
isConstant : string
subject : string
classification : string
uom : string
singlePrice : number
reprocurement : number
safetyStock : number
cost : string
purchaser : string
financer : string
isFramework : string
isRadeIn : string
siteId : string
available : string
concurrencyStamp : number
}
// 查询备件列表
export const getItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/item/senior', data })
} else {
return await request.get({ url: `/eam/item/page`, params })
}
}
// 生成标签
export const genDevice = async (data) => {
return await request.post({ url: `/eam/item/genDevice`, data })
}
// 查询备件详情
export const getItem = async (id : number) => {
return await request.get({ url: `/eam/item/get?id=` + id })
}
// 新增备件
export const createItem = async (data : ItemVO) => {
return await request.post({ url: `/eam/item/create`, data })
}
// 修改备件
export const updateItem = async (data : ItemVO) => {
return await request.put({ url: `/eam/item/update`, data })
}
// 删除备件
export const deleteItem = async (id : number) => {
return await request.delete({ url: `/eam/item/delete?id=` + id })
}
// 导出备件 Excel
export const exportItem = async (params) => {
return await request.download({ url: `/eam/item/export-excel`, params })
}
// 修改备件
export const getItemList = async (params) => {
return await request.get({ url: `/eam/item/getListByNumber`, params })
}
// // 删除备件
// export const getaaa = async () => {
// return await request.get({ url: `/eam/producePlan/produce`})
// }
// 备件不分页
export const getItemNoPage = async (params) => {
return await request.get({ url: `/eam/item/noPage`, params })
}

63
src/api/eam/itemApplyMain/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface ItemApplyMainVO {
number: string
name: string
type: string
applyId: number
applyDeptId: number
approveId: number
approveTime: Date
outId: number
outTime: Date
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件申领记录主列表
export const getItemApplyMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-apply-request-main/senior', data })
} else {
return await request.get({ url: `/eam/item-apply-request-main/page`, params })
}
}
// 查询备件申领记录主详情
export const getItemApplyMain = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-main/get?id=` + id })
}
// 新增备件申领记录主
export const createItemApplyMain = async (data: ItemApplyMainVO) => {
return await request.post({ url: `/eam/item-apply-request-main/create`, data })
}
// 修改备件申领记录主
export const updateItemApplyMain = async (data: ItemApplyMainVO) => {
return await request.put({ url: `/eam/item-apply-request-main/update`, data })
}
// 删除备件申领记录主
export const deleteItemApplyMain = async (id: number) => {
return await request.delete({ url: `/eam/item-apply-request-main/delete?id=` + id })
}
// 撤销备件申领记录主
export const backoutItemApplyMain = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-main/backout?id=` + id })
}
// 导出备件申领记录主 Excel
export const exportItemApplyMain = async (params) => {
return await request.download({ url: `/eam/item-apply-request-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-apply-request-main/get-import-template' })
}

65
src/api/eam/itemDelete/index.ts

@ -0,0 +1,65 @@
import request from '@/config/axios'
export interface ItemAccountsVO {
itemNumber: string
qty: number
areaNumber: string
isInAccount: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件台账移除列表
export const getItemAccountsPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
data.qty = 0
return await request.post({ url: '/eam/item-accounts/senior', data })
} else {
params.qty = 0
return await request.get({ url: `/eam/item-accounts/page`, params })
}
}
// 查询备件台账详情
export const getItemAccounts = async (id: number) => {
return await request.get({ url: `/eam/item-accounts/get?id=` + id })
}
// 新增备件台账
export const createItemAccounts = async (data: ItemAccountsVO) => {
return await request.post({ url: `/eam/item-accounts/create`, data })
}
// 修改备件台账
export const updateItemAccounts = async (data: ItemAccountsVO) => {
return await request.put({ url: `/eam/item-accounts/update`, data })
}
// 删除备件台账
export const deleteItemAccounts = async (id: number) => {
return await request.delete({ url: `/eam/item-accounts/delete?id=` + id })
}
// 导出备件台账 Excel
export const exportItemAccounts = async (params) => {
return await request.download({ url: `/eam/item-accounts/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-accounts/get-import-template' })
}
// 更改备件库位
export const replaceLocation = async (data: Array<ItemAccountsVO>) => {
return await request.post({ url: `/eam/item-accounts/replaceLocation `, data })
}
// 备件不分页
export const getItemAccountsNoPage = async (params) => {
return await request.get({ url: `/eam/item-accounts/noPage`, params })
}

55
src/api/eam/location/index.ts

@ -0,0 +1,55 @@
import request from '@/config/axios'
export interface LocationVO {
number: string
name: string
description: string
areaNumber: string
type: string
isInAccount: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询库位列表
export const getLocationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/location/senior', data })
} else {
return await request.get({ url: `/eam/location/page`, params })
}
}
// 查询库位详情
export const getLocation = async (id: number) => {
return await request.get({ url: `/eam/location/get?id=` + id })
}
// 新增库位
export const createLocation = async (data: LocationVO) => {
return await request.post({ url: `/eam/location/create`, data })
}
// 修改库位
export const updateLocation = async (data: LocationVO) => {
return await request.put({ url: `/eam/location/update`, data })
}
// 删除库位
export const deleteLocation = async (id: number) => {
return await request.delete({ url: `/eam/location/delete?id=` + id })
}
// 导出库位 Excel
export const exportLocation = async (params) => {
return await request.download({ url: `/eam/location/export-excel`, params })
}
// 查询库位列表
export const getLocationNoPage = async (params) => {
return await request.get({ url: `/eam/location/noPage`, params })
}

48
src/api/eam/locationArea/index.ts

@ -0,0 +1,48 @@
import request from '@/config/axios'
export interface LocationAreaVO {
number: string
name: string
description: string
type: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询库区列表
export const getLocationAreaPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/location-area/senior', data })
} else {
return await request.get({ url: `/eam/location-area/page`, params })
}
}
// 查询库区详情
export const getLocationArea = async (id: number) => {
return await request.get({ url: `/eam/location-area/get?id=` + id })
}
// 新增库区
export const createLocationArea = async (data: LocationAreaVO) => {
return await request.post({ url: `/eam/location-area/create`, data })
}
// 修改库区
export const updateLocationArea = async (data: LocationAreaVO) => {
return await request.put({ url: `/eam/location-area/update`, data })
}
// 删除库区
export const deleteLocationArea = async (id: number) => {
return await request.delete({ url: `/eam/location-area/delete?id=` + id })
}
// 导出库区 Excel
export const exportLocationArea = async (params) => {
return await request.download({ url: `/eam/location-area/export-excel`, params })
}

51
src/api/eam/maintainExperience/index.ts

@ -0,0 +1,51 @@
import request from '@/config/axios'
export interface MaintainExperienceVO {
id: number
name: string
content: string
masterId: number
orderType: string
maintainNumber: string
}
// 查询保养经验记录列表
export const getMaintainExperiencePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/record/maintain-experience/senior', data })
} else {
return await request.get({ url: `/record/maintain-experience/page`, params })
}
}
// 查询保养经验记录详情
export const getMaintainExperience = async (id: number) => {
return await request.get({ url: `/record/maintain-experience/get?id=` + id })
}
// 新增保养经验记录
export const createMaintainExperience = async (data: MaintainExperienceVO) => {
return await request.post({ url: `/record/maintain-experience/create`, data })
}
// 修改保养经验记录
export const updateMaintainExperience = async (data: MaintainExperienceVO) => {
return await request.put({ url: `/record/maintain-experience/update`, data })
}
// 删除保养经验记录
export const deleteMaintainExperience = async (id: number) => {
return await request.delete({ url: `/record/maintain-experience/delete?id=` + id })
}
// 导出保养经验记录 Excel
export const exportMaintainExperience = async (params) => {
return await request.download({ url: `/record/maintain-experience/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/record/maintain-experience/get-import-template' })
}

57
src/api/eam/relationInspectionPlanItem/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface RelationInspectionPlanItemVO {
id: number
planNumber: string
itemCode: string
itemName: string
isSelectd: boolean
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检计划和巡检项关系列表
export const getRelationInspectionPlanItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/relation-inspection-plan-item/senior', data })
} else {
return await request.get({ url: `/eam/relation-inspection-plan-item/page`, params })
}
}
// 查询巡检计划和巡检项关系详情
export const getRelationInspectionPlanItem = async (id: number) => {
return await request.get({ url: `/eam/relation-inspection-plan-item/get?id=` + id })
}
// 新增巡检计划和巡检项关系
export const createRelationInspectionPlanItem = async (data: RelationInspectionPlanItemVO) => {
return await request.post({ url: `/eam/relation-inspection-plan-item/create`, data })
}
// 修改巡检计划和巡检项关系
export const updateRelationInspectionPlanItem = async (data: RelationInspectionPlanItemVO) => {
return await request.put({ url: `/eam/relation-inspection-plan-item/update`, data })
}
// 删除巡检计划和巡检项关系
export const deleteRelationInspectionPlanItem = async (id: number) => {
return await request.delete({ url: `/eam/relation-inspection-plan-item/delete?id=` + id })
}
// 导出巡检计划和巡检项关系 Excel
export const exportRelationInspectionPlanItem = async (params) => {
return await request.download({ url: `/eam/relation-inspection-plan-item/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/relation-inspection-plan-item/get-import-template' })
}

57
src/api/eam/relationSpotCheckPlanItem/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface RelationSpotCheckPlanItemVO {
id: number
planNumber: string
itemCode: string
itemName: string
isSelectd: boolean
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检计划表和巡检项关系列表
export const getRelationSpotCheckPlanItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/relation-spot-check-plan-item/senior', data })
} else {
return await request.get({ url: `/eam/relation-spot-check-plan-item/page`, params })
}
}
// 查询点检计划表和巡检项关系详情
export const getRelationSpotCheckPlanItem = async (id: number) => {
return await request.get({ url: `/eam/relation-spot-check-plan-item/get?id=` + id })
}
// 新增点检计划表和巡检项关系
export const createRelationSpotCheckPlanItem = async (data: RelationSpotCheckPlanItemVO) => {
return await request.post({ url: `/eam/relation-spot-check-plan-item/create`, data })
}
// 修改点检计划表和巡检项关系
export const updateRelationSpotCheckPlanItem = async (data: RelationSpotCheckPlanItemVO) => {
return await request.put({ url: `/eam/relation-spot-check-plan-item/update`, data })
}
// 删除点检计划表和巡检项关系
export const deleteRelationSpotCheckPlanItem = async (id: number) => {
return await request.delete({ url: `/eam/relation-spot-check-plan-item/delete?id=` + id })
}
// 导出点检计划表和巡检项关系 Excel
export const exportRelationSpotCheckPlanItem = async (params) => {
return await request.download({ url: `/eam/relation-spot-check-plan-item/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/relation-spot-check-plan-item/get-import-template' })
}

49
src/api/eam/repairExperience/index.ts

@ -0,0 +1,49 @@
import request from '@/config/axios'
export interface RepairExperienceVO {
id: number
name: string
content: string
repairNumber: string
}
// 查询维修经验记录列表
export const getRepairExperiencePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/record/repair-experience/senior', data })
} else {
return await request.get({ url: `/record/repair-experience/page`, params })
}
}
// 查询维修经验记录详情
export const getRepairExperience = async (id: number) => {
return await request.get({ url: `/record/repair-experience/get?id=` + id })
}
// 新增维修经验记录
export const createRepairExperience = async (data: RepairExperienceVO) => {
return await request.post({ url: `/record/repair-experience/create`, data })
}
// 修改维修经验记录
export const updateRepairExperience = async (data: RepairExperienceVO) => {
return await request.put({ url: `/record/repair-experience/update`, data })
}
// 删除维修经验记录
export const deleteRepairExperience = async (id: number) => {
return await request.delete({ url: `/record/repair-experience/delete?id=` + id })
}
// 导出维修经验记录 Excel
export const exportRepairExperience = async (params) => {
return await request.download({ url: `/record/repair-experience/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/record/repair-experience/get-import-template' })
}

63
src/api/eam/sparePartsApplyDetail/index.ts

@ -1,63 +0,0 @@
import request from '@/config/axios'
export interface SparePartsApplyDetailVO {
id: number
number: string
masterId: number
sparePartsCode: string
isRadeIn: string
applyQty: number
currentQty: number
type: string
currentSinglePrice: number
equipmentCode: byte[]
jobNumber: byte[]
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询备件领用申请子列表
export const getSparePartsApplyDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/spare-parts-apply-detail/senior', data })
} else {
return await request.get({ url: `/eam/spare-parts-apply-detail/page`, params })
}
}
// 查询备件领用申请子详情
export const getSparePartsApplyDetail = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-apply-detail/get?id=` + id })
}
// 新增备件领用申请子
export const createSparePartsApplyDetail = async (data: SparePartsApplyDetailVO) => {
return await request.post({ url: `/eam/spare-parts-apply-detail/create`, data })
}
// 修改备件领用申请子
export const updateSparePartsApplyDetail = async (data: SparePartsApplyDetailVO) => {
return await request.put({ url: `/eam/spare-parts-apply-detail/update`, data })
}
// 删除备件领用申请子
export const deleteSparePartsApplyDetail = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-apply-detail/delete?id=` + id })
}
// 导出备件领用申请子 Excel
export const exportSparePartsApplyDetail = async (params) => {
return await request.download({ url: `/eam/spare-parts-apply-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/spare-parts-apply-detail/get-import-template' })
}

65
src/api/eam/sparePartsApplyMain/index.ts

@ -1,65 +0,0 @@
import request from '@/config/axios'
export interface SparePartsApplyMainVO {
id: number
number: string
description: string
applyDeptId: string
sumVal: number
status: string
applyer: string
approver: number
approveContent: string
approveTime: Date
autoExamine: string
autoAgree: string
directCreateRecord: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询备件领用申请列表
export const getSparePartsApplyMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/spare-parts-apply-main/senior', data })
} else {
return await request.get({ url: `/eam/spare-parts-apply-main/page`, params })
}
}
// 查询备件领用申请详情
export const getSparePartsApplyMain = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-apply-main/get?id=` + id })
}
// 新增备件领用申请
export const createSparePartsApplyMain = async (data: SparePartsApplyMainVO) => {
return await request.post({ url: `/eam/spare-parts-apply-main/create`, data })
}
// 修改备件领用申请
export const updateSparePartsApplyMain = async (data: SparePartsApplyMainVO) => {
return await request.put({ url: `/eam/spare-parts-apply-main/update`, data })
}
// 删除备件领用申请
export const deleteSparePartsApplyMain = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-apply-main/delete?id=` + id })
}
// 导出备件领用申请 Excel
export const exportSparePartsApplyMain = async (params) => {
return await request.download({ url: `/eam/spare-parts-apply-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/spare-parts-apply-main/get-import-template' })
}

58
src/api/eam/sparePartsInLocationDetail/index.ts

@ -1,58 +0,0 @@
import request from '@/config/axios'
export interface SparePartsInLocationDetailVO {
id: number
number: string
masterId: number
sparePartsCode: string
isRadeIn: string
applyQty: number
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询备件入库记录子列表
export const getSparePartsInLocationDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/spare-parts-in-location-detail/senior', data })
} else {
return await request.get({ url: `/eam/spare-parts-in-location-detail/page`, params })
}
}
// 查询备件入库记录子详情
export const getSparePartsInLocationDetail = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-in-location-detail/get?id=` + id })
}
// 新增备件入库记录子
export const createSparePartsInLocationDetail = async (data: SparePartsInLocationDetailVO) => {
return await request.post({ url: `/eam/spare-parts-in-location-detail/create`, data })
}
// 修改备件入库记录子
export const updateSparePartsInLocationDetail = async (data: SparePartsInLocationDetailVO) => {
return await request.put({ url: `/eam/spare-parts-in-location-detail/update`, data })
}
// 删除备件入库记录子
export const deleteSparePartsInLocationDetail = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-in-location-detail/delete?id=` + id })
}
// 导出备件入库记录子 Excel
export const exportSparePartsInLocationDetail = async (params) => {
return await request.download({ url: `/eam/spare-parts-in-location-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/spare-parts-in-location-detail/get-import-template' })
}

87
src/api/eam/sparePartsInLocationMain/index.ts

@ -1,87 +0,0 @@
import request from '@/config/axios'
export interface SparePartsInLocationMainVO {
id: number
number: string
theme: string
status: string
applyer: string
approver: number
approveContent: string
approveTime: Date
autoExamine: string
autoAgree: string
directCreateRecord: string
areaCode: string
locationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询备件入库记录主列表
export const getSparePartsInLocationMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/spare-parts-in-location-main/senior', data })
} else {
return await request.get({ url: `/eam/spare-parts-in-location-main/page`, params })
}
}
// 查询备件入库记录主详情
export const getSparePartsInLocationMain = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-in-location-main/get?id=` + id })
}
// 新增备件入库记录主
export const createSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => {
return await request.post({ url: `/eam/spare-parts-in-location-main/create`, data })
}
// 修改备件入库记录主
export const updateSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => {
return await request.put({ url: `/eam/spare-parts-in-location-main/update`, data })
}
// 删除备件入库记录主
export const deleteSparePartsInLocationMain = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-in-location-main/delete?id=` + id })
}
// 导出备件入库记录主 Excel
export const exportSparePartsInLocationMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/spare-parts-in-location-main/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/spare-parts-in-location-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/spare-parts-in-location-main/get-import-template' })
}
// 撤回
export const cancelSparePartsInLocation = async (id) => {
return await request.get({ url: `/eam/spare-parts-in-location-main/cancel?id=` + id })
}
// 审核
export const submitExamineSparePartsInLocation = async (id) => {
return await request.get({ url: `/eam/spare-parts-in-location-main/submitExamine?id=` + id })
}
// 审核驳回
export const rejectSparePartsInLocation = async (id) => {
return await request.get({ url: `/eam/spare-parts-in-location-main/reject?id=` + id })
}
// 审核通过
export const approveSparePartsInLocation = async (data) => {
return await request.post({ url: `/eam/spare-parts-in-location-main/approve`,data })
}

58
src/api/eam/sparePartsInLocationRecordDetail/index.ts

@ -1,58 +0,0 @@
import request from '@/config/axios'
export interface SparePartsInLocationDetailRecordVO {
id: number
number: string
masterId: number
sparePartsCode: string
isRadeIn: string
applyQty: number
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询备件入库记录子列表
export const getSparePartsInLocationDetailRecordPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/spare-parts-in-location-detail-record/senior', data })
} else {
return await request.get({ url: `/eam/spare-parts-in-location-detail-record/page`, params })
}
}
// 查询备件入库记录子详情
export const getSparePartsInLocationDetailRecord = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-in-location-detail-record/get?id=` + id })
}
// 新增备件入库记录子
export const createSparePartsInLocationDetailRecord = async (data: SparePartsInLocationDetailRecordVO) => {
return await request.post({ url: `/eam/spare-parts-in-location-detail-record/create`, data })
}
// 修改备件入库记录子
export const updateSparePartsInLocationDetailRecord = async (data: SparePartsInLocationDetailRecordVO) => {
return await request.put({ url: `/eam/spare-parts-in-location-detail-record/update`, data })
}
// 删除备件入库记录子
export const deleteSparePartsInLocationDetailRecord = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-in-location-detail-record/delete?id=` + id })
}
// 导出备件入库记录子 Excel
export const exportSparePartsInLocationDetailRecord = async (params) => {
return await request.download({ url: `/eam/spare-parts-in-location-detail-record/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/spare-parts-in-location-detail-record/get-import-template' })
}

72
src/api/eam/sparePartsInLocationRecordMain/index.ts

@ -1,72 +0,0 @@
import request from '@/config/axios'
export interface SparePartsInLocationMainRecordVO {
id: number
number: string
theme: string
status: string
applyer: string
approver: number
approveContent: string
approveTime: Date
autoExamine: string
autoAgree: string
directCreateRecord: string
areaCode: string
locationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询备件入库记录主列表
export const getSparePartsInLocationMainRecordPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/spare-parts-in-location-main-record/senior', data })
} else {
return await request.get({ url: `/eam/spare-parts-in-location-main-record/page`, params })
}
}
// 查询备件入库记录主详情
export const getSparePartsInLocationMainRecord = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-in-location-main-record/get?id=` + id })
}
// 新增备件入库记录主
export const createSparePartsInLocationMainRecord = async (
data: SparePartsInLocationMainRecordVO
) => {
return await request.post({ url: `/eam/spare-parts-in-location-main-record/create`, data })
}
// 修改备件入库记录主
export const updateSparePartsInLocationMainRecord = async (
data: SparePartsInLocationMainRecordVO
) => {
return await request.put({ url: `/eam/spare-parts-in-location-main-record/update`, data })
}
// 删除备件入库记录主
export const deleteSparePartsInLocationMainRecord = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-in-location-main-record/delete?id=` + id })
}
// 导出备件入库记录主 Excel
export const exportSparePartsInLocationMainRecord = async (params) => {
return await request.download({
url: `/eam/spare-parts-in-location-main-record/export-excel`,
params
})
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/spare-parts-in-location-main-record/get-import-template' })
}

54
src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js

@ -1,54 +0,0 @@
import request from '@/config/axios'
// 创建领用出库记录子
export function createSparePartsOutLocationRecordDetail(data) {
return request({
url: '/eam/spare-parts-out-location-detail-record/create',
method: 'post',
data: data
})
}
// 更新领用出库记录子
export function updateSparePartsOutLocationRecordDetail(data) {
return request({
url: '/eam/spare-parts-out-location-detail-record/update',
method: 'put',
data: data
})
}
// 删除领用出库记录子
export function deleteSparePartsOutLocationRecordDetail(id) {
return request({
url: '/eam/spare-parts-out-location-detail-record/delete?id=' + id,
method: 'delete'
})
}
// 获得领用出库记录子
export function getSparePartsOutLocationRecordDetail(id) {
return request({
url: '/eam/spare-parts-out-location-detail-record/get?id=' + id,
method: 'get'
})
}
// 获得领用出库记录子分页
export function getSparePartsOutLocationRecordDetailPage(query) {
return request({
url: '/eam/spare-parts-out-location-detail-record/page',
method: 'get',
params: query
})
}
// 导出领用出库记录子 Excel
export function exportSparePartsOutLocationRecordDetailExcel(query) {
return request({
url: '/eam/spare-parts-out-location-detail-record/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}

71
src/api/eam/sparePartsOutLocationRecordMain/index.ts

@ -1,71 +0,0 @@
import request from '@/config/axios'
export interface SparePartsOutLocationRecordMainVO {
id: number
number: string
theme: string
applyer: string
approver: number
approveContent: string
approveTime: Date
autoExamine: string
autoAgree: string
directCreateRecord: string
areaCode: string
locationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询领用出库记录主列表
export const getSparePartsOutLocationRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/spare-parts-out-location-main-record/senior', data })
} else {
return await request.get({ url: `/eam/spare-parts-out-location-main-record/page`, params })
}
}
// 查询领用出库记录主详情
export const getSparePartsOutLocationRecordMain = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-out-location-main-record/get?id=` + id })
}
// 新增领用出库记录主
export const createSparePartsOutLocationRecordMain = async (
data: SparePartsOutLocationRecordMainVO
) => {
return await request.post({ url: `/eam/spare-parts-out-location-main-record/create`, data })
}
// 修改领用出库记录主
export const updateSparePartsOutLocationRecordMain = async (
data: SparePartsOutLocationRecordMainVO
) => {
return await request.put({ url: `/eam/spare-parts-out-location-main-record/update`, data })
}
// 删除领用出库记录主
export const deleteSparePartsOutLocationRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-out-location-main-record/delete?id=` + id })
}
// 导出领用出库记录主 Excel
export const exportSparePartsOutLocationRecordMain = async (params) => {
return await request.download({
url: `/eam/spare-parts-out-location-main-record/export-excel`,
params
})
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/spare-parts-out-location-main-record/get-import-template' })
}

2
src/api/wms/agvLocationrelation/index.ts

@ -47,7 +47,7 @@ export const exportAgvLocationrelation = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/agv-locationrelation/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/agv-locationrelation/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/agv-locationrelation/export-excel`, params }) return await request.download({ url: `/wms/agv-locationrelation/export-excel`, params })
} }

6
src/api/wms/barbasic/index.ts

@ -47,7 +47,13 @@ export const deleteBarbasic = async (id: number) => {
// 导出条码实体基类 Excel // 导出条码实体基类 Excel
export const exportBarbasic = async (params) => { export const exportBarbasic = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/barbasic/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/barbasic/export-excel`, params }) return await request.download({ url: `/wms/barbasic/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

6
src/api/wms/barcode/index.ts

@ -50,7 +50,13 @@ export const deleteBarcode = async (id: number) => {
// 导出条码片段 Excel // 导出条码片段 Excel
export const exportBarcode = async (params) => { export const exportBarcode = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/label/barcode/export-excel-senior', data })
} else {
return await request.download({ url: `/label/barcode/export-excel`, params }) return await request.download({ url: `/label/barcode/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

5
src/api/wms/businesstype/index.ts

@ -63,3 +63,8 @@ export const exportBusinesstype = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/businesstype/get-import-template' }) return request.download({ url: '/wms/businesstype/get-import-template' })
} }
// 库存状态
export const getBusinesstypeCode = async (businessCode: string) => {
return await request.get({ url: `/wms/businesstype/getBusinesstypeCode?businessCode=` + businessCode })
}

6
src/api/wms/callmaterials/index.ts

@ -44,7 +44,13 @@ export const deleteCallmaterials = async (id: number) => {
// 导出叫料标签 Excel // 导出叫料标签 Excel
export const exportCallmaterials = async (params) => { export const exportCallmaterials = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/callmaterials/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/callmaterials/export-excel`, params }) return await request.download({ url: `/wms/callmaterials/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

8
src/api/wms/countJobMain/index.ts

@ -91,6 +91,14 @@ export const importTemplate = () => {
export const closeCountJobMain = (id: number) => { export const closeCountJobMain = (id: number) => {
return request.put({ url: '/wms/count-job-main/close?id=' + id }) return request.put({ url: '/wms/count-job-main/close?id=' + id })
} }
// 承接盘点任务主
export const acceptCountJobMain = (id: number) => {
return request.put({ url: '/wms/count-job-main/accept?id=' + id })
}
// 取消承接盘点任务主
export const abandonCountJobMain = (id: number) => {
return request.put({ url: '/wms/count-job-main/abandon?id=' + id })
}
// 关闭盘点任务主 // 关闭盘点任务主
export const handleExportCountJob = async (id: number) => { export const handleExportCountJob = async (id: number) => {

2
src/api/wms/customersettleRecordMain/index.ts

@ -61,7 +61,7 @@ export const exportCustomersettleRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/customersettle-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/customersettle-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params }) return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params })
} }

16
src/api/wms/deliverPlanMain/index.ts

@ -51,9 +51,15 @@ export const deleteDeliverPlanMain = async (id: number) => {
export const exportDeliverPlanMain = async (params) => { export const exportDeliverPlanMain = async (params) => {
params.businessType = 'Deliver' params.businessType = 'Deliver'
if (params.isSearch) { if (params.isSearch) {
// const cmd = {
// 'column':'businessType',
// 'action':'==',
// 'value':'Deliver'
// }
// params.filters.push(cmd)
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/deliver-plan-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params })
} }
@ -63,9 +69,15 @@ export const exportDeliverPlanMain = async (params) => {
export const exportZZBJDeliverPlanMain = async (params) => { export const exportZZBJDeliverPlanMain = async (params) => {
params.businessType = 'ZZBJDeliver' params.businessType = 'ZZBJDeliver'
if (params.isSearch) { if (params.isSearch) {
// const cmd = {
// 'column':'businessType',
// 'action':'==',
// 'value':'ZZBJDeliver'
// }
// params.filters.push(cmd)
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/deliver-plan-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params })
} }

2
src/api/wms/deliverRecordMain/index.ts

@ -70,7 +70,7 @@ export const exportDeliverRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/deliver-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/deliver-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/deliver-record-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-record-main/export-excel`, params })
} }

4
src/api/wms/deliverRequestMain/index.ts

@ -69,7 +69,7 @@ export const exportDeliverRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/deliver-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/deliver-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/deliver-request-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-request-main/export-excel`, params })
} }
@ -81,7 +81,7 @@ export const exportZZBJDeliverRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/deliver-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/deliver-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/deliver-request-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-request-main/export-excel`, params })
} }

10
src/api/wms/expectin/index.ts

@ -44,9 +44,19 @@ export const deleteExpectin = async (id: number) => {
return await request.delete({ url: `/wms/expectin/delete?id=` + id }) return await request.delete({ url: `/wms/expectin/delete?id=` + id })
} }
// 批量删除预计出库存
export const deleteExpectinIds = async (ids: string) => {
return await request.delete({ url: `/wms/expectin/deleteIds?ids=` + ids })
}
// 导出预计入库存 Excel // 导出预计入库存 Excel
export const exportExpectin = async (params) => { export const exportExpectin = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/expectin/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/expectin/export-excel`, params }) return await request.download({ url: `/wms/expectin/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

10
src/api/wms/expectout/index.ts

@ -45,9 +45,19 @@ export const deleteExpectout = async (id: number) => {
return await request.delete({ url: `/wms/expectout/delete?id=` + id }) return await request.delete({ url: `/wms/expectout/delete?id=` + id })
} }
// 批量删除预计出库存
export const deleteExpectoutIds = async (ids: string) => {
return await request.delete({ url: `/wms/expectout/deleteIds?ids=` + ids })
}
// 导出预计出库存 Excel // 导出预计出库存 Excel
export const exportExpectout = async (params) => { export const exportExpectout = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/expectout/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/expectout/export-excel`, params }) return await request.download({ url: `/wms/expectout/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

2
src/api/wms/inventorychangeRecordMain/index.ts

@ -56,7 +56,7 @@ export const exportInventorychangeRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorychange-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorychange-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params })
} }

2
src/api/wms/inventorychangeRequestMain/index.ts

@ -55,7 +55,7 @@ export const exportInventorychangeRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorychange-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorychange-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params })
} }

12
src/api/wms/inventorymoveJobMain/index.ts

@ -78,7 +78,7 @@ export const exportInventorymoveJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -90,7 +90,7 @@ export const exportOkToHoldJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -102,7 +102,7 @@ export const exportHoldToOkJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -114,7 +114,7 @@ export const exportHoldToScrapJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -126,7 +126,7 @@ export const exportOkToScrapJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -138,7 +138,7 @@ export const exportScrapToHoldJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }

17
src/api/wms/inventorymoveRecordMain/index.ts

@ -60,7 +60,14 @@ export const deleteInventorymoveRecordMain = async (id: number) => {
// 导出库存转移记录主 Excel // 导出库存转移记录主 Excel
export const exportInventorymoveRecordMain = async (params) => { export const exportInventorymoveRecordMain = async (params) => {
params.businessType = 'Move'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
}
} }
// 导出合格转隔离记录主 Excel // 导出合格转隔离记录主 Excel
@ -69,7 +76,7 @@ export const exportOkToHoldRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -81,7 +88,7 @@ export const exportHoldToOkRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -93,7 +100,7 @@ export const exportHoldToScrapRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -105,7 +112,7 @@ export const exportOkToScrapRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -117,7 +124,7 @@ export const exportScrapToHoldRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }

12
src/api/wms/inventorymoveRequestMain/index.ts

@ -62,7 +62,7 @@ export const exportInventorymoveRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -74,7 +74,7 @@ export const exportOkToHoldRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -86,7 +86,7 @@ export const exportHoldToOkRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -98,7 +98,7 @@ export const exportHoldToScrapRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -110,7 +110,7 @@ export const exportOkToScrapRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -122,7 +122,7 @@ export const exportScrapToHoldRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }

6
src/api/wms/issueJobMain/index.ts

@ -89,17 +89,17 @@ export const importTemplate = () => {
// 承接发料任务 // 承接发料任务
export const acceptIssueMain = async (id) => { export const acceptIssueMain = async (id) => {
return await request.get({ url: `/wms/issue-job-main/accept?id=` + id }) return await request.put({ url: `/wms/issue-job-main/accept?id=` + id })
} }
// 放弃发料任务 // 放弃发料任务
export const abandonIssueMain = async (id) => { export const abandonIssueMain = async (id) => {
return await request.get({ url: `/wms/issue-job-main/abandon?id=` + id }) return await request.put({ url: `/wms/issue-job-main/abandon?id=` + id })
} }
// 关闭发料任务 // 关闭发料任务
export const closeIssueMain = async (id) => { export const closeIssueMain = async (id) => {
return await request.get({ url: `/wms/issue-job-main/close?id=` + id }) return await request.put({ url: `/wms/issue-job-main/close?id=` + id })
} }
// 执行发料任务 // 执行发料任务

6
src/api/wms/locationcapacity/index.ts

@ -42,7 +42,13 @@ export const deleteLocationcapacity = async (id: number) => {
// 导出库位容量 Excel // 导出库位容量 Excel
export const exportLocationcapacity = async (params) => { export const exportLocationcapacity = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/locationcapacity/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/locationcapacity/export-excel`, params }) return await request.download({ url: `/wms/locationcapacity/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

6
src/api/wms/mesBarCode/index.ts

@ -56,7 +56,13 @@ export const deleteMesBarCode = async (id: number) => {
// 导出生产条码清单 Excel // 导出生产条码清单 Excel
export const exportMesBarCode = async (params) => { export const exportMesBarCode = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/mes-bar-code/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/mes-bar-code/export-excel`, params }) return await request.download({ url: `/wms/mes-bar-code/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

2
src/api/wms/package/index.ts

@ -79,7 +79,7 @@ export const deletePackage = async (id: number) => {
export const exportPackage = async (params) => { export const exportPackage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
const data = {...params} const data = {...params}
return await request.download({ url: `/wms/package/export-excel-senior`, data }) return await request.downloadPost({ url: `/wms/package/export-excel-senior`, data })
} else { } else {
return await request.download({ url: `/wms/package/export-excel`, params }) return await request.download({ url: `/wms/package/export-excel`, params })
} }

2
src/api/wms/packageunit/index.ts

@ -59,7 +59,7 @@ export const exportPackageunit = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/packageunit/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/packageunit/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/packageunit/export-excel`, params }) return await request.download({ url: `/wms/packageunit/export-excel`, params })
} }

5
src/api/wms/processproductionRecordMain/index.ts

@ -48,7 +48,12 @@ export const deleteProcessproductionRecordMain = async (id: number) => {
// 导出工序报产记录主 Excel // 导出工序报产记录主 Excel
export const exportProcessproductionRecordMain = async (params) => { export const exportProcessproductionRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/processproduction-record-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/processproduction-record-main/export-excel`, params }) return await request.download({ url: `/wms/processproduction-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

5
src/api/wms/processproductionRequestMain/index.ts

@ -48,7 +48,12 @@ export const deleteProcessproductionRequestMain = async (id: number) => {
// 导出工序报产申请主 Excel // 导出工序报产申请主 Excel
export const exportProcessproductionRequestMain = async (params) => { export const exportProcessproductionRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/processproduction-request-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/processproduction-request-main/export-excel`, params }) return await request.download({ url: `/wms/processproduction-request-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

6
src/api/wms/productionreceiptJobMain/index.ts

@ -89,17 +89,17 @@ export const importTemplate = () => {
// 承接发料任务 // 承接发料任务
export const acceptIssueMain = async (id) => { export const acceptIssueMain = async (id) => {
return await request.get({ url: `/wms/productionreceipt-job-main/accept?id=` + id }) return await request.put({ url: `/wms/productionreceipt-job-main/accept?id=` + id })
} }
// 放弃发料任务 // 放弃发料任务
export const abandonIssueMain = async (id) => { export const abandonIssueMain = async (id) => {
return await request.get({ url: `/wms/productionreceipt-job-main/abandon?id=` + id }) return await request.put({ url: `/wms/productionreceipt-job-main/abandon?id=` + id })
} }
// 关闭发料任务 // 关闭发料任务
export const closeIssueMain = async (id) => { export const closeIssueMain = async (id) => {
return await request.get({ url: `/wms/productionreceipt-job-main/close?id=` + id }) return await request.put({ url: `/wms/productionreceipt-job-main/close?id=` + id })
} }
// 执行发料任务 // 执行发料任务

6
src/api/wms/productionreceiptRecordMain/index.ts

@ -61,7 +61,13 @@ export const deleteProductionreceiptRecordMain = async (id: number) => {
// 导出生产收料记录主 Excel // 导出生产收料记录主 Excel
export const exportProductionreceiptRecordMain = async (params) => { export const exportProductionreceiptRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreceipt-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productionreceipt-record-main/export-excel`, params }) return await request.download({ url: `/wms/productionreceipt-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

5
src/api/wms/productionreturnRecordMain/index.ts

@ -60,7 +60,12 @@ export const deleteProductionreturnRecordMain = async (id: number) => {
// 导出生产退料记录主 Excel // 导出生产退料记录主 Excel
export const exportProductionreturnRecordMain = async (params) => { export const exportProductionreturnRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreturn-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productionreturn-record-main/export-excel`, params }) return await request.download({ url: `/wms/productionreturn-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

12
src/api/wms/productputawayRecordDetail/index.ts

@ -38,6 +38,12 @@ export interface ProductputawayRecordDetailVO {
export const getProductputawayRecordDetailPage = async (params) => { export const getProductputawayRecordDetailPage = async (params) => {
params.type = 'predict' params.type = 'predict'
if (params.isSearch) { if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productputaway-record-detail/senior', data }) return await request.post({ url: '/wms/productputaway-record-detail/senior', data })
@ -50,6 +56,12 @@ export const getProductputawayRecordDetailPage = async (params) => {
export const getProductputawayRecordDetailPageAssemble = async (params) => { export const getProductputawayRecordDetailPageAssemble = async (params) => {
  params.type = 'assemble'   params.type = 'assemble'
if (params.isSearch) { if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'assemble'
}
params.filters.push(cmd)
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productputaway-record-detail/senior', data }) return await request.post({ url: '/wms/productputaway-record-detail/senior', data })

4
src/api/wms/productputawayRecordMain/index.ts

@ -78,7 +78,7 @@ export const exportProductputawayRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productputaway-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/productputaway-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/productputaway-record-main/export-excel`, params }) return await request.download({ url: `/wms/productputaway-record-main/export-excel`, params })
} }
@ -90,7 +90,7 @@ export const exportProductputawayRecordMainAssemble = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productputaway-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/productputaway-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/productputaway-record-main/export-excel`, params }) return await request.download({ url: `/wms/productputaway-record-main/export-excel`, params })
} }

12
src/api/wms/productputawayRequestMain/index.ts

@ -74,6 +74,12 @@ export const deleteProductputawayRequestMain = async (id: number) => {
export const exportProductputawayRequestMain = async (params) => { export const exportProductputawayRequestMain = async (params) => {
params.type = 'predict' params.type = 'predict'
if (params.isSearch) { if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
const data = {...params} const data = {...params}
return await request.downloadPost({ url: `/wms/productputaway-request-main/export-excel-senior`, data }) return await request.downloadPost({ url: `/wms/productputaway-request-main/export-excel-senior`, data })
} else { } else {
@ -85,6 +91,12 @@ export const exportProductputawayRequestMain = async (params) => {
export const exportProductputawayRequestMainAssemble = async (params) => { export const exportProductputawayRequestMainAssemble = async (params) => {
params.type = 'assemble' params.type = 'assemble'
if (params.isSearch) { if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'assemble'
}
params.filters.push(cmd)
const data = {...params} const data = {...params}
return await request.downloadPost({ url: `/wms/productputaway-request-main/export-excel-senior`, data }) return await request.downloadPost({ url: `/wms/productputaway-request-main/export-excel-senior`, data })
} else { } else {

6
src/api/wms/productreceiptJobMain/index.ts

@ -103,6 +103,12 @@ export const deleteProductreceiptJobMain = async (id: number) => {
export const exportProductreceiptJobMain = async (params) => { export const exportProductreceiptJobMain = async (params) => {
params.type = 'predict' params.type = 'predict'
if (params.isSearch) { if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
const data = {...params} const data = {...params}
return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data }) return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data })
} else { } else {

6
src/api/wms/productreceiptRecordMain/index.ts

@ -87,6 +87,12 @@ export const deleteProductreceiptRecordMain = async (id: number) => {
export const exportProductreceiptRecordMain = async (params) => { export const exportProductreceiptRecordMain = async (params) => {
params.type = 'predict' params.type = 'predict'
if (params.isSearch) { if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productreceipt-record-main/export-excel-senior', data }) return await request.post({ url: '/wms/productreceipt-record-main/export-excel-senior', data })

12
src/api/wms/productredressJobMain/index.ts

@ -75,6 +75,18 @@ export const updateProductredressJobMain = async (data: ProductredressJobMainVO)
export const deleteProductredressJobMain = async (id: number) => { export const deleteProductredressJobMain = async (id: number) => {
return await request.delete({ url: `/wms/productredress-job-main/delete?id=` + id }) return await request.delete({ url: `/wms/productredress-job-main/delete?id=` + id })
} }
// 承接制品回收任务主
export const acceptProductredressJobMain = async (id: number) => {
return await request.put({ url: `/wms/productredress-job-main/accept?id=` + id })
}
// 关闭制品回收任务主
export const closeProductredressJobMain = async (id: number) => {
return await request.put({ url: `/wms/productredress-job-main/close?id=` + id })
}
// 取消承接制品回收任务主
export const abandonProductredressJobMain = async (id: number) => {
return await request.put({ url: `/wms/productredress-job-main/abandon?id=` + id })
}
// 导出制品回收任务主 Excel // 导出制品回收任务主 Excel
export const exportProductredressJobMain = async (params) => { export const exportProductredressJobMain = async (params) => {

5
src/api/wms/productredressRecordMain/index.ts

@ -61,7 +61,12 @@ export const deleteProductredressRecordMain = async (id: number) => {
// 导出制品回收记录主 Excel // 导出制品回收记录主 Excel
export const exportProductredressRecordMain = async (params) => { export const exportProductredressRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productredress-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productredress-record-main/export-excel`, params }) return await request.download({ url: `/wms/productredress-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

5
src/api/wms/productredressRequestMain/index.ts

@ -60,7 +60,12 @@ export const deleteProductredressRequestMain = async (id: number) => {
// 导出制品回收申请主 Excel // 导出制品回收申请主 Excel
export const exportProductredressRequestMain = async (params) => { export const exportProductredressRequestMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productredress-request-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productredress-request-main/export-excel`, params }) return await request.download({ url: `/wms/productredress-request-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

2
src/api/wms/productrepairRecordMain/index.ts

@ -61,7 +61,7 @@ export const exportProductrepairRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productrepair-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/productrepair-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/productrepair-record-main/export-excel`, params }) return await request.download({ url: `/wms/productrepair-record-main/export-excel`, params })
} }

6
src/api/wms/productrepairRequestMain/index.ts

@ -57,7 +57,13 @@ export const deleteProductrepairRequestMain = async (id: number) => {
// 导出制品返修申请主 Excel // 导出制品返修申请主 Excel
export const exportProductrepairRequestMain = async (params) => { export const exportProductrepairRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/productrepair-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/productrepair-request-main/export-excel`, params }) return await request.download({ url: `/wms/productrepair-request-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

2
src/api/wms/productscrapRequestMain/index.ts

@ -57,7 +57,7 @@ export const exportProductscrapRequestMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productscrap-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/productscrap-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/productscrap-request-main/export-excel`, params }) return await request.download({ url: `/wms/productscrap-request-main/export-excel`, params })
} }

6
src/api/wms/purchaseclaimRequestMain/index.ts

@ -77,7 +77,13 @@ export const genRecordsPurchaseclaimRequestMain = async (id) => {
} }
// 导出采购索赔申请主 Excel // 导出采购索赔申请主 Excel
export const exportPurchaseclaimRequestMain = async (params) => { export const exportPurchaseclaimRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.downloadPost({ url: `/wms/purchaseclaim-request-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/purchaseclaim-request-main/export-excel`, params }) return await request.download({ url: `/wms/purchaseclaim-request-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

8
src/api/wms/purchasereturnJobMain/index.ts

@ -98,3 +98,11 @@ export const importTemplate = () => {
export const closePurchasereturnJobMain = (id: number) => { export const closePurchasereturnJobMain = (id: number) => {
return request.put({ url: '/wms/purchasereturn-job-main/close?id=' + id }) return request.put({ url: '/wms/purchasereturn-job-main/close?id=' + id })
} }
// 承接采购退货任务主
export const acceptPurchasereturnJobMain = (id: number) => {
return request.put({ url: '/wms/purchasereturn-job-main/accept?id=' + id })
}
// 取消承接采购退货任务主
export const abandonPurchasereturnJobMain = (id: number) => {
return request.put({ url: '/wms/purchasereturn-job-main/abandon?id=' + id })
}

10
src/api/wms/putawayJobMain/index.ts

@ -91,3 +91,13 @@ export const importTemplate = () => {
export const closePutawayJobMain = (id: number) => { export const closePutawayJobMain = (id: number) => {
return request.put({ url: '/wms/putaway-job-main/close?id=' + id }) return request.put({ url: '/wms/putaway-job-main/close?id=' + id })
} }
// 承接上架任务主
export const acceptPutawayJobMain = (id: number) => {
return request.put({ url: '/wms/putaway-job-main/accept?id=' + id })
}
// 取消承接上架任务主
export const abandonPutawayJobMain = (id: number) => {
return request.put({ url: '/wms/putaway-job-main/abandon?id=' + id })
}

5
src/api/wms/qadProject/index.ts

@ -57,3 +57,8 @@ export const exportQadProject = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/qad-project/get-import-template' }) return request.download({ url: '/wms/qad-project/get-import-template' })
} }
export const getProjectType = async () => {
return await request.get({ url: `/wms/qad-costcentre/queryCostcentreType` })
}

5
src/api/wms/qadproductionplan/index.ts

@ -60,7 +60,12 @@ export const deleteQadProductionPlanMain = async (id: number) => {
// 导出QAD生产计划主 Excel // 导出QAD生产计划主 Excel
export const exportQadProductionPlanMain = async (params) => { export const exportQadProductionPlanMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/qad-production-plan-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/qad-production-plan-main/export-excel`, params }) return await request.download({ url: `/wms/qad-production-plan-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

5
src/api/wms/repleinshRecordMain/index.ts

@ -59,7 +59,12 @@ export const deleteRepleinshRecordMain = async (id: number) => {
// 导出补料记录主 Excel // 导出补料记录主 Excel
export const exportRepleinshRecordMain = async (params) => { export const exportRepleinshRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/repleinsh-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/repleinsh-record-main/export-excel`, params }) return await request.download({ url: `/wms/repleinsh-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

6
src/api/wms/saleMain/index.ts

@ -54,7 +54,13 @@ export const deleteSaleMain = async (id: number) => {
// 导出销售订单主 Excel // 导出销售订单主 Excel
export const exportSaleMain = async (params) => { export const exportSaleMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/sale-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/sale-main/export-excel`, params }) return await request.download({ url: `/wms/sale-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

12
src/api/wms/saleShipmentDetail/index.ts

@ -23,7 +23,7 @@ export interface SaleShipmentDetailVO {
siteId: number siteId: number
} }
// 查询销售发运申请子列表 // 查询结算出库申请子列表
export const getSaleShipmentDetailPage = async (params) => { export const getSaleShipmentDetailPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
@ -34,27 +34,27 @@ export const getSaleShipmentDetailPage = async (params) => {
} }
} }
// 查询销售发运申请子详情 // 查询结算出库申请子详情
export const getSaleShipmentDetail = async (id: number) => { export const getSaleShipmentDetail = async (id: number) => {
return await request.get({ url: `/wms/sale-shipment-detail-request/get?id=` + id }) return await request.get({ url: `/wms/sale-shipment-detail-request/get?id=` + id })
} }
// 新增销售发运申请子 // 新增结算出库申请子
export const createSaleShipmentDetail = async (data: SaleShipmentDetailVO) => { export const createSaleShipmentDetail = async (data: SaleShipmentDetailVO) => {
return await request.post({ url: `/wms/sale-shipment-detail-request/create`, data }) return await request.post({ url: `/wms/sale-shipment-detail-request/create`, data })
} }
// 修改销售发运申请子 // 修改结算出库申请子
export const updateSaleShipmentDetail = async (data: SaleShipmentDetailVO) => { export const updateSaleShipmentDetail = async (data: SaleShipmentDetailVO) => {
return await request.put({ url: `/wms/sale-shipment-detail-request/update`, data }) return await request.put({ url: `/wms/sale-shipment-detail-request/update`, data })
} }
// 删除销售发运申请子 // 删除结算出库申请子
export const deleteSaleShipmentDetail = async (id: number) => { export const deleteSaleShipmentDetail = async (id: number) => {
return await request.delete({ url: `/wms/sale-shipment-detail-request/delete?id=` + id }) return await request.delete({ url: `/wms/sale-shipment-detail-request/delete?id=` + id })
} }
// 导出销售发运申请子 Excel // 导出结算出库申请子 Excel
export const exportSaleShipmentDetail = async (params) => { export const exportSaleShipmentDetail = async (params) => {
return await request.download({ url: `/wms/sale-shipment-detail-request/export-excel`, params }) return await request.download({ url: `/wms/sale-shipment-detail-request/export-excel`, params })
} }

12
src/api/wms/saleShipmentDetailRecord/index.ts

@ -23,7 +23,7 @@ export interface SaleShipmentDetailRecordVO {
siteId: number siteId: number
} }
// 查询销售发运记录子列表 // 查询结算出库记录子列表
export const getSaleShipmentDetailRecordPage = async (params) => { export const getSaleShipmentDetailRecordPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
@ -34,27 +34,27 @@ export const getSaleShipmentDetailRecordPage = async (params) => {
} }
} }
// 查询销售发运记录子详情 // 查询结算出库记录子详情
export const getSaleShipmentDetailRecord = async (id: number) => { export const getSaleShipmentDetailRecord = async (id: number) => {
return await request.get({ url: `/wms/sale-shipment-detail-record/get?id=` + id }) return await request.get({ url: `/wms/sale-shipment-detail-record/get?id=` + id })
} }
// 新增销售发运记录子 // 新增结算出库记录子
export const createSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => { export const createSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => {
return await request.post({ url: `/wms/sale-shipment-detail-record/create`, data }) return await request.post({ url: `/wms/sale-shipment-detail-record/create`, data })
} }
// 修改销售发运记录子 // 修改结算出库记录子
export const updateSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => { export const updateSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => {
return await request.put({ url: `/wms/sale-shipment-detail-record/update`, data }) return await request.put({ url: `/wms/sale-shipment-detail-record/update`, data })
} }
// 删除销售发运记录子 // 删除结算出库记录子
export const deleteSaleShipmentDetailRecord = async (id: number) => { export const deleteSaleShipmentDetailRecord = async (id: number) => {
return await request.delete({ url: `/wms/sale-shipment-detail-record/delete?id=` + id }) return await request.delete({ url: `/wms/sale-shipment-detail-record/delete?id=` + id })
} }
// 导出销售发运记录子 Excel // 导出结算出库记录子 Excel
export const exportSaleShipmentDetailRecord = async (params) => { export const exportSaleShipmentDetailRecord = async (params) => {
return await request.download({ url: `/wms/sale-shipment-detail-record/export-excel`, params }) return await request.download({ url: `/wms/sale-shipment-detail-record/export-excel`, params })
} }

30
src/api/wms/saleShipmentMain/index.ts

@ -22,7 +22,7 @@ export interface SaleShipmentMainVO {
serialNumber: string serialNumber: string
} }
// 查询销售发运申请主列表 // 查询结算出库申请主列表
export const getSaleShipmentMainPage = async (params) => { export const getSaleShipmentMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
@ -33,29 +33,35 @@ export const getSaleShipmentMainPage = async (params) => {
} }
} }
// 查询销售发运申请主详情 // 查询结算出库申请主详情
export const getSaleShipmentMain = async (id: number) => { export const getSaleShipmentMain = async (id: number) => {
return await request.get({ url: `/wms/sale-shipment-main-request/get?id=` + id }) return await request.get({ url: `/wms/sale-shipment-main-request/get?id=` + id })
} }
// 新增销售发运申请主 // 新增结算出库申请主
export const createSaleShipmentMain = async (data: SaleShipmentMainVO) => { export const createSaleShipmentMain = async (data: SaleShipmentMainVO) => {
return await request.post({ url: `/wms/sale-shipment-main-request/create`, data }) return await request.post({ url: `/wms/sale-shipment-main-request/create`, data })
} }
// 修改销售发运申请主 // 修改结算出库申请主
export const updateSaleShipmentMain = async (data: SaleShipmentMainVO) => { export const updateSaleShipmentMain = async (data: SaleShipmentMainVO) => {
return await request.put({ url: `/wms/sale-shipment-main-request/update`, data }) return await request.put({ url: `/wms/sale-shipment-main-request/update`, data })
} }
// 删除销售发运申请主 // 删除结算出库申请主
export const deleteSaleShipmentMain = async (id: number) => { export const deleteSaleShipmentMain = async (id: number) => {
return await request.delete({ url: `/wms/sale-shipment-main-request/delete?id=` + id }) return await request.delete({ url: `/wms/sale-shipment-main-request/delete?id=` + id })
} }
// 导出销售发运申请主 Excel // 导出结算出库申请主 Excel
export const exportSaleShipmentMain = async (params) => { export const exportSaleShipmentMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/sale-shipment-main-request/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/sale-shipment-main-request/export-excel`, params }) return await request.download({ url: `/wms/sale-shipment-main-request/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板
@ -63,32 +69,32 @@ export const importTemplate = () => {
return request.download({ url: '/wms/sale-shipment-main-request/get-import-template' }) return request.download({ url: '/wms/sale-shipment-main-request/get-import-template' })
} }
// 关闭-销售发运申请 // 关闭-结算出库申请
export const close = async (id) => { export const close = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/close?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/close?id=` + id })
} }
// 重新添加-销售发运申请 // 重新添加-结算出库申请
export const reAdd = async (id) => { export const reAdd = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/reAdd?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/reAdd?id=` + id })
} }
// 提交审批-销售发运申请 // 提交审批-结算出库申请
export const submit = async (id) => { export const submit = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/submit?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/submit?id=` + id })
} }
// 审批驳回-销售发运申请 // 审批驳回-结算出库申请
export const refused = async (id) => { export const refused = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/refused?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/refused?id=` + id })
} }
// 审批通过-销售发运申请 // 审批通过-结算出库申请
export const agree = async (id) => { export const agree = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/agree?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/agree?id=` + id })
} }
// 处理-销售发运申请 // 处理-结算出库申请
export const handle = async (id) => { export const handle = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/handle?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/handle?id=` + id })
} }

18
src/api/wms/saleShipmentMainRecord/index.ts

@ -14,7 +14,7 @@ export interface SaleShipmentMainRecordVO {
siteId: string siteId: string
} }
// 查询销售发运记录主列表 // 查询结算出库记录主列表
export const getSaleShipmentMainRecordPage = async (params) => { export const getSaleShipmentMainRecordPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
@ -25,29 +25,35 @@ export const getSaleShipmentMainRecordPage = async (params) => {
} }
} }
// 查询销售发运记录主详情 // 查询结算出库记录主详情
export const getSaleShipmentMainRecord = async (id: number) => { export const getSaleShipmentMainRecord = async (id: number) => {
return await request.get({ url: `/wms/sale-shipment-main-record/get?id=` + id }) return await request.get({ url: `/wms/sale-shipment-main-record/get?id=` + id })
} }
// 新增销售发运记录主 // 新增结算出库记录主
export const createSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => { export const createSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => {
return await request.post({ url: `/wms/sale-shipment-main-record/create`, data }) return await request.post({ url: `/wms/sale-shipment-main-record/create`, data })
} }
// 修改销售发运记录主 // 修改结算出库记录主
export const updateSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => { export const updateSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => {
return await request.put({ url: `/wms/sale-shipment-main-record/update`, data }) return await request.put({ url: `/wms/sale-shipment-main-record/update`, data })
} }
// 删除销售发运记录主 // 删除结算出库记录主
export const deleteSaleShipmentMainRecord = async (id: number) => { export const deleteSaleShipmentMainRecord = async (id: number) => {
return await request.delete({ url: `/wms/sale-shipment-main-record/delete?id=` + id }) return await request.delete({ url: `/wms/sale-shipment-main-record/delete?id=` + id })
} }
// 导出销售发运记录主 Excel // 导出结算出库记录主 Excel
export const exportSaleShipmentMainRecord = async (params) => { export const exportSaleShipmentMainRecord = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/sale-shipment-main-record/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/sale-shipment-main-record/export-excel`, params }) return await request.download({ url: `/wms/sale-shipment-main-record/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

12
src/api/wms/scrapJobMain/index.ts

@ -67,6 +67,18 @@ export const updateScrapJobMain = async (data: ScrapJobMainVO) => {
export const deleteScrapJobMain = async (id: number) => { export const deleteScrapJobMain = async (id: number) => {
return await request.delete({ url: `/wms/scrap-job-main/delete?id=` + id }) return await request.delete({ url: `/wms/scrap-job-main/delete?id=` + id })
} }
// 承接报废出库任务主
export const acceptScrapJobMain = async (id: number) => {
return await request.put({ url: `/wms/scrap-job-main/accept?id=` + id })
}
// 取消承接报废出库任务主
export const abandonScrapJobMain = async (id: number) => {
return await request.put({ url: `/wms/scrap-job-main/abandon?id=` + id })
}
// 关闭报废出库任务主
export const closeScrapJobMain = async (id: number) => {
return await request.put({ url: `/wms/scrap-job-main/close?id=` + id })
}
// 导出报废出库任务主 Excel // 导出报废出库任务主 Excel
export const exportScrapJobMain = async (params) => { export const exportScrapJobMain = async (params) => {

4
src/api/wms/supplierdeliverRequestMain/index.ts

@ -121,3 +121,7 @@ export const importTemplate = () => {
return request.download({ url: '/wms/supplierdeliver-request-main/get-import-template' }) return request.download({ url: '/wms/supplierdeliver-request-main/get-import-template' })
} }
// 删除之前的包装和标签
export const deleteOldLabels = async (id) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/deleteOldLabels?id=` + id })
}

6
src/api/wms/supplierinvoiceRequestMain/index.ts

@ -141,3 +141,9 @@ export const queryUserInfoByRoleCode = async (params) => {
return await request.get({ url: `/wms/supplierinvoice-request-main/queryUserInfoByRoleCodePage`, params }) return await request.get({ url: `/wms/supplierinvoice-request-main/queryUserInfoByRoleCodePage`, params })
} }
// 获取供应商角色
export const getLoginUserRoleList = async () => {
return await request.get({ url: `/wms/supplierinvoice-request-main/getLoginUserRoleList`})
}

2
src/api/wms/transaction/index.ts

@ -65,7 +65,7 @@ export const exportTransaction = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/transaction/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/transaction/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/transaction/export-excel`, params }) return await request.download({ url: `/wms/transaction/export-excel`, params })
} }

6
src/api/wms/transferissueJobMain/index.ts

@ -93,15 +93,15 @@ export const importTemplate = () => {
// 关闭-调拨出库任务主 // 关闭-调拨出库任务主
export const closeTransferissueJobMain = (id: number) => { export const closeTransferissueJobMain = (id: number) => {
return request.download({ url: '/wms/transferissue-job-main/close?id=' + id }) return request.put({ url: '/wms/transferissue-job-main/close?id=' + id })
} }
// 承接-调拨出库任务主 // 承接-调拨出库任务主
export const acceptTransferissueJobMain = (id: number) => { export const acceptTransferissueJobMain = (id: number) => {
return request.download({ url: '/wms/transferissue-job-main/accept?id=' + id }) return request.put({ url: '/wms/transferissue-job-main/accept?id=' + id })
} }
// 放弃-调拨出库任务主 // 放弃-调拨出库任务主
export const abandonTransferissueJobMain = (id: number) => { export const abandonTransferissueJobMain = (id: number) => {
return request.download({ url: '/wms/transferissue-job-main/abandon?id=' + id }) return request.put({ url: '/wms/transferissue-job-main/abandon?id=' + id })
} }

2
src/api/wms/transferlog/index.ts

@ -74,7 +74,7 @@ export const exportTransferlog = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/transferlog/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/transferlog/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/transferlog/export-excel`, params }) return await request.download({ url: `/wms/transferlog/export-excel`, params })
} }

12
src/api/wms/transferreceiptJobMain/index.ts

@ -73,6 +73,18 @@ export const updateTransferreceiptJobMain = async (data: TransferreceiptJobMainV
export const deleteTransferreceiptJobMain = async (id: number) => { export const deleteTransferreceiptJobMain = async (id: number) => {
return await request.delete({ url: `/wms/transferreceipt-job-main/delete?id=` + id }) return await request.delete({ url: `/wms/transferreceipt-job-main/delete?id=` + id })
} }
// 承接调拨入库任务主
export const acceptTransferreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/transferreceipt-job-main/accept?id=` + id })
}
// 取消承接调拨入库任务主
export const abandonTransferreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/transferreceipt-job-main/abandon?id=` + id })
}
// 关闭调拨入库任务主
export const closeTransferreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/transferreceipt-job-main/close?id=` + id })
}
// 导出调拨入库任务主 Excel // 导出调拨入库任务主 Excel
export const exportTransferreceiptJobMain = async (params) => { export const exportTransferreceiptJobMain = async (params) => {

12
src/api/wms/unplannedissueJobMain/index.ts

@ -67,6 +67,18 @@ export const updateUnplannedissueJobMain = async (data: UnplannedissueJobMainVO)
export const deleteUnplannedissueJobMain = async (id: number) => { export const deleteUnplannedissueJobMain = async (id: number) => {
return await request.delete({ url: `/wms/unplannedissue-job-main/delete?id=` + id }) return await request.delete({ url: `/wms/unplannedissue-job-main/delete?id=` + id })
} }
// 承接计划外出库任务主
export const acceptUnplannedissueJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedissue-job-main/accept?id=` + id })
}
// 取消承接计划外出库任务主
export const abandonUnplannedissueJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedissue-job-main/abandon?id=` + id })
}
// 关闭计划外出库任务主
export const closeUnplannedissueJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedissue-job-main/close?id=` + id })
}
// 导出计划外出库任务主 Excel // 导出计划外出库任务主 Excel
export const exportUnplannedissueJobMain = async (params) => { export const exportUnplannedissueJobMain = async (params) => {

13
src/api/wms/unplannedreceiptJobMain/index.ts

@ -68,6 +68,19 @@ export const deleteUnplannedreceiptJobMain = async (id: number) => {
return await request.delete({ url: `/wms/unplannedreceipt-job-main/delete?id=` + id }) return await request.delete({ url: `/wms/unplannedreceipt-job-main/delete?id=` + id })
} }
// 承接计划外入库任务主
export const acceptUnplannedreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedreceipt-job-main/accept?id=` + id })
}
// 取消承接计划外入库任务主
export const abandonUnplannedreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedreceipt-job-main/abandon?id=` + id })
}
// 关闭计划外入库任务主
export const closeUnplannedreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedreceipt-job-main/close?id=` + id })
}
// 导出计划外入库任务主 Excel // 导出计划外入库任务主 Excel
export const exportUnplannedreceiptJobMain = async (params) => { export const exportUnplannedreceiptJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {

3
src/components/Annex/src/Annex.vue

@ -33,6 +33,7 @@ import PreviewPDF from '@/components/PreviewPDF/index.vue'
import UploadFile from '@/components/UploadFile/src/UploadFile.vue' import UploadFile from '@/components/UploadFile/src/UploadFile.vue'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import * as FileApi from '@/api/wms/file' import * as FileApi from '@/api/wms/file'
import { getBaseUrl } from '@/utils/systemParam'
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
defineComponent({ defineComponent({
@ -91,7 +92,7 @@ const deleteAnnex = async (id) => {
emit('deleteAnnexSuccess') emit('deleteAnnexSuccess')
} }
const downFile = (item)=>{ const downFile = (item)=>{
window.open(import.meta.env.VITE_BASE_URL + '/admin-api/infra/file/0/get/' + item.path) window.open(getBaseUrl() + '/admin-api/infra/file/0/get/' + item.path)
} }
const previewRef = ref<InstanceType<typeof PreviewPDF>>() const previewRef = ref<InstanceType<typeof PreviewPDF>>()

3
src/components/Annex/src/AnnexLedger.vue

@ -34,6 +34,7 @@ import PreviewPDF from '@/components/PreviewPDF/index.vue'
import UploadFile from '@/components/UploadFile/src/UploadFile.vue' import UploadFile from '@/components/UploadFile/src/UploadFile.vue'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import * as FileApi from '@/api/wms/file' import * as FileApi from '@/api/wms/file'
import { getBaseUrl } from '@/utils/systemParam'
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
defineComponent({ defineComponent({
@ -94,7 +95,7 @@ const deleteAnnex = async (id) => {
emit('deleteAnnexSuccess',id) emit('deleteAnnexSuccess',id)
} }
const downFile = (item)=>{ const downFile = (item)=>{
window.open(import.meta.env.VITE_BASE_URL + '/admin-api/infra/file/0/get/' + item.path) window.open(getBaseUrl() + '/admin-api/infra/file/0/get/' + item.path)
} }
const previewRef = ref<InstanceType<typeof PreviewPDF>>() const previewRef = ref<InstanceType<typeof PreviewPDF>>()

25
src/components/BasicForm/src/BasicForm.vue

@ -22,8 +22,9 @@
@onBlur="onBlur" @onBlur="onBlur"
@onEnter="onEnter" @onEnter="onEnter"
> >
<template #crontab="formSchema" v-if="fromeWhere == 'countPlan'"> <template #crontab="formSchema1" v-if="fromeWhere == 'countPlan'">
<crontab v-model="formSchema.crontab" />
<crontab v-model="formSchema1.crontab" :disabled="formSchema?.find(item=>item.field == 'crontab')?.componentProps?.disabled "/>
</template> </template>
<template #type="formSchema" v-if="fromeWhere == 'countPlan'"> <template #type="formSchema" v-if="fromeWhere == 'countPlan'">
<el-select <el-select
@ -57,6 +58,7 @@
<el-select <el-select
v-model="formSchema.value" v-model="formSchema.value"
placeholder="选择盘点范围值" placeholder="选择盘点范围值"
multiple
v-if="isDetail&& formTypeDetail =='Select'" v-if="isDetail&& formTypeDetail =='Select'"
> >
<el-option <el-option
@ -116,12 +118,13 @@
/> />
</div> </div>
</div> </div>
<template #footer> <template #footer >
<slot name="foorter"></slot>
<ButtonBase :Butttondata="Butttondata" @button-base-click="buttonBaseClick" /> <ButtonBase :Butttondata="Butttondata" @button-base-click="buttonBaseClick" />
</template> </template>
</Dialog> </Dialog>
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess" /> <SearchTable ref="searchTableRef" :showSearchTableQueryFields="showSearchTableQueryFields" @searchTableSuccess="searchTableSuccess" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { SearchTable } from '@/components/SearchTable' import { SearchTable } from '@/components/SearchTable'
@ -309,6 +312,11 @@ const props = defineProps({
type:Function, type:Function,
required: false, required: false,
default: null default: null
},
showSearchTableQueryFields:{
type: Array,
required: false,
default: []
} }
}) })
@ -330,6 +338,7 @@ const formRef = ref() // 表单 Ref
const formSchema = ref(props.formAllSchemas?.formSchema) const formSchema = ref(props.formAllSchemas?.formSchema)
const tableAllSchemas = ref(props.tableAllSchemas) const tableAllSchemas = ref(props.tableAllSchemas)
const tableFormRules = ref(props.tableFormRules) const tableFormRules = ref(props.tableFormRules)
console.log(111,formSchema)
// - // -
// const buttondata = [ // const buttondata = [
@ -566,15 +575,7 @@ const buttonBaseClick = (val) => {
} }
// //
else if (val == 'save') { else if (val == 'save') {
let timer = null
if(!timer){
submitForm() submitForm()
timer = setTimeout(()=>{
if(timer){
clearTimeout(timer)
}
},2000)
}
} }
// //
else if (val == 'close') { else if (val == 'close') {

976
src/components/BasicForm/src/BasicFormWmsCount.vue

@ -0,0 +1,976 @@
<template>
<Dialog
:title="dialogTitle"
v-model="dialogVisible"
:width="dialogWidth"
:close-on-click-modal="false"
:vLoading="formLoading"
>
<div
style="max-height: 60vh;overflow-y: auto;">
<Form
ref="formRef"
:rules="rules"
:schema="formSchema"
:is-col="true"
@opensearchTable="opensearchTable"
@hiddenFilterButton="hiddenSearchTableFilterButton"
@changeDialogWidth="changeDialogWidth"
@clearSearchInput="clearSearchInput"
@onChange="onChange"
@onBlur="onBlur"
@onEnter="onEnter"
>
<template #crontab="formSchema1" v-if="fromeWhere == 'countPlan'">
<crontab v-model="formSchema1.crontab" :disabled="formSchema?.find(item=>item.field == 'crontab')?.componentProps?.disabled "/>
</template>
<template #type="formSchema" v-if="fromeWhere == 'countPlan'">
<el-select
v-model="formSchema.type"
placeholder="选择盘点类型"
@change="selectChange('type', $event)"
v-if="!isDetail"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.COUNT_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
<el-select
v-model="formSchema.type"
placeholder="选择盘点范围类型"
@change="selectChangeDetail('type', $event,formSchema)"
v-if="isDetail"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.COUNT_SCOPE_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</template>
<template #value="formSchema" v-if="fromeWhere == 'countPlan'">
<el-select
v-model="formSchema.value"
placeholder="选择盘点范围值"
v-if="isDetail&& formTypeDetail =='Select'"
>
<el-option
v-for="dict in countPlanAllList"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
<el-input v-model="formSchema.value" v-if="isDetail && formTypeDetail =='InputString'"/>
</template>
</Form>
<div class="table" v-if="isBusiness && formType == 'create' && fromeWhere != 'countPlan'">
<TableForm
ref="tableFormRef"
class="w-[100%]"
:maxHeight = "490"
:tableFields="tableAllSchemas.tableFormColumns"
:tableData="tableData"
:tableFormRules="tableFormRules"
:isShowButton="isShowButton"
:isShowReduceButton="isShowReduceButton"
:isShowReduceButtonSelection="isShowReduceButtonSelection"
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
@tableSelectionChange="tableSelectionChange"
@tableSelectionDelete="tableSelectionDelete"
@extendedButtonsClick="extendedButtonsClick"
@formSelectChange="formSelectChange"
@formSelectvVisibleChange="formSelectvVisibleChange"
@tableSortChange="tableSortChange"
@selectCallback="selectCallback"
@handleTableSelect="handleTableSelect"
@inpuFocus="inpuFocus"
@buttonOperationClick="buttonOperationClick"
@inputStringBlur="inputStringBlur"
@inputNumberChange="inputNumberChange"
@tableFormSelectOnBlur="tableFormSelectOnBlur"
@formFormDateChange="formFormDateChange"
@clearInput='clearInput'
@inputFocusPlan='inputFocusPlan'
>
<template v-slot="{row}">
<slot :row="row"></slot>
</template>
</TableForm>
</div>
<div v-if="isBusiness && formType == 'create' && fromeWhere == 'countPlan'">
<TableFormCountPlan
:tableFields="tableAllSchemas.tableFormColumns"
:tableData="tableData"
:countScopeType="countScopeType"
:tableFormRules="tableFormRules"
ref="tableFormRef"
@tableFormChange="tableFormChange"
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
@inpuFocus="inpuFocus"
/>
</div>
<Form
ref="formRef1"
:rules="rules"
:schema="CountPlanMain1FormAllSchemas"
:is-col="true"
style="margin-top:20px"
@opensearchTable="opensearchTable1"
@hiddenFilterButton="hiddenSearchTableFilterButton"
@changeDialogWidth="changeDialogWidth"
@clearSearchInput="clearSearchInput"
@onChange="onChange"
@onBlur="onBlur"
@onEnter="onEnter"
/>
</div>
<template #footer>
<ButtonBase :Butttondata="Butttondata" @button-base-click="buttonBaseClick" />
</template>
</Dialog>
<SearchTable ref="searchTableRef" :showSearchTableQueryFields="showSearchTableQueryFields" @searchTableSuccess="searchTableSuccess" />
<SearchTable ref="searchTableRef1" :showSearchTableQueryFields="showSearchTableQueryFields" @searchTableSuccess="searchTableSuccess1" />
</template>
<script setup lang="ts">
import { SearchTable } from '@/components/SearchTable'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import ButtonBase from '@/components/XButton/src/ButtonBase.vue'
import TableForm from '@/components/TableForm/src/TableForm.vue'
import TableFormCountPlan from '@/components/TableFormCountPlan/src/TableFormCountPlan.vue'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { debounce } from 'lodash-es'
const props = defineProps({
//
basicFormWidth: {
type: String,
default: ''
},
// TableForm /
isShowButton: {
type: Boolean,
default: true
},
// --
isShowReduceButtonSelection:{
type: Boolean,
default: false,
},
// tableForm
isShowReduceButton: {
type: Boolean,
default: true
},
// rules
rules: {
type: Object,
required: true,
default: null
},
//
formAllSchemas: {
type: Object,
required: true,
default: null
},
//
tableAllSchemas: {
type: Array,
required: true,
default: null
},
//
tableData: {
type: Array,
required: true,
default: null
},
tableFormRules: {
type: Array,
required: true,
default: null
},
//
// searchTableParams: {
// type: Array,
// required: false,
// default: null
// },
// APIVo
apiVo: {
type: Object,
required: true,
default: null
},
// API
apiCreate: {
type: Function,
required: true,
default: null
},
// API
apiUpdate: {
type: Function,
required: true,
default: null
},
// tableForm
isBusiness: {
type: Boolean,
required: true,
default: true
},
// form
form: {
type: Object,
required: true,
default: null
},
//
detailData: {
type: Object,
required: true,
default: null
},
// //
// masterParmas: {
// type: Object,
// required: false,
// default: null
// },
// countPlan
fromeWhere: {
type: String,
required: false,
default: ''
},
//
countScopeType: {
type: Array,
required: false,
default: null
},
//
isDetail: {
type: Boolean,
required: false,
default: false
},
//
formTypeDetail: {
type: String,
required: false,
default: 'InputString'
},
//
countPlanAllList: {
type: Array,
required: false,
default: null
},
// or
isShowFooterButtton: {
type: Boolean,
required: false,
default: true
},
//
tableFormDataLength: {
type: Boolean,
required: false,
default: true
},
//
footButttondata: {
type: Array,
required: false,
default: null
},
//
isOpenSearchTable:{
type: Boolean,
required: false,
default: false
},
fieldTableColumn:{
type: String,
required: false,
default: ''
},
//searchTable
/***[{
formField:form中对应的field,
tableField:searchtable中对应的field,
}]*/
sumFormDataField:{
type: Array,
required: false,
default: null
},
sumFormDataByForm:{
type:Function,
required: false,
default: null
},
sumFormDataByTableCustom:{
type:Function,
required: false,
default: null
},
showSearchTableQueryFields:{
type: Array,
required: false,
default: []
},
//
CountPlanMain1FormAllSchemas: {
type: Object,
required: true,
default: null
}
})
const { t } = useI18n() //
const message = useMessage() //
const dialogWidth = ref()
if (props.basicFormWidth) {
dialogWidth.value = props.basicFormWidth + '%'
} else {
dialogWidth.value = props.isBusiness ? '60%' : '40%'
}
const dialogVisible = ref(false) //
const dialogTitle = ref('') //
const formLoading = ref(false) // 12
const formType = ref('') // create - update -
const formRef = ref() // Ref
const formRef1 = ref() // Ref
const formSchema = ref(props.formAllSchemas?.formSchema)
const CountPlanMain1FormAllSchemas = ref(props.CountPlanMain1FormAllSchemas?.formSchema)
const tableAllSchemas = ref(props.tableAllSchemas)
const tableFormRules = ref(props.tableFormRules)
console.log(111,formSchema)
// -
// const buttondata = [
// defaultButtons.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null)
// ]
// // -
// const buttonTableClick = async (val, row) => {
// if (val == 'edit') {
// } else if (val == 'delete') {
// } else {
// }
// }
/** 弹层操作 */
// formField form
// searchField
// type type=tableForm
// searchCondition
const searchTableRef = ref()
const searchTableRef1 = ref()
const opensearchTable = (
formField,
searchField,
searchTitle,
searchAllSchemas,
searchPage,
searchCondition,
multiple,
type,
row,
isConcatDetailSchemas=false,
searchDetailSchemas: any
) => {
const _searchCondition = {}
//
if (searchCondition && searchCondition.length > 0) {
//
let filters: any[] = []
for (var i=0; i< searchCondition.length; i++ ) {
// searchCondition.forEach((item) => {
// row
if (searchCondition[i].isMainValue) {
_searchCondition[searchCondition[i].key] = formRef.value.formModel[searchCondition[i].value]
? formRef.value.formModel[searchCondition[i].value]
: props.detailData
? props.detailData[searchCondition[i].value]
: row
? row[searchCondition[i].value]
: ''
//
let isNull = false
if (_searchCondition[searchCondition[i].key] == '' || _searchCondition[searchCondition[i].key] == undefined) {
isNull = true
}
if (isNull) {
message.warning(searchCondition[i].message?searchCondition[i].message:'前置条件未选择!')
return
}
}else if(searchCondition[i].isTableRowValue){
if(searchCondition[i].required){
if (row[searchCondition[i].value] == '' ||row[searchCondition[i].value] == undefined) {
message.warning(searchCondition[i].message?searchCondition[i].message:'前置条件未选择!')
return
}
}
row[searchCondition[i].value]
//table
_searchCondition[searchCondition[i].key] = row[searchCondition[i].value]
} else {
//
if (searchCondition[i].isSearch) {
if (searchCondition[i].isFormModel) {
//formModel
if(searchCondition[i].required){
if (formRef.value.formModel[searchCondition[i].value] == '' ||formRef.value.formModel[searchCondition[i].value] == undefined) {
message.warning(searchCondition[i].message?searchCondition[i].message:'前置条件未选择!')
return
}
}
filters.push({
action: searchCondition[i].action,
column: searchCondition[i].key,
value: formRef.value.formModel[searchCondition[i].value]
})
}else{
filters.push({
action: searchCondition[i].action,
column: searchCondition[i].key,
value: searchCondition[i].value
})
}
} else {
_searchCondition[searchCondition[i].key] = searchCondition[i].value
}
}
}
if (filters.length > 0) {
_searchCondition.isSearch = true
_searchCondition.filters = filters
}
}
const _searchTableTitle = searchTitle
const _searchTableAllSchemas = searchAllSchemas
const _searchTablePage = searchPage
searchTableRef.value.open(
_searchTableTitle,
_searchTableAllSchemas,
_searchTablePage,
formField,
searchField,
multiple,
type,
row,
_searchCondition,
undefined,
isConcatDetailSchemas,
searchDetailSchemas
)
}
const opensearchTable1 = (
formField,
searchField,
searchTitle,
searchAllSchemas,
searchPage,
searchCondition,
multiple,
type,
row,
isConcatDetailSchemas=false,
searchDetailSchemas: any
) => {
console.log(formField,searchField,searchTitle,searchAllSchemas,searchPage)
const _searchCondition = {}
//
if (searchCondition && searchCondition.length > 0) {
//
let filters: any[] = []
for (var i=0; i< searchCondition.length; i++ ) {
// searchCondition.forEach((item) => {
// row
if (searchCondition[i].isMainValue) {
_searchCondition[searchCondition[i].key] = formRef1.value.formModel[searchCondition[i].value]
? formRef1.value.formModel[searchCondition[i].value]
: props.detailData
? props.detailData[searchCondition[i].value]
: row
? row[searchCondition[i].value]
: ''
//
let isNull = false
if (_searchCondition[searchCondition[i].key] == '' || _searchCondition[searchCondition[i].key] == undefined) {
isNull = true
}
if (isNull) {
message.warning(searchCondition[i].message?searchCondition[i].message:'前置条件未选择!')
return
}
}else if(searchCondition[i].isTableRowValue){
if(searchCondition[i].required){
if (row[searchCondition[i].value] == '' ||row[searchCondition[i].value] == undefined) {
message.warning(searchCondition[i].message?searchCondition[i].message:'前置条件未选择!')
return
}
}
row[searchCondition[i].value]
//table
_searchCondition[searchCondition[i].key] = row[searchCondition[i].value]
} else {
//
if (searchCondition[i].isSearch) {
if (searchCondition[i].isFormModel) {
//formModel
if(searchCondition[i].required){
if (formRef1.value.formModel[searchCondition[i].value] == '' ||formRef1.value.formModel[searchCondition[i].value] == undefined) {
message.warning(searchCondition[i].message?searchCondition[i].message:'前置条件未选择!')
return
}
}
filters.push({
action: searchCondition[i].action,
column: searchCondition[i].key,
value: formRef1.value.formModel[searchCondition[i].value]
})
}else{
filters.push({
action: searchCondition[i].action,
column: searchCondition[i].key,
value: searchCondition[i].value
})
}
} else {
_searchCondition[searchCondition[i].key] = searchCondition[i].value
}
}
}
if (filters.length > 0) {
_searchCondition.isSearch = true
_searchCondition.filters = filters
}
}
const _searchTableTitle = searchTitle
const _searchTableAllSchemas = searchAllSchemas
const _searchTablePage = searchPage
searchTableRef1.value.open(
_searchTableTitle,
_searchTableAllSchemas,
_searchTablePage,
formField,
searchField,
multiple,
type,
row,
_searchCondition,
undefined,
isConcatDetailSchemas,
searchDetailSchemas
)
}
// searchTable
const changeDialogWidth = (width)=>{
searchTableRef.value.changeDialogWidth(width)
}
const hiddenSearchTableFilterButton = ()=>{
searchTableRef.value.hiddenFilterButton()
}
const clearSearchInput = (field)=>{
emit('clearSearchInput',field)
}
const sumFormDataByTable = () => {
if(props.sumFormDataField){
const sumObject = {}
props.sumFormDataField.forEach(sumItem=>{
sumObject[sumItem?.formField]= props.tableData.reduce((prev, item) => prev + item[sumItem?.tableField],0)
})
nextTick(()=>{
formRef.value.setValues(sumObject)
})
}
}
watch(()=>props.tableData,() => {
sumFormDataByTable()
if(props?.sumFormDataByTableCustom&&unref(formRef)?.formModel&&props.tableData){
props?.sumFormDataByTableCustom(formRef,unref(formRef)?.formModel,props.tableData)
}
},{
deep:true
})
watch(()=>unref(formRef)?.formModel,() => {
if(props?.sumFormDataByForm&&unref(formRef)?.formModel){
props?.sumFormDataByForm(formRef,unref(formRef)?.formModel)
}
},{
deep:true
})
//
// val row
const searchTableSuccess = (formField, searchField, val, type, row) => {
emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row)
}
const searchTableSuccess1 = (formField, searchField, val, type, row) => {
emit('searchTableSuccess', formField, searchField, val, formRef1.value, type, row)
}
/** 打开弹窗 */
const open = async (type: string, row?: any, masterParmas?: any, titleName?: any, alltitleName?: any) => {
dialogVisible.value = true
if(alltitleName){
dialogTitle.value = alltitleName
}else if (titleName) {
dialogTitle.value = t('action.' + titleName)
} else {
dialogTitle.value = t('action.' + type)
}
formType.value = type
resetForm()
//
// masterIdnumber
if (masterParmas) {
if (!row) {
row = {
masterId: masterParmas.masterId,
number: masterParmas.number
}
}
}
if (row?.id || row?.masterId) {
formLoading.value = true
try {
nextTick(() => {
formRef.value.setValues(row)
})
} finally {
formLoading.value = false
}
}else{
if(row){
nextTick(() => {
formRef.value.setValues(row)
})
}
}
}
//
const handleAddTable = () => {
if(props.isOpenSearchTable){
const tableFormKeys = {}
tableAllSchemas.value.tableFormColumns.forEach(item => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
if(props.fieldTableColumn!=''){
inpuFocus(tableAllSchemas.value.tableFormColumns.find(item=>item.field==props.fieldTableColumn),tableFormKeys,0)
}
}else{
emit('handleAddTable')
}
}
/** 弹窗按钮 */
let Butttondata:any = []
if (props.isShowFooterButtton) {
Butttondata = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
if (props.footButttondata) {
Butttondata = props.footButttondata
}
/** 按钮事件 */
const buttonBaseClick = (val) => {
//
if (props.footButttondata) {
emit('footButtonClick',val)
}
//
else if (val == 'save') {
submitForm()
}
//
else if (val == 'close') {
dialogVisible.value = false
}
}
/** 提交表单 */
// const emit = defineEmits(['success']) // success
const tableFormRef = ref()
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
//
if (!elForm) return
const valid = await elForm.validate()
if (!valid) return
//
if (props.isBusiness) {
formLoading.value = true
if (formType.value == 'create') {
const validateForm = await tableFormRef.value.validateForm()
if (!validateForm && props.tableFormDataLength) {
if (props.tableData.length == 0) {
message.warning('请填写明细信息!')
formLoading.value = false
return
}
formLoading.value = false
return
}
//
try {
const data = unref(formRef)?.formModel
emit('submitForm', formType.value, data)
} finally {
formLoading.value = false
}
} else {
//
try {
const data = unref(formRef)?.formModel
emit('submitForm', formType.value, data)
} finally {
formLoading.value = false
}
}
} else {
//
formLoading.value = true
try {
const data = unref(formRef)?.formModel
emit('success', formType.value, data)
} finally {
formLoading.value = false
}
}
}
/** 重置表单 */
const resetForm = () => {
unref(formRef)?.resetFields()
}
//
const emit = defineEmits([
'success',
'tableSelectionChange',
'tableSelectionDelete',
'tableFormSelectOnBlur',
'extendedButtonsClick',
'formSelectChange',
'formSelectvVisibleChange',
'tableSortChange',
'selectCallback',
'handleTableSelect',
'handleDeleteTable',
'handleAddTable',
'inpuFocus',
'searchTableSuccess',
'opensearchTable',
'submitForm',
'selectChange',
'selectChangeDetail',
'tableFormChange',
'buttonOperationClick',
'inputStringBlur',
'onChange',
'onBlur',
'onEnter',
'inputNumberChange',
'formFormDateChange',
'footButtonClick',
'clearSearchInput',
'clearInput',
'inputFocusPlan'
])
//
const formSelectChange = (field, val, row) => {
emit('formSelectChange', field, val, row)
}
//
const formFormDateChange = (field, val,row, index) => {
emit('formFormDateChange', field, val,row, index)
}
const formSelectvVisibleChange = (field, val, row) => {
emit('formSelectvVisibleChange', field, val, row)
}
// selection
const tableSelectionChange = (val) => {
emit('tableSelectionChange', val)
}
const tableSelectionDelete = (val) => {
emit('tableSelectionDelete', val)
}
// tableform select bulr
const tableFormSelectOnBlur = (field, val, row, index) => {
emit('tableFormSelectOnBlur', field, val, row, index)
}
//
const tableSortChange = (column, prop, order) => {
emit('tableSortChange', column, prop, order)
}
// -
const inputNumberChange = (field, index, row, val) => {
emit('inputNumberChange', field, index, row, val)
}
//
// const showSelect = (val, statusID) => {
// return getDictForStatusID(val, statusID)
// }
//
const handleTableSelect = (row, column, event) => {
emit('handleTableSelect', row, column, event)
}
//
const handleDeleteTable = (row, index) => {
emit('handleDeleteTable', row, index,formRef.value)
}
const inputFocusPlan = (row)=>{
emit('inputFocusPlan', row)
}
//
const inpuFocus = (headerItem, row) => {
console.log(headerItem, row)
emit('inpuFocus', headerItem, row)
opensearchTable(
headerItem.field,
headerItem.tableForm.searchField,
row?.searchTable?.searchTitle,
row?.searchTable?.searchAllSchemas,
row?.searchTable?.searchPage,
headerItem.tableForm.searchCondition,
headerItem.tableForm.multiple,
'tableForm',
row,
headerItem.tableForm?.isConcatDetailSchemas,
headerItem.tableForm?.searchDetailSchemas
)
}
const clearInput = (field, row, index) => {
emit('clearInput',field, row, index)
}
/**
* 监听改变事件
* @param field 当前操作字段
* @param cur 改变后值
*/
const onChange = (field, cur) => {
emit('onChange', field, cur, formRef)
}
/**
* 监听失焦事件
* @param field 当前操作字段
* @param e
*/
const onBlur = (field, e) => {
emit('onBlur', field, e)
}
/**
* 回车事件
* @param field 当前操作字段
* @param e
*/
const onEnter = (field,value, e) => {
emit('onEnter', field,value, e)
}
//
const selectChange = (field, val) => {
emit('selectChange', field, val)
}
//
const selectChangeDetail = (field, val,formSchema) => {
formSchema.value = ''
emit('selectChangeDetail', field, val)
}
const tableFormChange = (field, val, row) => {
emit('tableFormChange', field, val, row)
}
const buttonOperationClick = (row, label, index)=> {
emit("buttonOperationClick", row, label, index);
}
const inputStringBlur = (headerItem, row, index)=> {
emit("inputStringBlur", headerItem, row, index);
}
defineExpose({ open, formRef, opensearchTable, dialogVisible, formLoading ,handleAddTable,changeDialogWidth}) // open
</script>
<style lang="scss" scoped>
.table {
border: 1px solid #dedede;
border-radius: 8px;
padding: 10px;
width: calc(100% - 32px);
display: flex;
}
::v-deep(.el-table__body) {
padding: 10px 0px;
}
::v-deep(.el-table--default .el-table__cell) {
padding: 2px 0px;
border: none;
}
::v-deep(.el-table td.el-table__cell .el-form-item__content) {
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
::v-deep(.el-table td.el-table__cell div) {
overflow: visible;
}
::v-deep(.el-icon) {
display: block;
}button
.button {
> div {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
> div {
margin-left: 6px;
text-decoration: underline;
color: #409eff;
}
}
}
</style>

10
src/components/Crontab/src/Crontab.vue

@ -14,7 +14,11 @@ const props = defineProps({
type: String, type: String,
default: '* * * * * ?' default: '* * * * * ?'
}, },
shortcuts: { type: Array as PropType<shortcutsType[]>, default: () => [] } shortcuts: { type: Array as PropType<shortcutsType[]>, default: () => [] },
disabled: {
type: Boolean,
default: false
},
}) })
const defaultValue = ref('') const defaultValue = ref('')
const dialogVisible = ref(false) const dialogVisible = ref(false)
@ -505,9 +509,9 @@ const submit = () => {
} }
</script> </script>
<template> <template>
<el-input v-model="defaultValue" class="input-with-select" v-bind="$attrs"> <el-input v-model="defaultValue" class="input-with-select" v-bind="$attrs" :disabled='props.disabled'>
<template #append> <template #append>
<el-select v-model="select" placeholder="生成器" style="width: 115px"> <el-select v-model="select" placeholder="生成器" style="width: 115px" v-if="!props.disabled">
<el-option label="每分钟" value="0 * * * * ?" /> <el-option label="每分钟" value="0 * * * * ?" />
<el-option label="每小时" value="0 0 * * * ?" /> <el-option label="每小时" value="0 0 * * * ?" />
<el-option label="每天零点" value="0 0 0 * * ?" /> <el-option label="每天零点" value="0 0 0 * * ?" />

69
src/components/Detail/src/Detail.vue

@ -108,6 +108,7 @@
<Annex v-show="tabsList[current].label==annexItem.label" <Annex v-show="tabsList[current].label==annexItem.label"
:annexData="annexItem" :annexData="annexItem"
:fileType="annexItem.fileType" :fileType="annexItem.fileType"
:showAddBtn="!annexItem.hiddenUpload"
:showPreview="annexItem.showPreview" :showPreview="annexItem.showPreview"
:showDownload = "annexItem.showDownload" :showDownload = "annexItem.showDownload"
:hiddenDelete = "annexItem.hiddenDelete" :hiddenDelete = "annexItem.hiddenDelete"
@ -181,6 +182,7 @@
:apiCreate="apiCreate" :apiCreate="apiCreate"
:fromeWhere="fromeWhere" :fromeWhere="fromeWhere"
:isDetail="true" :isDetail="true"
:sumFormDataByForm ="sumFormDataByForm"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:detailData="detailData" :detailData="detailData"
@submitForm="submitForm" @submitForm="submitForm"
@ -401,6 +403,11 @@ const props = defineProps({
required: false, required: false,
default: false default: false
}, },
sumFormDataByForm:{
type:Function,
required: false,
default: null
},
}) })
const isShowDrawer = ref(false) const isShowDrawer = ref(false)
const detailLoading = ref(false) const detailLoading = ref(false)
@ -504,9 +511,12 @@ const getAnnexFileList = async (row) => {
} }
const annexList = await FileApi.getFileList(requstData) const annexList = await FileApi.getFileList(requstData)
const annexData = annexTableData.value.find(annex=>annex.label === item.label) const annexData = annexTableData.value.find(annex=>annex.label === item.label)
let subDetailTableData = null
if(annexData){ if(annexData){
annexData.annexList = annexList annexData.annexList = annexList
subDetailTableData = annexData.subDetailTableData
}else{ }else{
subDetailTableData = item?.subDetailTableData
annexTableData.value.push({ annexTableData.value.push({
align:item.align, align:item.align,
label: item.label, label: item.label,
@ -518,20 +528,20 @@ const getAnnexFileList = async (row) => {
showPreview:item.showPreview||false, // showPreview:item.showPreview||false, //
showDownload:item.showDownload||false, // showDownload:item.showDownload||false, //
hiddenDelete:item.hiddenDelete || false, // hiddenDelete:item.hiddenDelete || false, //
hiddenUpload:item.hiddenUpload || false, //
}) })
if(item?.subDetailTableData){ }
if(subDetailTableData){
const { tableObject:subTableObject, tableMethods:subTableMethods } = useTable({ const { tableObject:subTableObject, tableMethods:subTableMethods } = useTable({
getListApi: item.subDetailTableData.getSubList // getListApi: subDetailTableData.getSubList //
}) })
const {getList:getSubList} = subTableMethods const {getList:getSubList} = subTableMethods
subTableObject.params= {} subTableObject.params= {}
item.subDetailTableData.queryParams.forEach(queryItem => { subDetailTableData.queryParams.forEach(queryItem => {
subTableObject.params[queryItem.queryField] = row[queryItem.rowField] subTableObject.params[queryItem.queryField] = row[queryItem.rowField]
}); });
await getSubList() await getSubList()
item.subDetailTableData.tableList = subTableObject.tableList subDetailTableData.tableList = subTableObject.tableList
console.log('subTableObject',annexTableData.value)
}
} }
}) })
} }
@ -604,6 +614,7 @@ const titleNameRef = ref()
const titleValueRef = ref() const titleValueRef = ref()
const count =ref(0) const count =ref(0)
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => {
annexTableData.value = []
titleNameRef.value = titleName titleNameRef.value = titleName
titleValueRef.value = titleValue titleValueRef.value = titleValue
remarksData.data = { remarksData.data = {
@ -685,7 +696,6 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
const updateList = ()=>{ const updateList = ()=>{
getList() getList()
} }
defineExpose({ openDetail, formRef ,updateList}) // open
// //
const getRemarkList = async () => { const getRemarkList = async () => {
@ -827,24 +837,8 @@ const opensearchTable = (
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { if (val == 'edit') {
// //
if(props.isOpenSearchTable){
searchTableFormType.value = 'update'
if (row?.id || row?.masterId) {
searchTableFormModel.value = Object.assign(unref(searchTableFormModel), row)
}
const item = props.detailAllSchemas.formSchema[0]
opensearchTable(
item.field, item?.componentProps?.searchField,
item?.componentProps?.searchTitle,
item?.componentProps?.searchAllSchemas,
item?.componentProps?.searchPage,
item?.componentProps?.searchCondition,
item?.componentProps?.multiple,
undefined,undefined
)
}else{
openForm('update', row) openForm('update', row)
}
} else if (val == 'delete') { } else if (val == 'delete') {
// //
handleDelete(row.id) handleDelete(row.id)
@ -864,21 +858,39 @@ const submitForm = async (formType, data) => {
const rs = (await props.detailValidate) ? await props.detailValidate(data) : true const rs = (await props.detailValidate) ? await props.detailValidate(data) : true
if (!rs) return if (!rs) return
if (formType === 'create') { if (formType === 'create') {
if(props.apiCreate){
await props.apiCreate(data) await props.apiCreate(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
}else{
emit('handleSubmitForm',formType, data)
}
} else { } else {
if(props.apiUpdate){
await props.apiUpdate(data) await props.apiUpdate(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
}else{
emit('handleSubmitForm',formType, data)
} }
}
if (formType === 'create'&&props.apiCreate||formType === 'update'&&props.apiUpdate) {
emit('handleMainFefresh') emit('handleMainFefresh')
formRef.value.dialogVisible = false formRef.value.dialogVisible = false
// //
await getList() await getList()
updateKey.value += 1 updateKey.value += 1
}
} finally { } finally {
formRef.value.formLoading = false formRef.value.formLoading = false
} }
} }
//----
const submitUpdateList = async ()=>{
formRef.value.dialogVisible = false
//
await getList()
updateKey.value += 1
}
const searchTableSuccess1 = (formField, searchField, val, formRef) => { const searchTableSuccess1 = (formField, searchField, val, formRef) => {
@ -909,6 +921,8 @@ const emit = defineEmits([
'detailBasicFormOnChange', 'detailBasicFormOnChange',
'formFormDateChange', 'formFormDateChange',
'buttonBaseClick', 'buttonBaseClick',
'handleMainFefresh',
'handleSubmitForm'
]) ])
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id: number) => { const handleDelete = async (id: number) => {
@ -924,7 +938,10 @@ const handleDelete = async (id: number) => {
// //
await getList() await getList()
updateKey.value += 1 updateKey.value += 1
} catch {} } catch {
tableObject.loading = false
getList()
}
} }
// //
const searchFormClick = async (searchData) => { const searchFormClick = async (searchData) => {
@ -1002,6 +1019,8 @@ watch(
getList() getList()
} }
) )
defineExpose({ openDetail, formRef ,updateList,submitUpdateList}) // open
</script> </script>
<style lang="scss"> <style lang="scss">
.el-drawer__body { .el-drawer__body {

20
src/components/DetailTable/src/DetailTable.vue

@ -9,8 +9,8 @@
</el-table-column> </el-table-column>
<el-table-column :prop="columns[1].field" :label="columns[1].label" align="center"> <el-table-column :prop="columns[1].field" :label="columns[1].label" align="center">
<template #default="scope"> <template #default="scope">
<div v-if=" scope.row.type == 'PROJECT'"> {{ scope.row.value }}</div> <div v-if="scope.row.type == 'ABC' || scope.row.type == 'ITEMS_TYPE' ||scope.row.type == 'ITEMS_GROUP' "> {{ forrmatter1(scope.row) }}</div>
<div v-else> {{ forrmatter1(scope.row) }}</div> <div v-else> {{ scope.row.value }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="操作" align="center"> <el-table-column prop="" label="操作" align="center">
@ -66,11 +66,11 @@ const forrmatter = (val) => {
} }
const forrmatter1 = (item) => { const forrmatter1 = (item) => {
if(item?.type == 'OWNER'){ if(item?.type == 'OWNER'){
return allList.value.ownerAllList.find((cur) => cur.value == item.value).label // return allList.value.ownerAllList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'SUPPLIER'){ }else if(item?.type == 'SUPPLIER'){
return allList.value.supplierAllList.find((cur) => cur.value == item.value).label // return allList.value.supplierAllList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'CUSTOMER'){ }else if(item?.type == 'CUSTOMER'){
return allList.value.customerAllList.find((cur) => cur.value == item.value).label // return allList.value.customerAllList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'ABC'){ }else if(item?.type == 'ABC'){
return allList.value.abcList.find((cur) => cur.value == item.value).label return allList.value.abcList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'ITEMS_TYPE'){ }else if(item?.type == 'ITEMS_TYPE'){
@ -78,15 +78,15 @@ const forrmatter1 = (item) => {
}else if(item?.type == 'ITEMS_GROUP'){ }else if(item?.type == 'ITEMS_GROUP'){
return allList.value.itemGroupList.find((cur) => cur.value == item.value).label return allList.value.itemGroupList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'ITEMS_CODE'){ }else if(item?.type == 'ITEMS_CODE'){
return allList.value.itembasicAllList.find((cur) => cur.value == item.value).label // return allList.value.itembasicAllList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'WAREHOUSE_CODE'){ }else if(item?.type == 'WAREHOUSE_CODE'){
return allList.value.warehouseAllList.find((cur) => cur.value == item.value).label // return allList.value.warehouseAllList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'AREABASIC_CODE'){ }else if(item?.type == 'AREABASIC_CODE'){
return allList.value.areaAllList.find((cur) => cur.value == item.value).label // return allList.value.areaAllList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'LOCATIONGROUP_CODE'){ }else if(item?.type == 'LOCATIONGROUP_CODE'){
return allList.value.locationgroupAllList.find((cur) => cur.value == item.value).label // return allList.value.locationgroupAllList.find((cur) => cur.value == item.value).label
}else if(item?.type == 'LOCATION_CODE'){ }else if(item?.type == 'LOCATION_CODE'){
return allList.value.locationAllList.find((cur) => cur.value == item.value).label // return allList.value.locationAllList.find((cur) => cur.value == item.value).label
}else{ }else{
return '' return ''
} }

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save