From fe1d5a720597a58d068c31e378198150bcec7b47 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 27 Sep 2024 08:59:14 +0800 Subject: [PATCH] =?UTF-8?q?HL-6146=E5=88=B6=E5=93=81=E5=9B=9E=E6=94=B6?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=96=B0=E5=A2=9E=E6=97=B6=EF=BC=8C=E6=8A=8A?= =?UTF-8?q?=E5=B7=A5=E4=BD=8D=E4=BB=A3=E7=A0=81=E6=94=BE=E5=88=B0=E4=B8=BB?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=AD=EF=BC=8C=E5=B9=B6=E4=B8=94=E6=8A=8A?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=BA=BF=E4=BB=A3=E7=A0=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=E9=9D=9E=E5=BF=85=E5=A1=AB=E9=A1=B9=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E5=9C=A8=E4=B8=BB=E6=95=B0=E6=8D=AE=E4=B8=AD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=BB=E6=95=B0=E6=8D=AE=E5=A4=87=E6=B3=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E3=80=82=E7=AD=9B=E9=80=89=E5=B7=A5=E4=BD=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=97=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=BA=86=E7=94=9F=E4=BA=A7=E7=BA=BF=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E6=A0=B9=E6=8D=AE=E7=94=9F=E4=BA=A7=E7=BA=BF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=AD=9B=E9=80=89=E5=B7=A5=E4=BD=8D=EF=BC=9B=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=B2=A1=E9=80=89=E7=94=9F=E4=BA=A7=E7=BA=BF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E5=88=99=E6=A0=B9=E6=8D=AE=E8=BD=A6=E9=97=B4?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=B7=A5=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productredressRequestMain.data.ts | 240 ++++++++++++------ 1 file changed, 163 insertions(+), 77 deletions(-) diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts index a49fe6d9c..87b4036e2 100644 --- a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts +++ b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts @@ -27,8 +27,8 @@ export const ProductredressRequestMainRules = reactive({ workshopCode: [ { required: true, message: '请选择车间代码', trigger: 'change' } ], - productionLineCode: [ - { required: true, message: '请选择生产线代码', trigger: 'change' } + workStationCode: [ + { required: true, message: '请选择工位代码', trigger: 'change' } ], }) @@ -169,6 +169,84 @@ export const ProductredressRequestMain = useCrudSchemas(reactive([ } } }, + { + label: '工位代码', + field: 'workStationCode', + sort: 'custom', + table: { + width: 150 + }, + isTable: true, + tableForm: { + isInpuFocusShow: true, + searchListPlaceholder: '请选择工位代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '工位信息', // 查询弹窗标题 + searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类 + searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法 + searchCondition: [ + { + key: 'productionLineCode', + value: 'productionLineCode', + message: '请填写生产线代码!', + isMainValue: true + }, + { + key: 'available', + value: 'TRUE', + isMainValue: false + } + ], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + enterSearch: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择工位代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '工位信息', // 查询弹窗标题 + searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类 + searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法 + searchCondition: [ + { + key: 'workshopCode', + value: 'workshopCode', + message: '请填写车间代码!', + isMainValue: true + }, + { + key: 'productionLineCode', + value: 'productionLineCode', + message: '请填写生产线代码!', + isMainValue: true, + isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + }, + { + key: 'available', + value: 'TRUE', + isMainValue: false + } + ], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 + } + } + }, // { // label: '车间代码', // field: 'workshopCode', @@ -417,14 +495,20 @@ export const ProductredressRequestMain = useCrudSchemas(reactive([ width: 180, fixed: 'right' } - } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + } + }, ])) // 表单校验 export const ProductredressRequestDetailRules = reactive({ - workStationCode: [ - { required: true, message: '请选择工位代码', trigger: 'change' } - ], + }) export const ProductredressRequestDetail = useCrudSchemas(reactive([ @@ -503,6 +587,8 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive isFormModel:true, // filters中添加筛选的数据--取于formModel required:true, // 前置添加必有,和isFormModel结合使用 message: '请选择生产线代码!', // 前置添加没填的提示语 + isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + } ] @@ -573,77 +659,77 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive } } }, - { - label: '工位代码', - field: 'workStationCode', - sort: 'custom', - table: { - width: 150 - }, - isTable: true, - tableForm: { - isInpuFocusShow: true, - searchListPlaceholder: '请选择工位代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '工位信息', // 查询弹窗标题 - searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类 - searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法 - searchCondition: [ - { - key: 'productionLineCode', - value: 'productionLineCode', - message: '请填写生产线代码!', - isMainValue: true - }, - { - key: 'available', - value: 'TRUE', - isMainValue: false - } - ], - verificationParams: [{ - key: 'code', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 - }, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - enterSearch: true, - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择工位代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '工位信息', // 查询弹窗标题 - searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类 - searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法 - searchCondition: [ - { - key: 'productionLineCode', - value: 'productionLineCode', - message: '请填写生产线代码!', - isMainValue: true - }, - { - key: 'available', - value: 'TRUE', - isMainValue: false - } - ], - verificationParams: [{ - key: 'code', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 - } - } - }, + // { + // label: '工位代码', + // field: 'workStationCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isTable: true, + // tableForm: { + // isInpuFocusShow: true, + // searchListPlaceholder: '请选择工位代码', // 输入框占位文本 + // searchField: 'code', // 查询弹窗赋值字段 + // searchTitle: '工位信息', // 查询弹窗标题 + // searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类 + // searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法 + // searchCondition: [ + // { + // key: 'productionLineCode', + // value: 'productionLineCode', + // message: '请填写生产线代码!', + // isMainValue: true + // }, + // { + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // } + // ], + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], // 失去焦点校验参数 + // }, + // form: { + // // labelMessage: '信息提示说明!!!', + // componentProps: { + // enterSearch: true, + // isSearchList: true, // 开启查询弹窗 + // searchListPlaceholder: '请选择工位代码', // 输入框占位文本 + // searchField: 'code', // 查询弹窗赋值字段 + // searchTitle: '工位信息', // 查询弹窗标题 + // searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类 + // searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法 + // searchCondition: [ + // { + // key: 'productionLineCode', + // value: 'productionLineCode', + // message: '请填写生产线代码!', + // isMainValue: true + // }, + // { + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // } + // ], + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], // 失去焦点校验参数 + // } + // } + // }, { label: '包装号', field: 'packingNumber',