diff --git a/.env.wyf b/.env.wyf
index ee1d6eb3a..4c5de71c6 100644
--- a/.env.wyf
+++ b/.env.wyf
@@ -4,9 +4,9 @@ NODE_ENV=test
VITE_DEV=false
# 请求路径
-VITE_BASE_URL='http://192.168.0.108:12080'
+VITE_BASE_URL='http://192.168.0.113:12080'
# 上传路径
-VITE_UPLOAD_URL='http://192.168.0.108:12080/admin-api/infra/file/upload'
+VITE_UPLOAD_URL='http://192.168.0.113:12080/admin-api/infra/file/upload'
# # 请求路径
# VITE_BASE_URL='http://dev.ccwin-in.com:25300/api'
diff --git a/README.md b/README.md
index 4efd818f0..9ddf0ac73 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## dev发布2024-05-13-002
+## dev发布2024-05-15-002
**xxxx.data.ts 文件配置说明**
**form表单查询弹窗配置**
form: {
@@ -48,9 +48,47 @@ tableForm:{
}]
},
-// 主子合并隐藏子
-hiddenInMain:true
-// 主子排序 不配置默认999,不要设置0(留给左侧固定列使用)
-sortTableDefault:
-// 查询条件排序
-sortSearchDefault:
+
+
+**主子表合并需要修改的代码**
+1、影响Table表头
+const tableColumns =
+ref([…”PurchaseMain”.allSchemas.tableColumns,…”PurchaseDetail”.allSchemas.tableMainColumns])
+
+PurchaseMain:主表
+PurchaseDetail:子表
+
+2、影响搜索头部
+在TableHead标签内部添加属性:
+
+
+3、影响操作按钮
+3.1 修改
{
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
+…下面是原有的按钮逻辑,不变
+}
+
+4、更换子表的请求接口
+const { tableObject, tableMethods } = useTable({
+ getListApi: “PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage”// 分页接口
+})
+
+5、ts文件配置:
+hiddenInMain:true, //子表中数据不展示在主表
+sortTableDefault:1000, // 主页面中Table表中展示的排序位置:默认值999 ,最小值1,值越大越靠后,值越小越靠前
+sortSearchDefault:1000,// 搜素框中展示的排序位置,用法同sortTableDefault
diff --git a/src/api/eam/basicFaultCause/index.ts b/src/api/eam/basicFaultCause/index.ts
new file mode 100644
index 000000000..391442089
--- /dev/null
+++ b/src/api/eam/basicFaultCause/index.ts
@@ -0,0 +1,57 @@
+import request from '@/config/axios'
+
+export interface BasicFaultCauseVO {
+ id: number
+ parentId: number
+ code: string
+ name: string
+ describing: string
+ departmentCode: string
+ remark: string
+ siteId: string
+ available: string
+ deletionTime: Date
+ deleterId: byte[]
+ concurrencyStamp: number
+}
+
+// 查询故障原因列表
+export const getBasicFaultCausePage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/eam/basic-fault-cause/senior', data })
+ } else {
+ return await request.get({ url: `/eam/basic-fault-cause/page`, params })
+ }
+}
+
+// 查询故障原因详情
+export const getBasicFaultCause = async (id: number) => {
+ return await request.get({ url: `/eam/basic-fault-cause/get?id=` + id })
+}
+
+// 新增故障原因
+export const createBasicFaultCause = async (data: BasicFaultCauseVO) => {
+ return await request.post({ url: `/eam/basic-fault-cause/create`, data })
+}
+
+// 修改故障原因
+export const updateBasicFaultCause = async (data: BasicFaultCauseVO) => {
+ return await request.put({ url: `/eam/basic-fault-cause/update`, data })
+}
+
+// 删除故障原因
+export const deleteBasicFaultCause = async (id: number) => {
+ return await request.delete({ url: `/eam/basic-fault-cause/delete?id=` + id })
+}
+
+// 导出故障原因 Excel
+export const exportBasicFaultCause = async (params) => {
+ return await request.download({ url: `/eam/basic-fault-cause/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/basic-fault-cause/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/eam/basicFaultType/index.ts b/src/api/eam/basicFaultType/index.ts
new file mode 100644
index 000000000..727094608
--- /dev/null
+++ b/src/api/eam/basicFaultType/index.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+export interface BasicFaultTypeVO {
+ id: number
+ code: string
+ name: string
+ describing: string
+ departmentCode: string
+ remark: string
+ siteId: string
+ available: string
+ deletionTime: Date
+ deleterId: byte[]
+ concurrencyStamp: number
+}
+
+// 查询故障类型列表
+export const getBasicFaultTypePage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/eam/basic-fault-type/senior', data })
+ } else {
+ return await request.get({ url: `/eam/basic-fault-type/page`, params })
+ }
+}
+
+// 查询故障类型详情
+export const getBasicFaultType = async (id: number) => {
+ return await request.get({ url: `/eam/basic-fault-type/get?id=` + id })
+}
+
+// 新增故障类型
+export const createBasicFaultType = async (data: BasicFaultTypeVO) => {
+ return await request.post({ url: `/eam/basic-fault-type/create`, data })
+}
+
+// 修改故障类型
+export const updateBasicFaultType = async (data: BasicFaultTypeVO) => {
+ return await request.put({ url: `/eam/basic-fault-type/update`, data })
+}
+
+// 删除故障类型
+export const deleteBasicFaultType = async (id: number) => {
+ return await request.delete({ url: `/eam/basic-fault-type/delete?id=` + id })
+}
+
+// 导出故障类型 Excel
+export const exportBasicFaultType = async (params) => {
+ return await request.download({ url: `/eam/basic-fault-type/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/basic-fault-type/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/eam/documentType/index.ts b/src/api/eam/documentType/index.ts
new file mode 100644
index 000000000..4d73e1d21
--- /dev/null
+++ b/src/api/eam/documentType/index.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+export interface DocumentTypeVO {
+ id: number
+ code: string
+ name: string
+ type: string
+ departmentCode: string
+ remark: string
+ siteId: string
+ available: string
+ deletionTime: Date
+ deleterId: byte[]
+ concurrencyStamp: number
+}
+
+// 查询文档类型列表
+export const getDocumentTypePage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/eam/document-type/senior', data })
+ } else {
+ return await request.get({ url: `/eam/document-type/page`, params })
+ }
+}
+
+// 查询文档类型详情
+export const getDocumentType = async (id: number) => {
+ return await request.get({ url: `/eam/document-type/get?id=` + id })
+}
+
+// 新增文档类型
+export const createDocumentType = async (data: DocumentTypeVO) => {
+ return await request.post({ url: `/eam/document-type/create`, data })
+}
+
+// 修改文档类型
+export const updateDocumentType = async (data: DocumentTypeVO) => {
+ return await request.put({ url: `/eam/document-type/update`, data })
+}
+
+// 删除文档类型
+export const deleteDocumentType = async (id: number) => {
+ return await request.delete({ url: `/eam/document-type/delete?id=` + id })
+}
+
+// 导出文档类型 Excel
+export const exportDocumentType = async (params) => {
+ return await request.download({ url: `/eam/document-type/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/document-type/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/eam/equipmentMainPart/index.ts b/src/api/eam/equipmentMainPart/index.ts
new file mode 100644
index 000000000..482c17209
--- /dev/null
+++ b/src/api/eam/equipmentMainPart/index.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+export interface EquipmentMainPartVO {
+ id: number
+ name: string
+ code: string
+ type: string
+ departmentCode: string
+ remark: string
+ siteId: string
+ available: string
+ deletionTime: Date
+ deleterId: byte[]
+ concurrencyStamp: number
+}
+
+// 查询主要部件列表
+export const getEquipmentMainPartPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/eam/equipment-main-part/senior', data })
+ } else {
+ return await request.get({ url: `/eam/equipment-main-part/page`, params })
+ }
+}
+
+// 查询主要部件详情
+export const getEquipmentMainPart = async (id: number) => {
+ return await request.get({ url: `/eam/equipment-main-part/get?id=` + id })
+}
+
+// 新增主要部件
+export const createEquipmentMainPart = async (data: EquipmentMainPartVO) => {
+ return await request.post({ url: `/eam/equipment-main-part/create`, data })
+}
+
+// 修改主要部件
+export const updateEquipmentMainPart = async (data: EquipmentMainPartVO) => {
+ return await request.put({ url: `/eam/equipment-main-part/update`, data })
+}
+
+// 删除主要部件
+export const deleteEquipmentMainPart = async (id: number) => {
+ return await request.delete({ url: `/eam/equipment-main-part/delete?id=` + id })
+}
+
+// 导出主要部件 Excel
+export const exportEquipmentMainPart = async (params) => {
+ return await request.download({ url: `/eam/equipment-main-part/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/eam/equipment-main-part/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/infra/config/index.ts b/src/api/infra/config/index.ts
index 8942cde25..d9b00314b 100644
--- a/src/api/infra/config/index.ts
+++ b/src/api/infra/config/index.ts
@@ -13,6 +13,7 @@ export interface ConfigVO {
visible: boolean
remark: string
createTime: Date
+ locoationCode: string
}
// 查询参数列表
diff --git a/src/api/mes/workScheduling/index.ts b/src/api/mes/workScheduling/index.ts
index 7df13e502..f6f118c7a 100644
--- a/src/api/mes/workScheduling/index.ts
+++ b/src/api/mes/workScheduling/index.ts
@@ -52,10 +52,14 @@ export const importTemplate = () => {
export const completeHandle = async (data) => {
return await request.post({ url: `/mes/workScheduling/completeHandle`, data })
}
-//报工
+//工序报工
export const reportWorkByProcess = async (data) => {
return await request.post({ url: `/mes/work-scheduling-detail/reportWorkByProcess`, data })
}
+//批量报工
+export const reportWorkByTask = async (data) => {
+ return await request.post({ url: `/mes/workScheduling/reportForAll`, data })
+}
//检查当前节点是否可以完工
export const getNodePosition = async (params) => {
return await request.get({ url: `/mes/workScheduling/getNodePosition`, params })
@@ -68,5 +72,9 @@ export const getCurrentWorkerList = async (params) => {
export const getProcessList = async (params) => {
return await request.get({ url: `/mes/workScheduling/getProcessList`, params })
}
+//工序质检
+export const processQualified = async (data) => {
+ return await request.post({ url: `/mes/work-scheduling-detail/processQualified`, data })
+}
diff --git a/src/api/mes/workSchedulingDetail/index.ts b/src/api/mes/workSchedulingDetail/index.ts
index f39e63513..122291bcc 100644
--- a/src/api/mes/workSchedulingDetail/index.ts
+++ b/src/api/mes/workSchedulingDetail/index.ts
@@ -63,3 +63,7 @@ export const exportWorkSchedulingDetail = async (params) => {
export const importTemplate = () => {
return request.download({ url: '/mes/work-scheduling-detail/get-import-template' })
}
+//工序报工
+export const reportWorkByProcess = async (data) => {
+ return await request.post({ url: `/mes/work-scheduling-detail/reportWorkByProcess`, data })
+}
\ No newline at end of file
diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts
index 4b21cda4d..15189a33d 100644
--- a/src/api/wms/balance/index.ts
+++ b/src/api/wms/balance/index.ts
@@ -150,3 +150,14 @@ export const selectLocationTypeToBalance = async (params) => {
return request.get({ url: '/wms/balance/pageLocationCodeToBalance', params})
}
}
+
+// 获得配置筛选出的库存余额分页
+export const selectConfigToBalance = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/balance/pageConfigToBalanceSenior', data })
+ } else {
+ return request.get({ url: '/wms/balance/pageConfigToBalance', params})
+ }
+}
diff --git a/src/api/wms/containerDetailRequest/index.ts b/src/api/wms/containerDetailRequest/index.ts
new file mode 100644
index 000000000..43ec7211f
--- /dev/null
+++ b/src/api/wms/containerDetailRequest/index.ts
@@ -0,0 +1,60 @@
+import request from '@/config/axios'
+
+export interface ContainerDetailRequestVO {
+ id: number
+ masterId: number
+ number: string
+ containerNumber: string
+ fromLocationCode: string
+ toLocationCode: string
+ qty: number
+ uom: string
+ remark: string
+ siteId: string
+ concurrencyStamp: number
+ fromOwnerCode: string
+ toOwnerCode: string
+}
+
+// 查询器具管理申请子列表
+export const getContainerDetailRequestPage = async (params) => {
+ console.log(params);
+
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/container-detail-request/senior', data })
+ } else {
+ return await request.get({ url: `/wms/container-detail-request/page`, params })
+ }
+}
+
+// 查询器具管理申请子详情
+export const getContainerDetailRequest = async (id: number) => {
+ return await request.get({ url: `/wms/container-detail-request/get?id=` + id })
+}
+
+// 新增器具管理申请子
+export const createContainerDetailRequest = async (data: ContainerDetailRequestVO) => {
+ return await request.post({ url: `/wms/container-detail-request/create`, data })
+}
+
+// 修改器具管理申请子
+export const updateContainerDetailRequest = async (data: ContainerDetailRequestVO) => {
+ return await request.put({ url: `/wms/container-detail-request/update`, data })
+}
+
+// 删除器具管理申请子
+export const deleteContainerDetailRequest = async (id: number) => {
+ return await request.delete({ url: `/wms/container-detail-request/delete?id=` + id })
+}
+
+// 导出器具管理申请子 Excel
+export const exportContainerDetailRequest = async (params) => {
+ return await request.download({ url: `/wms/container-detail-request/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/container-detail-request/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/containerMainRequest/index.ts b/src/api/wms/containerMainRequest/index.ts
new file mode 100644
index 000000000..35e7a9f8d
--- /dev/null
+++ b/src/api/wms/containerMainRequest/index.ts
@@ -0,0 +1,82 @@
+import request from '@/config/axios'
+
+export interface ContainerMainRequestVO {
+ id: number
+ type: string
+ available: string
+ remark: string
+ extraProperties: string
+ concurrencyStamp: number
+ siteId: string
+}
+
+// 查询器具管理申请主列表
+export const getContainerMainRequestPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/container-main-request/senior', data })
+ } else {
+ return await request.get({ url: `/wms/container-main-request/page`, params })
+ }
+}
+
+// 查询器具管理申请主详情
+export const getContainerMainRequest = async (id: number) => {
+ return await request.get({ url: `/wms/container-main-request/get?id=` + id })
+}
+
+// 新增器具管理申请主
+export const createContainerMainRequest = async (data: ContainerMainRequestVO) => {
+ return await request.post({ url: `/wms/container-main-request/create`, data })
+}
+
+// 修改器具管理申请主
+export const updateContainerMainRequest = async (data: ContainerMainRequestVO) => {
+ return await request.put({ url: `/wms/container-main-request/update`, data })
+}
+
+// 删除器具管理申请主
+export const deleteContainerMainRequest = async (id: number) => {
+ return await request.delete({ url: `/wms/container-main-request/delete?id=` + id })
+}
+
+// 导出器具管理申请主 Excel
+export const exportContainerMainRequest = async (params) => {
+ return await request.download({ url: `/wms/container-main-request/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/container-main-request/get-import-template' })
+}
+
+// 关闭
+export const close = (id) => {
+ return request.put({ url: '/wms/container-main-request/close?id=' + id })
+}
+
+// 重新添加
+export const reAdd = (id) => {
+ return request.put({ url: '/wms/container-main-request/reAdd?id=' + id })
+}
+
+// 提交审批
+export const submit = (id) => {
+ return request.put({ url: '/wms/container-main-request/submit?id=' + id })
+}
+
+// 驳回
+export const refused = (id) => {
+ return request.put({ url: '/wms/container-main-request/refused?id=' + id })
+}
+
+// 审批通过
+export const agree = (id) => {
+ return request.put({ url: '/wms/container-main-request/agree?id=' + id })
+}
+
+// 处理
+export const handle = (id) => {
+ return request.put({ url: '/wms/container-main-request/handle?id=' + id })
+}
\ No newline at end of file
diff --git a/src/api/wms/containerRecordDetail/index.ts b/src/api/wms/containerRecordDetail/index.ts
new file mode 100644
index 000000000..e8993f74e
--- /dev/null
+++ b/src/api/wms/containerRecordDetail/index.ts
@@ -0,0 +1,58 @@
+import request from '@/config/axios'
+
+export interface ContainerRecordDetailVO {
+ id: number
+ masterId: number
+ number: string
+ containerNumber: string
+ fromLocationCode: string
+ toLocationCode: string
+ qty: number
+ uom: string
+ remark: string
+ siteId: string
+ concurrencyStamp: number
+ fromOwnerCode: string
+ toOwnerCode: string
+}
+
+// 查询器具管理记录子列表
+export const getContainerRecordDetailPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/container-record-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/container-record-detail/page`, params })
+ }
+}
+
+// 查询器具管理记录子详情
+export const getContainerRecordDetail = async (id: number) => {
+ return await request.get({ url: `/wms/container-record-detail/get?id=` + id })
+}
+
+// 新增器具管理记录子
+export const createContainerRecordDetail = async (data: ContainerRecordDetailVO) => {
+ return await request.post({ url: `/wms/container-record-detail/create`, data })
+}
+
+// 修改器具管理记录子
+export const updateContainerRecordDetail = async (data: ContainerRecordDetailVO) => {
+ return await request.put({ url: `/wms/container-record-detail/update`, data })
+}
+
+// 删除器具管理记录子
+export const deleteContainerRecordDetail = async (id: number) => {
+ return await request.delete({ url: `/wms/container-record-detail/delete?id=` + id })
+}
+
+// 导出器具管理记录子 Excel
+export const exportContainerRecordDetail = async (params) => {
+ return await request.download({ url: `/wms/container-record-detail/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/container-record-detail/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/containerRecordMain/index.ts b/src/api/wms/containerRecordMain/index.ts
new file mode 100644
index 000000000..ea84c1260
--- /dev/null
+++ b/src/api/wms/containerRecordMain/index.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+export interface ContainerRecordMainVO {
+ id: number
+ type: string
+ number: string
+ requestNumber: string
+ status: string
+ available: string
+ remark: string
+ extraProperties: string
+ concurrencyStamp: number
+ siteId: string
+ departmentCode: string
+}
+
+// 查询器具管理记录主列表
+export const getContainerRecordMainPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/container-record-main/senior', data })
+ } else {
+ return await request.get({ url: `/wms/container-record-main/page`, params })
+ }
+}
+
+// 查询器具管理记录主详情
+export const getContainerRecordMain = async (id: number) => {
+ return await request.get({ url: `/wms/container-record-main/get?id=` + id })
+}
+
+// 新增器具管理记录主
+export const createContainerRecordMain = async (data: ContainerRecordMainVO) => {
+ return await request.post({ url: `/wms/container-record-main/create`, data })
+}
+
+// 修改器具管理记录主
+export const updateContainerRecordMain = async (data: ContainerRecordMainVO) => {
+ return await request.put({ url: `/wms/container-record-main/update`, data })
+}
+
+// 删除器具管理记录主
+export const deleteContainerRecordMain = async (id: number) => {
+ return await request.delete({ url: `/wms/container-record-main/delete?id=` + id })
+}
+
+// 导出器具管理记录主 Excel
+export const exportContainerRecordMain = async (params) => {
+ return await request.download({ url: `/wms/container-record-main/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/container-record-main/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/customerDeliveryForecast/index.ts b/src/api/wms/customerDeliveryForecast/index.ts
new file mode 100644
index 000000000..65322ff1d
--- /dev/null
+++ b/src/api/wms/customerDeliveryForecast/index.ts
@@ -0,0 +1,63 @@
+import request from '@/config/axios'
+
+export interface CustomerDeliveryForecastVO {
+ schdSite: string
+ schdOrder: string
+ schdLine: string
+ schdCust: string
+ schdShipto: string
+ schdDock: string
+ schdPart: string
+ schdNetReq: string
+ schdDate: Date
+ schdTime: Date
+ schdReference: string
+ schdOrdMult: string
+ schdCustpart: string
+ schdPkgCode: string
+ schdModelyr: string
+ schdCustref: string
+ schdPcrQty: string
+ available: string
+}
+
+// 查询客户发货预测列表
+export const getCustomerDeliveryForecastPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/customer-delivery-forecast/senior', data })
+ } else {
+ return await request.get({ url: `/wms/customer-delivery-forecast/page`, params })
+ }
+}
+
+// 查询客户发货预测详情
+export const getCustomerDeliveryForecast = async (id: number) => {
+ return await request.get({ url: `/wms/customer-delivery-forecast/get?id=` + id })
+}
+
+// 新增客户发货预测
+export const createCustomerDeliveryForecast = async (data: CustomerDeliveryForecastVO) => {
+ return await request.post({ url: `/wms/customer-delivery-forecast/create`, data })
+}
+
+// 修改客户发货预测
+export const updateCustomerDeliveryForecast = async (data: CustomerDeliveryForecastVO) => {
+ return await request.put({ url: `/wms/customer-delivery-forecast/update`, data })
+}
+
+// 删除客户发货预测
+export const deleteCustomerDeliveryForecast = async (id: number) => {
+ return await request.delete({ url: `/wms/customer-delivery-forecast/delete?id=` + id })
+}
+
+// 导出客户发货预测 Excel
+export const exportCustomerDeliveryForecast = async (params) => {
+ return await request.download({ url: `/wms/customer-delivery-forecast/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/customer-delivery-forecast/get-import-template' })
+}
diff --git a/src/api/wms/itembasic/index.ts b/src/api/wms/itembasic/index.ts
index 20f58f85c..a92781ac3 100644
--- a/src/api/wms/itembasic/index.ts
+++ b/src/api/wms/itembasic/index.ts
@@ -98,4 +98,14 @@ export const selectTypeToItembasic = async (params) => {
} else {
return await request.get({ url: `/wms/itembasic/pageTypeToItembasic`, params })
}
+}
+
+// 查询物料类型为器具的信息列表
+export const selectConfigToItembasic = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return request.post({ url: '/wms/itembasic/pageConfigToItembasicSenior', data })
+ } else {
+ return await request.get({ url: `/wms/itembasic/pageConfigToItembasic`, params })
+ }
}
\ No newline at end of file
diff --git a/src/api/wms/location/index.ts b/src/api/wms/location/index.ts
index 4d7182995..183224ff5 100644
--- a/src/api/wms/location/index.ts
+++ b/src/api/wms/location/index.ts
@@ -86,12 +86,12 @@ export const selectBusinessTypeToLocation = async (params) => {
}
-export const selectConfigToLocation = async (params) => {
+export const selectPageItemAreaToLocation = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
- return await request.post({ url: '/wms/location/pageConfigToLocationSenior', data })
+ return await request.post({ url: '/wms/location/pageItemAreaToLocationSenior', data })
} else {
- return request.get({ url: `/wms/location/pageConfigToLocation`, params })
+ return request.get({ url: `/wms/location/pageItemAreaToLocation`, params })
}
}
\ No newline at end of file
diff --git a/src/api/wms/productionreturnRequestDetail/index.ts b/src/api/wms/productionreturnRequestDetail/index.ts
index 0b7bdd7c6..c47890e71 100644
--- a/src/api/wms/productionreturnRequestDetail/index.ts
+++ b/src/api/wms/productionreturnRequestDetail/index.ts
@@ -27,6 +27,7 @@ export interface ProductionreturnRequestDetailVO {
// 查询生产退料申请子列表
export const getProductionreturnRequestDetailPage = async (params) => {
+ params.businessType = 'ReturnToStore'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
diff --git a/src/api/wms/productionreturnRequestDetailNo/index.ts b/src/api/wms/productionreturnRequestDetailNo/index.ts
index 66dd5921d..7b9ca6319 100644
--- a/src/api/wms/productionreturnRequestDetailNo/index.ts
+++ b/src/api/wms/productionreturnRequestDetailNo/index.ts
@@ -27,6 +27,7 @@ export interface ProductionreturnRequestDetailVO {
// 查询生产退料申请子列表
export const getProductionreturnRequestDetailPage = async (params) => {
+ params.businessType = 'ReturnToHold'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
diff --git a/src/api/wms/purchaseprice/index.ts b/src/api/wms/purchaseprice/index.ts
index cf2438619..03c6af883 100644
--- a/src/api/wms/purchaseprice/index.ts
+++ b/src/api/wms/purchaseprice/index.ts
@@ -22,6 +22,17 @@ export const getPurchasepricePage = async (params) => {
}
}
+// 查询采购价格单列表
+export const getPurchasepricePageSCP = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return request.post({ url: '/wms/purchaseprice/seniorSCP', data })
+ } else {
+ return await request.get({ url: `/wms/purchaseprice/pageSCP`, params })
+ }
+}
+
// 查询采购价格单详情
export const getPurchaseprice = async (id: number) => {
return await request.get({ url: `/wms/purchaseprice/get?id=` + id })
@@ -52,6 +63,16 @@ export const exportPurchaseprice = async (params) => {
}
}
+// 导出采购价格单 Excel
+export const exportPurchasepriceSCP = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/purchaseprice/export-excel-senior-SCP`, data })
+ } else {
+ return await request.download({ url: `/wms/purchaseprice/export-excel-SCP`, params })
+ }
+}
+
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchaseprice/get-import-template' })
diff --git a/src/api/wms/purchasereceiptRecordMain/index.ts b/src/api/wms/purchasereceiptRecordMain/index.ts
index b3eccfdf4..5f1ad8101 100644
--- a/src/api/wms/purchasereceiptRecordMain/index.ts
+++ b/src/api/wms/purchasereceiptRecordMain/index.ts
@@ -89,6 +89,16 @@ export const exportPurchasereceiptRecordMain = async (params) => {
}
}
+// 导出采购收货记录主 Excel
+export const exportPurchasereceiptRecordMainSCP = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/purchasereceipt-record-main/export-excel-senior-SCP`, data })
+ } else {
+ return await request.download({ url: `/wms/purchasereceipt-record-main/export-excel-SCP`, params })
+ }
+}
+
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchasereceipt-record-main/get-import-template' })
diff --git a/src/api/wms/purchasereturnRecordMain/index.ts b/src/api/wms/purchasereturnRecordMain/index.ts
index b08fddfe7..caa8fc615 100644
--- a/src/api/wms/purchasereturnRecordMain/index.ts
+++ b/src/api/wms/purchasereturnRecordMain/index.ts
@@ -75,6 +75,16 @@ export const exportPurchasereturnRecordMain = async (params) => {
}
}
+// 导出采购退货记录主 Excel
+export const exportPurchasereturnRecordMainSCP = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior-SCP`, data })
+ } else {
+ return await request.download({url: `/wms/purchasereturn-record-main/export-excel-SCP`, params})
+ }
+}
+
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' })
diff --git a/src/api/wms/supplier/index.ts b/src/api/wms/supplier/index.ts
index 805a4163c..961d949a0 100644
--- a/src/api/wms/supplier/index.ts
+++ b/src/api/wms/supplier/index.ts
@@ -31,6 +31,18 @@ export const getSupplierPage = async (params) => {
return await request.get({ url: `/wms/supplier/page`, params })
}
}
+
+// 查询供应商列表分页
+export const getSupplierPageSCP = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return request.post({ url: '/wms/supplier/seniorSCP', data })
+ } else {
+ return await request.get({ url: `/wms/supplier/pageSCP`, params })
+ }
+}
+
// 查询供应商列表
export const getSupplierList = async (params) => {
return await request.get({ url: `/wms/supplier/list`, params })
@@ -66,6 +78,17 @@ export const exportSupplier = async (params) => {
}
}
+
+// 导出供应商 Excel
+export const exportSupplierSCP = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/supplier/export-excel-senior-SCP`, data })
+ } else {
+ return await request.download({ url: `/wms/supplier/export-excel-SCP`, params })
+ }
+}
+
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/supplier/get-import-template' })
diff --git a/src/api/wms/supplieritem/index.ts b/src/api/wms/supplieritem/index.ts
index 448b6b108..e6002d3c7 100644
--- a/src/api/wms/supplieritem/index.ts
+++ b/src/api/wms/supplieritem/index.ts
@@ -31,6 +31,17 @@ export const getSupplieritemPage = async (params) => {
}
}
+// 查询供应商物料列表
+export const getSupplieritemPageSCP = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return request.post({ url: '/wms/supplieritem/seniorSCP', data })
+ } else {
+ return await request.get({ url: `/wms/supplieritem/pageSCP`, params })
+ }
+}
+
// 查询供应商物料详情
export const getSupplieritem = async (id: number) => {
return await request.get({ url: `/wms/supplieritem/get?id=` + id })
@@ -61,6 +72,16 @@ export const exportSupplieritem = async (params) => {
}
}
+// 导出供应商物料 Excel
+export const exportSupplieritemSCP = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/supplieritem/export-excel-senior-SCP`, data })
+ } else {
+ return await request.download({ url: `/wms/supplieritem/export-excel-SCP`, params })
+ }
+}
+
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/supplieritem/get-import-template' })
diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue
index 92fc2ef02..39e93b2ce 100644
--- a/src/components/SearchTable/src/SearchTable.vue
+++ b/src/components/SearchTable/src/SearchTable.vue
@@ -1,7 +1,9 @@
-->
-
- {{ item }}
-
+
-
+ 完工
+ 报工
+ 质检
-
-
-
+
+ dddddddddd
-
+ -->
+
\
+
0) {
tabsList.value.unshift({
@@ -554,7 +549,9 @@ const masterParmas = ref({
// 列表头部按钮
const HeadButttondata = ref()
// 列表-操作按钮
-const buttondata = ref()
+const buttondata = ref(
+
+)
/** 表格弹窗 */
const initModel = (schema: FormSchema[], formModel: Recordable) => {
const model: Recordable = { ...formModel }
@@ -585,10 +582,13 @@ const searchTableFormType = ref('') // 表单的类型:create - 新增;updat
const formRef = ref()
const titleNameRef = ref()
const titleValueRef = ref()
+const planDayCode=ref()
const count = ref(0)
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => {
titleNameRef.value = titleName
titleValueRef.value = titleValue
+
+ planDayCode.value=row.planMasterCode
remarksData.data = {
tableId: row.id,
tableName: tableName
@@ -658,12 +658,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
})
]
}
-
- if(row.status == '1'){
- props.buttondataTable[0].hide = false
- }else{
- props.buttondataTable[0].hide = true
- }
+ //console.log("props.buttondataTable-663",props.buttondataTable);
buttondata.value = [...detailButtonEdit, ...detailButtonDelete, ...props.buttondataTable]
} finally {
detailLoading.value = false
@@ -671,7 +666,6 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
}
}
defineExpose({ openDetail, formRef }) // 提供 open 方法,用于打开弹窗
-
// 获取备注列表
const getRemarkList = async () => {
detailLoading.value = true
@@ -807,39 +801,46 @@ const opensearchTable = (
// }
// 列表-操作按钮事件
-const buttonTableClick = async (val, row) => {
- if (val == 'edit') {
- // 编辑
- if (props.isOpenSearchTable) {
- searchTableFormType.value = 'update'
- if (row?.id || row?.masterId) {
- searchTableFormModel.value = Object.assign(unref(searchTableFormModel), row)
- }
- const item = props.detailAllSchemas.formSchema[0]
- opensearchTable(
- item.field,
- item?.componentProps?.searchField,
- item?.componentProps?.searchTitle,
- item?.componentProps?.searchAllSchemas,
- item?.componentProps?.searchPage,
- item?.componentProps?.searchCondition,
- item?.componentProps?.multiple,
- undefined,
- undefined
- )
- } else {
- openForm('update', row)
- }
- } else if (val == 'delete') {
- // 删除
- handleDelete(row.id)
- } else if (val == 'pfinished') {
-
- WorkSchedulingDetailApi.processFinished(row.id)
- getList()
- }else {
- emit('tableFormButton', val, row)
- }
+// const buttonTableClick = async (val, row) => {
+// if (val == 'edit') {
+// // 编辑
+// if (props.isOpenSearchTable) {
+// searchTableFormType.value = 'update'
+// if (row?.id || row?.masterId) {
+// searchTableFormModel.value = Object.assign(unref(searchTableFormModel), row)
+// }
+// const item = props.detailAllSchemas.formSchema[0]
+// opensearchTable(
+// item.field,
+// item?.componentProps?.searchField,
+// item?.componentProps?.searchTitle,
+// item?.componentProps?.searchAllSchemas,
+// item?.componentProps?.searchPage,
+// item?.componentProps?.searchCondition,
+// item?.componentProps?.multiple,
+// undefined,
+// undefined
+// )
+// } else {
+// openForm('update', row)
+// }
+// } else if (val == 'delete') {
+// // 删除
+// handleDelete(row.id)
+// } else {
+// emit('tableFormButton', val, row)
+// }
+// }
+const buttonClick=(type,row)=>{
+ if (type == 'pfinished') {
+ WorkSchedulingDetailApi.processFinished(row.id)
+ getList()
+ }else if (type == 'reprotProcess') {
+ refreport.value.openDetail(row,"工序报工", planDayCode.value)
+}else if (type == 'checkProcess') {
+ qualifiedCheck.value.openDetail(row,"质检",planDayCode.value)
+}
+getList()
}
/** 添加/修改操作 */
const openForm = async (type: string, row?: number) => {
diff --git a/src/views/mes/workScheduling/components/qualifiedCheck.vue b/src/views/mes/workScheduling/components/qualifiedCheck.vue
new file mode 100644
index 000000000..bf2d7733e
--- /dev/null
+++ b/src/views/mes/workScheduling/components/qualifiedCheck.vue
@@ -0,0 +1,127 @@
+
+
+
+
diff --git a/src/views/mes/workScheduling/components/report.vue b/src/views/mes/workScheduling/components/report.vue
index 2adaf1dbe..3f4acfec5 100644
--- a/src/views/mes/workScheduling/components/report.vue
+++ b/src/views/mes/workScheduling/components/report.vue
@@ -4,89 +4,38 @@
v-model="dialogVisible"
:close-on-click-modal="true"
:vLoading="formLoading"
- width="fit-content"
+ width="600px"
>
{{ dialogTitle }}
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{scope.row.unqualified= scope.row.reportCount -scope.row.qualified}}
-
-
-
-
- 删除
-
-
-
-
+
关闭
@@ -101,105 +50,109 @@ import dayjs from 'dayjs'
const message = useMessage() // 消息弹窗
const { t } = useI18n() // 国际化
const rowData = ref()
-const openDetail = async (row: any, titleName: any) => {
- rowData.value = row
- dialogVisible.value = true
- dialogTitle.value = titleName
- getProcessList(row)
-
-}
const dialogVisible = ref(false)
const dialogTitle = ref()
const formLoading = ref(false)
-const processOption = ref([])
const personOption=ref([])
-const processCodeSelected = ref()
-const personSelected = ref()
-const checkFlag = ref(false)
-const unqualified = ref()
-const reportCount = ref()
-const qualified = ref()
-const workTerm = ref()
const saveFlag=ref(false)
-const tableData=ref([{}])
-const addRow=()=>{
- tableData.value.push({
- processCode:processCodeSelected.value,
- processName:processOption.value?.find(item=>item.processCode==processCodeSelected.value)?.processName,
- reportName:personOption.value?.find(item=>item.workerCode==personSelected.value)?.workerName,
- reportCount:reportCount.value,
- workTerm:workTerm.value,
- checkFlag:checkFlag.value})
-
-}
-const deleteRow = (index: number) => {
- tableData.value.splice(index, 1)
-}
-//获取工序列表
-const getProcessList=async(row)=>{
- let params={
- planDayCode:row.planMasterCode,
- schedulingCode:row.schedulingCode
- }
- processOption.value=await workschedulingApi.getProcessList(params)
-}
-const processChange=(val:any)=>{
- //console.log("processChange-81",val)
- getCurrentWorkerList(val)
+const planDayCode=ref()
+const form = reactive({
+ processCode:"",
+ reportCount:0,
+ workTerm:0,
+ checkFlag:"FALSE",
+ personSelected:[],
+ qualified:0,
+ unqualified:0
+})
+const openDetail = async (row: any, titleName: any,code:string) => {
+ rowData.value = row
+ //console.log('row-68',row)
+ dialogVisible.value = true
+ dialogTitle.value = titleName
+ form.processCode=row.nodeCode
+ form.personSelected=[]
+ form.reportCount=0,
+ form.workTerm=0,
+ form.checkFlag="FALSE",
+ form.personSelected=[],
+ form.qualified=0,
+ form.unqualified=0
+ planDayCode.value=code
+ getCurrentWorkerList(row.nodeCode)
+
}
+
//获取工序人员
const getCurrentWorkerList = async (val) => {
-//console.log("personOption-91",val)
+
let params = {
- planDayCode: rowData.value.planMasterCode,
+ planDayCode: planDayCode.value,
processCode: val
}
personOption.value = await workschedulingApi.getCurrentWorkerList(params)
}
-const count = ref(0)
-const qcount = ref(1)
+
//报工数量处理
-const handleCount = (row) => {
- if (row.reportCount > rowData.value.planCount) {
+const handleCount = () => {
+ if (form.reportCount> rowData.value.planCount) {
message.alert('报工数量不能超出计划数量!计划数【'+rowData.value.planCount+'】')
- row.reportCount =rowData.value.planCount
+ form.reportCount =rowData.value.planCount
//tableData.value[index].reportCount =rowData.value.planCount
- count.value++
+ //count.value++
return
}
//message.alert(row.checkFlag==true?'1':'2')
- if (row.checkFlag) {
- if (row.reportCount < row.qualified) {
+ if (form.checkFlag) {
+ if (form.reportCount < form.qualified) {
message.alert('合格数不能超出报工数!')
- row.qualified=row.reportCount
- qcount.value++
+ form.qualified=form.reportCount
+ //qcount.value++
return
}
- if (row.qualified == undefined || row.qualified == 0) {
- row.qualified = row.reportCount
- qcount.value++
+ if (form.qualified == undefined || form.qualified == 0) {
+ form.qualified= form.reportCount
+ //qcount.value++
}
- row.unqualified= row.reportCount- row.qualified
+ form.unqualified= form.reportCount- form.qualified
}
}
//提交报工
const saveReport = async() => {
+ if(form.reportCount<1){
+ message.alert('报工数量不能小于1!')
+ return
+ }
+ if(form.personSelected.length<1){
+ message.alert('必须选择一个报工人')
+ return
+ }
+ if(form.workTerm<0){
+ message.alert('工时数量不能小于0!')
+ return
+ }
+ let listSub=[];
+ form.personSelected.forEach((item) => {
+ let data={
+ reportCount: form.reportCount,
+ workTerm: form.workTerm,
+ checkFlag: form.checkFlag,
+ reportPerson: item,
+ qualified: form.qualified,
+ unqualified: form.unqualified
+ }
+ listSub.push(data)
+ })
+
let data = {
reportDate: dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
schedulingCode: rowData.value.schedulingCode,
- processCode: processCodeSelected.value,
- list: [
- {
- reportCount: reportCount.value,
- workTerm: workTerm.value,
- reportPerson: personSelected.value,
- qualified: qualified.value,
- unqualified: unqualified.value
- }
- ]
+ processCode: form.processCode,
+ list: listSub
}
+ //console.log("report-saveReport-137",data)
saveFlag.value = true
try {
await workschedulingApi.reportWorkByProcess(data)
@@ -214,6 +167,6 @@ const saveReport = async() => {
}
// 传递给父类
const emit = defineEmits(['success', 'close'])
-
+defineOptions({ name: 'reportProcess' })
defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗
diff --git a/src/views/mes/workScheduling/components/reportAll.vue b/src/views/mes/workScheduling/components/reportAll.vue
new file mode 100644
index 000000000..085008f86
--- /dev/null
+++ b/src/views/mes/workScheduling/components/reportAll.vue
@@ -0,0 +1,185 @@
+
+
+
+
diff --git a/src/views/mes/workScheduling/index.vue b/src/views/mes/workScheduling/index.vue
index 748959db6..915c52ea2 100644
--- a/src/views/mes/workScheduling/index.vue
+++ b/src/views/mes/workScheduling/index.vue
@@ -68,8 +68,10 @@
@searchTableSuccessDetail="searchTableSuccessDetail"
:key="count"
/>
-
+
+
+
@@ -83,10 +85,11 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from './components/Detail.vue'
-import Report from './components/report.vue'
+import ReportAll from './components/reportAll.vue'
import Finish from './components/finish.vue'
+
defineOptions({ name: 'MesWorkScheduling' })
const message = useMessage() // 消息弹窗
@@ -96,17 +99,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(WorkScheduling.allSchemas.tableColumns)
-// 详情 table 操作扩展 按钮
-const buttondataTable = ref([{
- label: '完工',
- name: 'pfinished',
- hide: false,
- type: 'primary',
- icon: '',
- color: '',
- hasPermi: '',
- link: true, // 文本展现按钮
- }])
+
// 查看 Bom 按钮回调事件
const tableFormButton = async (val , row) => {
getList()
@@ -191,14 +184,15 @@ const butttondata=(row) =>{ return [
defaultButtons.mainListHandleBtn({label:"暂停",name:'pause',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}),
defaultButtons.mainListHandleBtn({label:"恢复",name:'resume',hide: isShowMainButton(row,['3']),hasPermi:'mes:workScheduling:update'}),
defaultButtons.mainListHandleBtn({label:"开工",name:'start',hide: isShowMainButton(row,['-1','0']),hasPermi:'mes:workScheduling:update'}),
- defaultButtons.mainListHandleBtn({label:"报工",name:'report',hide: isShowMainButton(row,['4'] ),hasPermi:'mes:workScheduling:update'}),
- defaultButtons.mainListHandleBtn({label:"质检",name:'check',hide: isShowMainButton(row,['5'] ),hasPermi:'mes:workScheduling:update'}),
+ // defaultButtons.mainListHandleBtn({label:"报工",name:'report',hide: isShowMainButton(row,['3','1'] ),hasPermi:'mes:workScheduling:update'}),
+ //defaultButtons.mainListHandleBtn({label:"质检",name:'check',hide: isShowMainButton(row,['5'] ),hasPermi:'mes:workScheduling:update'}),
defaultButtons.mainListHandleBtn({label:"完工",name:'finish',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}),
//defaultButtons.mainListHandleBtn({label:"叫料",name:'callMaterial',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}),
]}
const reportRef=ref()
const reportFinishRef=ref()
+const qualifiedCheck=ref()
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
if (val == 'edit') { // 编辑
@@ -214,7 +208,7 @@ const buttonTableClick = async (val, row) => {
}else if(val=='report'){
reportRef.value.openDetail(row,"报工")
}else if(val=='check'){
- //reportRef.value.openDetail(row,"报工")
+ //qualifiedCheck.value.openDetail(row,"质检")
}else if(val=='finish'){
finishReport(row)
} else if(val=='callMaterial'){
@@ -228,7 +222,7 @@ const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
-//完工报工
+//完工
const finishReport=async(row)=>{
let params={
id:row.id,
@@ -238,7 +232,8 @@ const finishReport=async(row)=>{
//console.log("workscheduling-finishReport-213",row)
let res=await WorkSchedulingApi.getNodePosition(params)
if(res==='end'){
- reportFinishRef.value.openDetail(row,"完工")
+ //reportFinishRef.value.openDetail(row,"完工")
+ WorkSchedulingApi.completeHandle(params)
}else{
message.alert("当前工序不是完工工序,不能进行完工操作!")
}
diff --git a/src/views/qms/inspectionJob/addForm.vue b/src/views/qms/inspectionJob/addForm.vue
index 0814259de..88e5dc8d3 100644
--- a/src/views/qms/inspectionJob/addForm.vue
+++ b/src/views/qms/inspectionJob/addForm.vue
@@ -1,13 +1,17 @@
-