diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 8b6a0636c..47be4fccd 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -384,6 +384,11 @@ const props = defineProps({ required: false, default: false }, + fieldTableColumn:{ + type: String, + required: false, + default: '' + }, //扩展其他按钮 otherHeadButttonData:{ type:Array, @@ -728,16 +733,19 @@ const buttonBaseClick = (val, item) => { masterId: masterParmas.value.masterId, number: masterParmas.value.number }) - 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 - ) + if(props.fieldTableColumn!=''){ + const item = props.detailAllSchemas.formSchema.find(item=>item.field == props.fieldTableColumn) + 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('create') } diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 60284524b..e3b6c6463 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -83,6 +83,8 @@