|
@ -106,15 +106,12 @@ import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
// 采购收货记录主 |
|
|
// 采购收货记录主 |
|
|
defineOptions({ name: 'PurchasereceiptRecordMain' }) |
|
|
defineOptions({ name: 'PurchasereceiptRecordMain' }) |
|
|
|
|
|
|
|
|
const apiPage = ref(PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage) |
|
|
|
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const { t } = useI18n() // 国际化 |
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
|
const route = useRoute() // 路由信息 |
|
|
const route = useRoute() // 路由信息 |
|
|
const routeName = ref() |
|
|
const routeName = ref() |
|
|
routeName.value = route.name |
|
|
routeName.value = route.name |
|
|
|
|
|
const apiPage = ref(routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage) |
|
|
const tableColumns = ref([...PurchasereceiptRecordMain.allSchemas.tableColumns,...PurchasereceiptRecordDetail.allSchemas.tableMainColumns]) |
|
|
const tableColumns = ref([...PurchasereceiptRecordMain.allSchemas.tableColumns,...PurchasereceiptRecordDetail.allSchemas.tableMainColumns]) |
|
|
const detailAllSchemas = ref(PurchasereceiptRecordDetail.allSchemas) |
|
|
const detailAllSchemas = ref(PurchasereceiptRecordDetail.allSchemas) |
|
|
|
|
|
|
|
@ -124,7 +121,7 @@ const updataTableColumns = (val) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
getListApi: PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage // 分页接口 |
|
|
getListApi: routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage // 分页接口 |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
// 获得表格的各种操作 |
|
@ -290,7 +287,7 @@ const searchFormClick = (searchData) => { |
|
|
const changeTabs = (data) =>{ |
|
|
const changeTabs = (data) =>{ |
|
|
if(data.prop == 'receiptDetail'){ |
|
|
if(data.prop == 'receiptDetail'){ |
|
|
console.log(data) |
|
|
console.log(data) |
|
|
apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage |
|
|
apiPage.value = routeName.value.includes('SCP')?PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSCP:PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage |
|
|
detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas |
|
|
detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas |
|
|
tabeKey.value = 'receiptDetail' |
|
|
tabeKey.value = 'receiptDetail' |
|
|
}else if(data.prop == 'scarceGoodsDetail'){ |
|
|
}else if(data.prop == 'scarceGoodsDetail'){ |
|
|