|
|
@ -53,7 +53,26 @@ |
|
|
|
:isBusiness="true" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- bom列表 --> |
|
|
|
<Dialog |
|
|
|
:title="DialogTitle" |
|
|
|
v-model="bomModelVisible" |
|
|
|
width="80%" |
|
|
|
:scroll="true" |
|
|
|
max-height="450px" |
|
|
|
> |
|
|
|
<Table |
|
|
|
:columns="BackflushRecordDetailb.allSchemas.tableColumns" |
|
|
|
:data="detatableDataBom.tableList" |
|
|
|
:loading="detatableDataBom.loading" |
|
|
|
:pagination="{ |
|
|
|
total: detatableDataBom.total |
|
|
|
}" |
|
|
|
v-model:pageSize="detatableDataBom.pageSize" |
|
|
|
v-model:currentPage="detatableDataBom.currentPage" |
|
|
|
v-model:sort="detatableDataBom.sort" |
|
|
|
/> |
|
|
|
</Dialog> |
|
|
|
<!-- 详情 --> |
|
|
|
<Detail |
|
|
|
ref="detailRef" |
|
|
@ -63,6 +82,10 @@ |
|
|
|
:detailAllSchemasRules="ProductreceiptJobDetailRules" |
|
|
|
:searchTableParams="searchTableParams" |
|
|
|
:apiPage="ProductreceiptJobDetailApi.getProductreceiptJobDetailPage" |
|
|
|
:buttondataTable="buttondataTable" |
|
|
|
:detail-button-is-show-delete="false" |
|
|
|
:detail-button-is-show-edit="false" |
|
|
|
@tableFormButton="tableFormButton" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
|
|
|
@ -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(() => { |
|
|
|