|
@ -2,7 +2,7 @@ |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
|
<!-- 搜索工作栏 --> |
|
|
<!-- 搜索工作栏 --> |
|
|
<Search |
|
|
<Search |
|
|
:schema="[...CountRequestMain.allSchemas.searchSchema,...CountRequestDetail.allSchemas.searchSchema]" |
|
|
:schema="CountRequestMain.allSchemas.searchSchema" |
|
|
@search="setSearchParams" |
|
|
@search="setSearchParams" |
|
|
@reset="setSearchParams" |
|
|
@reset="setSearchParams" |
|
|
/> |
|
|
/> |
|
@ -16,7 +16,6 @@ |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@searchFormClick="searchFormClick" |
|
|
@searchFormClick="searchFormClick" |
|
|
:allSchemas="CountRequestMain.allSchemas" |
|
|
:allSchemas="CountRequestMain.allSchemas" |
|
|
:detailAllSchemas="CountRequestDetail.allSchemas" |
|
|
|
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
<!-- 列表 --> |
|
@ -125,7 +124,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([...CountRequestMain.allSchemas.tableColumns,...CountRequestDetail.allSchemas.tableMainColumns]) |
|
|
const tableColumns = ref(CountRequestMain.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
@ -200,7 +199,7 @@ const searchTableSuccessCount = (formField, searchField, val, type,row,count) => |
|
|
const Echo = [] |
|
|
const Echo = [] |
|
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
getListApi: CountRequestDetailApi.getCountRequestDetailPage // 分页接口 |
|
|
getListApi: CountRequestMainApi.getCountRequestMainPage // 分页接口 |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
// 获得表格的各种操作 |
|
@ -285,10 +284,7 @@ const isShowGenerateMainButton = (row, val) => { |
|
|
const searchTableRef = ref() |
|
|
const searchTableRef = ref() |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row,$index) => { |
|
|
const butttondata = (row,$index) => { |
|
|
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
|
|
|
|
if(findIndex>-1&&findIndex<$index){ |
|
|
|
|
|
return [] |
|
|
|
|
|
} |
|
|
|
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListCloseBtn({hide: isShowMainButton(row, ['1', '2', '3', '4', '6']),hasPermi: 'wms:count-request-main:close'}), // 关闭 |
|
|
defaultButtons.mainListCloseBtn({hide: isShowMainButton(row, ['1', '2', '3', '4', '6']),hasPermi: 'wms:count-request-main:close'}), // 关闭 |
|
|
defaultButtons.mainListReAddBtn({hide: isShowMainButton(row, ['5']),hasPermi: 'wms:count-request-main:reAdd'}), //重新添加 |
|
|
defaultButtons.mainListReAddBtn({hide: isShowMainButton(row, ['5']),hasPermi: 'wms:count-request-main:reAdd'}), //重新添加 |
|
@ -311,7 +307,7 @@ const buttonTableClick = async (val, row) => { |
|
|
// 关闭 |
|
|
// 关闭 |
|
|
await message.confirm('确认要关闭吗?') |
|
|
await message.confirm('确认要关闭吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
CountRequestMainApi.close(row.masterId) |
|
|
CountRequestMainApi.close(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('关闭成功')) |
|
|
message.success(t('关闭成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -325,7 +321,7 @@ const buttonTableClick = async (val, row) => { |
|
|
// 重新添加 |
|
|
// 重新添加 |
|
|
await message.confirm('确认要重新添加吗?') |
|
|
await message.confirm('确认要重新添加吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
CountRequestMainApi.reAdd(row.masterId) |
|
|
CountRequestMainApi.reAdd(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('添加成功')) |
|
|
message.success(t('添加成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -339,7 +335,7 @@ const buttonTableClick = async (val, row) => { |
|
|
// 提交审批 |
|
|
// 提交审批 |
|
|
await message.confirm('确认要提交审批吗?') |
|
|
await message.confirm('确认要提交审批吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
CountRequestMainApi.submit(row.masterId) |
|
|
CountRequestMainApi.submit(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('提交审批成功')) |
|
|
message.success(t('提交审批成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -353,7 +349,7 @@ const buttonTableClick = async (val, row) => { |
|
|
// 驳回 |
|
|
// 驳回 |
|
|
await message.confirm('确认要驳回吗?') |
|
|
await message.confirm('确认要驳回吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
CountRequestMainApi.refused(row.masterId) |
|
|
CountRequestMainApi.refused(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('驳回成功')) |
|
|
message.success(t('驳回成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -367,7 +363,7 @@ const buttonTableClick = async (val, row) => { |
|
|
// 审批通过 |
|
|
// 审批通过 |
|
|
await message.confirm('确认要审批通过吗?') |
|
|
await message.confirm('确认要审批通过吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
CountRequestMainApi.agree(row.masterId) |
|
|
CountRequestMainApi.agree(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('审批已通过')) |
|
|
message.success(t('审批已通过')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -381,7 +377,7 @@ const buttonTableClick = async (val, row) => { |
|
|
// 处理 |
|
|
// 处理 |
|
|
await message.confirm('确认要处理吗?') |
|
|
await message.confirm('确认要处理吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
CountRequestMainApi.handle(row.masterId) |
|
|
CountRequestMainApi.handle(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('处理成功')) |
|
|
message.success(t('处理成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -403,7 +399,7 @@ const buttonTableClick = async (val, row) => { |
|
|
label:3, |
|
|
label:3, |
|
|
title:'选择' |
|
|
title:'选择' |
|
|
}]) |
|
|
}]) |
|
|
searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'reCount','',true,'',row,{masterId:row.masterId},'',radioList.value) |
|
|
searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'reCount','',true,'',row,{masterId:row.id},'',radioList.value) |
|
|
} else if (val == 'mainSuperviseCount') { |
|
|
} else if (val == 'mainSuperviseCount') { |
|
|
// 监盘 |
|
|
// 监盘 |
|
|
const radioList = ref([{ |
|
|
const radioList = ref([{ |
|
@ -413,11 +409,11 @@ const buttonTableClick = async (val, row) => { |
|
|
label:2, |
|
|
label:2, |
|
|
title:'选择' |
|
|
title:'选择' |
|
|
}]) |
|
|
}]) |
|
|
searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'superviseCount','',true,'',row,{masterId:row.masterId},'',radioList.value) |
|
|
searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'superviseCount','',true,'',row,{masterId:row.id},'',radioList.value) |
|
|
} else if (val == 'countAdjustRequest') { |
|
|
} else if (val == 'countAdjustRequest') { |
|
|
// 生成盘点调整申请 |
|
|
// 生成盘点调整申请 |
|
|
await message.confirm('确认要生成盘点调整申请吗?') |
|
|
await message.confirm('确认要生成盘点调整申请吗?') |
|
|
CountRequestMainApi.generateCountadjustRequest(row.masterId) |
|
|
CountRequestMainApi.generateCountadjustRequest(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('已生成盘点调整申请')) |
|
|
message.success(t('已生成盘点调整申请')) |
|
|
getList() |
|
|
getList() |
|
@ -429,7 +425,7 @@ const buttonTableClick = async (val, row) => { |
|
|
// 解冻 |
|
|
// 解冻 |
|
|
await message.confirm('确认要解冻吗?') |
|
|
await message.confirm('确认要解冻吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
CountRequestMainApi.thaw(row.masterId) |
|
|
CountRequestMainApi.thaw(row.id) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('解冻成功')) |
|
|
message.success(t('解冻成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -444,7 +440,7 @@ const buttonTableClick = async (val, row) => { |
|
|
openForm('update', row) |
|
|
openForm('update', row) |
|
|
} else if (val == 'delete') { |
|
|
} else if (val == 'delete') { |
|
|
// 删除 |
|
|
// 删除 |
|
|
handleDelete(row.masterId) |
|
|
handleDelete(row.id) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|