From 09ccf1e7d323dcec1e1a1c7d079ec2273e96223e Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Fri, 5 Jul 2024 11:58:27 +0800 Subject: [PATCH] =?UTF-8?q?EAM=20=E2=80=94=E2=80=94>=20=20=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=8F=B0=E8=B4=A6=20=20=E5=8F=B0=E8=B4=A6=E9=AA=8C?= =?UTF-8?q?=E6=94=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/equipmentSigning/index.ts | 6 ++++- .../equipmentSigning/equipmentSigning.data.ts | 26 +++++++------------ src/views/eam/equipmentSigning/index.vue | 4 +-- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/api/eam/equipmentSigning/index.ts b/src/api/eam/equipmentSigning/index.ts index e9db1653b..b33bcc99f 100644 --- a/src/api/eam/equipmentSigning/index.ts +++ b/src/api/eam/equipmentSigning/index.ts @@ -50,6 +50,10 @@ export const getEquipmentSigning = async (id: number) => { export const createEquipmentSigning = async (data: EquipmentSigningVO) => { return await request.post({ url: `/eam/equipment-signing/create`, data }) } +export const createsEquipmentSigning = async (data: EquipmentSigningVO) => { + return await request.post({ url: `/eam/equipment-signing/creates`, data }) +} + // 修改设备到货签收记录 export const updateEquipmentSigning = async (data: EquipmentSigningVO) => { @@ -69,4 +73,4 @@ export const exportEquipmentSigning = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/eam/equipment-signing/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/views/eam/equipmentSigning/equipmentSigning.data.ts b/src/views/eam/equipmentSigning/equipmentSigning.data.ts index b5d9eb86c..42e679c2b 100644 --- a/src/views/eam/equipmentSigning/equipmentSigning.data.ts +++ b/src/views/eam/equipmentSigning/equipmentSigning.data.ts @@ -54,10 +54,15 @@ export const EquipmentSigning = useCrudSchemas(reactive([ searchTitle: '设备信息', // 查询弹窗标题 searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类 searchPage: EquipmentAccountsApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法 - searchCondition: [{ + searchCondition: + [{ key: 'available', value: 'TRUE', isMainValue: false + },{ + key: 'status', + value: 'TOACCEPT', + isMainValue: false }] } }, @@ -263,6 +268,7 @@ export const EquipmentSigning = useCrudSchemas(reactive([ field: 'storageLocation', sort: 'custom', isSearch: false, + isForm: false, form: { component: 'Input', componentProps: { @@ -282,28 +288,14 @@ export const EquipmentSigning = useCrudSchemas(reactive([ field: 'workshopCode', sort: 'custom', isSearch: true, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择车间代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '车间信息', // 查询弹窗标题 - searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类 - searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法 - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - }] - } - }, + isForm: false, }, { label: '产线编号', field: 'lineCode', sort: 'custom', isSearch: true, + isForm: false, form: { // labelMessage: '信息提示说明!!!', componentProps: { diff --git a/src/views/eam/equipmentSigning/index.vue b/src/views/eam/equipmentSigning/index.vue index 479a60349..9730f9086 100644 --- a/src/views/eam/equipmentSigning/index.vue +++ b/src/views/eam/equipmentSigning/index.vue @@ -45,7 +45,7 @@ :rules="EquipmentSigningRules" :formAllSchemas="EquipmentSigning.allSchemas" :apiUpdate="EquipmentSigningApi.updateEquipmentSigning" - :apiCreate="EquipmentSigningApi.createEquipmentSigning" + :apiCreate="EquipmentSigningApi.createsEquipmentSigning" @searchTableSuccess="searchTableSuccess" :isBusiness="false" @onChange="onChange" @@ -179,7 +179,7 @@ const formsSuccess = async (formType,data) => { if(data.activeTime==0)data.activeTime = null; if(data.expireTime==0)data.expireTime = null; if (formType === 'create') { - await EquipmentSigningApi.createEquipmentSigning(data) + await EquipmentSigningApi.createsEquipmentSigning(data) message.success(t('common.createSuccess')) } else { await EquipmentSigningApi.updateEquipmentSigning(data)