|
@ -54,9 +54,11 @@ |
|
|
ref="detailRef" |
|
|
ref="detailRef" |
|
|
:isBasic="false" |
|
|
:isBasic="false" |
|
|
:allSchemas="PurchasereceiptRecordMain.allSchemas" |
|
|
:allSchemas="PurchasereceiptRecordMain.allSchemas" |
|
|
:detailAllSchemas="PurchasereceiptRecordDetail.allSchemas" |
|
|
:detailAllSchemas="detailAllSchemas" |
|
|
:detailAllSchemasRules="PurchasereceiptRecordDetailRules" |
|
|
:detailAllSchemasRules="PurchasereceiptRecordDetailRules" |
|
|
:apiPage="PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage" |
|
|
:apiPage="apiPage" |
|
|
|
|
|
:tabs="PurchasereceiptRequestTabsList" |
|
|
|
|
|
@changeTabs="changeTabs" |
|
|
/> |
|
|
/> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -66,10 +68,13 @@ import { PurchasereceiptRecordMain,PurchasereceiptRecordMainRules,Purchasereceip |
|
|
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain' |
|
|
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain' |
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList' |
|
|
|
|
|
|
|
|
// 采购收货记录主 |
|
|
// 采购收货记录主 |
|
|
defineOptions({ name: 'PurchasereceiptRecordMain' }) |
|
|
defineOptions({ name: 'PurchasereceiptRecordMain' }) |
|
|
|
|
|
|
|
|
|
|
|
const apiPage = ref(PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage) |
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const { t } = useI18n() // 国际化 |
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
@ -77,6 +82,7 @@ const route = useRoute() // 路由信息 |
|
|
const routeName = ref() |
|
|
const routeName = ref() |
|
|
routeName.value = route.name |
|
|
routeName.value = route.name |
|
|
const tableColumns = ref(PurchasereceiptRecordMain.allSchemas.tableColumns) |
|
|
const tableColumns = ref(PurchasereceiptRecordMain.allSchemas.tableColumns) |
|
|
|
|
|
const detailAllSchemas = ref(PurchasereceiptRecordDetail.allSchemas) |
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
@ -154,6 +160,17 @@ const searchFormClick = (searchData) => { |
|
|
} |
|
|
} |
|
|
getList() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
// tabs 切换事件 |
|
|
|
|
|
const changeTabs = (data) =>{ |
|
|
|
|
|
if(data.prop == 'receiptDetail'){ |
|
|
|
|
|
console.log(data) |
|
|
|
|
|
apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage |
|
|
|
|
|
detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas |
|
|
|
|
|
}else if(data.prop == 'scarceGoodsDetail'){ |
|
|
|
|
|
apiPage.value = PurchasereceiptRecordDetailApi.getScarceGoodsDetailPage |
|
|
|
|
|
detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|