From a74d4a6fd76d04b04c204244cebdfa3dca0fb206 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com>
Date: Thu, 4 Jul 2024 16:46:56 +0800
Subject: [PATCH] =?UTF-8?q?EAM=E5=A4=87=E4=BB=B6=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E4=B8=8A=E4=BC=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/eam/sparePartsApplyDetail/index.ts | 63 ++
src/api/eam/sparePartsApplyMain/index.ts | 87 ++
.../eam/sparePartsInLocationDetail/index.ts | 58 ++
src/api/eam/sparePartsInLocationMain/index.ts | 91 ++
.../sparePartsInLocationRecordDetail/index.ts | 58 ++
.../sparePartsInLocationRecordMain/index.ts | 72 ++
.../eam/sparePartsOutLocationDetail/index.ts | 61 ++
.../eam/sparePartsOutLocationMain/index.ts | 81 ++
.../index.ts | 72 ++
.../sparePartsOutLocationDetailRecord.js | 54 +
.../sparePartsOutLocationRecordMain/index.ts | 71 ++
src/utils/dict.ts | 2 +
src/utils/disposition/defaultButtons.ts | 527 +++++-----
.../eam/SparePartsOutLocationRecord/index.vue | 374 +++++++
src/views/eam/applicationRecord/index.vue | 527 +++++-----
.../countadjustPlan/countadjustPlan.data.ts | 127 ++-
src/views/eam/countadjustWork/index.vue | 540 +++++-----
src/views/eam/item/item.data.ts | 5 -
src/views/eam/itemAccounts/index.vue | 51 +-
.../eam/itemAccounts/itemAccounts.data.ts | 89 +-
src/views/eam/location/location.data.ts | 2 +-
.../eam/locationArea/locationArea.data.ts | 135 +--
src/views/eam/maintenance/maintenance.data.ts | 969 +++++++++---------
.../SparePartsApply.data.ts | 365 +++++++
src/views/eam/sparePartsApplyMain/index.vue | 511 +++++++++
.../eam/sparePartsInLocationRecord/index.vue | 137 +++
.../sparePartsInLocationRecordMain.data.ts | 258 +++++
src/views/eam/sparepartsinlocation/index.vue | 472 +++++++++
.../sparePartsInLocationMain.data.ts | 298 ++++++
.../SparePartsOutLocation.data.ts | 344 +++++++
src/views/eam/sparepartsoutlocation/index.vue | 399 ++++++++
src/views/eam/transaction/index.vue | 86 +-
src/views/eam/transaction/transaction.data.ts | 160 +--
33 files changed, 5658 insertions(+), 1488 deletions(-)
create mode 100644 src/api/eam/sparePartsApplyDetail/index.ts
create mode 100644 src/api/eam/sparePartsApplyMain/index.ts
create mode 100644 src/api/eam/sparePartsInLocationDetail/index.ts
create mode 100644 src/api/eam/sparePartsInLocationMain/index.ts
create mode 100644 src/api/eam/sparePartsInLocationRecordDetail/index.ts
create mode 100644 src/api/eam/sparePartsInLocationRecordMain/index.ts
create mode 100644 src/api/eam/sparePartsOutLocationDetail/index.ts
create mode 100644 src/api/eam/sparePartsOutLocationMain/index.ts
create mode 100644 src/api/eam/sparePartsOutLocationRecordDetail/index.ts
create mode 100644 src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js
create mode 100644 src/api/eam/sparePartsOutLocationRecordMain/index.ts
create mode 100644 src/views/eam/SparePartsOutLocationRecord/index.vue
create mode 100644 src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts
create mode 100644 src/views/eam/sparePartsApplyMain/index.vue
create mode 100644 src/views/eam/sparePartsInLocationRecord/index.vue
create mode 100644 src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts
create mode 100644 src/views/eam/sparepartsinlocation/index.vue
create mode 100644 src/views/eam/sparepartsinlocation/sparePartsInLocationMain.data.ts
create mode 100644 src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts
create mode 100644 src/views/eam/sparepartsoutlocation/index.vue
diff --git a/src/api/eam/sparePartsApplyDetail/index.ts b/src/api/eam/sparePartsApplyDetail/index.ts
new file mode 100644
index 000000000..ae94831de
--- /dev/null
+++ b/src/api/eam/sparePartsApplyDetail/index.ts
@@ -0,0 +1,63 @@
+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' })
+}
\ No newline at end of file
diff --git a/src/api/eam/sparePartsApplyMain/index.ts b/src/api/eam/sparePartsApplyMain/index.ts
new file mode 100644
index 000000000..80288a681
--- /dev/null
+++ b/src/api/eam/sparePartsApplyMain/index.ts
@@ -0,0 +1,87 @@
+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' })
+}
+
+// 撤回
+export const cancelSparePartsApplyMain = async (id) => {
+ return await request.get({ url: `/eam/spare-parts-apply-main/cancel?id=` + id })
+}
+// 审核
+export const submitSparePartsApplyMain = async (id) => {
+ return await request.get({ url: `/eam/spare-parts-apply-main/submitExamine?id=` + id })
+}
+// 审核驳回
+export const rejectSparePartsApplyMain = async (id) => {
+ return await request.get({ url: `/eam/spare-parts-apply-main/reject?id=` + id })
+}
+// 审核通过
+export const approveSparePartsApplyMain = async (data) => {
+ return await request.post({ url: `/eam/spare-parts-apply-main/approve`, data })
+}
+
+// 完成
+export const finishSparePartsApplyMain = async (id) => {
+ return await request.post({ url: `/eam/spare-parts-apply-main/finish?id=` + id })
+}
diff --git a/src/api/eam/sparePartsInLocationDetail/index.ts b/src/api/eam/sparePartsInLocationDetail/index.ts
new file mode 100644
index 000000000..827687a36
--- /dev/null
+++ b/src/api/eam/sparePartsInLocationDetail/index.ts
@@ -0,0 +1,58 @@
+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' })
+}
\ No newline at end of file
diff --git a/src/api/eam/sparePartsInLocationMain/index.ts b/src/api/eam/sparePartsInLocationMain/index.ts
new file mode 100644
index 000000000..687d99a67
--- /dev/null
+++ b/src/api/eam/sparePartsInLocationMain/index.ts
@@ -0,0 +1,91 @@
+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 })
+}
+// 完成
+export const finishSparePartsInLocation = async (id) => {
+ return await request.post({ url: `/eam/spare-parts-in-location-main/finish?id=` + id })
+}
\ No newline at end of file
diff --git a/src/api/eam/sparePartsInLocationRecordDetail/index.ts b/src/api/eam/sparePartsInLocationRecordDetail/index.ts
new file mode 100644
index 000000000..9e4df6997
--- /dev/null
+++ b/src/api/eam/sparePartsInLocationRecordDetail/index.ts
@@ -0,0 +1,58 @@
+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 getSparePartsInLocationRecordDetailPage = 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 getSparePartsInLocationRecordDetail = async (id: number) => {
+ return await request.get({ url: `/eam/spare-parts-in-location-detail-record/get?id=` + id })
+}
+
+// 新增备件入库记录子
+export const createSparePartsInLocationRecordDetail= async (data: SparePartsInLocationDetailRecordVO) => {
+ return await request.post({ url: `/eam/spare-parts-in-location-detail-record/create`, data })
+}
+
+// 修改备件入库记录子
+export const updateSparePartsInLocationRecordDetail = async (data: SparePartsInLocationDetailRecordVO) => {
+ return await request.put({ url: `/eam/spare-parts-in-location-detail-record/update`, data })
+}
+
+// 删除备件入库记录子
+export const deleteSparePartsInLocationRecordDetail = async (id: number) => {
+ return await request.delete({ url: `/eam/spare-parts-in-location-detail-record/delete?id=` + id })
+}
+
+// 导出备件入库记录子 Excel
+export const exportSparePartsInLocationRecordDetail = 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' })
+}
\ No newline at end of file
diff --git a/src/api/eam/sparePartsInLocationRecordMain/index.ts b/src/api/eam/sparePartsInLocationRecordMain/index.ts
new file mode 100644
index 000000000..42c7616fe
--- /dev/null
+++ b/src/api/eam/sparePartsInLocationRecordMain/index.ts
@@ -0,0 +1,72 @@
+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 getSparePartsInLocationRecordMainPage = 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 getSparePartsInLocationRecordMain = async (id: number) => {
+ return await request.get({ url: `/eam/spare-parts-in-location-main-record/get?id=` + id })
+}
+
+// 新增备件入库记录主
+export const createSparePartsInLocationRecordMain = async (
+ data: SparePartsInLocationMainRecordVO
+) => {
+ return await request.post({ url: `/eam/spare-parts-in-location-main-record/create`, data })
+}
+
+// 修改备件入库记录主
+export const updateSparePartsInLocationRecordMain = async (
+ data: SparePartsInLocationMainRecordVO
+) => {
+ return await request.put({ url: `/eam/spare-parts-in-location-main-record/update`, data })
+}
+
+// 删除备件入库记录主
+export const deleteSparePartsInLocationRecordMain= async (id: number) => {
+ return await request.delete({ url: `/eam/spare-parts-in-location-main-record/delete?id=` + id })
+}
+
+// 导出备件入库记录主 Excel
+export const exportSparePartsInLocationRecordMain = 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' })
+}
diff --git a/src/api/eam/sparePartsOutLocationDetail/index.ts b/src/api/eam/sparePartsOutLocationDetail/index.ts
new file mode 100644
index 000000000..16b9fe4cc
--- /dev/null
+++ b/src/api/eam/sparePartsOutLocationDetail/index.ts
@@ -0,0 +1,61 @@
+import request from '@/config/axios'
+
+export interface SparePartsOutLocationDetailVO {
+ 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 getSparePartsOutLocationDetailPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = { ...params }
+ return await request.post({ url: '/eam/spare-parts-out-location-detail/senior', data })
+ } else {
+ return await request.get({ url: `/eam/spare-parts-out-location-detail/page`, params })
+ }
+}
+
+// 查询备件入库记录子详情
+export const getSparePartsOutLocationDetail = async (id: number) => {
+ return await request.get({ url: `/eam/spare-parts-out-location-detail/get?id=` + id })
+}
+
+// 新增备件入库记录子
+export const createSparePartsOutLocationDetail = async (data: SparePartsOutLocationDetailVO) => {
+ return await request.post({ url: `/eam/spare-parts-out-location-detail/create`, data })
+}
+
+// 修改备件入库记录子
+export const updateSparePartsOutLocationDetail = async (data: SparePartsOutLocationDetailVO) => {
+ return await request.put({ url: `/eam/spare-parts-out-location-detail/update`, data })
+}
+
+// 删除备件入库记录子
+export const deleteSparePartsOutLocationDetail = async (id: number) => {
+ return await request.delete({ url: `/eam/spare-parts-out-location-detail/delete?id=` + id })
+}
+
+// 导出备件入库记录子 Excel
+export const exportSparePartsOutLocationDetail = async (params) => {
+ return await request.download({
+ url: `/eam/spare-parts-out-location-detail/export-excel`,
+ params
+ })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/spare-parts-out-location-detail/get-import-template' })
+}
diff --git a/src/api/eam/sparePartsOutLocationMain/index.ts b/src/api/eam/sparePartsOutLocationMain/index.ts
new file mode 100644
index 000000000..1eeccf471
--- /dev/null
+++ b/src/api/eam/sparePartsOutLocationMain/index.ts
@@ -0,0 +1,81 @@
+import request from '@/config/axios'
+
+export interface SparePartsOutLocationMainVO {
+ 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 getSparePartsOutLocationMainPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = { ...params }
+ return await request.post({ url: '/eam/spare-parts-out-location-main/senior', data })
+ } else {
+ return await request.get({ url: `/eam/spare-parts-out-location-main/page`, params })
+ }
+}
+
+// 查询备件入库记录主详情
+export const getSparePartsOutLocationMain = async (id: number) => {
+ return await request.get({ url: `/eam/spare-parts-out-location-main/get?id=` + id })
+}
+
+// 新增备件入库记录主
+export const createSparePartsOutLocationMain = async (data: SparePartsOutLocationMainVO) => {
+ return await request.post({ url: `/eam/spare-parts-out-location-main/create`, data })
+}
+
+// 修改备件入库记录主
+export const updateSparePartsOutLocationMain = async (data: SparePartsOutLocationMainVO) => {
+ return await request.put({ url: `/eam/spare-parts-out-location-main/update`, data })
+}
+
+// 删除备件入库记录主
+export const deleteSparePartsOutLocationMain = async (id: number) => {
+ return await request.delete({ url: `/eam/spare-parts-out-location-main/delete?id=` + id })
+}
+
+// 出库
+export const outSparePartsOutLocationMain = async (id) => {
+ return await request.get({ url: `/eam/spare-parts-out-location-main/out?id=` + id })
+}
+
+// 导出备件入库记录主 Excel
+export const exportSparePartsOutLocationMain = async (params) => {
+ if (params.isSearch) {
+ const data = { ...params }
+ return await request.downloadPost({
+ url: `/eam/spare-parts-out-location-main/export-excel-senior`,
+ data
+ })
+ } else {
+ return await request.download({
+ url: `/eam/spare-parts-out-location-main/export-excel`,
+ params
+ })
+ }
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/spare-parts-out-location-main/get-import-template' })
+}
diff --git a/src/api/eam/sparePartsOutLocationRecordDetail/index.ts b/src/api/eam/sparePartsOutLocationRecordDetail/index.ts
new file mode 100644
index 000000000..c4ea46811
--- /dev/null
+++ b/src/api/eam/sparePartsOutLocationRecordDetail/index.ts
@@ -0,0 +1,72 @@
+import request from '@/config/axios'
+
+export interface SparePartsOutLocationRecordDetailVO {
+ 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 getSparePartsOutLocationDetailRecordPage = 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 getSparePartsOutLocationDetailRecord = async (id: number) => {
+ return await request.get({ url: `/eam/spare-parts-in-location-main-record/get?id=` + id })
+}
+
+// 新增备件入库记录主
+export const createSparePartsOutLocationDetailRecord = async (
+ data: SparePartsInLocationMainRecordVO
+) => {
+ return await request.post({ url: `/eam/spare-parts-in-location-main-record/create`, data })
+}
+
+// 修改备件入库记录主
+export const updateSparePartsOutLocationDetailRecord = async (
+ data: SparePartsInLocationMainRecordVO
+) => {
+ return await request.put({ url: `/eam/spare-parts-in-location-main-record/update`, data })
+}
+
+// 删除备件入库记录主
+export const deleteSparePartsOutLocationDetailRecord = async (id: number) => {
+ return await request.delete({ url: `/eam/spare-parts-in-location-main-record/delete?id=` + id })
+}
+
+// 导出备件入库记录主 Excel
+export const exportSparePartsOutLocationDetailRecord = 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' })
+}
diff --git a/src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js b/src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js
new file mode 100644
index 000000000..4e84a9429
--- /dev/null
+++ b/src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js
@@ -0,0 +1,54 @@
+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'
+ })
+}
diff --git a/src/api/eam/sparePartsOutLocationRecordMain/index.ts b/src/api/eam/sparePartsOutLocationRecordMain/index.ts
new file mode 100644
index 000000000..4f075cce1
--- /dev/null
+++ b/src/api/eam/sparePartsOutLocationRecordMain/index.ts
@@ -0,0 +1,71 @@
+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' })
+}
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index a6b8966d5..fe86384be 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -230,6 +230,8 @@ export enum DICT_TYPE {
SETTLEMENT_TYPE = 'settlement_type', // 结算类型
FROZEN_REASON = 'frozen_reason', // 冻结原因
INVENTORY_ACTION = 'inventory_action', // 库存动作
+ EAM_INVENTORY_ACTION = 'EAM_inventory_action', // EAM库存动作
+ EAM_TRANSACTION_TYPE = 'EAM_transaction_Type', // EAM库存类型
CONTAINER_TYPE = 'container_type', // 器具类型
CONTAINER_CONTENT_TYPE = 'container_content_type', // 器具内容类型
RESET_PERIOD = 'reset_period', // 重置周期
diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts
index 145a6d9fb..edb8b8d7e 100644
--- a/src/utils/disposition/defaultButtons.ts
+++ b/src/utils/disposition/defaultButtons.ts
@@ -1,27 +1,27 @@
// 页面基础按钮样式
/**
* 如果需要更改配置,格式如:defaultExportBtn({label:'自定义'})
- * @param {*} option
- * @returns
+ * @param {*} option
+ * @returns
*/
const { t } = useI18n()
// 新增按钮
-export function defaultAddBtn(option:any) {
- return __defaultBtnOption(option,{
- label: t(`ts.新增`).replace('ts.', ''),
- name: 'add',
- hide: false,
- type: 'primary',
- icon: 'ep:plus',
- color: '',
- hasPermi: ''
- })
+export function defaultAddBtn(option: any) {
+ return __defaultBtnOption(option, {
+ label: t(`ts.新增`).replace('ts.', ''),
+ name: 'add',
+ hide: false,
+ type: 'primary',
+ icon: 'ep:plus',
+ color: '',
+ hasPermi: ''
+ })
}
// 导入按钮
-export function defaultImportBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultImportBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.导入`).replace('ts.', ''),
name: 'import',
hide: false,
@@ -33,8 +33,8 @@ export function defaultImportBtn(option:any) {
}
// 导出按钮
-export function defaultExportBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultExportBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.导出`).replace('ts.', ''),
name: 'export',
hide: false,
@@ -77,183 +77,183 @@ export function defaultExportBtn(option:any) {
// }
// 刷新按钮
-export function defaultFreshBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultFreshBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.刷新`).replace('ts.', ''),
name: 'refresh',
hide: false,
type: 'primary',
icon: 'ep:refresh',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// 重置按钮
-export function defaultResetBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultResetBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.重置`).replace('ts.', ''),
name: 'reset',
hide: false,
type: 'info',
icon: '',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// 字段设置
-export function defaultSetBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultSetBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.设置`).replace('ts.', ''),
name: 'set',
hide: false,
type: 'info',
icon: 'ep:setting',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// 筛选按钮
-export function defaultFilterBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultFilterBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.筛选`).replace('ts.', ''),
name: 'filtrate',
hide: false,
type: 'info',
icon: 'ep:operation',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// 筛选——查询按钮
-export function defaultSearchBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultSearchBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.搜索`).replace('ts.', ''),
name: 'search',
hide: false,
type: 'primary',
icon: '',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// 筛选——重置按钮
-export function defaultSearchResetBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultSearchResetBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.重置`).replace('ts.', ''),
name: 'searchReset',
hide: false,
type: 'info',
icon: '',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// 选择当页
-export function defaultWhenPageBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultWhenPageBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.选择当页`).replace('ts.', ''),
name: 'WhenPage',
hide: false,
type: 'primary',
color: '',
- float:'right',
+ float: 'right',
link: false, // 文本展现按钮
hasPermi: ''
})
}
// 反选当页
-export function defaultUnselectPageBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultUnselectPageBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.反选当页`).replace('ts.', ''),
name: 'UnselectPage',
hide: false,
type: 'primary',
color: '',
- float:'right',
+ float: 'right',
link: false, // 文本展现按钮
hasPermi: ''
})
}
// 取消全选
-export function defaultDeselectAllBtn(option:any) {
- return __defaultBtnOption(option,{
+export function defaultDeselectAllBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.取消全选`).replace('ts.', ''),
name: 'DeselectAll',
hide: false,
type: 'primary',
color: '',
- float:'right',
+ float: 'right',
link: false, // 文本展现按钮
hasPermi: ''
})
}
// form表单-保存按钮
-export function formSaveBtn(option:any) {
- return __defaultBtnOption(option,{
+export function formSaveBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.保存`).replace('ts.', ''),
name: 'save',
hide: false,
type: 'primary',
icon: 'ep:select',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// form表单-关闭按钮
-export function formCloseBtn(option:any) {
- return __defaultBtnOption(option,{
+export function formCloseBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.关闭`).replace('ts.', ''),
name: 'close',
hide: false,
icon: 'ep:close',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// form表单-关闭按钮
-export function formStagingBtn(option:any) {
- return __defaultBtnOption(option,{
+export function formStagingBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`btn.暂存`).replace('btn.', ''),
name: 'staging',
hide: false,
color: 'green',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// form表单-下一步按钮
-export function formNextStepBtn(option:any) {
- return __defaultBtnOption(option,{
+export function formNextStepBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.下一步`).replace('ts.', ''),
name: 'nextStep',
hide: false,
type: 'primary',
icon: 'ep:select',
color: '',
- float:'right',
+ float: 'right',
hasPermi: ''
})
}
// drawer抽屉头部-编辑按钮
-export function drawerEditBtn(option:any) {
- return __defaultBtnOption(option,{
+export function drawerEditBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.编辑`).replace('ts.', ''),
name: 'edit',
hide: false,
@@ -265,8 +265,8 @@ export function drawerEditBtn(option:any) {
}
// drawer抽屉头部-删除按钮
-export function drawerDeleteBtn(option:any) {
- return __defaultBtnOption(option,{
+export function drawerDeleteBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.删除`).replace('ts.', ''),
name: 'delete',
hide: false,
@@ -291,8 +291,8 @@ export function drawerDeleteBtn(option:any) {
// }
// 主列表-编辑按钮
-export function mainListEditBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListEditBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.编辑`).replace('ts.', ''),
name: 'edit',
hide: false,
@@ -304,8 +304,8 @@ export function mainListEditBtn(option:any) {
}
// 主列表-删除按钮
-export function mainListDeleteBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListDeleteBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.删除`).replace('ts.', ''),
name: 'delete',
hide: false,
@@ -315,8 +315,8 @@ export function mainListDeleteBtn(option:any) {
hasPermi: ''
})
}
-export function mainListEnableBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListEnableBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.启用`).replace('ts.', ''),
name: 'enable',
hide: false,
@@ -326,8 +326,8 @@ export function mainListEnableBtn(option:any) {
hasPermi: ''
})
}
-export function mainListDisableBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListDisableBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.禁用`).replace('ts.', ''),
name: 'disable',
hide: false,
@@ -338,9 +338,9 @@ export function mainListDisableBtn(option:any) {
})
}
// 主列表-中止按钮1
-export function mainListSuspend1Btn(option:any) {
- return __defaultBtnOption(option,{
- label: t(`ts.中止`).replace('ts.',''),
+export function mainListSuspend1Btn(option: any) {
+ return __defaultBtnOption(option, {
+ label: t(`ts.中止`).replace('ts.', ''),
name: 'suspend',
hide: false,
type: 'danger',
@@ -351,8 +351,8 @@ export function mainListSuspend1Btn(option:any) {
}
// 主列表-中止按钮2
-export function mainListSuspend2Btn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListSuspend2Btn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.中止`).replace('ts.', ''),
name: 'suspend',
hide: false,
@@ -364,8 +364,8 @@ export function mainListSuspend2Btn(option:any) {
}
// 主列表-领取按钮
-export function mainListReceiveBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListReceiveBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.领取`).replace('ts.', ''),
name: 'receive',
hide: false,
@@ -377,8 +377,8 @@ export function mainListReceiveBtn(option:any) {
}
// 主列表-接单按钮
-export function mainListReceiveOrderBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListReceiveOrderBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.接单`).replace('ts.', ''),
name: 'receive',
hide: false,
@@ -390,8 +390,8 @@ export function mainListReceiveOrderBtn(option:any) {
}
// 主列表-执行按钮
-export function mainListExecuteBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListExecuteBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.执行`).replace('ts.', ''),
name: 'execute',
hide: false,
@@ -403,8 +403,8 @@ export function mainListExecuteBtn(option:any) {
}
// 主列表-转办按钮
-export function mainListTransferBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListTransferBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.转办`).replace('ts.', ''),
name: 'transfer',
hide: false,
@@ -416,8 +416,8 @@ export function mainListTransferBtn(option:any) {
}
// 主列表-完成按钮
-export function mainListFinishBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListFinishBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.完成`).replace('ts.', ''),
name: 'finish',
hide: false,
@@ -429,8 +429,8 @@ export function mainListFinishBtn(option:any) {
}
// 主列表-作废按钮
-export function mainListCancelBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListCancelBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.作废`).replace('ts.', ''),
name: 'cancel',
hide: false,
@@ -442,8 +442,8 @@ export function mainListCancelBtn(option:any) {
}
// 主列表-验证按钮
-export function mainListValidateBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListValidateBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.验证`).replace('ts.', ''),
name: 'validate',
hide: false,
@@ -455,8 +455,8 @@ export function mainListValidateBtn(option:any) {
}
// 主列表-报修验证按钮
-export function mainListValidateReportBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListValidateReportBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.报修验证`).replace('ts.', ''),
name: 'validate_report',
hide: false,
@@ -468,8 +468,8 @@ export function mainListValidateReportBtn(option:any) {
}
// 主列表-维修验证按钮
-export function mainListValidateRepairBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListValidateRepairBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.维修验证`).replace('ts.', ''),
name: 'validate_repair',
hide: false,
@@ -480,8 +480,8 @@ export function mainListValidateRepairBtn(option:any) {
})
}
// 主列表-预览按钮
-export function viewBtn(option:any) {
- return __defaultBtnOption(option,{
+export function viewBtn(option: any) {
+ return __defaultBtnOption(option, {
label: '预览',
name: 'view',
hide: false,
@@ -493,8 +493,8 @@ export function viewBtn(option:any) {
}
// 主列表-审核按钮
-export function mainListAuditingBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListAuditingBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.审核`).replace('ts.', ''),
name: 'auditing',
hide: false,
@@ -506,8 +506,8 @@ export function mainListAuditingBtn(option:any) {
}
// 主列表-审核完成按钮
-export function mainListAuditedBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListAuditedBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.审核完成`).replace('ts.', ''),
name: 'audited',
hide: false,
@@ -519,8 +519,8 @@ export function mainListAuditedBtn(option:any) {
}
// 主列表-撤回按钮
-export function mainListRevokeBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListRevokeBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.撤回`).replace('ts.', ''),
name: 'revoke',
hide: false,
@@ -532,8 +532,8 @@ export function mainListRevokeBtn(option:any) {
}
// 主列表-绑定
-export function mainListBindBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListBindBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.绑定`).replace('ts.', ''),
name: 'bind',
hide: false,
@@ -544,8 +544,8 @@ export function mainListBindBtn(option:any) {
})
}
// 主列表-申请流程-关闭按钮
-export function mainListCloseBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListCloseBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.关闭`).replace('ts.', ''),
name: 'mainClose',
hide: false,
@@ -557,8 +557,8 @@ export function mainListCloseBtn(option:any) {
}
// 主列表-申请流程-重新添加按钮
-export function mainListReAddBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListReAddBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.重新添加`).replace('ts.', ''),
name: 'mainReAdd',
hide: false,
@@ -570,8 +570,8 @@ export function mainListReAddBtn(option:any) {
}
// 主列表-申请流程-提交审批按钮
-export function mainListSubmitBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListSubmitBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.提交审批`).replace('ts.', ''),
name: 'mainSubmit',
hide: false,
@@ -583,8 +583,8 @@ export function mainListSubmitBtn(option:any) {
}
// 主列表-申请流程-驳回按钮
-export function mainListTurnDownBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListTurnDownBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.驳回`).replace('ts.', ''),
name: 'mainTurnDown',
hide: false,
@@ -596,8 +596,8 @@ export function mainListTurnDownBtn(option:any) {
}
// 主列表-申请流程-审批通过按钮
-export function mainListApproveBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListApproveBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.审批通过`).replace('ts.', ''),
name: 'mainApprove',
hide: false,
@@ -609,8 +609,8 @@ export function mainListApproveBtn(option:any) {
}
// 主列表-申请流程-处理按钮
-export function mainListHandleBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListHandleBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.处理`).replace('ts.', ''),
name: 'mainHandle',
hide: false,
@@ -622,8 +622,8 @@ export function mainListHandleBtn(option:any) {
}
// 主列表-订单流程-发布按钮
-export function mainListOrderPubBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListOrderPubBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.发布`).replace('ts.', ''),
name: 'mainOrderPub',
hide: false,
@@ -634,21 +634,21 @@ export function mainListOrderPubBtn(option:any) {
})
}
// 主列表-订单流程-批量发布按钮
-export function mainListSelectionOrderPubBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListSelectionOrderPubBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.批量发布`).replace('ts.', ''),
name: 'mainOrderSelectionPub',
hide: false,
type: 'primary',
color: '',
- float:'left',
+ float: 'left',
link: false, // 文本展现按钮
hasPermi: ''
})
}
// 主列表-订单流程-关闭按钮
-export function mainListOrderCloBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListOrderCloBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.关闭`).replace('ts.', ''),
name: 'mainOrderClo',
hide: false,
@@ -660,8 +660,8 @@ export function mainListOrderCloBtn(option:any) {
}
// 主列表-订单流程-打开按钮
-export function mainListOrderOpeBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListOrderOpeBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.打开`).replace('ts.', ''),
name: 'mainOrderOpe',
hide: false,
@@ -673,8 +673,8 @@ export function mainListOrderOpeBtn(option:any) {
}
// 主列表-订单流程-下架按钮
-export function mainListOrderWitBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListOrderWitBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.下架`).replace('ts.', ''),
name: 'mainOrderWit',
hide: false,
@@ -686,8 +686,8 @@ export function mainListOrderWitBtn(option:any) {
}
// 主列表-计划流程-打开按钮
-export function mainListPlanOpeBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanOpeBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.打开`).replace('ts.', ''),
name: 'mainPlanOpe',
hide: false,
@@ -699,8 +699,8 @@ export function mainListPlanOpeBtn(option:any) {
}
// 主列表-计划流程-关闭按钮
-export function mainListPlanCloBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanCloBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.关闭`).replace('ts.', ''),
name: 'mainPlanClo',
hide: false,
@@ -712,20 +712,20 @@ export function mainListPlanCloBtn(option:any) {
}
// 主列表-上传质量报告
-export function mainListPlanUploadQualityReportBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanUploadQualityReportBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.上传质量报告`).replace('ts.', ''),
name: 'mainPlanUploadQualityReport',
hide: false,
type: 'primary',
- width:86,
+ width: 86,
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
-export function mainListPlanCheckQualityReportBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanCheckQualityReportBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.查看质检报告`).replace('ts.', ''),
name: 'mainPlanCheckQualityReport',
hide: false,
@@ -737,8 +737,8 @@ export function mainListPlanCheckQualityReportBtn(option:any) {
}
// 主列表-计划流程-提交审批按钮
-export function mainListPlanSubBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanSubBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.提交审批`).replace('ts.', ''),
name: 'mainPlanSub',
hide: false,
@@ -750,8 +750,8 @@ export function mainListPlanSubBtn(option:any) {
}
// 主列表-计划流程-驳回按钮
-export function mainListPlanTurBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanTurBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.驳回`).replace('ts.', ''),
name: 'mainPlanTur',
hide: false,
@@ -763,8 +763,8 @@ export function mainListPlanTurBtn(option:any) {
}
// 主列表-计划流程-重置按钮
-export function mainListPlanResBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanResBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.重置`).replace('ts.', ''),
name: 'mainPlanRes',
hide: false,
@@ -776,8 +776,8 @@ export function mainListPlanResBtn(option:any) {
}
// 主列表-计划流程-审批通过按钮
-export function mainListPlanAppBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanAppBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.审批通过`).replace('ts.', ''),
name: 'mainPlanApp',
hide: false,
@@ -789,8 +789,8 @@ export function mainListPlanAppBtn(option:any) {
}
// 主列表-计划流程-发布按钮
-export function mainListPlanPubBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanPubBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.发布`).replace('ts.', ''),
name: 'mainPlanPub',
hide: false,
@@ -802,8 +802,8 @@ export function mainListPlanPubBtn(option:any) {
}
// 主列表-计划流程-执行按钮
-export function mainListPlanComBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPlanComBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.执行`).replace('ts.', ''),
name: 'mainPlanCom',
hide: false,
@@ -815,8 +815,8 @@ export function mainListPlanComBtn(option:any) {
}
// 主列表-要货计划流程-修改按钮
-export function mainListPurchasePlanModBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPurchasePlanModBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.修改`).replace('ts.', ''),
name: 'mainPurPlanMod',
hide: false,
@@ -828,9 +828,9 @@ export function mainListPurchasePlanModBtn(option:any) {
}
// 主列表-要货计划流程-下架按钮
-export function mainListPurchasePlanWitBtn(option:any) {
- return __defaultBtnOption(option,{
- label: t(`ts.下架`).replace('ts.',''),
+export function mainListPurchasePlanWitBtn(option: any) {
+ return __defaultBtnOption(option, {
+ label: t(`ts.下架`).replace('ts.', ''),
name: 'mainPurPlanWit',
hide: false,
type: 'danger',
@@ -841,8 +841,8 @@ export function mainListPurchasePlanWitBtn(option:any) {
}
// 主列表-要货计划流程-不接受按钮
-export function mainListPurchasePlanRejBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPurchasePlanRejBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.不接受`).replace('ts.', ''),
name: 'mainPurPlanRej',
hide: false,
@@ -854,8 +854,8 @@ export function mainListPurchasePlanRejBtn(option:any) {
}
// 主列表-要货计划流程-接受按钮
-export function mainListPurchasePlanAccBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPurchasePlanAccBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.接受`).replace('ts.', ''),
name: 'mainPurPlanAcc',
hide: false,
@@ -867,8 +867,8 @@ export function mainListPurchasePlanAccBtn(option:any) {
}
// 主列表-要货计划流程-发布按钮
-export function mainListPurchasePlanPubBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPurchasePlanPubBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.发布`).replace('ts.', ''),
name: 'mainPurPlanPub',
hide: false,
@@ -880,8 +880,8 @@ export function mainListPurchasePlanPubBtn(option:any) {
}
// 主列表-要货计划流程-关闭按钮
-export function mainListPurchasePlanCloBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPurchasePlanCloBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.关闭`).replace('ts.', ''),
name: 'mainPurPlanClo',
hide: false,
@@ -893,8 +893,8 @@ export function mainListPurchasePlanCloBtn(option:any) {
}
// 主列表-要货计划流程-打开按钮
-export function mainListPurchasePlanOpeBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPurchasePlanOpeBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.打开`).replace('ts.', ''),
name: 'mainPurPlanOpe',
hide: false,
@@ -906,8 +906,8 @@ export function mainListPurchasePlanOpeBtn(option:any) {
}
// 主列表-任务流程-承接按钮
-export function mainListJobAccBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListJobAccBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.承接`).replace('ts.', ''),
name: 'mainJobAcc',
hide: false,
@@ -919,8 +919,8 @@ export function mainListJobAccBtn(option:any) {
}
// 主列表-任务流程-关闭按钮
-export function mainListJobCloBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListJobCloBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.关闭`).replace('ts.', ''),
name: 'mainJobClo',
hide: false,
@@ -932,8 +932,8 @@ export function mainListJobCloBtn(option:any) {
}
// 主列表-任务流程-放弃按钮
-export function mainListJobAbaBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListJobAbaBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.取消承接`).replace('ts.', ''),
name: 'mainJobAba',
hide: false,
@@ -945,8 +945,8 @@ export function mainListJobAbaBtn(option:any) {
}
// 主列表-任务流程-执行按钮
-export function mainListJobExeBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListJobExeBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.执行`).replace('ts.', ''),
name: 'mainJobExe',
hide: false,
@@ -958,8 +958,8 @@ export function mainListJobExeBtn(option:any) {
}
// 主列表-任务流程-执行按钮(与执行按钮一致 只是名改叫'收货'而已)
-export function mainListJobRecBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListJobRecBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.收货`).replace('ts.', ''),
name: 'mainJobExe',
hide: false,
@@ -970,8 +970,8 @@ export function mainListJobRecBtn(option:any) {
})
}
// 主列表-包装按钮
-export function mainListPackageBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPackageBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.包装`).replace('ts.', ''),
name: 'mainPackage',
hide: false,
@@ -982,8 +982,8 @@ export function mainListPackageBtn(option:any) {
})
}
// 主列表-打印
-export function mainListPointBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListPointBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.打印标签`).replace('ts.', ''),
name: 'point',
hide: false,
@@ -994,34 +994,34 @@ export function mainListPointBtn(option:any) {
})
}
// 主列表-批量打印
-export function mainLisSelectiontPointBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainLisSelectiontPointBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.批量打印`).replace('ts.', ''),
name: 'selection_point',
hide: false,
type: 'primary',
icon: 'ep:download',
color: '',
- float:'left',
+ float: 'left',
hasPermi: ''
})
}
// 主列表-批量删除
-export function mainLisSelectiontDeleteBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainLisSelectiontDeleteBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.批量删除`).replace('ts.', ''),
name: 'selection_delete',
hide: false,
type: 'primary',
icon: 'ep:download',
color: '',
- float:'left',
+ float: 'left',
hasPermi: ''
})
}
// 主列表-生成采购收货申请
-export function mainListGenerateApplicationBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListGenerateApplicationBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.生成采购收货申请`).replace('ts.', ''),
name: 'generateApplication',
hide: false,
@@ -1032,8 +1032,8 @@ export function mainListGenerateApplicationBtn(option:any) {
})
}
// 主列表-打印
-export function mainListDocumentPrintBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainListDocumentPrintBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.单据打印`).replace('ts.', ''),
name: 'documentPrint',
hide: false,
@@ -1044,8 +1044,8 @@ export function mainListDocumentPrintBtn(option:any) {
})
}
// 主列表-生成到货检验申请
-export function mainInspectRequestBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainInspectRequestBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.发送到货检验申请`).replace('ts.', ''),
name: 'inspectRequest',
hide: false,
@@ -1056,8 +1056,8 @@ export function mainInspectRequestBtn(option:any) {
})
}
// 主列表-生成采购上架申请
-export function mainPutawayRequestBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainPutawayRequestBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.生成采购上架申请`).replace('ts.', ''),
name: 'putawayRequest',
hide: false,
@@ -1068,8 +1068,8 @@ export function mainPutawayRequestBtn(option:any) {
})
}
// 主列表-生成盘点调整申请
-export function mainCountAdjustRequesttBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainCountAdjustRequesttBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.生成盘点调整申请`).replace('ts.', ''),
name: 'countAdjustRequest',
hide: false,
@@ -1080,8 +1080,8 @@ export function mainCountAdjustRequesttBtn(option:any) {
})
}
// 主列表-重盘
-export function mainReCountBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainReCountBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.重盘`).replace('ts.', ''),
name: 'mainReCount',
hide: false,
@@ -1092,8 +1092,8 @@ export function mainReCountBtn(option:any) {
})
}
// 主列表-监盘
-export function mainSuperviseCountBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainSuperviseCountBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.监盘`).replace('ts.', ''),
name: 'mainSuperviseCount',
hide: false,
@@ -1104,8 +1104,8 @@ export function mainSuperviseCountBtn(option:any) {
})
}
// 主列表-解冻
-export function mainThawRequesttBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainThawRequesttBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.解冻`).replace('ts.', ''),
name: 'mainThaw',
hide: false,
@@ -1116,8 +1116,8 @@ export function mainThawRequesttBtn(option:any) {
})
}
// 主列表-更新检验记录
-export function mainUpdataRecodeBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainUpdataRecodeBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.更新检验记录`).replace('ts.', ''),
name: 'updataRecode',
hide: false,
@@ -1128,8 +1128,8 @@ export function mainUpdataRecodeBtn(option:any) {
})
}
// 主列表-使用决策
-export function mainApplyDecisionBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainApplyDecisionBtn(option: any) {
+ return __defaultBtnOption(option, {
label: t(`ts.使用决策`).replace('ts.', ''),
name: 'applyDecision',
hide: false,
@@ -1140,8 +1140,8 @@ export function mainApplyDecisionBtn(option:any) {
})
}
// 主列表-复制
-export function mainCopyBtn(option:any) {
- return __defaultBtnOption(option,{
+export function mainCopyBtn(option: any) {
+ return __defaultBtnOption(option, {
label: '复制',
name: 'copy',
hide: false,
@@ -1152,8 +1152,8 @@ export function mainCopyBtn(option:any) {
})
}
// 主列表-部件
-export function componentBtn(option:any) {
- return __defaultBtnOption(option,{
+export function componentBtn(option: any) {
+ return __defaultBtnOption(option, {
label: '部件',
name: 'component',
hide: false,
@@ -1164,8 +1164,8 @@ export function componentBtn(option:any) {
})
}
// 主列表-备件
-export function sparePartBtn(option:any) {
- return __defaultBtnOption(option,{
+export function sparePartBtn(option: any) {
+ return __defaultBtnOption(option, {
label: '备件',
name: 'sparePart',
hide: false,
@@ -1176,8 +1176,8 @@ export function sparePartBtn(option:any) {
})
}
// 主列表-生成维修经验
-export function repairExperienceBtn(option:any) {
- return __defaultBtnOption(option,{
+export function repairExperienceBtn(option: any) {
+ return __defaultBtnOption(option, {
label: '生成维修经验',
name: 'repairExperience',
hide: false,
@@ -1188,8 +1188,8 @@ export function repairExperienceBtn(option:any) {
})
}
// 主列表-生成保养经验
-export function maintainExperienceBtn(option:any) {
- return __defaultBtnOption(option,{
+export function maintainExperienceBtn(option: any) {
+ return __defaultBtnOption(option, {
label: '生成保养经验',
name: 'maintainExperience',
hide: false,
@@ -1199,26 +1199,97 @@ export function maintainExperienceBtn(option:any) {
hasPermi: ''
})
}
+// 主列表-撤销
+export function backoutBtn(option: any) {
+ return __defaultBtnOption(option, {
+ label: '撤销',
+ name: 'backout',
+ hide: false,
+ type: 'danger',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
+// 主列表-盘点导出
+export function mainExport(option: any) {
+ return __defaultBtnOption(option, {
+ label: '导出',
+ name: 'mainExport',
+ hide: false,
+ type: 'primary',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
+// 主列表-盘点导入
+export function mainAdjustImport(option: any) {
+ return __defaultBtnOption(option, {
+ label: '导入',
+ name: 'mainAdjustImport',
+ hide: false,
+ type: 'primary',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
+// 主列表-备件
+export function replaceLocation(option: any) {
+ return __defaultBtnOption(option, {
+ label: '更换库位',
+ name: 'replaceLocation',
+ hide: false,
+ type: 'primary',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
+// 主列表-撤销
+export function approveBtn(option: any) {
+ return __defaultBtnOption(option, {
+ label: '审批',
+ name: 'approve',
+ hide: false,
+ type: 'danger',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
+// 主列表-出库
+export function outBtn(option: any) {
+ return __defaultBtnOption(option, {
+ label: '出库',
+ name: 'out',
+ hide: false,
+ type: 'danger',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
// 默认按钮规则
-function __defaultBtnOption(option:any,specific:any){
+function __defaultBtnOption(option: any, specific: any) {
return {
- type:option && option.type ? option.type : specific.type,
- disabled:option && option.disabled ? option.disabled : specific.disabled,
- plain:option && option.plain ? option.plain : specific.plain,
- icon:option && option.icon ? option.icon : specific.icon,
- label:option && option.label ? option.label : specific.label,
- name:option && option.name ? option.name : specific.name,
- size:option && option.size ? option.size : specific.size,
- float:option && option.float ? option.float : (specific.float || null),
- url:option && option.url ? option.url : (specific.url || null),
- background:option && option.background ? option.background : (specific.background || null),
- class:option && option.class ? option.class : specific.class,
- color:option && option.color ? option.color : specific.color,
- hide:option && option.hide ? option.hide : specific.hide,
- link:option && option.link ? option.link : specific.link,
- hasPermi:option && option.hasPermi ? option.hasPermi : specific.hasPermi,
- width:option && option.width ? option.width : specific.width,
- ...option
+ type: option && option.type ? option.type : specific.type,
+ disabled: option && option.disabled ? option.disabled : specific.disabled,
+ plain: option && option.plain ? option.plain : specific.plain,
+ icon: option && option.icon ? option.icon : specific.icon,
+ label: option && option.label ? option.label : specific.label,
+ name: option && option.name ? option.name : specific.name,
+ size: option && option.size ? option.size : specific.size,
+ float: option && option.float ? option.float : specific.float || null,
+ url: option && option.url ? option.url : specific.url || null,
+ background: option && option.background ? option.background : specific.background || null,
+ class: option && option.class ? option.class : specific.class,
+ color: option && option.color ? option.color : specific.color,
+ hide: option && option.hide ? option.hide : specific.hide,
+ link: option && option.link ? option.link : specific.link,
+ hasPermi: option && option.hasPermi ? option.hasPermi : specific.hasPermi,
+ width: option && option.width ? option.width : specific.width,
+ ...option
}
}
-
diff --git a/src/views/eam/SparePartsOutLocationRecord/index.vue b/src/views/eam/SparePartsOutLocationRecord/index.vue
new file mode 100644
index 000000000..35ed57fbc
--- /dev/null
+++ b/src/views/eam/SparePartsOutLocationRecord/index.vue
@@ -0,0 +1,374 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/eam/applicationRecord/index.vue b/src/views/eam/applicationRecord/index.vue
index a661723ef..236597418 100644
--- a/src/views/eam/applicationRecord/index.vue
+++ b/src/views/eam/applicationRecord/index.vue
@@ -1,51 +1,83 @@
-
+
-
+
-
-
+ }"
+ v-model:pageSize="tableObject.pageSize"
+ v-model:currentPage="tableObject.currentPage"
+ v-model:sort="tableObject.sort"
+ >
+
{{ row.number }}
-
+
-
+ :apiCreate="ApplicationRecordMainApi.createApplicationRecordMain"
+ :isBusiness="true"
+ @handleAddTable="handleAddTable"
+ @handleDeleteTable="handleDeleteTable"
+ @searchTableSuccess="searchTableSuccess"
+ @submitForm="submitForm"
+ />
-
+ :detailButtonIsShow="true"
+ />
-
+
diff --git a/src/views/eam/countadjustPlan/countadjustPlan.data.ts b/src/views/eam/countadjustPlan/countadjustPlan.data.ts
index c1e5d3c95..4c796b88c 100644
--- a/src/views/eam/countadjustPlan/countadjustPlan.data.ts
+++ b/src/views/eam/countadjustPlan/countadjustPlan.data.ts
@@ -4,75 +4,74 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
export const CountadjustPlanRules = reactive({
number: [required],
name: [required],
- classification: [
- { required: true, message: '请选择盘点类型', trigger: 'blur' }
- ],
-
+ classification: [{ required: true, message: '请选择盘点类型', trigger: 'blur' }]
})
-export const CountadjustPlan = useCrudSchemas(reactive([
- {
- label: '计划编号',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- isForm: false,
- },
- {
- label: '名称',
- field: 'name',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '盘点类型',
- field: 'classification',
- sort: 'custom',
- dictType: DICT_TYPE.CLASSIFICATION,
- dictClass: 'string',
- isSearch: false,
- isTable: true,
- isForm: true,
- table: {
- width: 150
+export const CountadjustPlan = useCrudSchemas(
+ reactive([
+ {
+ label: '计划编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false
},
- tableForm: {
- type: 'Select',
- disabled: false
- }
- },
- {
- label: '是否账内库',
- field: 'isInAccount',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isSearch: false,
- isTable: true,
- sort: 'custom',
- table: {
- width: 140
+ {
+ label: '名称',
+ field: 'name',
+ sort: 'custom',
+ isSearch: true
},
- tableForm: {
- type: 'Select',
- inactiveValue: 'FALSE',
- disabled: true
+ {
+ label: '盘点类型',
+ field: 'classification',
+ sort: 'custom',
+ dictType: DICT_TYPE.PART_CLASS,
+ dictClass: 'string',
+ isSearch: false,
+ isTable: true,
+ isForm: true,
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'Select',
+ disabled: false
+ }
},
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
+ {
+ label: '是否账内库',
+ field: 'isInAccount',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isSearch: false,
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 140
+ },
+ tableForm: {
+ type: 'Select',
inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ disabled: true
+ },
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ }
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
}
}
- },
- {
- label: '操作',
- field: 'action',
- isForm: false,
- table: {
- width: 150,
- fixed: 'right'
- }
- }
-]))
+ ])
+)
diff --git a/src/views/eam/countadjustWork/index.vue b/src/views/eam/countadjustWork/index.vue
index 65c87d3bc..43cda52ff 100644
--- a/src/views/eam/countadjustWork/index.vue
+++ b/src/views/eam/countadjustWork/index.vue
@@ -1,306 +1,360 @@
-
+
-
+
-
-
+ }"
+ v-model:pageSize="tableObject.pageSize"
+ v-model:currentPage="tableObject.currentPage"
+ v-model:sort="tableObject.sort"
+ >
+
{{ row.number }}
-
+
-
+
-
+ :detailButtonIsShow="true"
+ />
-
+
diff --git a/src/views/eam/item/item.data.ts b/src/views/eam/item/item.data.ts
index 59c5a6f36..09f5da46a 100644
--- a/src/views/eam/item/item.data.ts
+++ b/src/views/eam/item/item.data.ts
@@ -133,11 +133,6 @@ export const Item = useCrudSchemas(
type: 'Select'
}
},
- // {
- // label: '单价',
- // field: 'singlePrice',
- // sort: 'custom',
- // },
{
label: '重采购点',
field: 'reprocurement',
diff --git a/src/views/eam/itemAccounts/index.vue b/src/views/eam/itemAccounts/index.vue
index c361e4578..2369ba9cb 100644
--- a/src/views/eam/itemAccounts/index.vue
+++ b/src/views/eam/itemAccounts/index.vue
@@ -120,6 +120,30 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
+ if (formField == 'locationNumber') {
+ setV['locationNumber'] = val[0].number
+ setV['areaNumber'] = val[0].areaNumber
+ }
+ if (formField == 'itemNumber') {
+ setV['itemNumber'] = val[0].number
+ setV['name'] = val[0].name
+ setV['brand'] = val[0].brand
+ setV['specifications'] = val[0].specifications
+ setV['isOverall'] = val[0].isOverall
+ setV['subject'] = val[0].subject
+ setV['subjectCode'] = val[0].subjectCode
+ setV['type'] = val[0].type
+ setV['region'] = val[0].region
+ setV['classification'] = val[0].classification
+ setV['uom'] = val[0].uom
+ setV['manufacturer'] = val[0].manufacturer
+ setV['minInventory'] = val[0].minInventory
+ setV['maxInventory'] = val[0].maxInventory
+ setV['replacementCycle'] = val[0].replacementCycle
+ setV['storageLocation'] = val[0].storageLocation
+ setV['remark'] = val[0].remark
+ setV['available'] = val[0].available
+ }
formRef.setValues(setV)
})
}
@@ -176,18 +200,23 @@ const buttonBaseClick = (val, item) => {
}
}
-// 列表-操作按钮
-// const butttondata = [
-// defaultButtons.mainListEditBtn({ hasPermi: 'item:itemAccounts:update' }), // 编辑
-// defaultButtons.replaceLocation({ hasPermi: 'item:itemAccounts:replaceLocation' }), //更换库位
-// defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemAccounts:delete' }) // 删除
-// ]
+// 根据状态返回该按钮是否显示
+// const isShowMainButton = (row) => {
+// if (row.qty === 0) {
+// return false
+// } else {
+// return true
+// }
+// }
// 列表-操作按钮
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({ hasPermi: 'item:itemAccounts:update' }), // 编辑
- defaultButtons.replaceLocation({ hasPermi: 'item:itemAccounts:replaceLocation' }), //更换库位
+ // defaultButtons.replaceLocation({
+ // hide: isShowMainButton(row),
+ // hasPermi: 'item:itemAccounts:replaceLocation'
+ // }), //更换库位
defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemAccounts:delete' }), // 删除
defaultButtons.viewBtn({ hide: !(row.filePathList != null && row.filePathList.length != 0) })
//defaultButtons.backoutBtn({hasPermi:'eam:device-repair-request:cancel', hide: !(row.result == 'PENDING' && row.declarer == userStore.getUser.id )}), // 撤销
@@ -207,9 +236,11 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'delete') {
// 删除
handleDelete(row.id)
- } else if (val == 'replaceLocation') {
- openItem(row.locationNumber, row.id)
- } else if (val == 'view') {
+ }
+ // else if (val == 'replaceLocation') {
+ // openItem(row.locationNumber, row.id)
+ // }
+ else if (val == 'view') {
// 图片预览
openForm('view', row)
}
diff --git a/src/views/eam/itemAccounts/itemAccounts.data.ts b/src/views/eam/itemAccounts/itemAccounts.data.ts
index ba8aa6b17..630a73339 100644
--- a/src/views/eam/itemAccounts/itemAccounts.data.ts
+++ b/src/views/eam/itemAccounts/itemAccounts.data.ts
@@ -1,11 +1,18 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
+import * as ItemApi from '@/api/eam/item'
+import { Item } from '../item/item.data'
+
+import * as LocationApi from '@/api/eam/location'
+import { Location } from '../location/location.data'
+
// 表单校验
export const ItemAccountsRules = reactive({
itemNumber: [required],
- areaNumber: [required],
- concurrencyStamp: [required]
+ locationNumber: [required],
+ singlePrice: [required],
+ qty: [required]
})
export const ItemAccounts = useCrudSchemas(
@@ -15,43 +22,72 @@ export const ItemAccounts = useCrudSchemas(
field: 'itemNumber',
sort: 'custom',
isSearch: true,
- table: {
- width: 180,
- fixed: 'left'
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'number', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+ searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
+ searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
}
},
-
{
- label: '库位编号',
- field: 'locationNumber',
+ label: '备件名称',
+ field: 'name',
sort: 'custom',
table: {
width: 110
- }
+ },
+ isSearch: false
},
{
- label: '库区编号',
- field: 'areaNumber',
+ label: '库位编号',
+ field: 'locationNumber',
sort: 'custom',
- table: {
- width: 110
+ isSearch: true,
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择库区编号', // 输入框占位文本
+ searchField: 'number', // 查询弹窗赋值字段
+ searchTitle: '库区信息', // 查询弹窗标题
+ searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
+ searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
}
},
{
- label: '备件名称',
- field: 'name',
+ label: '库区编号',
+ field: 'areaNumber',
sort: 'custom',
+ required: true,
table: {
width: 110
- },
- isSearch: false
+ }
},
{
- label: '规格',
- field: 'specifications',
+ label: '单价',
+ field: 'singlePrice',
sort: 'custom'
},
-
{
label: '库存数量',
field: 'qty',
@@ -60,6 +96,11 @@ export const ItemAccounts = useCrudSchemas(
width: 110
}
},
+ {
+ label: '规格',
+ field: 'specifications',
+ sort: 'custom'
+ },
{
label: '是否账内库',
field: 'isInAccount',
@@ -178,11 +219,7 @@ export const ItemAccounts = useCrudSchemas(
type: 'Select'
}
},
- // {
- // label: '单价',
- // field: 'singlePrice',
- // sort: 'custom',
- // },
+
{
label: '重采购点',
field: 'reprocurement',
@@ -308,7 +345,7 @@ export const ItemAccounts = useCrudSchemas(
field: 'action',
isForm: false,
table: {
- width: 150,
+ width: 180,
fixed: 'right'
}
}
diff --git a/src/views/eam/location/location.data.ts b/src/views/eam/location/location.data.ts
index 319422c2b..c03e4529f 100644
--- a/src/views/eam/location/location.data.ts
+++ b/src/views/eam/location/location.data.ts
@@ -63,7 +63,7 @@ export const Location = useCrudSchemas(
{
label: '类型',
field: 'type',
- dictType: DICT_TYPE.LOCATION_AREA_TYPE,
+ dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
sort: 'custom',
isSearch: false,
diff --git a/src/views/eam/locationArea/locationArea.data.ts b/src/views/eam/locationArea/locationArea.data.ts
index 498dfe033..ecc0dec7f 100644
--- a/src/views/eam/locationArea/locationArea.data.ts
+++ b/src/views/eam/locationArea/locationArea.data.ts
@@ -4,97 +4,74 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验
export const LocationAreaRules = reactive({
number: [
- { required: true, message: '请输入库区编号', trigger: 'blur' },
+ { required: true, message: '请输入库区编号', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
name: [
- { required: true, message: '请输入库区名称', trigger: 'blur' },
+ { required: true, message: '请输入库区名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
- ],
+ ]
})
-export const LocationArea = useCrudSchemas(reactive([
- {
- label: '库区编号',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- isForm: true,
- table: {
- width: 180,
- fixed: 'left'
+export const LocationArea = useCrudSchemas(
+ reactive([
+ {
+ label: '库区编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: true,
+ table: {
+ width: 180,
+ fixed: 'left'
+ }
+ },
+ {
+ label: '库区名称',
+ field: 'name',
+ sort: 'custom',
+ isSearch: true
},
- },
- {
- label: '库区名称',
- field: 'name',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '类型',
- field: 'type',
- dictType: DICT_TYPE.LOCATION_AREA_TYPE,
- dictClass: 'string',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'Select'
+ {
+ label: '类型',
+ field: 'type',
+ dictType: DICT_TYPE.AREA_TYPE,
+ dictClass: 'string',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'Select'
+ }
},
- },
- // {
- // label: '是否可用',
- // field: 'available',
- // dictType: DICT_TYPE.TRUE_FALSE,
- // dictClass: 'string',
- // isSearch: false,
- // isTable: true,
- // sort: 'custom',
- // table: {
- // width: 150
- // },
- // tableForm: {
- // type: 'Select',
- // inactiveValue: 'FALSE',
- // disabled: true
- // },
- // form: {
- // component: 'Switch',
- // value: 'TRUE',
- // componentProps: {
- // inactiveValue: 'FALSE',
- // activeValue: 'TRUE'
- // }
- // }
- // },
- {
- label: '创建时间',
- field: 'createTime',
- sort: 'custom',
- formatter: dateFormatter,
- isForm: false,
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isForm: false,
table: {
width: 170
- },
- },
+ }
+ },
- {
- label: '描述',
- field: 'description',
- sort: 'custom',
- table: {
- width: 150
+ {
+ label: '描述',
+ field: 'description',
+ sort: 'custom',
+ table: {
+ width: 150
+ }
},
- },
- {
- label: '操作',
- field: 'action',
- isForm: false,
- table: {
- width: 150,
- fixed: 'right'
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
}
- }
-]))
+ ])
+)
diff --git a/src/views/eam/maintenance/maintenance.data.ts b/src/views/eam/maintenance/maintenance.data.ts
index 706334af0..49dc8b628 100644
--- a/src/views/eam/maintenance/maintenance.data.ts
+++ b/src/views/eam/maintenance/maintenance.data.ts
@@ -1,11 +1,11 @@
-import type {CrudSchema} from '@/hooks/web/useCrudSchemas'
-import {dateFormatter} from '@/utils/formatTime'
-import { EquipmentAccounts } from "@/views/eam/equipmentAccounts/equipmentAccounts.data";
-import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
-import { BasicMaintenanceOption } from "@/views/eam/basicMaintenanceOption/basicMaintenanceOption.data";
-import * as MaintenanceOptionApi from "@/api/eam/basicMaintenanceOption";
-import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
-import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+import { EquipmentAccounts } from '@/views/eam/equipmentAccounts/equipmentAccounts.data'
+import * as EquipmentItemApi from '@/api/eam/equipmentAccounts'
+import { BasicMaintenanceOption } from '@/views/eam/basicMaintenanceOption/basicMaintenanceOption.data'
+import * as MaintenanceOptionApi from '@/api/eam/basicMaintenanceOption'
+import { BasicEamWorkshop } from '@/views/eam/basicEamWorkshop/basicEamWorkshop.data'
+import * as WorkshopApi from '@/api/eam/basicEamWorkshop'
// 表单校验
export const MaintenanceRules = reactive({
@@ -16,509 +16,518 @@ export const MaintenanceRules = reactive({
cycle: [required],
startTime: [required],
endTime: [required],
- workshopCode: [required],
+ workshopCode: [required]
})
-export const Maintenance = useCrudSchemas(reactive([
- {
- label: 'id',
- field: 'id',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '计划编号',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- isForm: false,
- isDetail:true,
- },
- {
- label: '计划名称',
- field: 'name',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '设备类别',
- field: 'type',
- dictType: DICT_TYPE.DEVICE_TYPE,
- dictClass: 'string',
- sort: 'custom',
- isSearch: false,
- },
- {
- label: '设备工装编号',
- field: 'equipmentCode',
- sort: 'custom',
- isSearch: true,
- isForm: true,
- form: {
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchTitle: '设备信息', // 查询弹窗标题
- searchListPlaceholder: '请选择 设备编号', // 输入框占位文本
- searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
- searchField: 'code', // 查询弹窗赋值字段
- searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
- multiple:true,
- searchCondition: [{
- key: 'status',
- value: 'NORMAL',
- action: '==',
- isSearch: true,
- isMainValue: false
- }]
- }
- }
- },
- {
- label: '方案编号',
- field: 'optionCode',
- sort: 'custom',
- isSearch: true,
- isForm: true,
- form: {
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchTitle: '保养方案信息', // 查询弹窗标题
- searchListPlaceholder: '请选择保养方案', // 输入框占位文本
- searchAllSchemas: BasicMaintenanceOption.allSchemas, // 查询弹窗所需类
- searchField: 'code', // 查询弹窗赋值字段
- searchPage: MaintenanceOptionApi.getBasicMaintenanceOptionPage, // 查询弹窗所需分页方法
- multiple:true,
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- action: '==',
- isSearch: true,
- isMainValue: false
- }]
- }
- }
- },
- {
- label: '周期',
- field: 'cycle',
- dictType: DICT_TYPE.MAINTENANCE_CYCLE,
- dictClass: 'string',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '计划开始时间',
- field: 'startTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
+export const Maintenance = useCrudSchemas(
+ reactive([
+ {
+ label: 'id',
+ field: 'id',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
- }
+ {
+ label: '计划编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false,
+ isDetail: true
+ },
+ {
+ label: '计划名称1',
+ field: 'name',
+ sort: 'custom',
+ isSearch: true
},
- },
- {
- label: '计划结束时间',
- field: 'endTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '设备类别',
+ field: 'type',
+ dictType: DICT_TYPE.DEVICE_TYPE,
+ dictClass: 'string',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '设备工装编号',
+ field: 'equipmentCode',
+ sort: 'custom',
+ isSearch: true,
+ isForm: true,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '设备信息', // 查询弹窗标题
+ searchListPlaceholder: '请选择 设备编号', // 输入框占位文本
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ multiple: true,
+ searchCondition: [
+ {
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '方案编号',
+ field: 'optionCode',
+ sort: 'custom',
+ isSearch: true,
+ isForm: true,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '保养方案信息', // 查询弹窗标题
+ searchListPlaceholder: '请选择保养方案', // 输入框占位文本
+ searchAllSchemas: BasicMaintenanceOption.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: MaintenanceOptionApi.getBasicMaintenanceOptionPage, // 查询弹窗所需分页方法
+ multiple: true,
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
}
},
- },
- {
- label: '状态',
- field: 'status',
- sort: 'custom',
- isSearch: true,
- dictType: DICT_TYPE.EAM_PLAN_STATUS,
- dictClass: 'string',
- },
- {
- label: '审核人',
- field: 'approver',
- sort: 'custom',
- isSearch: false,
- isForm: false,
- },
- {
- label: '审核内容',
- field: 'approveContent',
- sort: 'custom',
- isSearch: false,
- isForm: false,
- },
- {
- label: '审核时间',
- field: 'approveTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isForm: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '周期',
+ field: 'cycle',
+ dictType: DICT_TYPE.MAINTENANCE_CYCLE,
+ dictClass: 'string',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '计划开始时间',
+ field: 'startTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '计划结束时间',
+ field: 'endTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
}
},
- },
- {
- label: '自动审核',
- field: 'autoExamine',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '自动通过',
- field: 'autoAgree',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '直接生成记录',
- field: 'directCreateRecord',
- sort: 'custom',
- isSearch: false,
- },
- {
- label: '所属厂区编号',
- field: 'factoryAreaCode',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '车间代码',
- field: 'workshopCode',
- sort: 'custom',
- isSearch: false,
- required: true,
- form: {
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchListPlaceholder: '车间', // 输入框占位文本
- searchField: 'code', // 查询弹窗赋值字段
- searchTitle: '车间信息', // 查询弹窗标题
- searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
- searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- isMainValue: false
- }]
+ {
+ label: '状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: true,
+ dictType: DICT_TYPE.EAM_PLAN_STATUS,
+ dictClass: 'string'
+ },
+ {
+ label: '审核人',
+ field: 'approver',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false
+ },
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false
+ },
+ {
+ label: '审核时间',
+ field: 'approveTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isForm: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
}
},
- },
- {
- label: '创建时间',
- field: 'createTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '自动审核',
+ field: 'autoExamine',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '自动通过',
+ field: 'autoAgree',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '直接生成记录',
+ field: 'directCreateRecord',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '所属厂区编号',
+ field: 'factoryAreaCode',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '车间代码',
+ field: 'workshopCode',
+ sort: 'custom',
+ isSearch: false,
+ required: true,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '车间', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '车间信息', // 查询弹窗标题
+ searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
+ searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
}
},
- isForm: false,
- },
- {
- label: '部门id',
- field: 'departmentCode',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '备注',
- field: 'remark',
- sort: 'custom',
- isSearch: false,
- },
- {
- label: '地点ID',
- field: 'siteId',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '是否可用',
- field: 'available',
- sort: 'custom',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- isTable: true,
- isDetail: false,
- isSearch: true,
- isTableForm: false,
- isForm: false,
- },
- {
- label: '删除时间',
- field: 'deletionTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false
+ },
+ {
+ label: '部门id',
+ field: 'departmentCode',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '地点ID',
+ field: 'siteId',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '是否可用',
+ field: 'available',
+ sort: 'custom',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string', // 默认都是字符串类型其他暂不考虑
+ isTable: true,
+ isDetail: false,
+ isSearch: true,
+ isTableForm: false,
+ isForm: false
+ },
+ {
+ label: '删除时间',
+ field: 'deletionTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '删除人id',
+ field: 'deleterId',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '并发乐观锁',
+ field: 'concurrencyStamp',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
}
},
- },
- {
- label: '删除人id',
- field: 'deleterId',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '并发乐观锁',
- field: 'concurrencyStamp',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- form: {
- component: 'InputNumber',
- value: 0
- },
- },
- {
- label: '操作',
- field: 'action',
- isForm: false,
- table: {
- width: 150,
- fixed: 'right'
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
}
- }
-]))
-
+ ])
+)
// 表单校验
export const RelationMaintenancePlanItemRules = reactive({
planNumber: [required],
itemCode: [required],
- itemName: [required],
+ itemName: [required]
})
-export const RelationMaintenancePlanItem = useCrudSchemas(reactive([
- {
- label: 'id',
- field: 'id',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '计划编号',
- field: 'planNumber',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '项编号',
- field: 'itemCode',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '保养名称',
- field: 'itemName',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '是否必选',
- field: 'isSelectd',
- sort: 'custom',
- isSearch: true,
- dictType: DICT_TYPE.FALSE_OR_TRUE,
- dictClass: 'string',
- },
- {
- label: '创建时间',
- field: 'createTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
+export const RelationMaintenancePlanItem = useCrudSchemas(
+ reactive([
+ {
+ label: 'id',
+ field: 'id',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '计划编号',
+ field: 'planNumber',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '项编号',
+ field: 'itemCode',
+ sort: 'custom',
+ isSearch: true
},
- isForm: false,
- },
- {
- label: '部门id',
- field: 'departmentCode',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '备注',
- field: 'remark',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '地点ID',
- field: 'siteId',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '是否可用默认TRUE',
- field: 'available',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '删除时间',
- field: 'deletionTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '保养名称',
+ field: 'itemName',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '是否必选',
+ field: 'isSelectd',
+ sort: 'custom',
+ isSearch: true,
+ dictType: DICT_TYPE.FALSE_OR_TRUE,
+ dictClass: 'string'
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false
+ },
+ {
+ label: '部门id',
+ field: 'departmentCode',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '地点ID',
+ field: 'siteId',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '是否可用默认TRUE',
+ field: 'available',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '删除时间',
+ field: 'deletionTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '删除人id',
+ field: 'deleterId',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false
+ },
+ {
+ label: '并发乐观锁',
+ field: 'concurrencyStamp',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
}
},
- },
- {
- label: '删除人id',
- field: 'deleterId',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- },
- {
- label: '并发乐观锁',
- field: 'concurrencyStamp',
- sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- form: {
- component: 'InputNumber',
- value: 0
- },
- },
- {
- label: '操作',
- field: 'action',
- isSearch: false,
- isTable: false,
- isForm: false,
- isDetail:false,
- table: {
- width: 150,
- fixed: 'right'
+ {
+ label: '操作',
+ field: 'action',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
}
- }
-]))
+ ])
+)
diff --git a/src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts b/src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts
new file mode 100644
index 000000000..287a1e917
--- /dev/null
+++ b/src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts
@@ -0,0 +1,365 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+
+import * as ItemAccountsApi from '@/api/eam/itemAccounts'
+import { ItemAccounts } from '@/views/eam/itemAccounts/itemAccounts.data'
+
+import { EquipmentAccounts } from '@/views/eam/equipmentAccounts/equipmentAccounts.data'
+import * as EquipmentItemApi from '@/api/eam/equipmentAccounts'
+
+import { dateFormatter } from '@/utils/formatTime'
+
+export const SparePartsApplyMain = useCrudSchemas(
+ reactive([
+ {
+ label: '申请编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false
+ },
+ {
+ label: '出库类型',
+ field: 'outType',
+ dictType: DICT_TYPE.EAM_OUT_TYPE,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'Select'
+ }
+ },
+ {
+ label: '关联工单',
+ field: 'workNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '设备信息', // 查询弹窗标题
+ searchListPlaceholder: '请选择 设备编号', // 输入框占位文本
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ multiple: true,
+ searchCondition: [
+ {
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
+ },
+
+ {
+ label: '出库主题',
+ field: 'theme',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '描述',
+ field: 'description',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '申领备件总价',
+ field: 'sumVal',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '流程状态',
+ field: 'status',
+ sort: 'custom',
+ dictType: DICT_TYPE.SPAREPARTS_APPLY_STATUS_ENUM,
+ dictClass: 'string', // 默认都是字符串类型其他暂不考虑
+ isSearch: true,
+ isTable: true,
+ isForm: false,
+ form: {
+ component: 'Select'
+ }
+ },
+ {
+ label: '申请人',
+ field: 'applyer',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '审核人',
+ field: 'approver',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ }
+ },
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: true,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '审核时间',
+ field: 'approveTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ }
+ },
+ {
+ label: '自动审核',
+ field: 'autoExamine',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '自动通过',
+ field: 'autoAgree',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '直接生成记录',
+ field: 'directCreateRecord',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false
+ },
+ {
+ label: '操作11',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 180,
+ fixed: 'right'
+ }
+ }
+ ])
+)
+
+//表单校验
+export const SparePartsApplyMainRules = reactive({
+ outType: [{ required: true, message: '请输入出库类型', trigger: 'blur' }],
+ theme: [{ required: true, message: '请输入出库主题', trigger: 'blur' }]
+})
+/**
+ * @returns {Array} 备件申请子表
+ */
+export const SparePartsApplyDetail = useCrudSchemas(
+ reactive([
+ {
+ label: '库位编号',
+ field: 'locationCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择库位编号', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '库位信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'itemNumber', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ {
+ label: '库区编号',
+ field: 'areaCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '备件编号',
+ field: 'sparePartsCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '库存数量',
+ field: 'currentQty',
+ sort: 'custom',
+ isSearch: false,
+ tableForm: {
+ disabled: true
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ isDetail: false,
+ isTable: false
+ },
+ {
+ label: '申领数量',
+ field: 'applyQty',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ },
+ isTableForm: false
+ }
+ ])
+)
+
+//表单校验
+export const SparePartsApplyDetailRules = reactive({
+ applyQty: [{ required: true, message: '请输入标包数量', trigger: 'blur' }]
+})
+
+// 审核完成字段
+export const SparePartsApplyExamine = useCrudSchemas(
+ reactive([
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'Input',
+ componentProps: {
+ type: 'textarea'
+ }
+ }
+ }
+ ])
+)
diff --git a/src/views/eam/sparePartsApplyMain/index.vue b/src/views/eam/sparePartsApplyMain/index.vue
new file mode 100644
index 000000000..ddb76807f
--- /dev/null
+++ b/src/views/eam/sparePartsApplyMain/index.vue
@@ -0,0 +1,511 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/eam/sparePartsInLocationRecord/index.vue b/src/views/eam/sparePartsInLocationRecord/index.vue
new file mode 100644
index 000000000..86aefd08e
--- /dev/null
+++ b/src/views/eam/sparePartsInLocationRecord/index.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts b/src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts
new file mode 100644
index 000000000..c0d7b7b30
--- /dev/null
+++ b/src/views/eam/sparePartsInLocationRecord/sparePartsInLocationRecordMain.data.ts
@@ -0,0 +1,258 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+import * as ItemAccountsApi from '@/api/eam/itemAccounts'
+import { ItemAccounts } from '@/views/eam/itemAccounts/itemAccounts.data'
+
+
+// 表单校验
+export const SparePartsInLocationRecordMainRules = reactive({
+ number: [required],
+ theme: [required],
+ type: [required],
+})
+// 备件入库主表
+export const SparePartsInLocationRecordMain = useCrudSchemas(reactive([
+ {
+ label: 'id',
+ field: 'id',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ },
+ {
+ label: '编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false,
+ },
+ {
+ label: '入库主题',
+ field: 'theme',
+ sort: 'custom',
+ isSearch: true,
+ },{
+ label: '入库类型',
+ field: 'type',
+ sort: 'custom',
+ dictType: DICT_TYPE.PUT_IN_TYPE,
+ dictClass: 'string',
+
+ },
+ {
+ label: '流程状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: false,
+ isForm:false,
+
+ dictType: DICT_TYPE.SPAREPARTS_APPLY_STATUS_ENUM,
+ dictClass: 'string',
+
+ },
+ {
+ label: '入库申请人',
+ field: 'applyer',
+ sort: 'custom',
+ isSearch: false,
+ },
+ {
+ label: '审核人',
+ field: 'approver',
+ sort: 'custom',
+ isSearch: false,
+ isForm:false
+ },
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: false,
+ isForm:false
+ },
+ {
+ label: '审核时间',
+ field: 'approveTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isForm:false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ },
+ {
+ label: '入库时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ },
+
+
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: false,
+ },
+]))
+// 备件入库子表
+export const SparePartsInLocationRecordDetailRules = reactive({
+ number: [required],
+ masterId: [required],
+ locationCode: [required],
+ areaCode: [required],
+ sparePartsCode: [required],
+ applyQty: [required],
+})
+
+export const SparePartsInLocationRecordDetail = useCrudSchemas(reactive([
+ {
+ label: '库位编号',
+ field: 'locationCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择库位编号', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '库位信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'itemNumber', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ {
+ label: '库区编号',
+ field: 'areaCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '备件编号',
+ field: 'sparePartsCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '库存数量',
+ field: 'currentQty',
+ sort: 'custom',
+ isSearch: false,
+ tableForm: {
+ disabled: true
+ },
+ form:{
+ componentProps:{
+ disabled: true
+ }
+ },
+ isDetail:false,
+ isTable:false
+ },
+ {
+ label: '申领数量',
+ field: 'applyQty',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ isTableForm:false
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: true,
+ },
+
+]))
+
+
diff --git a/src/views/eam/sparepartsinlocation/index.vue b/src/views/eam/sparepartsinlocation/index.vue
new file mode 100644
index 000000000..ed9ee8067
--- /dev/null
+++ b/src/views/eam/sparepartsinlocation/index.vue
@@ -0,0 +1,472 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/eam/sparepartsinlocation/sparePartsInLocationMain.data.ts b/src/views/eam/sparepartsinlocation/sparePartsInLocationMain.data.ts
new file mode 100644
index 000000000..eef186df0
--- /dev/null
+++ b/src/views/eam/sparepartsinlocation/sparePartsInLocationMain.data.ts
@@ -0,0 +1,298 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+import * as ItemAccountsApi from '@/api/eam/itemAccounts'
+import { ItemAccounts } from '@/views/eam/itemAccounts/itemAccounts.data'
+
+
+// 表单校验
+export const SparePartsInLocationMainRules = reactive({
+ number: [required],
+ theme: [required],
+ type: [required],
+})
+// 备件入库主表
+export const SparePartsInLocationMain = useCrudSchemas(reactive([
+ {
+ label: 'id',
+ field: 'id',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ isDetail:false,
+ },
+ {
+ label: '编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false,
+ },
+ {
+ label: '入库主题',
+ field: 'theme',
+ sort: 'custom',
+ isSearch: true,
+ },{
+ label: '入库类型',
+ field: 'type',
+ sort: 'custom',
+ dictType: DICT_TYPE.PUT_IN_TYPE,
+ dictClass: 'string',
+
+ },
+ {
+ label: '流程状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: false,
+ isForm:false,
+
+ dictType: DICT_TYPE.SPAREPARTS_APPLY_STATUS_ENUM,
+ dictClass: 'string',
+
+ },
+ {
+ label: '入库申请人',
+ field: 'applyer',
+ sort: 'custom',
+ isSearch: false,
+ },
+ {
+ label: '审核人',
+ field: 'approver',
+ sort: 'custom',
+ isSearch: false,
+ isForm:false
+ },
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: false,
+ isForm:false
+ },
+ {
+ label: '审核时间',
+ field: 'approveTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isForm:false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ },
+ {
+ label: '入库时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ },
+
+
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: false,
+ },
+
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 220,
+ fixed: 'right'
+ },
+ isDetail:false
+ }
+]))
+// 备件入库子表
+export const SparePartsInLocationDetailRules = reactive({
+ number: [required],
+ masterId: [required],
+ locationCode: [required],
+ areaCode: [required],
+ sparePartsCode: [required],
+ applyQty: [required],
+})
+
+export const SparePartsInLocationDetail = useCrudSchemas(reactive([
+ {
+ label: '库位编号',
+ field: 'locationCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择库位编号', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '库位信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'itemNumber', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ {
+ label: '库区编号',
+ field: 'areaCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '备件编号',
+ field: 'sparePartsCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '库存数量',
+ field: 'currentQty',
+ sort: 'custom',
+ isSearch: false,
+ tableForm: {
+ disabled: true
+ },
+ form:{
+ componentProps:{
+ disabled: true
+ }
+ },
+ isDetail:false,
+ isTable:false
+ },
+ {
+ label: '申领数量',
+ field: 'applyQty',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ isTableForm:false
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ },
+ isTableForm:false,
+
+ }
+]))
+export const SparePartsInLocationExamineRules = reactive({
+ approver: [required],
+ approveContent: [required],
+ sparePartsCode: [required],
+})
+// 审核完成字段
+export const SparePartsInLocationExamine = useCrudSchemas(reactive([
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: false,
+ form:{
+ component: 'Input',
+ componentProps: {
+ type: 'textarea'
+ }
+ }
+ },
+]))
+
diff --git a/src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts b/src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts
new file mode 100644
index 000000000..2041ab575
--- /dev/null
+++ b/src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts
@@ -0,0 +1,344 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+
+import * as ItemAccountsApi from '@/api/eam/itemAccounts'
+import { ItemAccounts } from '@/views/eam/itemAccounts/itemAccounts.data'
+
+import { EquipmentAccounts } from '@/views/eam/equipmentAccounts/equipmentAccounts.data'
+import * as EquipmentItemApi from '@/api/eam/equipmentAccounts'
+
+import { dateFormatter } from '@/utils/formatTime'
+
+export const SparePartsOutLocationMain = useCrudSchemas(
+ reactive([
+ {
+ label: '编号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false
+ },
+ {
+ label: '申请编号',
+ field: 'applyNumber',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false
+ },
+ {
+ label: '出库类型',
+ field: 'outType',
+ dictType: DICT_TYPE.EAM_OUT_TYPE,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'Select'
+ }
+ },
+ {
+ label: '关联工单',
+ field: 'workNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '设备信息', // 查询弹窗标题
+ searchListPlaceholder: '请选择 设备编号', // 输入框占位文本
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ multiple: true,
+ searchCondition: [
+ {
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
+ },
+
+ {
+ label: '出库主题',
+ field: 'theme',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '流程状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+
+ dictType: DICT_TYPE.EAM_OUT_STATUS,
+ dictClass: 'string'
+ },
+ {
+ label: '申请人',
+ field: 'applyer',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '审核人',
+ field: 'approver',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ }
+ },
+ {
+ label: '审核内容',
+ field: 'approveContent',
+ sort: 'custom',
+ isSearch: true,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '审核时间',
+ field: 'approveTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ isForm: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ }
+ },
+ {
+ label: '自动审核',
+ field: 'autoExamine',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '自动通过',
+ field: 'autoAgree',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '直接生成记录',
+ field: 'directCreateRecord',
+ sort: 'custom',
+ isSearch: false,
+ isTable: false,
+ isForm: false
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isTable: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+ ])
+)
+
+//表单校验
+export const SparePartsOutLocationMainRules = reactive({
+ description: [{ required: true, message: '描述不能为空', trigger: 'change' }]
+})
+/**
+ * @returns {Array} 备件申请子表
+ */
+export const SparePartsOutLocationDetail = useCrudSchemas(
+ reactive([
+ {
+ label: '库位编号',
+ field: 'locationCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择库位编号', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '库位信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'itemNumber', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+
+ searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ {
+ label: '库区编号',
+ field: 'areaCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '备件编号',
+ field: 'sparePartsCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '库存数量',
+ field: 'currentQty',
+ sort: 'custom',
+ isSearch: false,
+ tableForm: {
+ disabled: true
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ isDetail: false,
+ isTable: false
+ },
+ {
+ label: '申领数量',
+ field: 'applyQty',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '流程状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+
+ dictType: DICT_TYPE.EAM_OUT_STATUS,
+ dictClass: 'string'
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: false
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ },
+ isTableForm: false
+ }
+ ])
+)
+
+//表单校验
+export const SparePartsOutLocationDetailRules = reactive({
+ applyQty: [{ required: true, message: '请输入标包数量', trigger: 'blur' }]
+})
diff --git a/src/views/eam/sparepartsoutlocation/index.vue b/src/views/eam/sparepartsoutlocation/index.vue
new file mode 100644
index 000000000..64c25a0f0
--- /dev/null
+++ b/src/views/eam/sparepartsoutlocation/index.vue
@@ -0,0 +1,399 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/eam/transaction/index.vue b/src/views/eam/transaction/index.vue
index c9857a614..1c248a84d 100644
--- a/src/views/eam/transaction/index.vue
+++ b/src/views/eam/transaction/index.vue
@@ -1,18 +1,22 @@
-
+
-
-
+
+
@@ -27,13 +31,13 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
-
+
{{ row.code }}
-
+
@@ -52,12 +56,11 @@
-
diff --git a/src/views/eam/transaction/transaction.data.ts b/src/views/eam/transaction/transaction.data.ts
index f75af8ac6..5f14a5a2a 100644
--- a/src/views/eam/transaction/transaction.data.ts
+++ b/src/views/eam/transaction/transaction.data.ts
@@ -6,89 +6,91 @@ export const Rules = reactive({
locationNumber: [required],
inventoryAction: [required],
businessType: [required],
- uom: [required],
+ uom: [required]
})
-export const Transaction = useCrudSchemas(reactive([
- {
- label: '备件编号',
- field: 'itemNumber',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '库位编码',
- field: 'locationNumber',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '事务类型',
- field: 'transactionType',
- sort: 'custom',
- dictType: DICT_TYPE.TRANSACTION_TYPE,
- dictClass: 'string',
- isSearch: false,
- isTable: true,
- table: {
- width: 150
+export const Transaction = useCrudSchemas(
+ reactive([
+ {
+ label: '备件编号',
+ field: 'itemNumber',
+ sort: 'custom',
+ isSearch: true
},
- tableForm: {
- type: 'Select'
- }
- },
- {
- label: '库存动作',
- field: 'inventoryAction',
- sort: 'custom',
- dictType: DICT_TYPE.INVENTORY_ACTION,
- dictClass: 'string',
- isSearch: false,
- isTable: true,
- table: {
- width: 150
+ {
+ label: '库位编码',
+ field: 'locationNumber',
+ sort: 'custom',
+ isSearch: true
},
- tableForm: {
- type: 'Select'
- }
- },
- {
- label: '库存状态',
- field: 'inventoryStatus',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'Radio'
+ {
+ label: '事务类型',
+ field: 'transactionType',
+ sort: 'custom',
+ dictType: DICT_TYPE.EAM_TRANSACTION_TYPE,
+ dictClass: 'string',
+ isSearch: false,
+ isTable: true,
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'Select'
+ }
+ },
+ {
+ label: '库存动作',
+ field: 'inventoryAction',
+ sort: 'custom',
+ dictType: DICT_TYPE.EAM_INVENTORY_ACTION,
+ dictClass: 'string',
+ isSearch: false,
+ isTable: true,
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'Select'
+ }
+ },
+ {
+ label: '库存状态',
+ field: 'inventoryStatus',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'Radio'
+ }
+ },
+ {
+ label: '关联单号',
+ field: 'associatedNumber',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'Radio'
+ }
},
- },
- {
- label: '关联单号',
- field: 'associatedNumber',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'Radio'
+ {
+ label: '计量单位',
+ field: 'uom',
+ sort: 'custom',
+ isSearch: false
},
- },
- {
- label: '计量单位',
- field: 'uom',
- sort: 'custom',
- isSearch: false,
- },
- {
- label: '数量',
- field: 'qty',
- sort: 'custom',
- isSearch: false,
- },
- {
- label: '操作',
- field: 'action',
- isForm: false,
- table: {
- width: 150,
- fixed: 'right'
+ {
+ label: '数量',
+ field: 'qty',
+ sort: 'custom',
+ isSearch: false
}
- }
-]))
+ // {
+ // label: '操作',
+ // field: 'action',
+ // isForm: false,
+ // table: {
+ // width: 150,
+ // fixed: 'right'
+ // }
+ // }
+ ])
+)