|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
|
<!-- 搜索工作栏 --> |
|
|
<!-- 搜索工作栏 --> |
|
|
<Search :schema="ProductrepairRequestMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
<Search :schema="[...ProductrepairRequestMain.allSchemas.searchSchema,...ProductrepairRequestDetaila.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
<!-- 列表头部 --> |
|
@ -12,6 +12,7 @@ |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@searchFormClick="searchFormClick" |
|
|
@searchFormClick="searchFormClick" |
|
|
:allSchemas="ProductrepairRequestMain.allSchemas" |
|
|
:allSchemas="ProductrepairRequestMain.allSchemas" |
|
|
|
|
|
:detailAllSchemas="ProductrepairRequestDetaila.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> |
|
@ -122,7 +123,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(ProductrepairRequestMain.allSchemas.tableColumns) |
|
|
const tableColumns = ref([...ProductrepairRequestMain.allSchemas.tableColumns,...ProductrepairRequestDetaila.allSchemas.tableMainColumns]) |
|
|
|
|
|
|
|
|
// 详情 table 操作扩展 按钮 |
|
|
// 详情 table 操作扩展 按钮 |
|
|
const buttondataTable = ref([{ |
|
|
const buttondataTable = ref([{ |
|
@ -347,7 +348,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']), hasPermi:'wms:productrepair-request-main:close'}), // 关闭 |
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']), hasPermi:'wms:productrepair-request-main:close'}), // 关闭 |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']), hasPermi:'wms:productrepair-request-main:reAdd'}), // 重新添加 |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']), hasPermi:'wms:productrepair-request-main:reAdd'}), // 重新添加 |
|
@ -364,26 +369,26 @@ const butttondata = (row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'mainClose') { // 关闭 |
|
|
if (val == 'mainClose') { // 关闭 |
|
|
console.log('列表-操作按钮事件-关闭') |
|
|
console.log('列表-操作按钮事件-关闭') |
|
|
handleClose(row.id) |
|
|
handleClose(row.masterId) |
|
|
} else if (val == 'mainReAdd') { // 重新添加 |
|
|
} else if (val == 'mainReAdd') { // 重新添加 |
|
|
console.log('列表-操作按钮事件-重新添加') |
|
|
console.log('列表-操作按钮事件-重新添加') |
|
|
handleReAdd(row.id) |
|
|
handleReAdd(row.masterId) |
|
|
} else if (val == 'mainSubmit') { // 提交审批 |
|
|
} else if (val == 'mainSubmit') { // 提交审批 |
|
|
console.log('列表-操作按钮事件-提交审批') |
|
|
console.log('列表-操作按钮事件-提交审批') |
|
|
handleSubmit(row.id) |
|
|
handleSubmit(row.masterId) |
|
|
} else if (val == 'mainTurnDown') { // 驳回 |
|
|
} else if (val == 'mainTurnDown') { // 驳回 |
|
|
console.log('列表-操作按钮事件-驳回') |
|
|
console.log('列表-操作按钮事件-驳回') |
|
|
handleRefused(row.id) |
|
|
handleRefused(row.masterId) |
|
|
} else if (val == 'mainApprove') { // 审批通过 |
|
|
} else if (val == 'mainApprove') { // 审批通过 |
|
|
console.log('列表-操作按钮事件-审批通过') |
|
|
console.log('列表-操作按钮事件-审批通过') |
|
|
handleAgree(row.id) |
|
|
handleAgree(row.masterId) |
|
|
} else if (val == 'mainHandle') { // 处理 |
|
|
} else if (val == 'mainHandle') { // 处理 |
|
|
console.log('列表-操作按钮事件-处理') |
|
|
console.log('列表-操作按钮事件-处理') |
|
|
handleHandle(row.id) |
|
|
handleHandle(row.masterId) |
|
|
} 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) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -669,10 +674,10 @@ const tableFormButton = async (val , row) => { |
|
|
detatableDataBom.params = { |
|
|
detatableDataBom.params = { |
|
|
itemCode: row.itemCode, |
|
|
itemCode: row.itemCode, |
|
|
bomVersion: row.bomVersion, |
|
|
bomVersion: row.bomVersion, |
|
|
masterId: row.id |
|
|
masterId: row.masterId |
|
|
} |
|
|
} |
|
|
detailQty.value = row.qty |
|
|
detailQty.value = row.qty |
|
|
rowId.value = row.id |
|
|
rowId.value = row.masterId |
|
|
await getDetailListBom() |
|
|
await getDetailListBom() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|