Browse Source

bom选择库位弹窗

master_hella_20240701
zhaoxuebing 8 months ago
parent
commit
adff006db0
  1. 23
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  2. 28
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

23
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -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 => {

28
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -1047,6 +1047,22 @@ export const ProdcutscrapBomDismantle = useCrudSchemas(reactive<CrudSchema[]>([
precision: 6 precision: 6
} }
}, },
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择批次',
searchField: 'batch',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage,
}
},
{ {
label: 'Bom版本', label: 'Bom版本',
field: 'bomVersion', field: 'bomVersion',
@ -1098,17 +1114,7 @@ export const ProdcutscrapBomDismantle = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled: true
}
},
{ {
label: '从库位代码', label: '从库位代码',
field: 'fromLocationCode', field: 'fromLocationCode',

Loading…
Cancel
Save