|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
|
<!-- 搜索工作栏 --> |
|
|
<!-- 搜索工作栏 --> |
|
|
<Search :schema="InventorymoveRequestMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
<Search :schema="[...InventorymoveRequestMain.allSchemas.searchSchema,...InventorymoveRequestDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
<!-- 列表头部 --> |
|
@ -12,6 +12,7 @@ |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@searchFormClick="searchFormClick" |
|
|
@searchFormClick="searchFormClick" |
|
|
:allSchemas="InventorymoveRequestMain.allSchemas" |
|
|
:allSchemas="InventorymoveRequestMain.allSchemas" |
|
|
|
|
|
:detailAllSchemas="InventorymoveRequestDetail.allSchemas" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
<!-- 列表 --> |
|
@ -32,8 +33,8 @@ |
|
|
<span>{{ row.number }}</span> |
|
|
<span>{{ row.number }}</span> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template #action="{ row }"> |
|
|
<template #action="{ row,$index }"> |
|
|
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
</template> |
|
|
</template> |
|
|
</Table> |
|
|
</Table> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
@ -94,7 +95,7 @@ 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(InventorymoveRequestMain.allSchemas.tableColumns) |
|
|
const tableColumns = ref([...InventorymoveRequestMain.allSchemas.tableColumns,...InventorymoveRequestDetail.allSchemas.tableMainColumns]) |
|
|
const businessType = ref() |
|
|
const businessType = ref() |
|
|
|
|
|
|
|
|
console.log(99 , routeName.value) |
|
|
console.log(99 , routeName.value) |
|
@ -394,7 +395,11 @@ const isShowMainButton = (row,val) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row,$index) => { |
|
|
|
|
|
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
|
|
|
|
if(findIndex>0&&findIndex<$index){ |
|
|
|
|
|
return [] |
|
|
|
|
|
} |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:inventorymove-request-main:close'}), // 关闭 |
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:inventorymove-request-main:close'}), // 关闭 |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:inventorymove-request-main:reAdd'}), //重新添加 |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:inventorymove-request-main:reAdd'}), //重新添加 |
|
@ -414,7 +419,7 @@ const buttonTableClick = async (val, row) => { |
|
|
if (val == 'mainClose') { // 关闭 |
|
|
if (val == 'mainClose') { // 关闭 |
|
|
await message.confirm('确认要关闭吗?') |
|
|
await message.confirm('确认要关闭吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
InventorymoveRequestMainApi.close(row.id).then(() => { |
|
|
InventorymoveRequestMainApi.close(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -425,7 +430,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainReAdd') { // 重新添加 |
|
|
} else if (val == 'mainReAdd') { // 重新添加 |
|
|
await message.confirm('确认要重新添加吗?') |
|
|
await message.confirm('确认要重新添加吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
InventorymoveRequestMainApi.reAdd(row.id).then(() => { |
|
|
InventorymoveRequestMainApi.reAdd(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -436,7 +441,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainSubmit') { // 提交审批 |
|
|
} else if (val == 'mainSubmit') { // 提交审批 |
|
|
await message.confirm('确认要提交审批吗?') |
|
|
await message.confirm('确认要提交审批吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
InventorymoveRequestMainApi.submit(row.id).then(() => { |
|
|
InventorymoveRequestMainApi.submit(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -447,7 +452,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainTurnDown') { // 驳回 |
|
|
} else if (val == 'mainTurnDown') { // 驳回 |
|
|
await message.confirm('确认要驳回吗?') |
|
|
await message.confirm('确认要驳回吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
InventorymoveRequestMainApi.refused(row.id).then(() => { |
|
|
InventorymoveRequestMainApi.refused(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -458,7 +463,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainApprove') { // 审批通过 |
|
|
} else if (val == 'mainApprove') { // 审批通过 |
|
|
await message.confirm('确认要审批通过吗?') |
|
|
await message.confirm('确认要审批通过吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
InventorymoveRequestMainApi.agree(row.id).then(() => { |
|
|
InventorymoveRequestMainApi.agree(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -469,7 +474,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainHandle') { // 处理 |
|
|
} else if (val == 'mainHandle') { // 处理 |
|
|
await message.confirm('确认要处理吗?') |
|
|
await message.confirm('确认要处理吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
InventorymoveRequestMainApi.handle(row.id).then(() => { |
|
|
InventorymoveRequestMainApi.handle(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -480,7 +485,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'edit') { // 编辑 |
|
|
} else if (val == 'edit') { // 编辑 |
|
|
openForm('update', row) |
|
|
openForm('update', row) |
|
|
} else if (val == 'delete') { // 删除 |
|
|
} else if (val == 'delete') { // 删除 |
|
|
handleDelete(row.id) |
|
|
handleDelete(row.masterId) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|