|
@ -94,6 +94,7 @@ |
|
|
<template #footer> |
|
|
<template #footer> |
|
|
<ButtonBase :Butttondata="ButttondataBom" @button-base-click="buttonBaseClickBom" /> |
|
|
<ButtonBase :Butttondata="ButttondataBom" @button-base-click="buttonBaseClickBom" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess" /> |
|
|
</Dialog> |
|
|
</Dialog> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -104,14 +105,15 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { ProductscrapRequestMain,ProductscrapRequestMainRules,ProductscrapRequestDetail,ProductscrapRequestDetailRules,ProdcutscrapBomDismantle } from './productscrapRequestMain.data' |
|
|
import { ProductscrapRequestMain, |
|
|
|
|
|
ProductscrapRequestMainRules, |
|
|
|
|
|
ProductscrapRequestDetail, |
|
|
|
|
|
ProductscrapRequestDetailRules, |
|
|
|
|
|
ProdcutscrapBomDismantle } from './productscrapRequestMain.data' |
|
|
import * as ProductscrapRequestMainApi from '@/api/wms/productscrapRequestMain' |
|
|
import * as ProductscrapRequestMainApi from '@/api/wms/productscrapRequestMain' |
|
|
import * as ProductscrapRequestDetailApi from '@/api/wms/productscrapRequestDetail' |
|
|
import * as ProductscrapRequestDetailApi from '@/api/wms/productscrapRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as BomDismantleApi from "@/api/wms/bomDismantle"; |
|
|
import * as BomDismantleApi from "@/api/wms/bomDismantle" |
|
|
import {getProductscrapBomDismantlePage} from "@/api/wms/bomDismantle"; |
|
|
|
|
|
import * as dismantleRequestDetailbApi from "@/api/wms/dismantleRequestDetailb"; |
|
|
|
|
|
import {updateProductscrapDetailRequestBom} from "@/api/wms/productscrapRequestMain"; |
|
|
|
|
|
|
|
|
|
|
|
// 制品报废申请 |
|
|
// 制品报废申请 |
|
|
defineOptions({ name: 'ProductscrapRequestMain' }) |
|
|
defineOptions({ name: 'ProductscrapRequestMain' }) |
|
@ -209,7 +211,18 @@ const buttonOperationClick = async (row, label, index)=> { |
|
|
detailQty.value = row.qty |
|
|
detailQty.value = row.qty |
|
|
bomModelVisible.value = true |
|
|
bomModelVisible.value = true |
|
|
await getDetailListBom() |
|
|
await getDetailListBom() |
|
|
|
|
|
|
|
|
detatableDataBom.tableList.forEach(item => { |
|
|
detatableDataBom.tableList.forEach(item => { |
|
|
|
|
|
// ProdcutscrapBomDismantle.allSchemas.tableFormColumns.forEach((bomItem) => { |
|
|
|
|
|
// if (bomItem.field == 'batch') { |
|
|
|
|
|
// let condition = { |
|
|
|
|
|
// 'key':'locationCode', |
|
|
|
|
|
// 'value': row.fromLocationCode, |
|
|
|
|
|
// 'isMainValue':'false' |
|
|
|
|
|
// } |
|
|
|
|
|
// bomItem.searchCondition.push(condition) |
|
|
|
|
|
// } |
|
|
|
|
|
// }) |
|
|
item.rowId = index |
|
|
item.rowId = index |
|
|
if(tableData.value[index].childList.length > 0) { |
|
|
if(tableData.value[index].childList.length > 0) { |
|
|
tableData.value[index].childList.forEach(itemChild => { |
|
|
tableData.value[index].childList.forEach(itemChild => { |
|
|