|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<ContentWrap> |
|
|
|
<!-- 搜索工作栏 --> |
|
|
|
<Search :schema="SaleShipmentMainRecord.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
<Search :schema="[...SaleShipmentMainRecord.allSchemas.searchSchema,...SaleShipmentDetailRecord.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
@ -12,11 +12,12 @@ |
|
|
|
@updataTableColumns="updataTableColumns" |
|
|
|
@searchFormClick="searchFormClick" |
|
|
|
:allSchemas="SaleShipmentMainRecord.allSchemas" |
|
|
|
:detailAllSchemas="SaleShipmentDetailRecord.allSchemas" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
|
<ContentWrap> |
|
|
|
<Table |
|
|
|
<Table v-clientTable |
|
|
|
:columns="tableColumns" |
|
|
|
:data="tableObject.tableList" |
|
|
|
:loading="tableObject.loading" |
|
|
@ -51,15 +52,23 @@ |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="SaleShipmentMainRecord.allSchemas" /> |
|
|
|
<Detail |
|
|
|
ref="detailRef" |
|
|
|
:isBasic="true" |
|
|
|
:allSchemas="SaleShipmentMainRecord.allSchemas" |
|
|
|
:detailAllSchemas="SaleShipmentDetailRecord.allSchemas" |
|
|
|
:detailAllSchemasRules="SaleShipmentDetailRecordRules" |
|
|
|
:apiPage="SaleShipmentDetailRecordApi.getSaleShipmentDetailRecordPage" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { SaleShipmentMainRecord,SaleShipmentMainRecordRules } from './saleShipmentMainRecord.data' |
|
|
|
import { SaleShipmentMainRecord,SaleShipmentMainRecordRules,SaleShipmentDetailRecord,SaleShipmentDetailRecordRules } from './saleShipmentMainRecord.data' |
|
|
|
import * as SaleShipmentMainRecordApi from '@/api/wms/saleShipmentMainRecord' |
|
|
|
import * as SaleShipmentDetailRecordApi from '@/api/wms/saleShipmentDetailRecord' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
@ -72,8 +81,8 @@ const { t } = useI18n() // 国际化 |
|
|
|
const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(SaleShipmentMainRecord.allSchemas.tableColumns) |
|
|
|
|
|
|
|
const tableColumns = ref([SaleShipmentMainRecord.allSchemas.tableColumns,...SaleShipmentDetailRecord.allSchemas.tableMainColumns]) |
|
|
|
// const tableColumns = ref(SaleShipmentMainRecord.allSchemas.tableColumns) |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|