|
@ -43,8 +43,7 @@ |
|
|
ref="basicFormRef" |
|
|
ref="basicFormRef" |
|
|
@success="formsSuccess" |
|
|
@success="formsSuccess" |
|
|
:rules="CustomeritemRules" |
|
|
:rules="CustomeritemRules" |
|
|
:formAllSchemas="Customeritem.allSchemas" |
|
|
:formAllSchemas="Customeritem.allSchemas" |
|
|
:searchTableParams="searchTableParams" |
|
|
|
|
|
:apiUpdate="CustomeritemApi.updateCustomeritem" |
|
|
:apiUpdate="CustomeritemApi.updateCustomeritem" |
|
|
:apiCreate="CustomeritemApi.createCustomeritem" |
|
|
:apiCreate="CustomeritemApi.createCustomeritem" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
@ -61,12 +60,8 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import * as CustomeritemApi from '@/api/wms/customeritem' |
|
|
import * as CustomeritemApi from '@/api/wms/customeritem' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
|
|
import * as CustomerApi from '@/api/wms/customer' |
|
|
|
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
import { Customeritem, CustomeritemRules } from './customeritem.data' |
|
|
import { Customeritem, CustomeritemRules } from './customeritem.data' |
|
|
import { Customer } from '../customer/customer.data' |
|
|
|
|
|
import { Itembasic } from '../../itemManage/itembasic/itembasic.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' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
@ -87,19 +82,6 @@ const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询列表参数设置 |
|
|
|
|
|
const searchTableParams = ref([{ |
|
|
|
|
|
formField: 'customerCode', |
|
|
|
|
|
searchTableTitle: '客户信息', |
|
|
|
|
|
searchTableAllSchemas: Customer.allSchemas, |
|
|
|
|
|
searchTablePage: CustomerApi.getCustomerPage |
|
|
|
|
|
},{ |
|
|
|
|
|
formField: 'itemCode', |
|
|
|
|
|
searchTableTitle: '物料信息', |
|
|
|
|
|
searchTableAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchTablePage: ItembasicApi.getItembasicPage |
|
|
|
|
|
}]) |
|
|
|
|
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
getListApi: CustomeritemApi.getCustomeritemPage // 分页接口 |
|
|
getListApi: CustomeritemApi.getCustomeritemPage // 分页接口 |
|
|
}) |
|
|
}) |
|
|