diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 9e4c11690..930246585 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -446,7 +446,7 @@ const getSearchTableData = async (number,formField,searchField)=>{ defaultButtons.mainListPurchasePlanRejBtn({ hide: isShowMainButton(row, ['3']) }), // 不接受 defaultButtons.mainListPurchasePlanWitBtn({ hide: isShowMainButton(row, ['3']) }), // 下架 defaultButtons.mainListPurchasePlanModBtn({ hide: isShowMainButton(row, ['5']) }), // 修改 - defaultButtons.mainListEditBtn({ hide: !isShowMainButton(row, ['2']), hasPermi: 'wms:purchase-plan-main:update' }), // 编辑 + defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1','3','5']), hasPermi: 'wms:purchase-plan-main:update' }), // 编辑 // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:delete'}), // 删除 { label: t('ts.创建供应商发货申请'), diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue index 33a6e4fe7..25801304a 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue @@ -84,12 +84,17 @@ const tableSelectionDelete = (selection) => { } const openFormByCreate = async ( data ) => { + SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { if(item.field == 'supplierCode'){ item.componentProps.isSearchList = true } + if(item.field == 'ppNumber'){ item.componentProps.isSearchList = true + item.componentProps.disabled = true + item.componentProps.enterSearch = false + } if(item.field == 'asnNumber'){ item.componentProps.disabled = false @@ -149,6 +154,11 @@ const openForm = async (type: string, row?: number, defaultSupplierCode?: string if(item.field == 'ppNumber'){ item.componentProps.isSearchList = false item.componentProps.disabled = true + if(item.field == 'ppNumber'){ + item.componentProps.isSearchList = true + item.componentProps.disabled = true + item.componentProps.enterSearch = false + } } if(item.field == 'asnNumber'){ item.componentProps.disabled = true @@ -165,6 +175,8 @@ const openForm = async (type: string, row?: number, defaultSupplierCode?: string } if(item.field == 'ppNumber'){ item.componentProps.isSearchList = true + item.componentProps.disabled = false + item.componentProps.enterSearch = true } if(item.field == 'asnNumber'){ item.componentProps.disabled = false diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts index 89adaa5b5..38d774cd6 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts @@ -118,6 +118,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive( form: { // labelMessage: '信息提示说明!!!', componentProps: { + disabled:true, enterSearch:true, dialogWidth:'1055px',//搜索出来弹窗的宽度 isSearchList: true, // 开启查询弹窗