|
@ -62,12 +62,11 @@ import download from '@/utils/download' |
|
|
import * as ItempackagingApi from '@/api/wms/itempackaging' |
|
|
import * as ItempackagingApi from '@/api/wms/itempackaging' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
import { Itempackaging, ItempackagingRules, ItemBasic } from '@/utils/disposition/tableColumns' |
|
|
import { Itempackaging, ItempackagingRules, Itembasic } from '@/utils/disposition/tableColumns' |
|
|
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' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import * as RedisApi from '@/api/redis' |
|
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'Itempackaging' }) |
|
|
defineOptions({ name: 'Itempackaging' }) |
|
|
|
|
|
|
|
@ -77,12 +76,12 @@ const { t } = useI18n() // 国际化 |
|
|
const route = useRoute() // 路由信息 |
|
|
const route = useRoute() // 路由信息 |
|
|
const routeName = ref() |
|
|
const routeName = ref() |
|
|
routeName.value = route.name |
|
|
routeName.value = route.name |
|
|
const tableColumns = ref(Itempackaging.allSchemas.tableColumns) |
|
|
const tableColumns = ref() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
console.log(84, val) |
|
|
|
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -90,7 +89,7 @@ const updataTableColumns = (val) => { |
|
|
const searchTableParams = ref([{ |
|
|
const searchTableParams = ref([{ |
|
|
formField: 'itemCode', |
|
|
formField: 'itemCode', |
|
|
searchTableTitle: '物料信息', |
|
|
searchTableTitle: '物料信息', |
|
|
searchTableAllSchemas: ItemBasic.allSchemas, |
|
|
searchTableAllSchemas: Itembasic.allSchemas, |
|
|
searchTablePage: ItembasicApi.getItembasicPage |
|
|
searchTablePage: ItembasicApi.getItembasicPage |
|
|
}]) |
|
|
}]) |
|
|
|
|
|
|
|
@ -219,6 +218,12 @@ const importSuccess = () => { |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
|
|
|
console.log('222222222222222222222') |
|
|
|
|
|
nextTick(() => { |
|
|
|
|
|
tableColumns.value = Itempackaging.allSchemas.tableColumns |
|
|
|
|
|
}) |
|
|
|
|
|
// console.log('111111111111111111111111111', tableColumns.value) |
|
|
|
|
|
// console.log('1111111111111111111111111112222222222', Itempackaging.allSchemas.tableColumns) |
|
|
getList() |
|
|
getList() |
|
|
importTemplateData.templateUrl = await ItempackagingApi.importTemplate() |
|
|
importTemplateData.templateUrl = await ItempackagingApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|