diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue index e1ceea466..5ee3f4dd2 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue @@ -53,7 +53,26 @@ :isBusiness="true" @searchTableSuccess="searchTableSuccess" /> - + + + + @@ -73,6 +96,13 @@ import * as ProductreceiptJobMainApi from '@/api/wms/productreceiptJobMain' import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import * as BackflushRequestDetailbApi from '@/api/wms/backflushRequestDetailb' +import { + BackflushDetailRequest +} from "@/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data"; +import { + BackflushRecordDetailb +} from "@/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data"; // 制品收货任务主 // 预生产收货任务主 @@ -86,15 +116,44 @@ const routeName = ref() routeName.value = route.name const tableColumns = ref([...ProductreceiptJobMain.allSchemas.tableColumns,...ProductreceiptJobDetail.allSchemas.tableMainColumns]) +// Bom查看 +const DialogTitle = ref('Bom信息') +const bomModelVisible = ref(false) +const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({ + getListApi: BackflushRequestDetailbApi.getBackflushRequestDetailbPage +}) +const { getList:getDetailListBom } = detatableMethodsBom + + // 字段设置 更新主列表字段 const updataTableColumns = (val) => { tableColumns.value = val } - +// 详情 table 操作扩展 按钮 +const buttondataTable = ref([{ + label: 'Bom', + name: 'bom', + hide: false, + type: 'primary', + icon: '', + color: '', + hasPermi: '', + link: true, // 文本展现按钮 +}]) // 查询列表页面参数设置 const searchTableParams = ref([ ]) - +// 查看 Bom 按钮回调事件 +const tableFormButton = async (val , row) => { + if (val == 'bom') { // 查看 bom + bomModelVisible.value = true + DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息' + detatableDataBom.params = { + masterId: row.masterId + } + await getDetailListBom() + } +} // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { nextTick(() => { diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts index b85e7a8fa..9e90ac716 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts @@ -911,6 +911,18 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '操作', + hiddenInMain:true, + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150, + fixed: 'right' + }, + isTableForm:false, + } ])) //表单校验