From c762c70a2d723b584b02eda015e2164d8a264614 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 13:17:47 +0800 Subject: [PATCH] =?UTF-8?q?HL-5785=E5=88=B6=E5=93=81=E5=AD=90=E4=BB=B6?= =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain/index.vue | 11 +- .../productscrapRequestMain.data.ts | 123 +++++++++--------- 2 files changed, 75 insertions(+), 59 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index 51c90e5f1..2fbbba948 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -417,7 +417,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => label:item1, value:item1 })) - newRow['bomVersion'] = item['bomList'][0] + console.log('bomList',item['bomList']) + if(item['bomList'].indexOf('1')>-1){ + newRow['bomVersion'] = '1' + }else{ + newRow['bomVersion'] = item['bomList'][0] + } } // // 查询标准价格 // let param = {'itemCodes':item['itemCode'] as string} @@ -674,11 +679,15 @@ const openForm =async (type: string, row?: number) => { defaultButtons.formCloseBtn(null) // 关闭 ] if(type == 'create'){ + ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => { if (item.field == 'workshopCode') { item.componentProps.disabled = true item.componentProps.isSearchList = true } + if (item.field == 'scrappingReason'){ + item.value = '' + } }) } if(type == 'update'){ diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts index fa27a4d5e..2a3e7c522 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts @@ -145,6 +145,7 @@ export const ProductscrapRequestMain = useCrudSchemas( }], // 失去焦点校验参数 }, form: { + value:'DEFC', // labelMessage: '信息提示说明!!!', componentProps: { enterSearch: true, @@ -177,68 +178,74 @@ export const ProductscrapRequestMain = useCrudSchemas( table: { width: 150 }, - tableForm: { - enterSearch: true, - isInpuFocusShow: true, // 开启查询弹窗 - searchListPlaceholder: '请选择成本中心原因代码', - searchField: 'code', - searchTitle: '原因代码', - searchAllSchemas: SubjectAccount.allSchemas, - searchPage: SubjectAccountApi.getSubjectAccountPage, - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - },{ - key: 'costCenterCode', - value: 'costCenterCode', - message: '成本中代码不能为空!', - isMainValue: true - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], - verificationParams: [{ - key: 'code', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 - }, form: { - // labelMessage: '信息提示说明!!!', + value:'SC99', componentProps: { - enterSearch: true, - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择领用原因代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '领用原因代码', // 查询弹窗标题 - searchAllSchemas: SubjectAccount.allSchemas, // 查询弹窗所需类 - searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法 - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], - verificationParams: [{ - key: 'code', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 + disabled: true } } + // tableForm: { + // enterSearch: true, + // isInpuFocusShow: true, // 开启查询弹窗 + // searchListPlaceholder: '请选择成本中心原因代码', + // searchField: 'code', + // searchTitle: '原因代码', + // searchAllSchemas: SubjectAccount.allSchemas, + // searchPage: SubjectAccountApi.getSubjectAccountPage, + // searchCondition: [{ + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // },{ + // key: 'costCenterCode', + // value: 'costCenterCode', + // message: '成本中代码不能为空!', + // isMainValue: true + // },{ + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // }], + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], // 失去焦点校验参数 + // }, + // form: { + // // labelMessage: '信息提示说明!!!', + // componentProps: { + // enterSearch: true, + // isSearchList: true, // 开启查询弹窗 + // searchListPlaceholder: '请选择领用原因代码', // 输入框占位文本 + // searchField: 'code', // 查询弹窗赋值字段 + // searchTitle: '领用原因代码', // 查询弹窗标题 + // searchAllSchemas: SubjectAccount.allSchemas, // 查询弹窗所需类 + // searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法 + // searchCondition: [{ + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // },{ + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // }], + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], // 失去焦点校验参数 + // } + // } }, { label: '状态',