diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 89ec0cfe6..bbea82ce3 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -832,25 +832,8 @@ const opensearchTable = ( const buttonTableClick = async (val, row) => { if (val == 'edit') { // 编辑 - if(props.isOpenSearchTable){ // 供应商发票申请--明细--子表编辑 - searchTableFormType.value = 'update' - if (row?.id || row?.masterId) { - searchTableFormModel.value = Object.assign(unref(searchTableFormModel), row) - } - const item = props.detailAllSchemas.formSchema[0] - debugger - // 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('update', row) - } + openForm('update', row) + } else if (val == 'delete') { // 删除 handleDelete(row.id) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 412ae1f05..88132db45 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -138,7 +138,7 @@ :apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage" :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :Echo="Echo" - :detailButtonIsShowEdit="false" + :detailButtonIsShowEdit="true" :detailButtonIsShowAddStatusArray="['1','6']" :detailButtonIsShowDelete="true" :detailButtonIsShowAdd="true" @@ -447,7 +447,29 @@ const handleImport = () => { if(item.field == 'orderType'){ item.componentProps.disabled = true } + if(row.status=='3'){ + if(item.field == 'procurementCreator'){ + // 采购价格审批人 + item.componentProps.disabled = true + } + if(item.field == 'taxRate'){ + // 税率 + item.componentProps.disabled = true + } + }else{ + if(item.field == 'procurementCreator'){ + // 采购价格审批人 + item.componentProps.disabled = false + } + if(item.field == 'taxRate'){ + // 税率 + item.componentProps.disabled = false + } + } + + }) + }else{ SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => { if(item.field == 'orderType'){ @@ -457,6 +479,14 @@ const handleImport = () => { //默认供应商代码 item.value = defaultSupplierCode.value } + if(item.field == 'procurementCreator'){ + //采购价格审批人 + item.componentProps.disabled = false + } + if(item.field == 'taxRate'){ + // 税率 + item.componentProps.disabled = false + } }) }