|
@ -57,14 +57,39 @@ |
|
|
:detailAllSchemas="ProductdismantleRecordDetaila.allSchemas" |
|
|
:detailAllSchemas="ProductdismantleRecordDetaila.allSchemas" |
|
|
:detailAllSchemasRules="ProductdismantleRecordDetailaRules" |
|
|
:detailAllSchemasRules="ProductdismantleRecordDetailaRules" |
|
|
:apiPage="ProductdismantleRecordDetailApi.getProductdismantleRecordDetailaPage" |
|
|
:apiPage="ProductdismantleRecordDetailApi.getProductdismantleRecordDetailaPage" |
|
|
|
|
|
:buttondataTable="buttondataTable" |
|
|
|
|
|
@tableFormButton="tableFormButton" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- bom列表 --> |
|
|
|
|
|
<Dialog |
|
|
|
|
|
:title="DialogTitle" |
|
|
|
|
|
v-model="bomModelVisible" |
|
|
|
|
|
width="80%" |
|
|
|
|
|
:scroll="true" |
|
|
|
|
|
max-height="450px" |
|
|
|
|
|
> |
|
|
|
|
|
<TableForm |
|
|
|
|
|
ref="tableFormRef" |
|
|
|
|
|
class="w-[100%]" |
|
|
|
|
|
:tableFields="DismantleRecordDetailb.allSchemas.tableColumns" |
|
|
|
|
|
:tableData="detatableDataBom.tableList" |
|
|
|
|
|
:isShowButton="false" |
|
|
|
|
|
:isShowReduceButton="false" |
|
|
|
|
|
/> |
|
|
|
|
|
<template #footer> |
|
|
|
|
|
<ButtonBase :Butttondata="ButttondataBom" @button-base-click="buttonBaseClickBom" /> |
|
|
|
|
|
</template> |
|
|
|
|
|
</Dialog> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import { ProductdismantleRecordMain,ProductdismantleRecordMainRules,ProductdismantleRecordDetaila,ProductdismantleRecordDetailaRules } from './productdismantleRecordMain.data' |
|
|
import { ProductdismantleRecordMain,ProductdismantleRecordMainRules,ProductdismantleRecordDetaila,ProductdismantleRecordDetailaRules, DismantleRecordDetailb } from './productdismantleRecordMain.data' |
|
|
import * as ProductdismantleRecordMainApi from '@/api/wms/productdismantleRecordMain' |
|
|
import * as ProductdismantleRecordMainApi from '@/api/wms/productdismantleRecordMain' |
|
|
import * as ProductdismantleRecordDetailApi from '@/api/wms/productdismantleRecordDetaila' |
|
|
import * as ProductdismantleRecordDetailApi from '@/api/wms/productdismantleRecordDetaila' |
|
|
|
|
|
import * as DismantleRecordDetailbApi from '@/api/wms/dismantleRecordDetailb' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
|
|
|
// 制品拆解记录主 |
|
|
// 制品拆解记录主 |
|
@ -78,6 +103,51 @@ const routeName = ref() |
|
|
routeName.value = route.name |
|
|
routeName.value = route.name |
|
|
const tableColumns = ref(ProductdismantleRecordMain.allSchemas.tableColumns) |
|
|
const tableColumns = ref(ProductdismantleRecordMain.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
|
|
|
// 详情 table 操作扩展 按钮 |
|
|
|
|
|
const buttondataTable = ref([{ |
|
|
|
|
|
label: 'Bom', |
|
|
|
|
|
name: 'bom', |
|
|
|
|
|
hide: false, |
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
icon: '', |
|
|
|
|
|
color: '', |
|
|
|
|
|
hasPermi: '', |
|
|
|
|
|
link: true, // 文本展现按钮 |
|
|
|
|
|
}]) |
|
|
|
|
|
|
|
|
|
|
|
// Bom 窗口 |
|
|
|
|
|
const DialogTitle = ref('Bom信息') |
|
|
|
|
|
const bomModelVisible = ref(false) |
|
|
|
|
|
const rowId = ref() |
|
|
|
|
|
const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({ |
|
|
|
|
|
getListApi: DismantleRecordDetailbApi.getDismantleRecordDetailbPage |
|
|
|
|
|
}) |
|
|
|
|
|
const { getList:getDetailListBom } = detatableMethodsBom |
|
|
|
|
|
/** bom 列表 表单 按钮 */ |
|
|
|
|
|
const ButttondataBom = [ |
|
|
|
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
|
|
|
] |
|
|
|
|
|
// bom 列表 表单 按钮 |
|
|
|
|
|
const buttonBaseClickBom = async (val) => { |
|
|
|
|
|
if (val == 'close') { |
|
|
|
|
|
bomModelVisible.value = false |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查看 Bom 按钮回调事件 |
|
|
|
|
|
const tableFormButton = async (val , row) => { |
|
|
|
|
|
if (val == 'bom') { // 查看 bom |
|
|
|
|
|
bomModelVisible.value = true |
|
|
|
|
|
DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息' |
|
|
|
|
|
detatableDataBom.params = { |
|
|
|
|
|
masterId: row.id |
|
|
|
|
|
} |
|
|
|
|
|
rowId.value = row.id |
|
|
|
|
|
await getDetailListBom() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|