|
@ -44,7 +44,6 @@ |
|
|
@success="formsSuccess" |
|
|
@success="formsSuccess" |
|
|
:rules="CustomerdockRules" |
|
|
:rules="CustomerdockRules" |
|
|
:formAllSchemas="Customerdock.allSchemas" |
|
|
:formAllSchemas="Customerdock.allSchemas" |
|
|
:searchTableParams="searchTableParams" |
|
|
|
|
|
:apiUpdate="CustomerdockApi.updateCustomerdock" |
|
|
:apiUpdate="CustomerdockApi.updateCustomerdock" |
|
|
:apiCreate="CustomerdockApi.createCustomerdock" |
|
|
:apiCreate="CustomerdockApi.createCustomerdock" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
@ -61,13 +60,7 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import * as CustomerdockApi from '@/api/wms/customerdock' |
|
|
import * as CustomerdockApi from '@/api/wms/customerdock' |
|
|
import * as CustomerApi from '@/api/wms/customer' |
|
|
|
|
|
import * as WarehouseApi from '@/api/wms/warehouse' |
|
|
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
import { Warehouse } from '../../factoryModeling/warehouse/warehouse.data' |
|
|
|
|
|
import { Location } from '../../factoryModeling/location/location.data' |
|
|
|
|
|
import { Customer } from '../customer/customer.data' |
|
|
|
|
|
import { Customerdock, CustomerdockRules } from './customerdock.data' |
|
|
import { Customerdock, CustomerdockRules } from './customerdock.data' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
@ -89,24 +82,6 @@ const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询列表参数设置 |
|
|
|
|
|
const searchTableParams = ref([{ |
|
|
|
|
|
formField: 'customerCode', |
|
|
|
|
|
searchTableTitle: '客户信息', |
|
|
|
|
|
searchTableAllSchemas: Customer.allSchemas, |
|
|
|
|
|
searchTablePage: CustomerApi.getCustomerPage |
|
|
|
|
|
},{ |
|
|
|
|
|
formField: 'warehouseCode', |
|
|
|
|
|
searchTableTitle: '仓库信息', |
|
|
|
|
|
searchTableAllSchemas: Warehouse.allSchemas, |
|
|
|
|
|
searchTablePage: WarehouseApi.getWarehousePage |
|
|
|
|
|
},{ |
|
|
|
|
|
formField: 'defaultLocationCode', |
|
|
|
|
|
searchTableTitle: '库位信息', |
|
|
|
|
|
searchTableAllSchemas: Location.allSchemas, |
|
|
|
|
|
searchTablePage: LocationApi.getLocationPage |
|
|
|
|
|
}]) |
|
|
|
|
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
getListApi: CustomerdockApi.getCustomerdockPage // 分页接口 |
|
|
getListApi: CustomerdockApi.getCustomerdockPage // 分页接口 |
|
|
}) |
|
|
}) |
|
|