diff --git a/src/utils/disposition/tabsList.ts b/src/utils/disposition/tabsList.ts index 77e9c47c6..64d82ab79 100644 --- a/src/utils/disposition/tabsList.ts +++ b/src/utils/disposition/tabsList.ts @@ -38,3 +38,9 @@ export const PurchasereceiptRequestTabsList = [{ } ] +export const PurchasereceiptRefuseRequestTabsList = [{ + label: "拒收明细", + prop: 'receiptDetail', +} +] + diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index 4843c49c6..a1fe92cdd 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -220,7 +220,7 @@ const butttondata = (row,$index) => { { label: '拒收', name: 'mainJobRefusal', - hide: isShowMainButton(row, ['1']), + hide: isShowMainButton(row, ['2']), type: 'primary', icon: '', color: '', diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue index c4befcd4d..a9c77fe87 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue @@ -58,7 +58,7 @@ :detailAllSchemas="detailAllSchemas" :detailAllSchemasRules="PurchasereceiptRecordDetailRules" :apiPage="apiPage" - :tabs="PurchasereceiptRequestTabsList" + :tabs="PurchasereceiptRefuseRequestTabsList" @changeTabs="changeTabs" :buttondataTable="buttondataTable" @tableFormButton="tableFormButton" @@ -112,7 +112,7 @@ import { PurchasereceiptRecordMain, import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain' import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' -import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList' +import { PurchasereceiptRefuseRequestTabsList } from '@/utils/disposition/tabsList' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { getReportUrl } from '@/utils/systemParam' // 采购收货记录主 @@ -314,7 +314,7 @@ const searchFormClick = (searchData) => { const changeTabs = (data) =>{ if(data.prop == 'receiptDetail'){ console.log(data) - apiPage.value = routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage + apiPage.value = routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailRefusePage detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas tabeKey.value = 'receiptDetail' }else if(data.prop == 'scarceGoodsDetail'){