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: '状态',