|
@ -149,13 +149,13 @@ const butttondata = [ |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'edit') { |
|
|
if (val == 'edit') { |
|
|
// 编辑 |
|
|
// 编辑 |
|
|
// const res = await BusinesstypeApi.getItempackaging(row.id) |
|
|
const rowSplit = JSON.parse(JSON.stringify(row)) |
|
|
// row.itemTypes = row.itemTypes.split(',') |
|
|
rowSplit.itemTypes = rowSplit.itemTypes.split(',') |
|
|
// row.outLocationTypes = row.outLocationTypes.split(',') |
|
|
rowSplit.outLocationTypes = rowSplit.outLocationTypes.split(',') |
|
|
// row.inLocationTypes = row.inLocationTypes.split(',') |
|
|
rowSplit.inLocationTypes = rowSplit.inLocationTypes.split(',') |
|
|
// row.outInventoryStatuses = row.outInventoryStatuses.split(',') |
|
|
rowSplit.outInventoryStatuses = rowSplit.outInventoryStatuses.split(',') |
|
|
// row.inInventoryStatuses = row.inInventoryStatuses.split(',') |
|
|
rowSplit.inInventoryStatuses = rowSplit.inInventoryStatuses.split(',') |
|
|
openForm('update', row) |
|
|
openForm('update', rowSplit) |
|
|
} else if (val == 'delete') { |
|
|
} else if (val == 'delete') { |
|
|
// 删除 |
|
|
// 删除 |
|
|
handleDelete(row.id) |
|
|
handleDelete(row.id) |
|
@ -165,7 +165,6 @@ const buttonTableClick = async (val, row) => { |
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
console.log(row) |
|
|
|
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -289,13 +288,6 @@ const searchFormClick = (searchData) => { |
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
await getList() |
|
|
await getList() |
|
|
// tableObject.tableList.forEach((item) => { |
|
|
|
|
|
// item.itemTypes = item.itemTypes.split(',') |
|
|
|
|
|
// item.outLocationTypes = item.outLocationTypes.split(',') |
|
|
|
|
|
// item.inLocationTypes = item.inLocationTypes.split(',') |
|
|
|
|
|
// item.outInventoryStatuses = item.outInventoryStatuses.split(',') |
|
|
|
|
|
// item.inInventoryStatuses = item.inInventoryStatuses.split(',') |
|
|
|
|
|
// }) |
|
|
|
|
|
// console.log(300, tableObject.tableList) |
|
|
// console.log(300, tableObject.tableList) |
|
|
importTemplateData.templateUrl = await BusinesstypeApi.importTemplate() |
|
|
importTemplateData.templateUrl = await BusinesstypeApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|